Public bug reported:

== Comment: #0 - Balamuruhan S <[email protected]> - 2018-03-26 08:32:44 
==
---Problem Description---

virsh dompmwakeup fails to wake VM from dompmsuspend state, VM state
remains running instead of pmsuspended even in suspended state. Guest
kernel enters to suspend state and qemu/libvirt are not aware of it.

# tail -f /var/log/syslog
Mar 26 08:22:44 ubuntu systemd[1]: Started User Manager for UID 0.
Mar 26 08:23:45 ubuntu systemd-timesyncd[1213]: Network configuration changed, 
trying to establish connection.
Mar 26 08:23:45 ubuntu kernel: [ 1802.926114] PM: suspend entry (s2idle)
 
Machine Type = Boston 
 
---Steps to Reproduce---
 1. Start a VM and ensure it reaches login prompt
2. Ensure qemu-guest-agent is available and running in the VM
3. Suspend the VM to mem using virsh dompmsuspend <domain> mem --duration 0
4. VM enters suspended state, try to wake up the VM using virsh dompmwakeup 
<domain>
5. Libvirt returns that VM got wokeup but ideally it doesn't

# virsh list --all
 Id    Name                           State
----------------------------------------------------
 2     virt-tests-vm1                 running

# virsh dompmsuspend virt-tests-vm1 mem
Domain virt-tests-vm1 successfully suspended

# echo $?
0

After dompmsuspend,
# virsh list --all
 Id    Name                           State
----------------------------------------------------
 14    virt-tests-vm1                 running
 -     nrs                            shut off

# virsh domstate virt-tests-vm1 --reason
running (booted)

---uname output---

Host Kernel
# uname -a
Linux ltc-boston17 4.15.0-12-generic #13 SMP Thu Mar 22 14:16:58 CDT 2018 
ppc64le ppc64le ppc64le GNU/Linux

Guest Kernel:
# uname -a
Linux ubuntu 4.15.0-12-generic #13-Ubuntu SMP Wed Mar 7 21:37:03 UTC 2018 
ppc64le ppc64le ppc64le GNU/Linux
 
---Debugger---
A debugger is not configured
 
Contact Information = Balamuruhan S / [email protected] 
 
Userspace tool common name: qemu 

Userspace rpm:

Qemu:
# dpkg -l | grep qemu
ii  ipxe-qemu                              1.0.0+git-20180124.fbe8c52d-0ubuntu2 
all          PXE boot firmware - ROM images for qemu
ii  ipxe-qemu-256k-compat-efi-roms         1.0.0+git-20150424.a25a16d-0ubuntu2  
all          PXE boot firmware - Compat EFI ROM images for qemu
ii  qemu-block-extra:ppc64el               1:2.11+dfsg-1ubuntu5                 
ppc64el      extra block backend modules for qemu-system and qemu-utils
ii  qemu-kvm                               1:2.11+dfsg-1ubuntu5                 
ppc64el      QEMU Full virtualization on x86 hardware
ii  qemu-slof                              20170724+dfsg-1ubuntu1               
all          Slimline Open Firmware -- QEMU PowerPC version
ii  qemu-system-common                     1:2.11+dfsg-1ubuntu5                 
ppc64el      QEMU full system emulation binaries (common files)
ii  qemu-system-ppc                        1:2.11+dfsg-1ubuntu5                 
ppc64el      QEMU full system emulation binaries (ppc)
ii  qemu-utils                             1:2.11+dfsg-1ubuntu5                 
ppc64el      QEMU utilities 

Libvirt:
# dpkg -l | grep libvirt
ii  libvirt-bin                            4.0.0-1ubuntu7                       
ppc64el      programs for the libvirt library
ii  libvirt-clients                        4.0.0-1ubuntu7                       
ppc64el      Programs for the libvirt library
ii  libvirt-daemon                         4.0.0-1ubuntu7                       
ppc64el      Virtualization daemon
ii  libvirt-daemon-driver-storage-rbd      4.0.0-1ubuntu7                       
ppc64el      Virtualization daemon RBD storage driver
ii  libvirt-daemon-system                  4.0.0-1ubuntu7                       
ppc64el      Libvirt daemon configuration files
ii  libvirt-dev:ppc64el                    4.0.0-1ubuntu7                       
ppc64el      development files for the libvirt library
ii  libvirt-glib-1.0-0:ppc64el             1.0.0-1                              
ppc64el      libvirt GLib and GObject mapping library
ii  libvirt0:ppc64el                       4.0.0-1ubuntu7                       
ppc64el      library for interfacing with different virtualization systems
ii  python-libvirt                         4.0.0-1                              
ppc64el      libvirt Python bindings

The userspace tool has the following bit modes: ppc64le

Userspace tool obtained from project website:  na 
 
*Additional Instructions for Balamuruhan S / [email protected]: 
-Post a private note with access information to the machine that the bug is 
occuring on.
-Attach ltrace and strace of userspace application.

** Affects: qemu (Ubuntu)
     Importance: Undecided
     Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
         Status: New


** Tags: architecture-ppc64le bugnameltc-166048 severity-high 
targetmilestone-inin1804

** Tags added: architecture-ppc64le bugnameltc-166048 severity-high
targetmilestone-inin1804

** Changed in: ubuntu
     Assignee: (unassigned) => Ubuntu on IBM Power Systems Bug Triage 
(ubuntu-power-triage)

** Package changed: ubuntu => qemu (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1759509

Title:
  Ubuntu18.04 - [qemu] virsh dompmwakeup fails to wake VM from
  dompmsuspend state (kvm)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1759509/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to