OpenVZ and KVM on same machine with one NIC

bimbo

Member
Jul 9, 2011
13
0
21
Hi

Is it possible to have openvz and kvm on the same machine with only on NIC?

Im looking for something like
openvz. ip 192.168.1.10
KVM 192.168.1.11

my etc/network/interfaces looks like this...but it doesnt work...

Code:
# network interface settings
auto lo
iface lo inet loopback


auto eth1
iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
address  192.168.1.10
        netmask  255.255.255.0
        gateway  192.168.1.1
bridge_ports eth1
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet static
        address  192.168.1.11
        netmask  255.255.255.0
        gateway  192.168.1.1
bridge_ports eth1
        bridge_stp off
        bridge_fd 0

regards

David
 
First, you cant have 2 default gateways!

Second, both IP addresses are inside the same network - this will never work (routing impossible).
 
I wonder if this can be done with just a NIC....I had this "working before with 2 NICS...but i lost one connection on router so I was trying to get away with it.

I noticed that in 1.8 one could not bridge a KVM to the same NIC of openvz..in 2.0 you can...but i cant make it working only with the windows KVM under NAT.

Regards

David