Archive for the ‘How To – XenServer’ Category

Performing many tasks can take some time, and we know that XenServer can deal with a few of these operations at once. I had some issues, but finally have a one-liner that is suitable (using xargs again :-))

xe vm-list is-control-domain=false power-state=running --minimal | 
    tr -d [:cntrl:] | 
    xargs -d, -n1 -P5 -I '{}' xe vm-param-list uuid='{}'

You notice that I strip all control characters out with tr. This is to get rid of a strange line break that xargs will process even when running -r.