Hello People
I used to have pleasure with VMWare Server 1.0.x but since i've updated my host machine to version 2.0.1 i got a backup script issue, that worked well with the 1.0.
My host system is an Ubuntu AMD64 Server 8.04 LTS. My guests systems are GNU/Linux Debian 4.0 32bits and Windows 2003 Server R2 32bits.
I bakcup my virtual machines on a 1TB HDD mounted as /backup with Rsync.
Here is my script (i'm sorry in advance cause i'm not good in scripting) :
#!/bin/sh
################################
################################
RSYNC=/usr/bin/rsync
MOUNT=/bin/mount
UMOUNT=/bin/umount
MKDIR=/bin/mkdir
RM=/bin/rm
ECHO=/bin/echo
ETC=/etc
RACINE=/
FIND=/usr/bin/find
TAR=/bin/tar
VMRUN=/usr/bin/vmrun
################################
################################
DESTVOL=/backup
################################
################################
LOGS=/root/backup.log
$ECHO - >> $LOGS
################################
################################
RSYNCOPTIONS="-av --delete --exclude-from=/root/scripts/exclusions.lst"
RSYNCSRC=$RACINE/*
RSYNCDEST=$DESTVOL/rootfs_`date +%d-%m-%Y`
################################
################################
TAROPTIONS="cvfz"
TARSRC=$ETC
TARDEST=$DESTVOL/etc_`date +%d-%m-%Y`.tgz
Backup
################################
################################
VMRUNOPTIONS="-T server -h https://localhost:8333/sdk -u root -p password"
################################
################################
launch_rsync()
{
$RSYNC $RSYNCOPTIONS $RSYNCSRC $RSYNCDEST && $ECHO "Root FS Synchonization "/" SUCCESSFUL" >> $LOGS
}
################################
################################
launch_tar()
{
$TAR $TAROPTIONS $TARDEST $TARSRC && $ECHO "Backup of configuration files "/etc" SUCCESSFUL" >> $LOGS
}
###############################
###############################
launch_cleanup()
{
$FIND $DESTVOL/ -name "rootfs_*" -print -type d -mtime +15 -exec rm -r {} \;
}
################################
################################
stop_vm()
{
/etc/init.d/vmware stop
}
################################
################################
start_vm()
{
/etc/init.d/vmware start && $VMRUN $VMRUNOPTIONS start "[standard] win2003/Other.vmx" ; $VMRUN $VMRUNOPTIONS start "[standard] zimbra-etch/Other.vmx"
}
################################
################################
$ECHO Starting backup to $DESTVOL `date +%d/%m/%Y` a `date +%H:%M` >> $LOGS
if ; then stop_vm && launch_rsync ; start_vm && launch_cleanup ; $UMOUNT $DESTVOL
else
$ECHO "Mounting Volume $DESTVOL and starting backup" >> $LOGS && $MOUNT $DESTVOL && stop_vm && launch_rsync ; start_vm && launch_cleanup ; $UMOUNT $DESTVOL ; exit
fi
! END !
Here is the result (rsync doesn't start, /backup is not monted, almost everything fails actually ) :
Stopping VMware autostart virtual machines: Virtual machines failed Stopping VMware management services: VMware Virtual Infrastructure Web Access VMware Server Host Agent failed Stopping VMware services: VMware Authentication Daemon done VM communication interface socket family: done Virtual machine communication interface done Virtual machine monitor done Bridged networking on /dev/vmnet0 done Host network detection done Virtual ethernet failed VMware Server is installed, but it has not been (correctly) configured for the running kernel. To (re-)configure it, invoke the following command: /usr/bin/vmware-config.pl.
And i got this in my logs :
Aug 22 10:24:37 ipcmax kernel: http:// 533.407684 /dev/vmmon[5580]: Module vmmon: unloaded Aug 22 10:24:37 ipcmax vmnetBridge: Daemon destroyed. Aug 22 10:24:40 ipcmax /usr/lib/vmware/bin/vmware-hostd[5057]: Accepted password for user root from 127.0.0.1 Aug 22 10:27:26 ipcmax watchdog-webAccess: Unable to terminate watchdog: Can't find process Aug 22 10:27:27 ipcmax watchdog-webAccess: '/usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess -client -Xmx64m -XX:MinHeapFreeRatio=30 -XX:MaxHeapFreeRatio=30 -D java.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/common/endorsed -classpath / usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/bin/bootstrap.jar:/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/bin/commons-logging-api.jar -Dcatalina.bas e=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16 -Dcatalina.home=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16 -Djava.io.tmpdir=/usr/lib/vmware/webAcces s/tomcat/apache-tomcat-6.0.16/temp org.apache.catalina.startup.Bootstrap start' exited after 170 seconds Aug 22 10:27:27 ipcmax watchdog-webAccess: Executing '/usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess -client -Xmx64m -XX:MinHeapFreeRatio=30 -XX:MaxHeapFreeR atio=30 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/common/endorsed -c lasspath /usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/bin/bootstrap.jar:/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/bin/commons-logging-api.jar -Dca talina.base=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16 -Dcatalina.home=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16 -Djava.io.tmpdir=/usr/lib/vmwar e/webAccess/tomcat/apache-tomcat-6.0.16/temp org.apache.catalina.startup.Bootstrap start'
After that the only thing i could do to make my virtual machines working again is : reboot / launch the vmware-config.pl script and reconfigure VMWare !! Pretty scary...
Will i have to get back to version 1.0.9 like so many ??
Or is there a solution, somethin i'm missing ??
Thank you for any help.