QM machine type via cli

MinerAle00

Member
Apr 3, 2022
16
5
8
www.youtube.com
Good morning,
I wanted to create a virtual machine via CLI using the 'qm' command. If I try to enter 'q35' it works, but if I enter 'i440fx' it gives me an error.

Code:
root@pve:~# qm create 100 --machine q35

root@pve:~# qm create 101 --machine i440fx
400 Parameter verification failed.
machine: invalid format - format error
machine.type: value does not match the regex pattern
qm create <vmid> [OPTIONS]

root@pve:~# qm create 101 --machine Default
400 Parameter verification failed.
machine: invalid format - format error
machine.type: value does not match the regex pattern
qm create <vmid> [OPTIONS]

root@pve:~# qm create 101 --machine default
400 Parameter verification failed.
machine: invalid format - format error
machine.type: value does not match the regex pattern
qm create <vmid> [OPTIONS]

In the documentation it says that the correct command is this one but it doesn't work https://pve.proxmox.com/pve-docs/qm.1.html.
--machine [[type=]<machine type>] [,viommu=<intel|virtio>]
Can you tell me the correct command for the 'i440fx' version? Thank you.
 
Can you tell me the correct command for the 'i440fx' version? Thank you.
The machine type for i440fx is called pc
Code:
qm create 101 --machine pc

To select a specific version use pc-i440fx-<version>
Code:
qm create 101 --machine pc-i440fx-8.1
 
Hi,

Is there a way to pass latest version to machine (--machine pc-i440fx-latest) doesn't work with defined pattern
400 Parameter verification failed.
machine: invalid format - format error
machine.type: value does not match the regex pattern

Maybe a more explicit message could help?

Kind regards
 
For the latest version just use --machine pc
 
  • Like
Reactions: scelles