您好,登錄后才能下訂單哦!
ssh登錄到esxi機器中后開關虛擬機
vim-cmd vmsvc/getallvms /查看ESXi上所有虛擬機信息,主要查看虛擬機對應的ID號
Vmid Name File Guest OS Version Annotation
30 win2003-ERP [500G] win2003-test-1/win2003-test-1.vmx winNetEnterpriseGuest vmx-08
32 centos-1 [500G] centos-1/centos-1.vmx centosGuest vmx-08
34 centos-SMB [500G] centos/centos.vmx centosGuest vmx-08
38 nas [500G] nas/nas.vmx other26xLinuxGuest vmx-08
46 win2008-DC [500G] win2008/win2008.vmx winLonghornGuest vmx-08
49 CactiEZ10 [250G] CactiEZ10/CactiEZ10.vmx centosGuest vmx-08
59 freenas1 [250G] freenas1/freenas1.vmx freebsdGuest vmx-08
62 panabit [250G] panabit/panabit.vmx other26xLinuxGuest vmx-08
vim-cmd vmsvc/power.on <VM ID> /對應ID的虛擬機即啟動
vim-cmd vmsvc/power.shutdown 38 關閉nas
vim-cmd vmsvc/power.off 38 強行關機nas
vim-cmd vmsvc/power.getstate 38 查看nas開關機狀態
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。