Originally Posted by
dnedzel
I don't understand why VM's don't just use DHCP like a regular computer,
They can, and you are almost there, since you already have the bridge set up. You just need to tell your VM to use it.
There are other ways to do this, but here is how I do it:
For an existing VM, use virsh edit and change this area (substitute your MAC, as I just copied one of mine)):
Code:
<interface type='network'>
<mac address='52:54:00:0d:ed:95'/>
<source network='default'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
To this:
Code:
<interface type='bridge'>
<mac address='52:54:00:0d:ed:95'/>
<source bridge='br0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
Bookmarks