about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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
and expanding tar archives, `OK_GZIP' which enables use of gzip to compress and decompress files, and `OK_OVERRIDE' which allows access to the file management facilities directly from the keyboard in addition to access by way of a file management menu. There are two possible modes of operation; the first in which a single file management menu is invoked via the `f', or `F' key; the second, in which the more often used facilities are made available directly from the keyboard in addition to access via the menu. The second method provides a much better user interface but requires re-mapping some of the keys from their standard lynx interpretation, temporarily when file management mode is in effect. For example, if OK_OVERRIDE is defined at compile-time, then the line at the bottom of the screen, in novice mode, will be C)reate D)ownload E)dit F)ull menu M)odify R)emove T)ag U)pload rather than the standard second noviceline, H)elp O)ptions P)rint G)o M)ain screen Q)uit /=search [delete]=history list when the user is browsing part of the file system. If OK_OVERRIDE is not defined then all access to file management functionality must be by way of the menu. The only exception is that the facility to tag files for subsequent removal and/or re-location is always available directly from the keyboard using `t', and `T'. This is a first release of the file management enhancements and suggestions for improvements are welcome. Among the enhancements which are currently being considered are facilities for changing file access attributes, and a facility for listing and extracting part of an archive. In order to use the file management facilities you may either point the program at a directory on the command line or point the program at an html file which contains a link of the following form: <a href="file://localhost/~/"> Manage Personal Directory ? </a> where the anchor `file://localhost/~/' implies a reference to /home/username. Because the `~/' in a file URL is converted to `/home/username' regardless of origin, these facilities also work when the anchor shown above is served from an http server as well. In either case the reference is to files on the local system and not files in the domain of the server. By default the file listing is in standard Unix mixed format, but you may use the Options menu to select WWW `directories first' format, or `files first' format if you prefer. Rick Mallett, Carleton University, Ottawa Canada. (rmallett@ccs.carleton.ca)