Linux command
qm-set 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
qm set 100 --name vm_name
Example
qm set 100 --autostart 1
Example
qm set 100 --cores 4
Example
qm set 100 --memory 8192
Example
qm set 100 --net0 virtio,bridge=vmbr0
Delete
qm set 100 --delete device_name
GPU passthrough
qm set 100 --hostpci0 0000:00:02,x-vga=1 --bios ovmf
说明
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.
参数
- 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
- --net_N_ _config_
- Network device configuration (N=0-31)
- --scsi_N_ _config_
- SCSI disk configuration
- --hostpci_N_ _config_
- PCI device passthrough configuration
- --delete _list_
- Comma-separated list of settings to delete
FAQ
What is the qm-set command used for?
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.
How do I run a basic qm-set example?
Run `qm set 100 --name vm_name` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does vmid do in qm-set?
The numeric ID of the virtual machine