Ubuntu Pastebin

Paste from rharper at Wed, 23 Mar 2016 00:23:12 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
SERIAL="telnet:localhost:2446,server,nowait"
BOOT="/tmp/boot.img"
OUTPUT="/tmp/vmtest-2016-03-21T160911.969232/XenialTestNetworkStatic/boot/output_disk.img"
SEED="/tmp/vmtest-2016-03-21T160911.969232/XenialTestNetworkStatic/boot/seed.img"
qemu-system-x86_64 -enable-kvm \
    -device virtio-net-pci,netdev=net00,mac=52:54:00:12:34:00 \
    -netdev type=user,id=net00 -m 1024 \
    -serial $SERIAL -nographic \
    -drive file=$BOOT,if=virtio,cache=unsafe,format=qcow2 \
    -drive file=$OUTPUT,if=virtio,cache=unsafe,format=raw,serial=output_disk.img \
    -drive file=$SEED,if=virtio,media=cdrom \
    -kernel /srv/images/xenial/amd64/20160310/xenial/generic/boot-kernel \
    -initrd /srv/images/xenial/amd64/20160310/xenial/generic/boot-initrd \
    -append 'root=/dev/vda ds=nocloud console=ttyS0 net.ifnames=0' \
    -monitor stdio -S
Download as text