Hi!
I'm trying to set up a virtual machine with KVM and I have some difficulty configuring the network bridge. I've found several guides on the net and tried to follow the instructions, but I must be missing some important detail, because my machine stubbornly refuses to follow the settings.
In all the guides one is advised to set up a network bridge on the host for the guestOS to use. In order to do that one must edit the /etc/network/interfaces file.
Here's my unedited /etc/network/interfaces file:
	I tried several configurations and all of them failed in some way.
Here is the first I tried:
	After restarting the machine with this config the Network-manager icon in the system tray was crossed over in a red circle. And various automatic services (like update) reported failure because of "no connection". Yet firefox was working fine.
Then I changed the bridge config to static, like this:
	This time, after a restart, not even firefox could connect to internet. But ping command was working normally so I still had a connection, albeit unusable.
So, what am I doing wrong? I have Kubuntu 13.10 64bit, and my machine is on a home LAN, connected to the net by a regular router. The router recieves an IP from my Internet Provider, but this IP is static. The router has a working DHCP that assigned IPs to devices on the home network. It is configured in such a way that the machine I'm working on always receives the same IP: 192.168.1.4. The router's address on the home network is 192.168.1.1.
However much I look at this it appears I'm doing everything right. But, obviously, I'm missing something. So some advice would be appreciated. Should I assign a unique MAC-address to the bridge? Do I use a different IP for for the static config of the bridge (I tried assigning 192.168.1.33 to it at first but that didn't work either)? Could I use some GUI or CLI tools to create the bridge, instead of doing it manually? I came accros such commands as addbr, but I thought doing it manually would save me time.
 So some advice would be appreciated. Should I assign a unique MAC-address to the bridge? Do I use a different IP for for the static config of the bridge (I tried assigning 192.168.1.33 to it at first but that didn't work either)? Could I use some GUI or CLI tools to create the bridge, instead of doing it manually? I came accros such commands as addbr, but I thought doing it manually would save me time.
/ Victor
					I'm trying to set up a virtual machine with KVM and I have some difficulty configuring the network bridge. I've found several guides on the net and tried to follow the instructions, but I must be missing some important detail, because my machine stubbornly refuses to follow the settings.

In all the guides one is advised to set up a network bridge on the host for the guestOS to use. In order to do that one must edit the /etc/network/interfaces file.
Here's my unedited /etc/network/interfaces file:
Code:
	
	# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 #NetworkManager#iface eth0 inet dhcp
Here is the first I tried:
Code:
	
	# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
# Network bridge
auto br0
iface br0 inet dhcp
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0
Then I changed the bridge config to static, like this:
Code:
	
	# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
# Network bridge
auto br0
iface br0 inet static
	address 192.168.1.4
	network 192.168.1.0
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0
So, what am I doing wrong? I have Kubuntu 13.10 64bit, and my machine is on a home LAN, connected to the net by a regular router. The router recieves an IP from my Internet Provider, but this IP is static. The router has a working DHCP that assigned IPs to devices on the home network. It is configured in such a way that the machine I'm working on always receives the same IP: 192.168.1.4. The router's address on the home network is 192.168.1.1.
However much I look at this it appears I'm doing everything right. But, obviously, I'm missing something.
 So some advice would be appreciated. Should I assign a unique MAC-address to the bridge? Do I use a different IP for for the static config of the bridge (I tried assigning 192.168.1.33 to it at first but that didn't work either)? Could I use some GUI or CLI tools to create the bridge, instead of doing it manually? I came accros such commands as addbr, but I thought doing it manually would save me time.
 So some advice would be appreciated. Should I assign a unique MAC-address to the bridge? Do I use a different IP for for the static config of the bridge (I tried assigning 192.168.1.33 to it at first but that didn't work either)? Could I use some GUI or CLI tools to create the bridge, instead of doing it manually? I came accros such commands as addbr, but I thought doing it manually would save me time./ Victor








Comment