about summary refs log tree commit diff stats
path: root/tools/qemu.html
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qemu.html')
-rw-r--r--tools/qemu.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/tools/qemu.html b/tools/qemu.html
index 1c58e49..c914d74 100644
--- a/tools/qemu.html
+++ b/tools/qemu.html
@@ -43,22 +43,17 @@
         this describes how to create a qcow2 type;</p>
 
         <pre>
-        $ qemu-img create -f qcow2 crux-img.qcow2 15G
+        $ qemu-img create -f qcow2 crux-img.qcow2 20G
         </pre>
 
-        <p>You can mount disk image;</p>
+        <p>Qemu disk images can be treated as regular disks using
+        qemu disk network block device server;</p>
 
         <pre>
         $ sudo modprobe nbd
         $ sudo qemu-nbd -c /dev/nbd0 /crux-img.qcow2
         </pre>
 
-        <p>To disconnect image disk (ndb);</p>
-
-        <pre>
-        $ sudo qemu-nbd -d /dev/nbd0
-        </pre>
-
         <p>Information about preparing
         <a href="../core/install.html#step2">partitions</a>
         and <a href="storage.html">storage</a> administration.
@@ -100,6 +95,13 @@
         # mount $BLK_VAR $CHROOT/var
         </pre>
 
+        <p>Before disconnecting image, clean dev mappings;</p>
+
+        <pre>
+        $ sudo kpartx -d /dev/nbd0
+        $ sudo qemu-nbd -d /dev/nbd0
+        </pre>
+
         <h2 id="net">2. Network</h2>
 
         <p>Network configuration;</p>