Upgrade : eject CD

This commit is contained in:
anthony 2011-11-03 14:38:19 -07:00
parent ce4f2b503a
commit f30ee3fc91
1 changed files with 10 additions and 0 deletions

View File

@ -41,8 +41,18 @@ do
fi
done
# eject all CD
for vm in $(xe vbd-list type=CD empty=false | grep vm-uuid | awk '{print $NF}')
do
vmname=$(xe vm-param-get uuid=f873bb90-2e86-f7c5-364c-f315ecea826e param-name=name-label)
xe vm-cd-eject vm=$vmname
if [ $? -ne 0 ]; then
echo "Need to eject CD for VM $vmname"
fi
done
# fake PV for PV VM
fake_pv_driver() {