could not add physical hardware (ethernet card)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Fedora) |
Invalid
|
Medium
|
|||
libvirt (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
I am running KVM on a Dell PowerEdge R510 server with 10.04.2. The server has 2 Intel quad port Ethernet cards and 2 Broadcom NICs.
root@kvm01:~# uname -a
Linux kvm01 2.6.32-30-server #59-Ubuntu SMP Tue Mar 1 22:46:09 UTC 2011 x86_64 GNU/Linux
root@kvm01:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid
I disabled apparmor!
When I try to add a physical network card (eth6 for example) to a VM I get the following error messages:
Traceback (most recent call last):
File "/usr/share/
vm.startup()
File "/usr/share/
self.
File "/usr/lib/
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: monitor socket did not show up.: Connection refused
/var/log/
LC_ALL=C PATH=/usr/
char device redirected to /dev/pts/3
pci_add_option_rom: failed to find romfile "pxe-virtio.bin"
pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin"
device: 0b:00.1: driver="pci-assign" host="0b:00.1"
No IOMMU found. Unable to assign device "0b:00.1"
Failed to deassign device "0b:00.1" : Invalid argument
Error initializing device pci-assign
Without the physical hardware the VM starts normally. Assigning USB (storage) devices as physical devices also works fine.
I am adding the physical hardware via virt-manager in the corresponding menus.
Changed in libvirt (Ubuntu): | |
status: | Expired → Confirmed |
Changed in libvirt (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Invalid |
Description of problem:
NIC passthrough failed during new VM installing in virt-manager.
Version-Release number of selected component (if applicable): 0.8.4-4. el6.noarch
virt-manager-
How reproducible:
always
Steps to Reproduce:
1. Install a new VM and passthrough NIC during install wizard.
2.
3.
Actual results: libvirtError' > internal error host=02: 00.0,id= hostdev0, configfd= 23,bus= pci.0,addr= 0x7: Device
Unable to complete install '<class 'libvirt.
Process exited while reading console log output: char device redirected to
/dev/pts/1
No IOMMU found. Unable to assign device "hostdev0"
Failed to deassign device "hostdev0" : Invalid argument
qemu-kvm: -device
pci-assign,
'pci-assign' could not be initialized
Traceback (most recent call last): virt-manager/ virtManager/ create. py", line 1559, in install( False, meter = meter) python2. 6/site- packages/ virtinst/ Guest.py" , line 972, in install( consolecb, meter, removeOld, wait) python2. 6/site- packages/ virtinst/ Guest.py" , line 1037, in python2. 6/site- packages/ virtinst/ Guest.py" , line 1008, in createLinux( start_xml, 0) python2. 6/site- packages/ libvirt. py", line 1270, in 'virDomainCreat eLinux( ) failed', host=02: 00.0,id= hostdev0, configfd= 23,bus= pci.0,addr= 0x7: Device
File "/usr/share/
do_install
dom = guest.start_
File "/usr/lib/
start_install
return self._do_
File "/usr/lib/
_do_install
"install")
File "/usr/lib/
_create_guest
dom = self.conn.
File "/usr/lib64/
createLinux
if ret is None:raise libvirtError(
conn=self)
libvirtError: internal error Process exited while reading console log output:
char device redirected to /dev/pts/1
No IOMMU found. Unable to assign device "hostdev0"
Failed to deassign device "hostdev0" : Invalid argument
qemu-kvm: -device
pci-assign,
'pci-assign' could not be initialized
'
Expected results:
NIC can be passthrough to guest in new vm wizard.
Additional info: