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`"
_________________________


留言

這個網誌中的熱門文章

Easy way for Try out o365 E3 - Step2 - Install Azure AD connect sync AD account to o365

AHV - migrate all VM on one node to other node

Win7 RSAT & 2003R2 ADWS