qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Xu, Yanfei" <yanfei.xu@windriver.com>
To: qemu-devel@nongnu.org
Subject: Question: qemux86-64 reboot hangs at "reboot: machine restart"
Date: Fri, 9 Jul 2021 17:27:35 +0800	[thread overview]
Message-ID: <fb8ac165-0b49-5094-e036-b98b0c83deed@windriver.com> (raw)

Hi experts,

When I used qemu6.0 to boot a VM, then I found that it will hang after I
execute "reboot" command. With a long time waiting, It didn't reboot and
leave the message as blow:
------------cut here------------
root@qemux86-64:~# reboot

Broadcast message from root@qemux86-64 (ttyS0) (Fri Jul  9 09:09:31 2021):

The system is going down for reboot NOW!
INIT: Switching to runlevel: 6
INIT: Sending processes configured via /etc/inittab the TERM signal
Stopping syslogd/klogd: stopped syslogd (pid 255)
stopped klogd (pid 258)
done
Deconfiguring network interfaces... ifdown: interface lo not configured
done.
Sending all processes the TERM signal...
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
[   38.388532] EXT4-fs (vda): re-mounted. Opts: (null)
Rebooting... [   38.534593] reboot: Restarting system
[   38.534844] reboot: machine restart



The command booting VM I used is "

/path/to/qemu-system-x86_64 -device 
virtio-net-pci,netdev=net0,mac=52:54:00:12:35:02 -netdev 
user,id=net0,hostfwd=tcp::2222-:22,hostfwd=tcp::2323-:23,tftp=/path/to/images/qemux86-64 
-object rng-random,filename=/dev/urandom,id=rng0 -device 
virtio-rng-pci,rng=rng0 -drive 
file=/path/to/core-image-minimal-qemux86-64-20210707062347.rootfs.ext4,if=virtio,format=raw 
-usb -device usb-tablet -cpu IvyBridge -machine q35 -smp 4 -m 256 
-serial mon:stdio -serial null -nographic -kernel 
/path/to/bzImage--5.10.41.bin -append root=/dev/vda rw  reboot=a 
mem=256M ip=dhcp console=ttyS0 console=ttyS1 oprofile.timer=1 
tsc=reliable no_timer_check rcupdate.rcu_expedited=1
"


I also tried the qemu5.2, It still has this issue. Did I miss something? 
Could you please give me some advises? Thanks!



Regards,
Yanfei


             reply	other threads:[~2021-07-09  9:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09  9:27 Xu, Yanfei [this message]
2021-07-14  2:05 ` Question: qemux86-64 reboot hangs at "reboot: machine restart" Xu, Yanfei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fb8ac165-0b49-5094-e036-b98b0c83deed@windriver.com \
    --to=yanfei.xu@windriver.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).