proxmox 虚拟机使用命令介绍

local-hdd1t /dev/sda1
qm [OPTIONS] qm[选项]
qm [create|set] qm[创建设置]
–memory memory in MB (64 - 8192) –内存内存(MB)(64-8192)
–sockets set number of CPU sockets –sockets设置CPU插槽数
–cores set cores per socket to –cores将每个套接字的cores设置为
–ostype NAME specify OS type –os type name指定操作系统类型
–onboot [yes|no] start at boot –启动时[是否]启动时启动
–keyboard XX set vnc keyboard layout –键盘XX设置VNC键盘布局
–cpuunits CPU weight for a VM –cpuUnitsvm的cpu权重
–name set a name for the VM –name设置虚拟机的名称
–description set VM description –description设置vm description
–boot [a|c|d|n] specify boot order –引导[a_c_d_n]指定引导顺序
–bootdisk enable booting from –bootsdiskenable booting from
–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 [volume=]volume,[,media=cdrom|disk] –ide[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 create new disk –ide创建新磁盘
–ide delete remove drive - destroy image –ide删除删除驱动器-销毁映像
–ide undef remove drive - keep image –scsi[volume=,volume,[,media=cdrom disk]
–cdrom is an alias for –ide2 ,media=cdrom [,气缸=C,头=H,秒=S[,trans=T]
qm monitor connect to vm control monitor qm monitor连接到vm control monitor
qm start start vm qm startstart vm
qm shutdown gracefully stop vm (send poweroff) qm shutdown优雅地停止vm(发送关机)
qm wait [time] wait until vm is stopped qm wait[time]wait until vm is stopped
qm stop kill vm (immediate stop) qm stopkill vm(立即停止)
qm reset reset vm (stop, start) qm resetreset vm(停止,启动)
qm suspend suspend vm qm suspendsuspend vm
qm resume resume vm qm resume恢复vm
qm cad sendkey ctrl-alt-delete qm cadsendkey ctrl alt delete
qm destroy destroy vm (delete all used/owned volumes) qm destroydestroy vm(删除所有已使用/拥有的卷)
qm unlock clear migrate/backup lock qm unlockclear migrate/backup lock
qm status shows the container status qm status显示容器状态
qm cdrom [] set cdrom path. qm cdrom[]set cdrom path.
qm cdrom [] eject eject cdrom qm cdrom[]弹出弹出cdrom
qm unlink delete unused disk images qm unlink删除未使用的磁盘映像
qm vncproxy open vnc proxy qm vnc proxyopen vnc proxy
qm vnc start (X11) vncviewer (experimental) qm vncstart(x11)vncviewer(实验)
qm showcmd show command line (debug info) qm showCmdshow命令行(调试信息)
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分钟)

作者:Jeebiz  创建时间:2024-03-31 17:18
最后编辑:Jeebiz  更新时间:2024-03-31 17:19