Activity log for bug #1081968

Date Who What changed Old value New value Message
2012-11-22 10:50:37 Jianying bug added bug
2012-11-22 12:58:40 Jianying description Everything about SR-IOV on this machine are ready. I can run a VM perfectly with SR-IOV using this command: kvm -name abc \ -uuid ca3e15a4-8220-94d1-ca8f-81a065eb4dd9 \ -boot c \ -m 2048 \ -nodefconfig -nodefaults \ -hda abc.qcow2 \ -net nic,vlan=1,macaddr=52:54:00:64:a2:b3,model=e1000 \ -net tap,vlan=1 \ -vnc :30 \ -device pci-assign,host=06:10.0 \ -device pci-assign,host=08:10.0 --------------------------------------------------------------------- 06:10.0, 08:10.0 are VF PCI buses, but when I add these two PCI devices to VM it cannot boot up, showing this message: Error starting domain: Requested operation is not valid: PCI device 0000:06:10.0 is not assignable Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/asyncjob.py", line 66, in tmpcb callback(*args, **kwargs) File "/usr/share/virt-manager/virtManager/domain.py", line 1120, in startup self._backend.create() File "/usr/lib/python2.7/dist-packages/libvirt.py", line 551, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: Requested operation is not valid: PCI device 0000:06:10.0 is not assignable --------------------------------------------------------------------- Following is my configuration XML file: <domain type='kvm'> <name>abc</name> <uuid>0c1ef473-c4f2-0a1b-3949-e2f3ff7574c4</uuid> <memory>2097152</memory> <currentMemory>2097152</currentMemory> <vcpu>1</vcpu> <os> <type arch='x86_64' machine='pc-1.0'>hvm</type> <boot dev='cdrom'/> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/bin/kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/Development/virt-manager-base/abc.qcow2'/> <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' unit='0'/> </disk> <controller type='ide' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <interface type='bridge'> <mac address='52:54:00:44:e6:ec'/> <source bridge='virbr0'/> <model type='e1000'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='file'> <source path='/tmp/sriov-2-serial.txt'/> <target port='0'/> </serial> <console type='file'> <source path='/tmp/sriov-2-serial.txt'/> <target type='serial' port='0'/> </console> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='5914' autoport='no' listen='0.0.0.0'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='cirrus' vram='9216' heads='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x06' slot='0x10' function='0x0'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </hostdev> <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x08' slot='0x10' function='0x0'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </hostdev> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> </devices> </domain> ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: virt-manager 0.9.1-1ubuntu5.1 ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14 Uname: Linux 3.2.0-23-generic x86_64 ApportVersion: 2.0.1-0ubuntu5 Architecture: amd64 Date: Thu Nov 22 18:04:53 2012 ExecutablePath: /usr/share/virt-manager/virt-manager.py InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1) InterpreterPath: /usr/bin/python2.7 PackageArchitecture: all ProcEnviron: LANGUAGE=en_US:en TERM=xterm-color LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: virt-manager UpgradeStatus: No upgrade log present (probably fresh install) Everything about SR-IOV on this machine are ready. I can run a VM perfectly with SR-IOV using this command: kvm -name abc \  -uuid ca3e15a4-8220-94d1-ca8f-81a065eb4dd9 \  -boot c \  -m 2048 \  -hda abc.qcow2 \  -net nic,vlan=1,macaddr=52:54:00:64:a2:b3,model=e1000 \  -net tap,vlan=1 \  -vnc :30 \  -device pci-assign,host=06:10.0 \  -device pci-assign,host=08:10.0 --------------------------------------------------------------------- 06:10.0, 08:10.0 are VF PCI buses, but when I add these two PCI devices to VM it cannot boot up, showing this message: Error starting domain: Requested operation is not valid: PCI device 0000:06:10.0 is not assignable Traceback (most recent call last):   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper     callback(asyncjob, *args, **kwargs)   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 66, in tmpcb     callback(*args, **kwargs)   File "/usr/share/virt-manager/virtManager/domain.py", line 1120, in startup     self._backend.create()   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 551, in create     if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: Requested operation is not valid: PCI device 0000:06:10.0 is not assignable --------------------------------------------------------------------- Following is my configuration XML file: <domain type='kvm'>   <name>abc</name>   <uuid>0c1ef473-c4f2-0a1b-3949-e2f3ff7574c4</uuid>   <memory>2097152</memory>   <currentMemory>2097152</currentMemory>   <vcpu>1</vcpu>   <os>     <type arch='x86_64' machine='pc-1.0'>hvm</type>     <boot dev='cdrom'/>     <boot dev='hd'/>   </os>   <features>     <acpi/>     <apic/>     <pae/>   </features>   <clock offset='utc'/>   <on_poweroff>destroy</on_poweroff>   <on_reboot>restart</on_reboot>   <on_crash>restart</on_crash>   <devices>     <emulator>/usr/bin/kvm</emulator>     <disk type='file' device='disk'>       <driver name='qemu' type='qcow2'/>       <source file='/Development/virt-manager-base/abc.qcow2'/>       <target dev='hda' bus='ide'/>       <address type='drive' controller='0' bus='0' unit='0'/>     </disk>     <controller type='ide' index='0'>       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>     </controller>     <interface type='bridge'>       <mac address='52:54:00:44:e6:ec'/>       <source bridge='virbr0'/>       <model type='e1000'/>       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>     </interface>     <serial type='file'>       <source path='/tmp/sriov-2-serial.txt'/>       <target port='0'/>     </serial>     <console type='file'>       <source path='/tmp/sriov-2-serial.txt'/>       <target type='serial' port='0'/>     </console>     <input type='mouse' bus='ps2'/>     <graphics type='vnc' port='5914' autoport='no' listen='0.0.0.0'>       <listen type='address' address='0.0.0.0'/>     </graphics>     <video>       <model type='cirrus' vram='9216' heads='1'/>       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>     </video>     <hostdev mode='subsystem' type='pci' managed='yes'>       <source>         <address domain='0x0000' bus='0x06' slot='0x10' function='0x0'/>       </source>       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>     </hostdev>     <hostdev mode='subsystem' type='pci' managed='yes'>       <source>         <address domain='0x0000' bus='0x08' slot='0x10' function='0x0'/>       </source>       <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>     </hostdev>     <memballoon model='virtio'>       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>     </memballoon>   </devices> </domain> ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: virt-manager 0.9.1-1ubuntu5.1 ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14 Uname: Linux 3.2.0-23-generic x86_64 ApportVersion: 2.0.1-0ubuntu5 Architecture: amd64 Date: Thu Nov 22 18:04:53 2012 ExecutablePath: /usr/share/virt-manager/virt-manager.py InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1) InterpreterPath: /usr/bin/python2.7 PackageArchitecture: all ProcEnviron:  LANGUAGE=en_US:en  TERM=xterm-color  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: virt-manager UpgradeStatus: No upgrade log present (probably fresh install)