仮想マシンの作成・登録時にデータストアで以下のエラーが発生する。
The Datastore Browser could not successfully retrieve data from the server.
ログイン画面のロード画面より先に進まなくなる障害。
# /etc/init.d/vmware-mgmt stop Stopping VMware management services: VMware Virtual Infrastructure Web Access VMware Server Host Agent [ OK ]
以上の処理のあと、vmware-hostdを手動で落す。
# ps ax | grep vmware-hostd [PID] ? Ssl 0:05 /usr/lib/vmware/bin/vmware-hostd -a -d -u /etc/vmware/hostd/config.xml
kill [PID]
vmware-hostdが落ちたことを確認したあと、再度起動する。
# /etc/init.d/vmware-mgmt start Starting VMware management services: VMware Server Host Agent (background) [ OK ] VMware Virtual Infrastructure Web Access
VMwareServerConsoleでログインしたあと、VMwareServerConsoleの応答がなくなり、ハングアップする。
VMwareServerから以下のログが出力され、仮想マシンがダウンする障害。
app| VMServerd IPC closed the connection with thread [仮想マシン設定ファイル].vmx (0x86adae8) app| Lost connection to [仮想マシン設定ファイル].vmx ( [仮想マシン設定ファイル].vmx) unexpectedly. app| vmdbPipe_Streams Couldn't read: OVL_STATUS_EOF app| VMHS: Connection to VM broken: cfg: [仮想マシン設定ファイル].vmx; error: Pipe: Read failed; state: 3 app| VM suddenly changed state: poweredOff. app| VM suddenly changed state: poweredOff. app| VM suddenly changed state: poweredOff. app| cleanup: cleaned up 1 objects
#!/bin/sh # ------------------------ # VM Bootup Script # ------------------------ # Version : 1.0 # date : 2008/10/19 export LANG=C export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH ## Set VMBOOT=/home/system/scripts/apl/vmware/vmboot.sh VMCKLOG=/home/system/logs/vm-check.log VMLIST=/home/system/logs/vmlist.txt ## Cheack # CentOS-Web VMNAME=CentOS-Web ps ax | grep vmx | grep $VMNAME > /dev/null if [ $? -eq 1 ]; then date +%Y/%m/%d\ %H:%M:%S >> $VMCKLOG echo $VMNAME >> $VMCKLOG $VMBOOT $VMNAME >> $VMCKLOG 2>&1 sleep 20 echo "------------------" >> $VMCKLOG fi exit 0 # EOF
#!/bin/sh # ------------------------ # VM List Script # ------------------------ # Version : 1.0 # date : 2008/10/19 export LANG=C export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH ## Set VMCMD=/usr/bin/vmware-vim-cmd VMLIST=/home/system/logs/vmlist.txt ## Exec $VMCMD vmsvc/getallvms > $VMLIST exit 0 # EOF
#!/bin/sh # ------------------------ # VM Bootup Script # ------------------------ # Version : 1.0 # date : 2008/10/19 export LANG=C export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH ## Set VMCMD=/usr/bin/vmware-vim-cmd VMLIST=/home/system/logs/vmlist.txt ## Check if [ -z $1 ]; then echo "ERR : please VM name" echo "USE : ./vmboot.sh [VM NAME]" exit 0 else VMNAME=$1 fi ## Get vmid cat $VMLIST | grep $VMNAME > /dev/null 2>&1 if [ $? -eq 1 ]; then echo "ERR:"$VMNAME" - not found " exit 0 fi ## Bootup VMID=`cat $VMLIST | grep $VMNAME` $VMCMD vmsvc/power.on $VMID exit 0 # EOF