====== host:generic ======
===== install =====
brctl addbr br0
ifconfig br0 192.168.66.1 netmask 255.255.255.0 up
tunctl -b -u bk024969 -t tap0
brctl addif br0 tap0
ifconfig tap0 up 0.0.0.0 promisc
qemu-img create -f qcow2 base.img 5G
qemu-img resize base.img 10G
start-base with rescue cd
#!/bin/bash
qemu-system-x86_64 \
-vnc 192.168.178.111:0 \
-cpu host \
-smp 2 \
-drive file=marduk.img,if=virtio,media=disk \
-m 2048 \
-k de \
-net nic,macaddr=00:00:00:00:00:01,model=virtio \
-net tap,ifname=tap0,script=no,downscript=no \
-cdrom systemrescuecd-6.0.3.iso \
-boot d \
-enable-kvm
start-base without cd
qemu-system-x86_64 \
-cpu host \
-smp 2 \
-drive file=base.img,if=virtio,media=disk \
-m 1024 \
-k de \
-vga none \
-nographic \
-net nic,macaddr=00:00:00:00:00:03,model=virtio \
-net tap,ifname=tap0,script=no,downscript=no \
-enable-kvm &