[libvirt] Set MAC address for host virtual interface?

Neil Aggarwal neil at JAMMConsulting.com
Thu Jan 14 02:25:47 UTC 2010


Hello:

Is there a way to set the MAC address for the virtual
interface on the host?

I have this in my guests's XML file:
   <interface type='bridge'>
     <mac address='54:52:00:7d:f8:fc'/>
     <source bridge='br0'/>
     <target dev='tkl-joomla'/>
   </interface>

the mac address line controls the guest interface
but the host interface seems to get a random MAC
address.

This is causing a problem for me since I use Cacti
to monitor the bandwidth usage of the guest machines.
Every time I stop and start a guest, Cacti creates a
new interface and I have to reset the graphs to use
the new interfaces.

Thanks,
	Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host Joomla!, Wordpress, phpBB, or vBulletin for $25/mo
Unmetered bandwidth = no overage charges, 7 day free trial




More information about the libvir-list mailing list