- Navigator -> Manage -> System -> Autostart
- Edit settings -> Enabled -> Yes
Tag - VM
vmkfstools -c 8G <path-to-vmdk-file>
,注意替换尖括号里的文件名,假设就叫 usb.vmdk
,下同dd
命令将可引导的 iso 或 img 写入 vmdk 文件:dd if=<path-to-iso-or-img-file> of=<path-to-vmdk-file> bs=1M conv=notrunc
usb_xhci:0.present = "TRUE"
usb_xhci:0.deviceType = "disk"
usb_xhci:0.fileName = "usb.vmdk"
usb_xhci:0.readOnly = "FALSE"
usb_xhci:0.speed = "16"
usb_xhci:0.parent = "-1"
usb_xhci:0.port = "0"
vim-cmd
命令重新加载虚拟机配置:vim-cmd vmsvc/reload $(vim-cmd vmsvc/getallvms | grep '<你的虚拟机名称>' | awk '{print $1}')