AHV - migrate specific VM to other node with time
because AHV GUI can not migrate mutiple VM at one click
if you want migrate mutiple VM, you only can one by one select & migrate with GUI
or use script
(maybe next or next next or next next next version NOS can be resolve...I hope )
this script can migrate VM with similar VM name or specifice VM
_________________________
#!/bin/bash
#
# acli host.list
echo "input the VMs that you want to migrate(ex. vm1,vm2,testvm*)"
read VM
echo "input the destnation host IP...(press ENTER will automatically select host)"
read HOST
startdate=`date`
if [ ! -n "$HOST" ] ; then
acli vm.migrate $VM
else
acli vm.migrate $VM host=$HOST
fi
echo "start date: $startdate"
echo " end date: `date`"
_________________________
留言
張貼留言