2 qemu VMs communicate on ubuntu 16.04


1. install qemu-system-x86_64
   apt-get install qemu-system-x86_64
2. ip link add name br0 type bridge
   ip link show
   ip link set br0 up
   ip addr add 192.168.200.130/24 dev br0
3. echo "allow br0" > /etc/qemu/bridge.conf
4. qemu-system-x86_64 -enable-kvm -cpu host -smp cores=2 -m 2048 -hda ubuntu1604-svr.img -vnc 1.1.1.108:1 -net nic -net bridge,br=br0

猜你喜欢

转载自blog.csdn.net/mounter625/article/details/79973547