proxmox 虚拟机使用命令介绍
qm <command> <vmid>
[OPTIONS]
qm<command><vmid>[选项]
qm [create|set] <vmid>
qm[创建设置]<vmid>
--memory <MBYTES> memory in MB
(64 - 8192)
--内存<MB>内存(MB)(64-8192)
--sockets <N> set number of CPU sockets <N>
--sockets<n>设置CPU插槽数<n>
--cores
<N> set cores per socket to <N>
--cores<n>将每个套接字的cores设置为<n>
--ostype NAME specify OS type
--os type name指定操作系统类型
--onboot [yes|no]
start at boot
--启动时[是否]启动时启动
--keyboard XX set vnc keyboard layout
--键盘XX设置VNC键盘布局
--cpuunits
<num> CPU weight for a VM
--cpuUnits<num>vm的cpu权重
--name <text> set a
name for the VM
--name<text>设置虚拟机的名称
--description <text> set VM
description
--description<text>设置vm description
--boot [a|c|d|n]
specify boot order
--引导[a_c_d_n]指定引导顺序
--bootdisk <disk> enable booting
from <disk>
--bootsdisk<disk>enable booting from<disk>
--acpi
(yes|no) enable/disable ACPI
--ACPI(是否)启用/禁用ACPI
--kvm (yes|no) enable/disable
KVM
--kvm(是否)启用/禁用kvm
--tdf (yes|no) enable/disable time drift fix
--TDF(是否)启用/禁用时间漂移修正
--localtime (yes|no) set
the RTC to local time
--本地时间(是否)将RTC设置为本地时间
--vga (gd5446|vesa) specify VGA type
--vga(gd5446 vesa)指定vga类型
--vlan[0-9u] MODEL=XX:XX:XX:XX:XX:XX[,MODEL=YY:YY:YY:YY:YY:YY]
-VLAN[0-9U]型号=XX:XX:XX:XX:XX:XX[,型号=YY:YY:YY:YY:YY:YY
--ide<N> [volume=]volume,[,media=cdrom|disk]
--ide<n>[volume=,volume,[,media=cdrom disk]
[,cyls=c,heads=h,secs=s[,trans=t]]
[,气缸=C,头=H,秒=S[,trans=T]]
[,cache=none|writethrough|writeback]
[,cache=none writethrough writeback]
[,snapshot=on|off][,cache=on|off][,format=f]
[,快照=开关][,缓存=开关][,格式=F]
[,werror=enospc|ignore|report|stop]
[,werror=enospc忽略报告停止]
[,rerror=ignore|report|stop]
[,rerror=忽略报告停止]
[,backup=no|yes]
[,备份=否是]
--ide<N> <GBYTES>
create new disk
--ide<n><gbytes>创建新磁盘
--ide<N> delete
remove drive - destroy image
--ide<n>删除删除驱动器-销毁映像
--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>优雅地停止vm(发送关机)
qm wait <vmid> [time] wait
until vm is stopped
qm
wait<vmid>[time]wait until vm is stopped
qm stop <vmid>
kill vm (immediate stop)
qm stop<vmid>kill vm(立即停止)
qm reset <vmid> reset
vm (stop, start)
qm
reset<vmid>reset vm(停止,启动)
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>]弹出弹出cdrom
qm unlink <vmid>
<volume> delete unused disk images
qm
unlink<vmid><volume>删除未使用的磁盘映像
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(实验)
qm showcmd <vmid>
show command line (debug info)
qm
showCmd<vmid>show命令行(调试信息)
qm list list all
virtual machines
qm列表列出所有虚拟机
qm startall start all virtual machines (when
onboot=1)
qm start all启动所有虚拟机(当onboot=1时)
qm
stopall [timeout] stop all virtual machines (default timeout is 3
minutes) qm
stop all[超时]停止所有虚拟机(默认超时为3分钟)