aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qemu.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-02-25 18:40:03 +0000
committerSilvino Silva <silvino@bk.ru>2017-02-25 18:40:03 +0000
commitd26a4e12deafade205d37a9fda748a6b78dfdb6a (patch)
tree2ed6d8ca57e6c095748eeb99c811cf9d038ad1af /tools/qemu.html
parent7ecd18da2b5518296bdb366234fb04a1e46335e8 (diff)
downloaddoc-d26a4e12deafade205d37a9fda748a6b78dfdb6a.tar.gz
overall revesion
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>