Specifying --bridge mode makes wait fail with "has no NIC MACs available" error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uvtool |
Triaged
|
Medium
|
Unassigned |
Bug Description
We are creating our VMs using:
sudo uvt-kvm create --bridge br0 --cpu 8 --memory 2048 --disk 8 --ssh-public-
which works, but when we do:
sudo uvt-kvm wait --insecure myhostname
We get "uvt-kvm: error: libvirt domain 'myhostname' has no NIC MACs available."
sudo uvt-kvm ip myhostname
Has the same problem.
The MAC address is available in the libvirt domain definition:
$ sudo grep -A2 interface /etc/libvirt/
<interface type='bridge'>
<mac address=
<source bridge='br0'/>
This was previously commented on by another uvt-kvm user posting on the mailing list: https:/
get_domain_macs() only retrieves the MAC addresses from 'network' type interfaces.
I've attached a patch which addresses this by also getting addresses from 'bridge' type interfaces.