adrahon / vagrant-kvm

This project is dead, please use vagrant-libvirt instead! A Vagrant 1.4+ plugin that adds a KVM provider to Vagrant, allowing Vagrant to control and provision KVM/QEMU VM.
MIT License
366 stars 60 forks source link

2nd up fails nic problem with private IP #233

Closed miurahr closed 10 years ago

miurahr commented 10 years ago
$vagrant up
Bringing machine 'default' up with 'kvm' provider...
==> default: Importing base box 'fedora20'...
==> default: Your vagrant-kvm environment should be fixed. see README.
==> default: Matching MAC address for NAT networking...
==> default: Preparing network interfaces based on configuration...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 192.168.123.57:22
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Host unreachable. Retrying...
==> default: Machine booted and ready!
==> default: Creating shared folders metadata...
==> default: mounting p9 share in guest
==> default: Configuring cache buckets...
miurahr@miurahr-note:~/work/fedora20$ vagrant destroy
    default: Are you sure you want to destroy the 'default' VM? [y/N] y
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
miurahr@miurahr-note:~/work/fedora20$ vagrant ssh
VM must be created before running this command. Run `vagrant up` first.
miurahr@miurahr-note:~/work/fedora20$ vagrant up
Bringing machine 'default' up with 'kvm' provider...
==> default: Importing base box 'fedora20'...
==> default: Your vagrant-kvm environment should be fixed. see README.
==> default: Matching MAC address for NAT networking...
==> default: Preparing network interfaces based on configuration...
==> default: Destroying VM and associated drives...
/home/miurahr/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/driver/driver.rb:201:in `update': Call to virNetworkUpdate failed: Requested operation is not valid: there is an existing dhcp host entry in network 'vagrant-34' that matches "<host mac='00:16:3e:6b:6b:d0' name='nic-1400370690' ip='192.168.34.10'/>" (Libvirt::Error)
miurahr commented 10 years ago

It forget removing private IP address when destroy?

adrahon commented 10 years ago

I can't reproduce, with or without additional private network.

miurahr commented 10 years ago

It may be environment specific. closing.