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:
Everything about SR-IOV on this machine are ready. I can run a VM perfectly with SR-IOV using this command: 8220-94d1- ca8f-81a065eb4d d9 \ 1,macaddr= 52:54:00: 64:a2:b3, model=e1000 \ host=06: 10.0 \ host=08: 10.0 ------- ------- ------- ------- ------- ------- ------- ------- ------
kvm -name abc \
-uuid ca3e15a4-
-boot c \
-m 2048 \
-nodefconfig -nodefaults \
-hda abc.qcow2 \
-net nic,vlan=
-net tap,vlan=1 \
-vnc :30 \
-device pci-assign,
-device pci-assign,
-------
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): virt-manager/ virtManager/ asyncjob. py", line 45, in cb_wrapper asyncjob, *args, **kwargs) virt-manager/ virtManager/ asyncjob. py", line 66, in tmpcb virt-manager/ virtManager/ domain. py", line 1120, in startup _backend. create( ) python2. 7/dist- packages/ libvirt. py", line 551, in create
File "/usr/share/
callback(
File "/usr/share/
callback(*args, **kwargs)
File "/usr/share/
self.
File "/usr/lib/
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'> 0c1ef473- c4f2-0a1b- 3949-e2f3ff7574 c4</uuid> 2097152< /memory> y>2097152< /currentMemory> 'pc-1.0' >hvm</type> destroy< /on_poweroff> restart< /on_reboot> restart< /on_crash> /usr/bin/ kvm</emulator> Development/ virt-manager- base/abc. qcow2'/ > '52:54: 00:44:e6: ec'/> tmp/sriov- 2-serial. txt'/> tmp/sriov- 2-serial. txt'/>
<name>abc</name>
<uuid>
<memory>
<currentMemor
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine=
<boot dev='cdrom'/>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>
<on_reboot>
<on_crash>
<devices>
<emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/
<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=
<source bridge='virbr0'/>
<model type='e1000'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='file'>
<source path='/
<target port='0'/>
</serial>
<console type='file'>
<source path='/
<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 ature: Ubuntu 3.2.0-23.36-generic 3.2.14 virt-manager/ virt-manager. py ture: all
DistroRelease: Ubuntu 12.04
Package: virt-manager 0.9.1-1ubuntu5.1
ProcVersionSign
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/
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitec
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)