1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/bin/sh
set -e
qemu-img create /var/lib/tempest-live-booter/tempest-scratch-disk.dat 150G
/usr/bin/kvm \
-m size=100G \
-smp cpus=8 \
-cpu host \
-vnc :1 \
-pidfile /var/lib/tempest-live-booter/vm.pid \
-daemonize \
-name tempest-vm \
-drive if=virtio,file=/var/lib/tempest-live-booter/tempest-scratch-disk.dat,index=0,media=disk,format=raw \
-boot n \
-option-rom /usr/lib/ipxe/qemu/pxe-e1000.rom \
-device e1000,netdev=net0,mac=08:00:27:06:CC:CF \
-netdev tap,id=net0,ifname=tempesttap,script=no,downscript=no \
-device e1000,netdev=net1,mac=08:00:27:06:CC:CE \
-netdev user,id=net1,net=172.17.1.0/24,dhcpstart=172.17.1.1
|