Proxmox 命令使用方法
proxmox 虛擬機(jī)使用命令介紹
qm <command> <vmid> [OPTIONS] qm<command><vmid>[選項(xiàng)]
qm [create|set] <vmid> qm[創(chuàng)建設(shè)置]<vmid>
--memory <MBYTES> memory in MB (64 - 8192) --內(nèi)存<MB>內(nèi)存(MB)(64-8192)
--sockets <N> set number of CPU sockets <N> --sockets<n>設(shè)置CPU插槽數(shù)<n>
--cores <N> set cores per socket to <N> --cores<n>將每個(gè)套接字的cores設(shè)置為<n>
--ostype NAME specify OS type --os type name指定操作系統(tǒng)類型
--onboot [yes|no] start at boot --啟動(dòng)時(shí)[是否]啟動(dòng)時(shí)啟動(dòng)
--keyboard XX set vnc keyboard layout --鍵盤XX設(shè)置VNC鍵盤布局
--cpuunits <num> CPU weight for a VM --cpuUnits<num>vm的cpu權(quán)重
--name <text> set a name for the VM --name<text>設(shè)置虛擬機(jī)的名稱
--description <text> set VM description --description<text>設(shè)置vm description
--boot [a|c|d|n] specify boot order --引導(dǎo)[a_c_d_n]指定引導(dǎo)順序
--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(是否)啟用/禁用時(shí)間漂移修正
--localtime (yes|no) set the RTC to local time --本地時(shí)間(是否)將RTC設(shè)置為本地時(shí)間
--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]型號(hào)=XX:XX:XX:XX:XX:XX[,型號(hào)=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] [,快照=開關(guān)][,緩存=開關(guān)][,格式=F]
[,werror=enospc|ignore|report|stop] [,werror=enospc忽略報(bào)告停止]
[,rerror=ignore|report|stop] [,rerror=忽略報(bào)告停止]
[,backup=no|yes] [,備份=否是]
--ide<N> <GBYTES> create new disk --ide<n><gbytes>創(chuàng)建新磁盤
--ide<N> delete remove drive - destroy image --ide<n>刪除刪除驅(qū)動(dòng)器-銷毀映像
--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>優(yōu)雅地停止vm(發(fā)送關(guān)機(jī))
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(停止,啟動(dòng))
qm suspend <vmid> suspend vm qm suspend<vmid>suspend vm
qm resume <vmid> resume vm qm resume<vmid>恢復(fù)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>顯示容器狀態(tài)
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(實(shí)驗(yàn))
qm showcmd <vmid> show command line (debug info) qm showCmd<vmid>show命令行(調(diào)試信息)
qm list list all virtual machines qm列表列出所有虛擬機(jī)
qm startall start all virtual machines (when onboot=1) qm start all啟動(dòng)所有虛擬機(jī)(當(dāng)onboot=1時(shí))
qm stopall [timeout] stop all virtual machines (default timeout is 3 minutes) qm stop all[超時(shí)]停止所有虛擬機(jī)(默認(rèn)超時(shí)為3分鐘)
總結(jié)
以上是生活随笔為你收集整理的Proxmox 命令使用方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Win10怎么批量修改文件后缀名?
- 下一篇: shell的if嵌套