1

my vm is centos 4.8 and it came from a physical server. All is great except I can't seem to get bridged networking working. The default user mode networking is fine, from the guest I can reach the internet but I want to bridge so the host can see the guest.

I've read some docs about it but it feels like I'm missing the big picture and am getting confused. Am I setting up the bridge network interface on the host? And what role does the config files in /etc/libvirt play? I see that when I use the virtual machine manager, it adds xml files there but what about the network interface stuff. Is that modifying the host system when the libvirt service starts?

1 Answers1

1

The bridge network interface is setup on the host computer. When you use bridging the guest network interface uses the host bride interface. The .xml files in /etc/libvirt/qemu define the VM, and therefore play an all important role. If you are using bridging, there should be lines similar to:

<interface type='bridge'>
  <mac address='52:54:00:87:d2:f4'/>
  <source bridge='br0'/>
  <model type='virtio'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>

I do not use virt manager, but this and this might help you.

Doug Smythies
  • 16,146