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分鐘)socket