Skip to main content

ESXi Commands

Check whether the /tmp directory is full
vdf | grep tmp
System Module
esxcli system module list
esxcli system module set --enabled=false --module=<module-name>
esxcli system module set --enabled=true --module=<module-name>
手動修改 vmx

經由  OVF 匯入 VM 後,設定裡有音效卡無法移除。必須手動修改 vmx 檔,將以下內容移除:

sound.autoDetect = "TRUE"
sound.virtualDev = "hdaudio"
sound.fileName = "-1"
sound.present = "TRUE"
sound.pciSlotNumber = "35"

手動修改 vmx 檔後,還須執行以下指令更新 VM

# Find the Vmid for the affected VM
vim-cmd vmsvc/getallvms

# Reload configuration for the VM
vim-cmd vmsvc/reload <Vmid-of-VM>