poweroff redirect system halted

298 Views Asked by At

I'm playing with image built from Builtroot, and run with QEMU. But when I run "poweroff" command, machine not shutdown. And "System halted" appear! (See console output bellow)

# poweroff
# Stopping network: OK
Saving random seed: random: dd: uninitialized urandom read (512 bytes read)
OK
Stopping klogd: OK
Stopping syslogd: OK
umount: devtmpfs busy - remounted read-only
EXT4-fs (sda): re-mounted. Opts: (null)
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system poweroff
sd 0:0:0:0: [sda] Synchronizing SCSI cache
reboot: System halted

Can someone help me? Thank you!

1

There are 1 best solutions below

0
On

Purely commandline walkaround using reboot

  1. Add qemu flag -no-reboot
  2. Poweroff machine using reboot command

for more in-depth answer about this option refer to:

For SSH based solution and other ideas refer to: