Skip to contentSkip to conversation

xen halt

DISCUSSION David Becker 4 participants 6 messages Jul 14, 2004

lore
Share & tools
lore
#0 lore raw

Xen still reboots rather than halts when dom-0 xenolinux is halted. This makes the machine unstoppable.

David

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com

#1 lore raw

Nope, if you do '/sbin/halt' then the machine should not reboot.

If you're doing a 'poweroff' or 'halt -p', or if somehow your '/sbin/halt' is configured by default to do one of these things, then the machine will reboot.

-- Keir

Quoted 7 lines

Xen still reboots rather than halts when dom-0 xenolinux is halted. This makes the machine unstoppable.

David

Quoted 9 lines

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Xen-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com

#2 lore raw

" Nope, if you do '/sbin/halt' then the machine should not reboot.

ah, a halt -f suspends domain 0.
I need xen to quit without restarting the machine.

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com

#3 lore raw
Quoted 5 lines

" Nope, if you do '/sbin/halt' then the machine should not reboot.

ah, a halt -f suspends domain 0.
I need xen to quit without restarting the machine.

I've messed around with the code a bit so that /usr/bin/halt (as opposed to /sbin/halt) works too, at least under RH9.

Ian

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com

#4 lore raw

Strange thing. I can start "xend start" without any error msgs, but when I try to start a domain "xm create vmid=1" (also tried with turn of som functions and checked the /etc/xen/xmdefaults/xmdefaults) it halts for a long time and times out.

(110, 'Connection timed out")
Error: Error connecting to xend, is xend runnig?

(and yes, Xend is running - I have the lastest pull)

It seems like xm is not aware of that xend is running, what can the conflict be?

Rune

Quoted 12 lines · Ian Pratt
Quoted 5 lines

" Nope, if you do '/sbin/halt' then the machine should not reboot.

ah, a halt -f suspends domain 0.
I need xen to quit without restarting the machine.

I've messed around with the code a bit so that /usr/bin/halt (as opposed to /sbin/halt) works too, at least under RH9.

Ian

Quoted 9 lines

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Xen-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com

#5 lore raw
Quoted 5 lines

Strange thing. I can start "xend start" without any error msgs, but when I try to start a domain "xm create vmid=1" (also tried with turn of som functions and checked the /etc/xen/xmdefaults/xmdefaults) it halts for a long time and times out.

Quoted 7 lines

(110, 'Connection timed out")
Error: Error connecting to xend, is xend runnig?

(and yes, Xend is running - I have the lastest pull)

It seems like xm is not aware of that xend is running, what can the conflict be?

This is very odd.

I'm running 1.1084 and it seems to work fine for me.

Have you tried clearing out your old xen tools and libraries in case there's some strange conflict?

cp -a /etc/xen /etc/xen.old
rm -rf "/etc/xen /usr/lib/python2.2/site-packages/xen* /usr/lib/libxc* /usr/lib/python2.2/site-packages/Xc*"

[or make 'uninstall']

Then do a 'make install' and copy/merge back any config files you've edited.

Ian

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com