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.html36
1 files changed, 25 insertions, 11 deletions
diff --git a/tools/qemu.html b/tools/qemu.html
index 86fb7aa..1c58e49 100644
--- a/tools/qemu.html
+++ b/tools/qemu.html
@@ -193,9 +193,17 @@
 
         <h2 id="guest">Guest System</h2>
 
-        <p>See <a href="scripts/system-qemu.sh">scripts/system-qemu.sh</a>,
-        as template. Run virtual machine that uses above tap device;</p>
+        <p>See <a href="scripts/runvm/runvm.sh">scripts/runvm/runvm.sh</a>,
+        as template. Example scripts;</p>
 
+        <p>runvm/profile/crux</p>
+        <pre>
+        iso=iso/crux-3.2.iso
+        image=img/crux-img.qcow2
+        tap="tap1"
+        </pre>
+
+        <p>runvm/runvm.sh</p>
         <pre>
         #!/bin/bash
 
@@ -203,14 +211,9 @@
         printf '54:60:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))
         }
 
-        #boot=d
-        boot=$1
-        #iso=crux-3.2.iso
-        iso=$2
-        #image=crux-img.qcow2
-        image=$3
-        #tap="tap1"
-        tap=$4
+        source profile/$1
+        boot=$2
+
         mac=$(rmac_addr)
 
         qemu-system-x86_64 \
@@ -219,8 +222,19 @@
             -boot ${boot} \
             -cdrom ${iso} \
             -hda ${image} \
+            -vga std \
+            -display sdl \
             -device e1000,netdev=t0,mac=${mac} \
-            -netdev tap,id=t0,ifname=${tap},script=no,downscript=no
+            -netdev tap,id=t0,ifname=${tap},script=no,downscript=no \
+            &amp;
+        </pre>
+
+        <p>Set guests machines to run under the total resolution provided
+        by  host system configure grub on the guest with gfxmode;</p>
+
+        <pre>
+        GRUB_GFXMODE=640x480
+        GRUB_GFXPAYLOAD_LINUX=keep
         </pre>
 
         <a href="index.html">Tools Index</a>