VMBR1 Missing - Network Issues

  • Thread starter Thread starter wally
  • Start date Start date
W

wally

Guest
Have a cluster both nodes have 2 NIC I am setting up KVM clients and have 2 different networks. I can create VM and bind to vmbr0 but I am not seeing vmbr1 via the web gui, how can I remedy this. Here is an example of my /etc/network/interfaces file:

cat /etc/network/interfaces
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.68.251
netmask 255.255.255.0
gateway 192.168.68.1
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.99.251
netmask 255.255.255.0
gateway 192.168.99.1
bridge_ports eth1
bridge_stp off
bridge_fd 0

I want to create some VM and have them only use vmbr0 others I want to use vmbr1 but again the Bridge section just shows vmbr0 and NAT (User Mode Network).
 
post the output of 'pveversion -v', do you run the lastest version?
 
I am at the latest version on everything:

pveversion -v
pve-manager: 1.6-2 (pve-manager/1.6/5087)
running kernel: 2.6.32-3-pve
proxmox-ve-2.6.32: 1.6-13
pve-kernel-2.6.32-3-pve: 2.6.32-13
pve-kernel-2.6.18-2-pve: 2.6.18-5
qemu-server: 1.1-18
pve-firmware: 1.0-7
libpve-storage-perl: 1.0-13
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-7
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.12.5-1
ksm-control-daemon: 1.0-4

I noticed also from my ifconfig output that there is a venet0 should there be a venet1 also? also what is the vmtab101i0 for and should there be a matching interface to go with the vmbr1 interface also. FYI here is the routing table:

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.99.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr1
192.168.68.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr0
0.0.0.0 192.168.99.1 0.0.0.0 UG 0 0 0 vmbr1
0.0.0.0 192.168.68.1 0.0.0.0 UG 0 0 0 vmbr0

AND the ifconfig output edited to save space but these are the interfaces

ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:30:1b:bf:e9:db


eth1 Link encap:Ethernet HWaddr 04:ef:b0:d0:70:80


lo Link encap:Local Loopback


venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 <<---Should there be a matching for vmbr1?


vmbr0 Link encap:Ethernet HWaddr 00:30:1b:bf:e9:db


vmbr1 Link encap:Ethernet HWaddr 04:ef:b0:d0:70:80


vmtab101i0 Link encap:Ethernet HWaddr da:29:09:02:b3:37 <<--- What is the function of this interface
 
Last edited by a moderator:
You can't specify 2 gateways (there must be only one default gateway). Please remove the gateway definition from vmbr1.
 
Correct, but will having 2 default gateway stop vmbr1 from showing in the webgui? I removed and I still do not get vmbr1 from the webgui of the cluster master when I select the nodes to put a VM on.
This is the set up - I have 3 servers the one I have as the master node have 1 NIC the other 2 that I use to create VMs on have 2 NIC. I noticed over the weekend testing that once in the cluster formation you don't get the create tab on the slave nodes, so my question would be in this case should I be removing them from the cluster, create the VM to use vmbr1 then putting them back under the cluster. Hope this is not the way it works.
I assume when I start to create a VM on the cluster node and select that cluster node it properties should be drawn in and if this is the case then I am not seeing the second interface of the 2 slave nodes from the master node. Thanks.
 
Correct, but will having 2 default gateway stop vmbr1 from showing in the webgui? I removed and I still do not get vmbr1 from the webgui of the cluster master when I select the nodes to put a VM on.

Is there a file called /etc/network/interfaces.new? Seems you directly edit the web config and also use the GUI?

(I don't really understand the rest of your question)
 
No there is not /etc/network/interfaces.new, there was one before the reboot. I removed and retried and it is the same things. I was asking before if the cluster master have to have 2 NIC also although I am not doing anything other than just managing the other 2 servers (slave nodes) which both have 2 NICs?
 
Have a cluster both nodes have 2 NIC I am setting up KVM clients and have 2 different networks. I can create VM and bind to vmbr0 but I am not seeing vmbr1 via the web gui, how can I remedy this. Here is an example of my /etc/network/interfaces file:
Hi,
you don't need an IP on the other bridges - only vmbr0 need an IP.
Try following: /etc/network/interfaces
Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
       address  192.168.68.251
       netmask  255.255.255.0
       gateway  192.168.68.1
       bridge_ports eth0
       bridge_stp off
       bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
       bridge_ports eth1
       bridge_stp off
       bridge_fd 0
 
Tried your setting but did not make a difference. The primary question was why am I not seeing vmbr1 from the drop down list when I go on the cluster master and try to create a new Fully Virtualized KVM Virtual Machine? From the Create tab under the Network Bridge section I only see vmbr0 and NAT (User Mode Network). How can I get vmbr1 showing there? Thanks.
 
Last edited by a moderator:
Tried your setting but did not make a difference. The primary question was why am I not seeing vmbr1 from the drop down list when I go on the cluster master and try to create a new Fully Virtualized KVM Virtual Machine? From the Create tab under the Network Bridge section I only see vmbr0 and NAT (User Mode Network). How can I get vmbr1 showing there? Thanks.
Hi,
do you have _NOT_ the same bridges on all nodes? If you don't have a vmbr1 on the master, you can not select them!
Is this the problem??

If you have only one NIC on the master, you can create a bridge with an dummy-device (not the best way, but so you can select the bridge, which are running on the other nodes...).

Udo
 
Ok so it sounds like I must have 2 interfaces on the master node also, so Dietmar, is the best way then to create a dummy device on the master? Can you send the instructions on doing this. Thanks.
 
Ok so it sounds like I must have 2 interfaces on the master node also, so Dietmar, is the best way then to create a dummy device on the master? Can you send the instructions on doing this. Thanks.
Hi,
you can do something like this (for two dummy brigdes):

in /etc/network/interfaces:
Code:
iface vmbr0 inet static 
       address 192.168.1.100 
       netmask 255.255.255.0 
       gateway 192.168.1.1 
       bridge_ports eth0 
       bridge_stp off 
       bridge_fd 0 
       post-up /usr/local/scripts/generate_vmbr1-2.sh

content of /usr/local/scripts/generate_vmbr1-2.sh
Code:
modprobe -o dummy0 dummy 
modprobe -o dummy1 dummy 
ifconfig dummy0 up 
ifconfig dummy1 up 
brctl addbr vmbr1 
brctl addif vmbr1 dummy0 
brctl addbr vmbr2 
brctl addif vmbr2 dummy1

Udo