Bug: Removing eth0 from vmbr0 fails when reconfiguring eth0

mss

New Member
May 18, 2010
3
0
1
I guess this forum is the official bugtracker?

I was just playing around with the networking configuration (Proxmox VE 1.5) and tried to split eth0 from vmbr0 as a separate device to use routing instead of a bridge (as described here). I tried to use the GUI for that and it failed. What I did was:

1. I chose delete in the drop down menu for vmbr0. The proposed changes were displayed like this:

Code:
--- /etc/network/interfaces    2010-05-18 20:18:45.000000000 +0200
+++ /etc/network/interfaces.new    2010-05-18 20:20:49.000000000 +0200
@@ -4,12 +4,3 @@
 
 iface eth0 inet manual
 
-auto vmbr0
-iface vmbr0 inet static
-    address  10.49.1.21
-    netmask  255.255.255.0
-    gateway  10.49.1.1
-    bridge_ports eth0
-    bridge_stp off
-    bridge_fd 0
-
In the list of interfaces I now had eth0 and vmbr0. Fine.

2. Because I didn't want to lose my connectivity once I restarted the box, I tried to reconfigure eth0 with the old IP. So I chose Edit from the drop down menu for eth0.

3. I noticed that there was no field for a default gateway. Anyway, I entered my IP address and clocked Save.

4. I got the error
Error: invalid interface name for bridge or bonding device
in a JavaScript dialog. Jepp, eth0 is no bridge or bonding device...

I guess I'll just keep eth0 bound to vmbr0 and create an extra vmbr1 with the routed subnet. But still, the GUI should be fixed in this regard.
 
yes, I confirm this, will take a deeper look.

in the meantime, just edit the
/etc/network/interfaces manually.
 
I just kept my eth0 in vmbr0 and added a vmbr1 instead. A bridged eth0 shouldn't hurt, even if the bridge consists of only one device.

One slightly related question about something I never noticed before: It seems like you can add only one interface to a VM via the GUI. Is that correct or am I just too blind to find the option to add another one (I want one vnet and one veth, both in different networks).
 
OpenVZ: you need to add second veth via CLI (vzctl). not supported on the gui yet.

KVM: you can add up to 8 virtual nic´s, each one connected to a separate brigde, if you want.
 
OpenVZ: you need to add second veth via CLI (vzctl). not supported on the gui yet.

Jepp, thats what I did in the end, just wondered if I missed something in the GUI. Thanks for the quick reply.