diff options
author | Silvino Silva <silvino@bk.ru> | 2016-09-22 03:36:48 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2016-09-22 03:36:48 +0100 |
commit | 46097662f5988504cf86a1f6fd75c2cca88c0fb3 (patch) | |
tree | ed1ca58bf1c3b5f7c79361b6013d4e5915e0f458 | |
parent | 1b941827ad765bd252e4a27a460dc485c872991c (diff) | |
download | doc-46097662f5988504cf86a1f6fd75c2cca88c0fb3.tar.gz |
tools qemu and index document fix
-rw-r--r-- | tools/index.html | 6 | ||||
-rw-r--r-- | tools/qemu.html | 19 |
2 files changed, 12 insertions, 13 deletions
diff --git a/tools/index.html b/tools/index.html index e5adac6..c30c85e 100644 --- a/tools/index.html +++ b/tools/index.html @@ -78,9 +78,9 @@ </li> <li><a href="qemu.html">Qemu</a> <ul> - <li><a href="qemu.html#kern">Kernel Configuration</a></li> - <li><a href="qemu.html#disk">Disk images</a></li> - <li><a href="tcpdump.html">Tcpdump</a></li> + <li><a href="qemu.html#kern">1. Host System</a></li> + <li><a href="qemu.html#disk">2. Disk images</a></li> + <li><a href="qemu.html#net">3, Network</a></li> </ul> </li> diff --git a/tools/qemu.html b/tools/qemu.html index ef1c36d..68850e7 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -10,31 +10,29 @@ <h1>Qemu</h1> - <h2 id="kern">Kernel configuration</h2> + <h2 id="kern">1. Host System</h2> <pre> # usermod -a -G kvm c9admin # usermod -a -G kvm username </pre> - <h2 id="disk">Disk images</h2> + <h2 id="disk">2. Disk images</h2> <dl> <dt>img</dt> - <dd>network slirp</dd> + <dd>Raw disk image, allows dd to a physical device.</dd> <dt>raw</dt> - <dd>network tap</dd> + <dd>Raw disk image, allows dd to a physical device.</dd> <dt>qcow2</dt> - <dd>... ...</dd> + <dd>Qcow disk image file used by qemu.</dd> </dl> - - <p>Create hard disk image, there is different types, this describes how to create a qcow2 type;</p> <pre> - $ qemu-img create -f qcow2 crux-img.qcow2 20G + $ qemu-img create -f qcow2 crux-img.qcow2 15G </pre> <p>You can mount disk image;</p> @@ -68,6 +66,7 @@ # kpartx -a -s -l /dev/nbd0 </pre> + <h2 id="net">2. Network</h2> <p>Network configuration;</p> <dl> @@ -79,9 +78,8 @@ <dd>... ...</dd> </dl> - <h2>Network configuration</h2> - <h3>Tap interfaces</h3> + <h3>2.1. Tap interfaces</h3> <pre> KERNEL=="tun", GROUP="kvm", MODE="0660", OPTIONS+="static_node=net/tun" @@ -137,6 +135,7 @@ <pre> # tcpdump tap0 </pre> + <a href="index.html">Tools Index</a> <p>This is part of the c9 Manual. Copyright (C) 2016 |