--- title: 'Exsi 強制解除註冊虛擬機流程說明' disqus: hackmd --- Exsi 強制解除註冊虛擬機流程說明 === ## 索引 [TOC] ## 注意事項 ## 狀況說明 ## 操作流程 ``` login as: root Keyboard-interactive authentication prompts from server: | Password: End of keyboard-interactive prompts from server The time and date of this login have been sent to the system logs. WARNING: All commands run on the ESXi shell are logged and may be included in support bundles. Do not provide passwords directly on the command line. Most tools can prompt for secrets or accept them from standard input. VMware offers supported, powerful system administration tools. Please see www.vmware.com/go/sysadmintools for details. The ESXi Shell can be disabled by an administrative user. See the vSphere Security documentation for more information. [root@localhost:~] vim-cmd /vmsvc/getallvms Skipping invalid VM '45' Skipping invalid VM '46' Skipping invalid VM '60' Vmid Name File Guest OS Version Annotation 61 microk8s34 [OS] microk8s34/microk8s34.vmx ubuntu64Guest vmx-13 [root@localhost:~] vim-cmd /vmsvc/unregister 45 [root@localhost:~] vim-cmd /vmsvc/unregister 46 [root@localhost:~] vim-cmd /vmsvc/unregister 60 [root@localhost:~] ``` ## Reference and FAQ * [Unregister_invalid_VMs_using_ESXi_command-line](https://www.sbarjatiya.com/notes_wiki/index.php/Unregister_invalid_VMs_using_ESXi_command-line) :::info **Find this document incomplete?** Leave a comment! ::: ###### tags: `Exsi` `Documentation`