> Kuenhourg's 隨手記事簿: VMware-ESXi-命令簡介
顯示具有 VMware-ESXi-命令簡介 標籤的文章。 顯示所有文章
顯示具有 VMware-ESXi-命令簡介 標籤的文章。 顯示所有文章

2018年5月28日 星期一

P2V 移轉後 Cannot Start a VM

vCenter Converter Standalone P2V 移轉後

在Vmware Host中開機出現Cannot Start a VM - A general system error occurred: Connection refused

解決方式要在vCenter主機中,輸入下列命令:

#shell.set --enabled true
#service-control --status vmware-vpx-workflow
                                                                     (this command confirmed the service was stopped)
#service-control --start vmware-vpx-workflow

Once running, I was able to start VMs again from vCenter.
Not sure why this was so hard to find in a web search but hopefully the search engines will pick up this blog post and save people some time!


圖示操作,請詳參 http://virtualization24x7.blogspot.tw/2016/01/unable-to-power-on-vm-in-vcenter-6.html


See also:
VMware KB: VMware NSX for vSphere 6.x Controller deployment fails the error: Failed to power on VM NSX Controller
VMware KB: Stopping, starting, or restarting VMware vCenter Server Appliance 6.0 services

2013年11月5日 星期二

VMware ESX 磁碟機命令簡介

Checking disk space usage on the ESX/ESXi service console partitions
#df -h
df的英文原義為“disk free”含義為顯示磁盤空間佔用情況。
說明:檢視磁碟空間佔用大小與可利用率。

Checking disk space usage on a VMFS volume of an ESX/ESXi host
#vdf -h
說明:檢視磁碟VMFS卷宗空間。

Identifying large files on an ESX or ESXi host
#du -ch /vmimages /var/core /root /var/log
du的英文原義為“disk usage”含義為顯示磁盤空間的使用情況。 
說明:統計目錄(或文件)所佔磁盤空間的大小 

 #find / -size +1000k -exec du -h {} \;
說明:尋找大於1MB之檔案。

Deleting unnecessary files
#rm /var/log/oldlogfile
說明:刪除檔案或目錄。

Zero out a log file
#  > file.log
說明:輸出至file.log檔。

Archiving old files
#tar czvf /tmp/vmkwarning-logs.tgz /var/log/vmkwarning*
#tar czvf /tmp/vmkernel-logs.tgz /var/log/vmkernel.*
說明:tar檔進行解壓縮動作 

補充1(進階用法):
#rm /var/log/vmkwarning.* /var/log/vmkernel.* /var/log/messages.*
說明:同時刪除多筆檔案。

補充2(進階用法):
#find / -size +10240000c -exec vmkvsitools visorfsdu -h {} \; | less
說明:尋找條件後,再轉交由less觀看。