XenServer VM Bulk import
has been quite here a while 😉
However as I was not able to find any useful references how to import a directory full of XVA files into a XenServer, here it is!
for XVAFILE in $(ls -v);do
echo "INFO: Loading $XVAFILE" | addlog
xe vm-import preserve=true filename=$XVAFILE