VMware Communities
RLBrink
Contributor
Contributor

vmrun - failes to connect to host

Currently running workstation 14 on ubuntu 16.  For several years I have a backup script (running as root) that suspends the vm, backup the files (to zip), then runs vmrun to start the vm. Now when the script runs the vmrun command error that says "unable to connect to host." Nothing has changed in years. Any ideas? The VM is a port from an old RedHat61 Cartman system.  It only works on this version of RedHat.

0 Kudos
2 Replies
RLBrink
Contributor
Contributor

Here is the (simple) backup script - nothing fancy

 

#!/bin/bash
set -x
dt=`date +%Y%m%d`
export DISPLAY=:0
echo "RedHat_"$dt".tar.gz"

cd /software

dt=`date +%Y%m%d`
vmrun suspend /software/RedHat61/RedHat61.vmx
tar -zcvf "RedHat61_"$dt".tar.gz" RedHat61
vmrun start /software/RedHat61/RedHat61.vmx

0 Kudos
RLBrink
Contributor
Contributor

Well I decided to reboot the server, the backup script works just fine. Not sure what got hosed other than something happened this month. Anyway all is fine

0 Kudos