vmtools

vmtools.git
git clone git://git.lenczewski.org/vmtools.git
Log | Files | Refs

vmstart.sh (544B)


      1 #!/bin/sh
      2 
      3 . "$(dirname $0)/vmcommon.sh"
      4 
      5 set -ex
      6 
      7 $NUMA_TASKSET qemu-system-$ARCH \
      8 	-M $MACHINE -cpu host -enable-kvm $NUMA_FLAGS \
      9 	-drive if=pflash,format=raw,file=$EFI_CODE,readonly=yes \
     10 	-drive if=pflash,format=raw,file=$EFI_VARS \
     11 	-drive if=none,format=raw,file=$(realpath $DISK),id=hd0 \
     12 	-device virtio-blk,id=hd0 \
     13 	-device virtio-net-pci,netdev=net0 \
     14 	-netdev user,id=net0,hostfwd=tcp::8022-:22 \
     15 	-device virtio-rng-pci,rng=rng0 \
     16 	-object rng-random,filename=/dev/urandom,id=rng0 \
     17 	-nographic -serial mon:stdio -display curses