Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: domU freeze



On Thu, Oct 07, 2021 at 07:14:25PM +0200, Manuel Bouyer wrote:
> There must be a way, py-anita does it. 

I had a look at it, is uses pexpect. Using TCL expect in a shell-script:
/usr/pkg/bin/expect > crash.log << EOT
spawn xl console damn_crashing_beast
send "+++++"
send "\n"
expect "db{0}>"
send "ps\n"
expect "db{0}>"
send "c\n"
expect "login:"
exit
EOT

Of course that needs improvement: it will not get login: when frozen.


-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index