Advertisement
otubo

Untitled

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