HPE Morpheus VM Essentials
1826341 Members
3996 Online
109692 Solutions
New Discussion

Failed to Deploy VM: unsupported emulator machine type

 
SOLVED
Go to solution
shiba9967
Occasional Contributor

Failed to Deploy VM: unsupported emulator machine type

When deploying a VM via VME, deployment fails with the following error:

Error Defining VM via libvirt: error: Failed to define domain from xxx (VM xml)
error: unsupported configuration: Emulator '/usr/bin/qemu-system-x86_64' does not support machine type 'pc-q35-8.2'


The host configuration is as follows:

  • Ubuntu 22.04
  • hpe-vm 1.0.5
  • qemu-system-x86 (jammy-updates), version 1:6.2+dfsg-2ubuntu6.26 amd64 [installed]

 

The guest OS configuration is:

  • CentOS 7
  • virtio is installed
  • qemu guest agent is installed

 

After deployment fails, if I SSH into the host OS and manually edit the XML, the VM can boot successfully.

Before modification:
  <type arch='x86_64' machine='pc-q35-8.2'>hvm</type>
  <controller type='pci' model='pcie-root-port' index='9'/>

After modification:
  <type arch='x86_64'>hvm</type>
  <!-- The controller line has been removed -->

The default QEMU machine types are as follows, and specifying one of these default types allows the VM to start without issues:
# qemu-system-x86_64 -machine ?
Supported machines are:
pc-i440fx-jammy Ubuntu 22.04 PC (i440FX + PIIX, 1996) (default)

It appears that the machine type and PCI controller are being automatically set during deployment, causing the failure.
Because manually editing the XML file every time after deployment is troublesome, is there a solution to make the deployment succeed correctly without manual intervention?

4 REPLIES 4
georgek_1
HPE Pro
Solution

Re: Failed to Deploy VM: unsupported emulator machine type

Hello shiba9967,

Please note that CentOS 7 is not supported as Guest OS while CentOS 8 is the min. supported version.

Also, the qemu available with Ubuntu is 6.2.0 (can be verified with # qemu-system-x86_64 --version) will not support machine type 'pc-q35-8.2' .
This can be verified with # qemu-system-x86_64 -machine help.

Ubuntu version 24.04 has qemu version 8.2.2 .

# qemu-system-x86_64 --version
QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.6)

This version of QEMU will support pc-q35-8.2

# qemu-system-x86_64 -machine help
Supported machines are:
microvm              microvm (i386)
...
pc-q35-8.2           Standard PC (Q35 + ICH9, 2009) ==>
pc-q35-8.1           Standard PC (Q35 + ICH9, 2009)



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
support_s
System Recommended

Query: Failed to Deploy VM: unsupported emulator machine type

Hello,

 

Let us know if you were able to resolve the issue.

If you are satisfied with the answers then kindly click the "Accept As Solution" button for the most helpful response so that it is beneficial to all community members.

 

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".


Accept or Kudo

shiba9967
Occasional Contributor

Re: Failed to Deploy VM: unsupported emulator machine type

Thank you for your reply.

The issue was resolved by upgrading to Ubuntu 24.04.

I selected "HPE VM 1.2 Cluster on Existing Ubuntu 24.04," but since there was a host with Ubuntu 22.04, an error occurred during the machine type selection.
( It seems that "HPE VM 1.2 Cluster on Existing Ubuntu 24.04" sets and deploys the machine type to pc-q35-8.2 by default. )

Best regards,

Please accept my apologies if there are any inappropriate expressions due to machine translation.

 

Thaufique_Mod
Moderator

Re: Failed to Deploy VM: unsupported emulator machine type

Hello @shiba9967,

That's great!

We are glad to hear that, and we appreciate your efforts. Please feel free to accept the solution and to give Kudos.



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo