Proxmox command to use

proxmox virtual machine using the command Introduction


qm <command> <vmid> [ OPTIONS] qm <command> <vmid> [ Options]
qm [the Create | the SET] <vmid> qm [create settings] <vmid>
--memory <MBytes> Memory in MB (64-- 8192 ) - memory <MB> memory (MB) (64-8192)
--sockets <N> number of CPU sockets sET <N> --sockets <n> set CPU socket number <n>
--cores <N> set cores per socket to <N> --cores <n> of each socket cores to <n->
--ostype NAME type the Specify the OS - OS type name specified operating system type
- -onboot [yes | no] start at boot - boot [whether] to start when you start
--keyboard XX set vnc keyboard layout - keyboard XX set VNC keyboard layout
Right --cpuunits cpu <num> CPU weight for a VM --cpuUnits <num> vm weight
--name <text> set a name for the VM --name <text> Set the name of the virtual machine
--description <text> set VM description --description <text> set Description VM
--boot [A | C | D | n-] order the specify boot - boot [a_c_d_n] Specifies the boot sequence
--bootdisk <Disk> enable the Booting from <Disk> --bootsdisk <Disk> enable the Booting from <Disk>
--acpi (yes | NO) enable / disable ACPI --ACPI (whether) to enable / disable ACPI
--kvm ( yes | no) enable / disable KVM --kvm ( whether) enable / disable KVM
- TDF (yes | NO) enable / disable time drift FIX - TDF (whether) to enable / disable time drift correction
--localtime (yes | no) set the RTC to local time - local time (whether) the RTC set to local time
--vga (gd5446 | vesa) specify VGA type --vga (gd5446 vesa) to specify the type of vga
- vlan [0-9u] mODEL = XX: XX: XX: XX: XX: XX [, mODEL = YY: YY: YY: YY: YY: YY] -VLAN [0-9U] type = XX: XX: XX: XX: XX: XX [, model YY =: YY: YY: YY: YY: YY
- IDE <N> [Volume =] Volume, [, CDROM Media = | Disk] - IDE <n-> [Volume =, volume, [, media = cdrom disk ]
[, cyls = c, heads = h, secs = s [, trans = t]] [, cylinders = C, head = H, s = S [, Trans = T]]
[, Cache = none | WriteThrough | writeback The] [, cache = none WriteThrough writeback The]
[, snapshot = ON | OFF] [, cache = ON | OFF] [, the format = F] [, snapshot = switch] [, buffer = switch] [format = F.]
[, werror = enospc | ignore | report | stop] [, werror = enospc report ignored stop]
[, rerror = ignore | report | stop] [, rerror = Ignore Report Stop]
[, Backup = NO | Yes] [, backup = No Yes]
- IDE <N> <GBytes> Create new new - IDE Disk <n- > <gbytes> to create a new disk
--ide <N> delete remove drive - destroy image --ide <n> delete delete drive - destroy image
--ide<N> undef remove drive - keep image                                                                                                           --scsi<n>[volume=,volume,[,media=cdrom disk]
--cdrom <file> is an alias for --ide2 <file>,media=cdrom                                                                                        [,气缸=C,头=H,秒=S[,trans=T]
qm monitor <vmid> connect to vm control monitor                                                                                                 qm monitor<vmid>连接到vm control monitor
qm start <vmid> start vm                                                                                                                                        qm start<vmid>start vm
qm shutdown <vmid> gracefully stop vm (send poweroff) qm shutdown <vmid> gracefully stopped VM (transmission off)
QM the wait <VMID> [Time] the wait an until VM IS stopped QM the wait <VMID> [Time] the wait an until VM IS stopped
QM sTOP <VMID> the kill VM (immediate sTOP) QM sTOP <VMID> the kill VM (immediately stop)
QM RESET <VMID> RESET VM (sTOP, start) QM RESET <VMID> RESET VM (stop, start)
qm suspend <vmid> suspend vm                                                                                                                            qm suspend<vmid>suspend vm
qm resume <vmid> resume vm                                                                                                                               qm resume<vmid>恢复vm
qm cad <vmid> sendkey ctrl-alt-delete                                                                                                                    qm cad<vmid>sendkey ctrl alt delete
qm destroy <vmid> destroy vm (delete all used/owned volumes)                                                                           qm destroy<vmid>destroy vm(删除所有已使用/拥有的卷)
qm unlock <vmid> clear migrate/backup lock                                                                                                          qm unlock<vmid>clear migrate/backup lock
qm status <vmid> shows the container status                                                                                                         qm status<vmid>显示容器状态
qm cdrom <vmid> [<device>] <path> set cdrom path. <device is ide2 by default>                                                 qm cdrom<vmid>[<device>]<path>set cdrom path.<device is ide2 by default>
qm cdrom <vmid> [<device>] eject eject cdrom                                                                                                      qm cdrom<vmid>[<device>] Pop pop cdrom
qm unlink <vmid> <volume> delete unused disk images qm unlink <vmid> <volume> Remove unused disk image
qm vncproxy <vmid> <Ticket> Open VNC Proxy qm VNC Proxy <vmid> <Ticket> Open VNC Proxy
qm vnc <vmid> start (X11) vncviewer (experimental) qm vnc <vmid> start (x11) vncviewer ( experimental)
qm showcmd <vmid> Show the command line (debug info) qm showCmd <vmid> Show command line (debug information)
qm list list all virtual machines qm lists all the virtual machines
qm startall start all virtual machines (when onboot = 1) qm start all start all virtual machines (when onboot = 1 when)
QM stopAll [timeout] STOP All Virtual Machines (default timeout is 3 minutes) qm stop all [ timeout] to stop all virtual machines (default timeout is three minutes)

Guess you like

Origin www.cnblogs.com/recall-lonely/p/11268130.html