uvt-kvm: error: no IP address found for libvirt machine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uvtool (Ubuntu) |
Fix Released
|
High
|
Robie Basak |
Bug Description
[Background]
Since libvirt v1.2.11 though, it adds --leasefile-ro which stops it updating the dnsmasq lease file and makes libvirt store the leases itself, so uvt-kvm can no longer find the IP address allocated to the new VM as the old lease file's not updated.
2014-12-03 Nehal J Wani <email address hidden>
leaseshelper: improvements to support all events
This patch enables the helper program to detect event(s) triggered when
there is a change in lease length or expiry and client-id. This
transfers complete control of leases database to libvirt and obsoletes
use of the lease database file (<network-
not be created, read, or written. This is achieved by adding the option
which helps us map events related to leases with their corresponding
network bridges, no matter what the event be.
[System]
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04
Codename: vivid
ii uvtool-libvirt 0~bzr92-0ubuntu2 all Library and tools for using Ubuntu Cloud Images with libvirt
[Reproduce]
$ uvt-kvm create precise release=precise
$ uvt-kvm wait precise
uvt-kvm: error: libvirt domain 'precise' has no NIC MACs available.
$ uvt-kvm ip precise
[Others]
[1]:niedbalski@
[0]:niedbalski@
[0]:niedbalski@
[
{
"hostname": "ubuntu",
},
{
"hostname": "ubuntu",
}
]
Related branches
- Robie Basak (community): Needs Fixing
- uvtool development: Pending requested
-
Diff: 36 lines (+16/-5)1 file modifieduvtool/libvirt/__init__.py (+16/-5)
description: | updated |
description: | updated |
Changed in uvtool (Ubuntu): | |
status: | In Progress → Fix Committed |
status: | Fix Committed → In Progress |
Changed in uvtool (Ubuntu): | |
milestone: | none → ubuntu-15.04 |
Changed in uvtool (Ubuntu): | |
assignee: | Jorge Niedbalski (niedbalski) → Robie Basak (racb) |
sudo VIR_BRIDGE_ NAME=virbr0 /usr/lib/ libvirt/ libvirt_ leaseshelper init
1425571755 52:54:00:67:03:38 192.168.122.237 ubuntu *
1425569970 52:54:00:33:d2:45 192.168.122.100 * *
Also another way for getting this:
arp -n | grep $mac | cut -d' ' -f 1
Or by reading /proc/net/arp