-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unable to create pc-q35 VM with Error NO PCI buses available #5437
Comments
See libvirt error in the virt-launcher log :
`pc-q35` domain XML<domain type="kvm" xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">
<name>default_a</name>
<memory unit="b">968884224</memory>
<os>
<type arch="x86_64" machine="pc-q35">hvm</type>
<smbios mode="sysinfo"></smbios>
</os>
<sysinfo type="smbios">
<system>
<entry name="uuid">8d9794ca-8c84-5204-b98a-721424eaae6f</entry>
<entry name="manufacturer">KubeVirt</entry>
<entry name="family">KubeVirt</entry>
<entry name="product">None</entry>
<entry name="sku"></entry>
<entry name="version"></entry>
</system>
<bios></bios>
<baseBoard></baseBoard>
<chassis></chassis>
</sysinfo>
<devices>
<interface type="ethernet">
<source></source>
<target dev="tap37a8eec1ce1" managed="no"></target>
<model type="virtio-non-transitional"></model>
<mac address="0e:9c:4a:62:89:9d"></mac>
<mtu size="1500"></mtu>
<alias name="ua-default"></alias>
<rom enabled="no"></rom>
</interface>
<interface type="ethernet">
<source></source>
<target dev="placeholder-0" managed="no"></target>
<model type="virtio-non-transitional"></model>
</interface>
<interface type="ethernet">
<source></source>
<target dev="placeholder-1" managed="no"></target>
<model type="virtio-non-transitional"></model>
</interface>
<interface type="ethernet">
<source></source>
<target dev="placeholder-2" managed="no"></target>
<model type="virtio-non-transitional"></model>
</interface>
<channel type="unix">
<target name="org.qemu.guest_agent.0" type="virtio"></target>
</channel>
<controller type="usb" index="0" model="qemu-xhci"></controller>
<controller type="scsi" index="0" model="virtio-non-transitional"></controller>
<controller type="virtio-serial" index="0" model="virtio-non-transitional"></controller>
<video>
<model type="vga" heads="1" vram="16384"></model>
</video>
<graphics type="vnc">
<listen type="socket" socket="/var/run/kubevirt-private/fb93df91-5942-4af9-a30b-ad4f354c6f5f/virt-vnc"></listen>
</graphics>
<memballoon model="virtio-non-transitional" freePageReporting="on">
<stats period="10"></stats>
</memballoon>
<disk device="disk" type="block" model="virtio-non-transitional">
<source dev="/dev/disk-0" name="disk-0"></source>
<target bus="virtio" dev="vda"></target>
<driver cache="none" error_policy="stop" io="native" name="qemu" type="raw" discard="unmap"></driver>
<alias name="ua-disk-0"></alias>
<boot order="1"></boot>
<filesystemOverhead>0.055</filesystemOverhead>
<capacity>10737418240</capacity>
</disk>
<disk device="disk" type="file" model="virtio-non-transitional">
<source file="/var/run/kubevirt-ephemeral-disks/cloud-init-data/default/a/noCloud.iso"></source>
<target bus="virtio" dev="vdb"></target>
<driver cache="none" error_policy="stop" name="qemu" type="raw" discard="unmap"></driver>
<alias name="ua-cloudinitdisk"></alias>
</disk>
<input type="tablet" bus="usb">
<alias name="ua-tablet"></alias>
</input>
<serial type="unix">
<target port="0"></target>
<source mode="bind" path="/var/run/kubevirt-private/fb93df91-5942-4af9-a30b-ad4f354c6f5f/virt-serial0"></source>
<log file="/var/run/kubevirt-private/fb93df91-5942-4af9-a30b-ad4f354c6f5f/virt-serial0-log" append="on"></log>
</serial>
<console type="pty">
<target type="serial" port="0"></target>
</console>
</devices>
<metadata>
<kubevirt xmlns="http://kubevirt.io">
<uid></uid>
</kubevirt>
</metadata>
<features>
<acpi></acpi>
</features>
<cpu mode="host-model">
<topology sockets="1" cores="1" threads="1"></topology>
</cpu>
<vcpu placement="static">1</vcpu>
<iothreads>1</iothreads>
</domain> `q35` machine type domain XML:<domain type="kvm" xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">
<name>harvester-public_g1-pool1-0819f90d-fpgpl</name>
<memory unit="b">4190109696</memory>
<os>
<type arch="x86_64" machine="q35">hvm</type>
<smbios mode="sysinfo"></smbios>
</os>
<sysinfo type="smbios">
<system>
<entry name="uuid">ee83bed4-fce3-5e6b-b777-06ec95bbffd5</entry>
<entry name="manufacturer">KubeVirt</entry>
<entry name="family">KubeVirt</entry>
<entry name="product">None</entry>
<entry name="sku"></entry>
<entry name="version"></entry>
</system>
<bios></bios>
<baseBoard></baseBoard>
<chassis></chassis>
</sysinfo>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<interface type="ethernet">
<source></source>
<target dev="tap0e6b58809dd" managed="no"></target>
<model type="virtio-non-transitional"></model>
<mac address="16:b7:8d:a5:b5:14"></mac>
<mtu size="1500"></mtu>
<alias name="ua-nic-0"></alias>
<rom enabled="no"></rom>
</interface>
<channel type="unix">
<target name="org.qemu.guest_agent.0" type="virtio"></target>
</channel>
<controller type="usb" index="0" model="none"></controller>
<controller type="scsi" index="0" model="virtio-non-transitional">
<address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"></address>
</controller>
<controller type="virtio-serial" index="0" model="virtio-non-transitional">
<address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"></address>
</controller>
<controller type="sata" index="0">
<address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"></address>
</controller>
<controller type="pci" index="0" model="pcie-root"></controller>
<controller type="pci" index="1" model="pcie-root-port">
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"></address>
</controller>
<controller type="pci" index="2" model="pcie-root-port">
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"></address>
</controller>
<controller type="pci" index="3" model="pcie-root-port">
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"></address>
</controller>
<controller type="pci" index="4" model="pcie-root-port">
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"></address>
</controller>
<controller type="pci" index="5" model="pcie-root-port">
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"></address>
</controller>
<controller type="pci" index="6" model="pcie-root-port">
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"></address>
</controller>
<controller type="pci" index="7" model="pcie-root-port">
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"></address>
</controller>
<controller type="pci" index="8" model="pcie-root-port">
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"></address>
</controller>
<controller type="pci" index="9" model="pcie-root-port">
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"></address>
</controller>
<controller type="pci" index="10" model="pcie-root-port">
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x1"></address>
</controller>
<video>
<model type="vga" heads="1" vram="16384"></model>
</video>
<graphics type="vnc">
<listen type="socket" socket="/var/run/kubevirt-private/080f6cd8-da7f-48df-8d1d-c458f3499a29/virt-vnc"></listen>
</graphics>
<memballoon model="virtio-non-transitional" freePageReporting="on">
<stats period="10"></stats>
<address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"></address>
</memballoon>
<disk device="disk" type="file" model="virtio-non-transitional">
<source file="/var/run/kubevirt-ephemeral-disks/cloud-init-data/harvester-public/g1-pool1-0819f90d-fpgpl/noCloud.iso"></source>
<target bus="virtio" dev="vda"></target>
<driver cache="none" error_policy="stop" name="qemu" type="raw" discard="unmap"></driver>
<alias name="ua-cloudinitdisk"></alias>
<address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"></address>
</disk>
<disk device="disk" type="block" model="virtio-non-transitional">
<source dev="/dev/disk-1"></source>
<target bus="virtio" dev="vdb"></target>
<driver cache="none" error_policy="stop" io="native" name="qemu" type="raw" discard="unmap"></driver>
<alias name="ua-disk-1"></alias>
<boot order="1"></boot>
<address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"></address>
</disk>
<input type="mouse" bus="ps2"></input>
<input type="keyboard" bus="ps2"></input>
<serial type="unix">
<target port="0"></target>
<source mode="bind" path="/var/run/kubevirt-private/080f6cd8-da7f-48df-8d1d-c458f3499a29/virt-serial0"></source>
<log file="/var/run/kubevirt-private/080f6cd8-da7f-48df-8d1d-c458f3499a29/virt-serial0-log" append="on"></log>
</serial>
<console type="unix">
<target type="serial" port="0"></target>
<source mode="bind" path="/var/run/kubevirt-private/080f6cd8-da7f-48df-8d1d-c458f3499a29/virt-serial0"></source>
</console>
</devices>
<metadata>
<kubevirt xmlns="http://kubevirt.io">
<uid></uid>
</kubevirt>
</metadata>
<features>
<acpi></acpi>
</features>
<cpu mode="host-model">
<topology sockets="1" cores="2" threads="1"></topology>
</cpu>
<vcpu placement="static">2</vcpu>
<iothreads>1</iothreads>
</domain>
|
The error is because of the lack of a supported In the harvester packaging the supported machine types are
while upstream packaging contains the following
as evident q35 is alias for always the latest pc-q35-version supported by version of qemu. Coupled with the validator logic in kubevirt only supported emulated types for AM64 are https://github.com/kubevirt/kubevirt/blob/v1.1.1/pkg/virt-config/virt-config.go#L50 Based on this info we should probably just drop pc-q35, and only leave q35. If a user wishes to use a specific version they can edit the yaml and choose specific machine say |
added |
added |
Pre Ready-For-Testing Checklist
|
Describe the bug
To Reproduce
Steps to reproduce the behavior:
vm1
with machine typepc-q35
Expected behavior
VM should started successfully
Environment:
Additional context
defualt and
q35
type is not affected.The text was updated successfully, but these errors were encountered: