Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu-ga: 4.0 and 5.0 can't shutdown OpenWRT virtual machine #14244

Closed
RussianNeuroMancer opened this issue Dec 16, 2020 · 4 comments
Closed

qemu-ga: 4.0 and 5.0 can't shutdown OpenWRT virtual machine #14244

RussianNeuroMancer opened this issue Dec 16, 2020 · 4 comments
Assignees

Comments

@RussianNeuroMancer
Copy link

Maintainer: @yousong
Environment: OpenWRT 19.07.5 armvirt64

Description:

Due to issue on OpenWRT side, acpid is not an option on armvirt64 target, so I had to resort to qemu-ga for shutdown/reboot, but it doesn't work either. As you can see in log below qemu-ga receive guest-shutdown message from host, but for some reason can not execute shutdown command inside virtual machine. This cause delay on host shutdown.

This issue was also mentioned on OpenWRT forum in context of Proxmox (which means it's also reproducible on x86_64, not only on armvirt64). Here you can take a look at qemu-ga patch for Alpine Linux.

root@router:~# qemu-ga --verbose
1608137479.770384: debug: received EOF
1608137487.692824: debug: read data, count: 59, data: {"execute":"guest-sync", "arguments":{"id":1608137487691}}

1608137487.693193: debug: process_event: called
1608137487.693309: debug: processing command
1608137487.693584: debug: sending data, count: 26
1608137487.696358: debug: read data, count: 62, data: {"execute":"guest-shutdown","arguments":{"mode":"powerdown"}}

1608137487.696671: debug: process_event: called
1608137487.696754: debug: processing command
1608137487.700017: debug: sending data, count: 85

@RussianNeuroMancer
Copy link
Author

@yousong what you think, maybe it's make sense to integrate similar patch into qemu-ga package in OpenWRT for both of 19.07 and master branches?

@yousong yousong self-assigned this Dec 17, 2020
yousong added a commit that referenced this issue Dec 17, 2020
Ref: #14244
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
yousong added a commit that referenced this issue Dec 17, 2020
Corresponds to commit 33bbece in master branch

Ref: #14244
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
@yousong
Copy link
Member

yousong commented Dec 17, 2020

Hi, @RussianNeuroMancer , I just picked the patch from alpine and imported it to master and openwrt-19.07 branch. Only x86_64 was tested though, please see if it works for you on armvirt machines. Thank you!

@RussianNeuroMancer
Copy link
Author

@yousong thanks! I will check new package as soon as it will be published in repository.

aiamadeus pushed a commit to immortalwrt/packages that referenced this issue Dec 18, 2020
Ref: openwrt/packages#14244
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
@RussianNeuroMancer
Copy link
Author

@yousong

Hello!

I can not find qemu-ga package here https://downloads.openwrt.org/releases/packages-21.02/aarch64_generic/ for some reason. Is it gone or I been missing something?

codingdie pushed a commit to codingdie/packages that referenced this issue Oct 1, 2022
Corresponds to commit 33bbece in master branch

Ref: openwrt#14244
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants