diff options
Diffstat (limited to 'tools/qemu.html')
-rw-r--r-- | tools/qemu.html | 19 |
1 files changed, 9 insertions, 10 deletions
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 |