xenzbx 1.5 version fixed discovery without snapshots

This commit is contained in:
Mike D'Morto 2021-02-15 07:01:47 +07:00
parent bb0587f73e
commit 9f7cc7077a

View File

@ -5,7 +5,7 @@
export LC_ALL=""
export LANG="en_US.UTF-8"
version="1.4"
version="1.5"
XE="/opt/xensource/bin/xe"
# path to mdmxen cfg backup system
@ -26,7 +26,7 @@ XCPU_LIST=""
# get all cpu numbers
XCPU_LIST=`cat "/proc/cpuinfo" | grep processor | tr -d ' ' | awk -F":" '{print "cpu"$2}'`
XSR_LIST=`${XE} sr-list params=uuid | egrep -o "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"`
XVM_LIST=`${XE} vm-list is-control-domain=false params=uuid | egrep -o "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"`
XVM_LIST=`${XE} vm-list is-control-domain=false is-a-snapshot=false params=uuid | egrep -o "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"`
#show all cpu