[1] Install KVM and so on.
aptitude -y install qemu-kvm libvirt-bin virtinst bridge-utils
[2] Enable vhost-net.
modprobe vhost_net
lsmod | grep vhost
vhost_net 18063 0
vhost 29009 1
vhost_net
macvtap 18255 1 vhost_net
echo vhost_net >> /etc/modules
[3] Configure Bridge networking.
vi /etc/network/interfaces
iface em2 inet manual
auto br0
iface br0 inet static
bridge_ports em2
bridge_stp off
bridge_fd 0
brudge_maxwait 0
#Bride IP
address x.x.x.x
netmask x.x.x.0
network x.x.x.0
broadcast x.x.x.x
gateway x.x.x.x
dns-nameservers x.x.x.x
dns-search xxxxxxx
reboot
沒有留言:
張貼留言