Fix VM usage and update ex/runvm
[gruntmaster-daemon.git] / ex / runvm
index 208aedc..18331a0 100755 (executable)
--- a/ex/runvm
+++ b/ex/runvm
@@ -1,15 +1,11 @@
 #!/bin/bash
-ROOT=/home/marius/git/gruntmaster-daemon
+ROOT=.
 
 qemu-system-x86_64 \
-       -enable-kvm -cpu host -m 256MB \
-       -nodefaults -nographic \
-       -kernel $ROOT/vm/boot/vmlinuz-3.2.0-4-amd64 \
-       -initrd $ROOT/vm/boot/initrd.img-3.2.0-4-amd64 \
-       -append 'root=/dev/vda console=ttyS0,38400 quiet init=/bin/bash --login' \
+       -enable-kvm -cpu host -m 1G \
+       -nodefaults -display none -monitor none \
+       -kernel $ROOT/bzImage \
+       -append 'root=/dev/vda console=ttyS0,1200 acpi=noirq quiet init=/bin/bash --login' \
        -drive file=$ROOT/vm.squashfs,if=virtio,readonly \
        -virtfs local,id=virtfs0,path=.,security_model=none,mount_tag=virtfs \
-       -chardev stdio,id=stdio,signal=on \
-       -chardev pipe,id=hostpipe,path=$1 \
-       -serial chardev:stdio \
-       -serial chardev:hostpipe
+       -chardev stdio,id=stdio,signal=off -serial chardev:stdio "$@"
This page took 0.019612 seconds and 4 git commands to generate.