what is needed to shutdown a guest (including Qemu process)?
I'm trying to run Debian Etch with Qemu 0.9.1, using ARM Versatile/PB machine emulation, with a self-compiled 2.6.20 kernel.
Everything works fine, except that I can't shutdown the guest properly.
When I want to halt the guest system, it shutdowns just fine up to:
Will now halt.
Synchronizing SCSI cache for disk sda:
System halted.
But the qemu-system-arm process continues to run.
Is there a workaround to that? I would expect qemu process to exit as well.
Signature · 2 lines
Tomasz Chmielewski http://wpkg.org
Quoted 7 lines · Tomasz Chmielewski
I'm trying to run Debian Etch with Qemu 0.9.1, using ARM Versatile/PB machine emulation, with a self-compiled 2.6.20 kernel.
Everything works fine, except that I can't shutdown the guest properly.
When I want to halt the guest system, it shutdowns just fine up to:
Quoted 7 lines
Will now halt.
Synchronizing SCSI cache for disk sda:
System halted.But the qemu-system-arm process continues to run.
Is there a workaround to that? I would expect qemu process to exit as well.
Try poweroff instead of halt.
-- Jamie
Quoted 5 lines · Tomasz Chmielewski
I'm trying to run Debian Etch with Qemu 0.9.1, using ARM Versatile/PB machine emulation, with a self-compiled 2.6.20 kernel.
Everything works fine, except that I can't shutdown the guest properly.
Quoted 7 lines
When I want to halt the guest system, it shutdowns just fine up to:
Will now halt.
Synchronizing SCSI cache for disk sda:
System halted.But the qemu-system-arm process continues to run.
AFAIK the versatile/pb hardware doesn't have any mechanism for powering off. You have to kill it manually.
Paul
Jamie Lokier schrieb:
(...)
Quoted 11 lines
Quoted 9 lines
When I want to halt the guest system, it shutdowns just fine up to:
Will now halt.
Synchronizing SCSI cache for disk sda:
System halted.But the qemu-system-arm process continues to run.
Is there a workaround to that? I would expect qemu process to exit as well.
Try poweroff instead of halt.
No, it doesn't make a difference.
Note that it shutdowns fine (including qemu process) when the guest is x86.
With an ARM guest, qemu keeps running. Perhaps the guest needs something in the kernel? I added APM, but it didn't make a difference.
When the guest is halted, this is what I get when I strace the qemu-system-arm process (endlessly in a loop):
--- SIGALRM (Alarm clock) @ 0 (0) ---sigreturn() = ? (mask now [])clock_gettime(CLOCK_MONOTONIC, {7954727, 280679359}) = 0 clock_gettime(CLOCK_MONOTONIC, {7954727, 280821359}) = 0 clock_gettime(CLOCK_MONOTONIC, {7954727, 280954359}) = 0 clock_gettime(CLOCK_MONOTONIC, {7954727, 281085359}) = 0 clock_gettime(CLOCK_MONOTONIC, {7954727, 281215359}) = 0 timer_gettime(0, {it_interval={0, 0}, it_value={0, 0}}) = 0 timer_settime(0, 0, {it_interval={0, 0}, it_value={0, 2381000}}, NULL) = 0select(8, [5 7], [], [], {0, 0}) = 0 (Timeout)clock_gettime(CLOCK_MONOTONIC, {7954727, 281824359}) = 0 clock_gettime(CLOCK_MONOTONIC, {7954727, 281955359}) = 0select(8, [5 7], [], [], {0, 10000}) = ? ERESTARTNOHAND (To be restarted)
Signature · 2 lines
Tomasz Chmielewski http://wpkg.org
Quoted 8 lines · Paul Brook
Quoted 7 lines · Tomasz Chmielewski
I'm trying to run Debian Etch with Qemu 0.9.1, using ARM Versatile/PB machine emulation, with a self-compiled 2.6.20 kernel.
Everything works fine, except that I can't shutdown the guest properly.
When I want to halt the guest system, it shutdowns just fine up to:
Quoted 7 lines
Quoted 5 lines
Will now halt.
Synchronizing SCSI cache for disk sda:
System halted.But the qemu-system-arm process continues to run.
AFAIK the versatile/pb hardware doesn't have any mechanism for powering off. You have to kill it manually.
Does anyone know if any of other ARM flavour emulated by Qemu is able to power off?
Signature · 2 lines
Tomasz Chmielewski http://wpkg.org
Quoted 19 lines · Tomasz Chmielewski
Quoted 16 lines · Paul Brook
Quoted 13 lines · Tomasz Chmielewski
I'm trying to run Debian Etch with Qemu 0.9.1, using ARM Versatile/PB machine emulation, with a self-compiled 2.6.20 kernel.
Everything works fine, except that I can't shutdown the guest properly.
When I want to halt the guest system, it shutdowns just fine up to:
Will now halt.
Synchronizing SCSI cache for disk sda:
System halted.But the qemu-system-arm process continues to run.
Quoted 6 lines
Quoted 1 line
AFAIK the versatile/pb hardware doesn't have any mechanism for powering
off. You have to kill it manually.
Quoted 1 line
Does anyone know if any of other ARM flavour emulated by Qemu is able to
power off?
If you mean any other ARM-based machine, the N800 and Palm T|E can and also the Neo1973 (in svn.openmoko.org). They lack other features that versatile/PB has, though. They are all embedded systems and Versatile may be the most pc-like machine with an ARM cpu in qemu.
You can modify the versatile kernel to issue some signal to shut down but that will only work in qemu.
Signature · 2 lines
Please do not print this email unless absolutely necessary. Spread environmental awareness.
Quoted 7 lines · andrzej zaborowski
Quoted 2 lines
Does anyone know if any of other ARM flavour emulated by Qemu is able to
power off?If you mean any other ARM-based machine, the N800 and Palm T|E can and also the Neo1973 (in svn.openmoko.org). They lack other features that versatile/PB has, though. They are all embedded systems and Versatile may be the most pc-like machine with an ARM cpu in qemu.
I meant any of the ARM machines which can be emulated by Qemu:
$ qemu-system-arm -M ? Supported machines are: integratorcp ARM Integrator/CP (ARM926EJ-S) (default) versatilepb ARM Versatile/PB (ARM926EJ-S) versatileab ARM Versatile/AB (ARM926EJ-S) realview ARM RealView Emulation Baseboard (ARM926EJ-S) akita Akita PDA (PXA270) spitz Spitz PDA (PXA270) borzoi Borzoi PDA (PXA270) terrier Terrier PDA (PXA270) cheetah Palm Tungsten|E aka. Cheetah PDA (OMAP310) lm3s811evb Stellaris LM3S811EVB lm3s6965evb Stellaris LM3S6965EVB connex Gumstix Connex (PXA255) verdex Gumstix Verdex (PXA270) mainstone Mainstone II (PXA27x)
According to what you say, "cheetah" should be able to power off? Does it have any network interface? I don't see it mentioned here:
http://bellard.org/qemu/qemu-doc.html#SEC63
Signature · 2 lines
Tomasz Chmielewski http://wpkg.org
Quoted 1 line · Tomasz Chmielewski
According to what you say, "cheetah" should be able to power off?
Yes.
Quoted 2 lines
Does it
have any network interface? I don't see it mentioned here:
No, it doesn't. The PDA has infrared as the only communications port (on first -serial in qemu).
N800 emulation has host usb and we use it with the usb networking patch successfully. You will still like versatile/PB more.
Signature · 2 lines
Please do not print this email unless absolutely necessary. Spread environmental awareness.