Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- GUEST=pb-debian-7-server-latest_2.raw
- EXTERNAL_DISK1=/dev/sdb1
- CDROM=gparted-live-0.21.0-1-i586.iso
- /root/develop/qemu/upstream/x86_64-softmmu/qemu-system-x86_64 \
- -name 'virt-tests-vm1' \
- -sandbox off \
- -M pc \
- -nodefaults \
- -vga std \
- -display curses \
- -cdrom $CDROM \
- -chardev socket,id=mon1,host=localhost,port=4444,server,nowait \
- -chardev socket,id=hmp_id_hmp1,path=/tmp/monitor-hmp1-20141212-111934-dBSE1m9i,server,nowait \
- -mon chardev=hmp_id_hmp1,mode=readline \
- -mon chardev=mon1,mode=control,pretty=on \
- -chardev socket,id=serial_id_serial0,path=/tmp/serial-serial0-20141212-111934-dBSE1m9i,server,nowait \
- -device isa-serial,chardev=serial_id_serial0 \
- -chardev socket,id=seabioslog_id_20141212-111934-dBSE1m9i,path=/tmp/seabios-20141212-111934-dBSE1m9i,server,nowait \
- -device isa-debugcon,chardev=seabioslog_id_20141212-111934-dBSE1m9i,iobase=0x402 \
- -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=03 \
- -device virtio-net-pci,mac=9a:b1:b2:b3:b4:b5,id=idqmcxu6,vectors=4,netdev=idsegdFJ,bus=pci.0,addr=05 \
- -netdev user,id=idsegdFJ,hostfwd=tcp::5000-:22 \
- -drive format=raw,id=drive_image1,if=none,format=raw,file=/root/$GUEST \
- -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=0,bus=pci.0,addr=04 \
- -object iothread,id=iothread0 \
- -device virtio-blk-pci,id=image2,drive=drive_image2,x-data-plane=on,iothread=iothread0 \
- -drive id=drive_image2,if=none,format=raw,aio=native,file=$EXTERNAL_DISK1 \
- -m 1024 \
- -smp 2,maxcpus=10,cores=1,threads=1,sockets=2 \
- -cpu 'SandyBridge' \
- -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \
- -rtc base=utc,clock=host,driftfix=none \
- -boot order=d,menu=on \
- -enable-kvm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement