Archives

  • Connect to Virtual Machine Console from XenServer Command Line

    Simple shell script to help with connecting to VM console from the command line. #!/bin/sh # # vm-console.sh # DOMID=$(xe vm-list uuid=$1 params=dom-id –minimal) HOSTUUID=$(xe vm-list uuid=$1 params=resident-on –minimal) NAMELABEL=$(xe host-list uuid=$HOSTUUID params=name-label –minimal) XL=$(which xl) MYHOSTNAME=$(hostname) if [ “${MYHOSTNAME}-” == “${NAMELABEL}-” ]; then echo “locally resident” ps aux | grep vnc | grep “/$DOMID/” […]

    Nov 7th, 2017 • Filed under XenServerPrint View
Archive for the ‘XenServer’ Category