LinuxCommandLibrary

qm-set

Modify Proxmox VM configuration settings

TLDR

Set VM name

$ qm set 100 --name vm_name
copy
Enable autostart
$ qm set 100 --autostart 1
copy
Set CPU cores
$ qm set 100 --cores 4
copy
Set memory (MB)
$ qm set 100 --memory 8192
copy
Add network device
$ qm set 100 --net0 virtio,bridge=vmbr0
copy
Delete device
$ qm set 100 --delete device_name
copy
GPU passthrough
$ qm set 100 --hostpci0 0000:00:02,x-vga=1 --bios ovmf
copy

SYNOPSIS

qm set [OPTIONS] vmid

DESCRIPTION

qm set modifies the configuration of a QEMU/KVM virtual machine in Proxmox VE. Changes may require a VM restart to take effect. This command can configure CPU, memory, storage, network, and hardware passthrough options.

PARAMETERS

vmid

The numeric ID of the virtual machine
--name string
Set the VM name displayed in the GUI
--autostart boolean
Start VM automatically on host boot
--cores number
Number of CPU cores
--memory megabytes
Amount of RAM in MB
--netN config
Network device configuration (N=0-31)
--scsiN config
SCSI disk configuration
--hostpciN config
PCI device passthrough configuration
--delete list
Comma-separated list of settings to delete

CAVEATS

Some changes require stopping the VM first. Hardware passthrough requires IOMMU support. Changes that affect running VMs may be marked as pending until restart.

HISTORY

qm set is part of the Proxmox VE virtualization platform for managing QEMU/KVM virtual machines.

SEE ALSO

qm(1), qm-config(1), qm-pending(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community