Restoring XEN DomU’s in debian etch

I ran into a small problem with xendomain saving and restoring domains on shutdown. It turns out the obscure unix command
cut was to blame.

the way that /etc/init.d/xendomains reads from xm list is to use this cut command:

cut -c0-19

I got it to work by changing that to

cut -f1 -d' '

and replace the $rest with

cut -f2- -d' '

Hope this helps someone (even if it’s just me in the future!)