Forrest logo
back to the qm tool

qm:tldr:5a66a

qm: Using an ISO file uploaded on the local storage, create a virtual machine with a 4 GB IDE disk on the `local-lvm` storage and an ID of 100.
$ qm create ${100} -ide0 ${local-lvm:4} -net0 ${e1000} -cdrom ${local:iso-proxmox-mailgateway_2-1-iso}
try on your machine

This command is using the "qm" utility to create a new virtual machine (VM) in Proxmox Mail Gateway. Here's an explanation of the different flags and parameters being used:

  • "create": This flag is used to specify that a new VM needs to be created.

  • "${100}": This parameter specifies the ID of the newly created VM. The ID can be any number you want, but it should be unique within the Proxmox Mail Gateway environment.

  • "-ide0 ${local-lvm:4}": This flag and parameter define the storage device for the VM, specifically the IDE controller at index 0. The storage device is set to use the local Logical Volume Manager (LVM) storage, specifically the LVM volume with index 4.

  • "-net0 ${e1000}": This flag and parameter define the network device for the VM, specifically the network card at index 0. The network device is set to use the "e1000" network model.

  • "-cdrom ${local:iso-proxmox-mailgateway_2-1-iso}": This flag and parameter specify that the VM should use a CD-ROM device. The CD-ROM image is set to use a local file named "iso-proxmox-mailgateway_2-1-iso". The actual file location will depend on the Proxmox Mail Gateway environment.

In summary, this command creates a new virtual machine in Proxmox Mail Gateway with a specific ID, storage device using local LVM, network device using the "e1000" model, and a CD-ROM device using a local ISO file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the qm tool