Closed vdloo closed 10 years ago
Thanks for the detailed report.
I've just pushed v0.1.9 which changes the way we handle MAC addresses, but it doesn't seem to be related to you issue. Updating networks (vs. destroy and recreate) is a recent feature in libvirt, could it be failing silently because it's not supported?
What distro are you using?
I'm running a fresh install of Debian "jessie"
vdloo@hypervisor2:~$ cat /proc/version
Linux version 3.14-2-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.3 (Debian 4.8.3-7) ) #1 SMP Debian 3.14.15-2 (2014-08-09)
vdloo@hypervisor2:/usr/sbin$ ./libvirtd --version
./libvirtd (libvirt) 1.2.7
FWIW, I also have this issue using Mint 17, which is based on Ubuntu 14.04 (Trusty) and vagrant-kvm
0.1.9:
$ uname -a
Linux cwatson-desktop 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ libvirtd --version
libvirtd (libvirt) 1.2.
$ vagrant plugin list
vagrant-hostsupdater (0.0.11)
vagrant-kvm (0.1.9)
vagrant-mutate (0.3.1)
Thanks guys, it seems that it's not issue.
@vdloo I'll go through your workaround and see if it could cause problems, else I'll merge it.
This is solved now, there were two issues, first we didn't clean up the network of DHCP entries on vagrant destroy
, this was fixed by https://github.com/adrahon/vagrant-kvm/commit/fea85417f11260728f465fb46def1b164b35119a
Second, the MAC addresses we generated weren't random enough and there were collisions, fixed in https://github.com/adrahon/vagrant-kvm/commit/a767774f87bdfbffa55d58e2a020b44ec483965a
Thanks
The following error happens when running vagrant up again after shutting down a vagrant-kvm box for the first time.
Here is the vagrant up --debug log and looking through the code in driver.rb it seems that for some reason old_def.already_exist_hosts? is never positively evaluated. This is a workaround that seems to fix it but I'm pretty sure it breaks other things because it will never run NETWORK_UPDATE_COMMAND_ADD_LAST. Seems related to issue #204.