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
365 stars 60 forks source link

v0.2.0dev: Add multifunction=on option to pci network device #236

Closed himura closed 10 years ago

himura commented 10 years ago

I've got the following error during vagrant up:

$ VAGRANT_LOG=debug vagrant up --provider=kvm
... snip...
ERROR warden: Error occurred: Call to virDomainDefineXML failed: XML error: Attempted double use of PCI Address 0000:00:03.1 (may need "multifunction='on'" for device on function 0)
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<VagrantPlugins::ProviderKvm::Action::Import:0x000000012552f0>
ERROR warden: Error occurred: Call to virDomainLookupByUUID failed: Domain not found: no domain with matching uuid 'a4e3fe7e-c083-4a86-b70b-4704b9d24404'
... snip...
/home/taka/.vagrant.d/gems/gems/vagrant-kvm-0.2.0.dev/lib/vagrant-kvm/driver/driver.rb:417:in `lookup_domain_by_uuid': Call to virDomainLookupByUUID failed: Domain not found: no domain with matching uuid 'a4e3fe7e-c083-4a86-b70b-4704b9d24404' (Libvirt::RetrieveError)

My environment is as following:

miurahr commented 10 years ago

Multi-function behavior is depend on libvirt version. https://www.redhat.com/archives/libvir-list/2011-September/msg01313.html

We can recognize multi-function PCI support is manual and need the patch according to libvirt discussion. Also I'm now aware a limit of function number. func can be 0..7 that means only 8 NIC can be defined.

miurahr commented 10 years ago

238 try to fix a problem of limitation on virtfs and nic injection.

Because func is limited to 8, #238 use another BUS id for nics.

himura commented 10 years ago

238 works fine in my environment. I close this issue.

Sorry for the late reply.