I read like a thousand kvm/qemu tutorials etc. but kvm/qemu is still like a black book for me :/
What I want to achive: I've a headless server that should run a headless virtual machine. Basically that's all :) I thought it would be easy but it isn't for me.
What I got so far: I want to use a bridge to connect the vm directly to my lan. I created one and added a tun/tap interface to it. This should work. My startup script of the vm looks like this:
Code: Select all
#!/bin/sh
exec qemu-kvm \
-cpu host \
-drive file=system.img,if=virtio \
-device virtio-net,netdev=tunnel \
-netdev tap,id=tunnel,ifname=tap0,script=no \
-m 1024 \
#-monitor stdio \
-name "owncloud" \
$@
Code: Select all
./start.sh -boot d -cdrom ../misc/install-amd64-minimal-20130425.iso -vnc 192.168.2.112:0
Thanks in advance!
fame
Edit: I just realized that the vnc server is listening to the ipv6 localhost. So that is sort of a problem too because I'm still on ipv4. I don't get why there isn't a simple way to connect to the console. I would guess that would be a feature request of like 95% of the users?!





