Hi!
How can I bind a specific network card of a virtual machine to a specific network card of a host?
I'd like to bind eth0,eth1,eth2 of a VM (KVM) to eth2,eth0,eth1 of a host.
By hand, I did so:
How can I bind a specific network card of a virtual machine to a specific network card of a host?
I'd like to bind eth0,eth1,eth2 of a VM (KVM) to eth2,eth0,eth1 of a host.
By hand, I did so:
Code:
/usr/bin/kvm \
-monitor unix:/var/run/qemu-server/105.mon,server,nowait \
-vnc unix:/var/run/qemu-server/105.vnc,password \
-pidfile /var/run/qemu-server/105.pid \
-daemonize \
-usbdevice tablet \
-name gw.ugk \
-smp 2 \
-id 105 \
-cpuunits 1000 \
-vga cirrus \
-tdf \
-k en-us \
-drive file=/var/lib/vz/images/105/vm-105-disk.qcow2,if=ide,index=0,boot=on \
-m 256 \
-net tap,vlan=0,ifname=vmtab105i0,script=/var/lib/qemu-server/bridge-vlan1 \
-net nic,vlan=0,model=rtl8139,macaddr=6E:67:B8:69:A6:74 \
-net tap,vlan=1,ifname=vmtab105i1,script=/var/lib/qemu-server/bridge-vlan2 \
-net nic,vlan=1,model=rtl8139,macaddr=C6:38:D5:C9:0B:3C \
-net tap,vlan=2,ifname=vmtab105i2,script=/var/lib/qemu-server/bridge-vlan0 \
-net nic,vlan=2,model=rtl8139,macaddr=96:D8:17:47:EF:C3