about summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-09-21 07:03:44 +0100
committerSilvino Silva <silvino@bk.ru>2016-09-21 07:03:44 +0100
commit52ef12e6a8bc01e783c49de2a9694b27f3eaee81 (patch)
tree1b539bd62b1bb67d878b34338fe0c3656136cd24 /tools
parent09aca44263fe427c03847eefdd0fd367f9cbe10e (diff)
downloaddoc-52ef12e6a8bc01e783c49de2a9694b27f3eaee81.tar.gz
tools qemu revision
Diffstat (limited to 'tools')
-rw-r--r--tools/qemu.html101
1 files changed, 50 insertions, 51 deletions
diff --git a/tools/qemu.html b/tools/qemu.html
index e1ea277..ef1c36d 100644
--- a/tools/qemu.html
+++ b/tools/qemu.html
@@ -2,15 +2,22 @@
 <html dir="ltr" lang="en">
     <head>
         <meta charset='utf-8'>
-        <title>1. Qemu</title>
+        <title>Qemu</title>
     </head>
     <body>
 
         <a href="index.html">Tools Index</a>
 
-        <h1>1. Qemu</h1>
+        <h1>Qemu</h1>
 
-        <p>Disk images;</p>
+        <h2 id="kern">Kernel configuration</h2>
+
+        <pre>
+        # usermod -a -G kvm c9admin
+        # usermod -a -G kvm username
+        </pre>
+
+        <h2 id="disk">Disk images</h2>
 
         <dl>
             <dt>img</dt>
@@ -22,6 +29,46 @@
         </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
+        </pre>
+
+        <p>You can mount disk image;</p>
+
+        <pre>
+        $ sudo modprobe nbd
+        $ sudo qemu-nbd -c /dev/nbd0 /crux-img.qcow2
+        </pre>
+
+        <p>To disconnect image disk (ndb);</a>
+
+        <pre>
+        $ sudo qemu-nbd -d /dev/nbd0
+        </pre>
+
+        <p>You can use image as a normal disk, example how
+        to use parted to create a gpt system table;</p>
+
+        <pre>
+        # parted /dev/nbd0
+        (parted) mklabel gpt
+        </pre>
+
+        <p>More information about
+        <a href="http://devil-detail.blogspot.pt/2013/07/install-grub2-on-gpt-disk-dedicated-partition.html">gpt partition table</a>.
+        </p>
+
+        <p>If partitions are on qcow2 image then setup partitions;</p>
+
+        <pre>
+        # kpartx -a -s -l /dev/nbd0
+        </pre>
+
+
         <p>Network configuration;</p>
         <dl>
             <dt>slirp</dt>
@@ -32,13 +79,6 @@
             <dd>... ...</dd>
         </dl>
 
-        <h2>Kernel configuration</h2>
-
-        <pre>
-        # usermod -a -G kvm c9admin
-        # usermod -a -G kvm username
-        </pre>
-
         <h2>Network configuration</h2>
 
         <h3>Tap interfaces</h3>
@@ -97,47 +137,6 @@
 	<pre>
 	# tcpdump tap0
 	</pre>
-
-        <h2>Disk image files</h2>
-
-        <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
-        </pre>
-
-        <p>You can mount disk image;</p>
-
-        <pre>
-        $ sudo modprobe nbd
-        $ sudo qemu-nbd -c /dev/nbd0 /crux-img.qcow2
-        </pre>
-
-        <p>To disconnect image disk (ndb);</a>
-
-        <pre>
-        $ sudo qemu-nbd -d /dev/nbd0
-        </pre>
-
-        <p>You can use image as a normal disk, example how
-        to use parted to create a gpt system table;</p>
-
-        <pre>
-        # parted /dev/nbd0
-        (parted) mklabel gpt
-        </pre>
-
-        <p>More information about
-        <a href="http://devil-detail.blogspot.pt/2013/07/install-grub2-on-gpt-disk-dedicated-partition.html">gpt partition table</a>.
-        </p>
-
-        <p>If partitions are on qcow2 image then setup partitions;</p>
-
-        <pre>
-        # kpartx -a -s -l /dev/nbd0
-        </pre>
-
         <a href="index.html">Tools Index</a>
         <p>This is part of the c9 Manual.
         Copyright (C) 2016