Unable to resume KVM guest after rebooting host


Japanese and Chinese

I'm running KVM on Linux Mint 17.1, kernel 3.16.0-31-generic. The only guest is a Windows 8.1 VM. I noticed that if the host is restarted while the guest is running, the guest cannot be recovered after the host restarts. Virt-manager just shows the virtual machine as "suspended" with no power or continue options available. virshAlso gives an error when I try to restore it:

zach@koln ~ $ virsh list
Id    Name                           State
----------------------------------------------------
2     windows8                       pmsuspended

~ $ virsh resume 2
error: Failed to resume domain 2
error: Requested operation is not valid: domain is pmsuspended

The only solution I've found is to kill the qemu process, which is not ideal. I don't care if the VM state is discarded when I reboot the host, I just want it to start automatically.

Any suggestions?

Marius Matutiae

As far as I understand (see this Launchpad bug report ), the pmsuspended guest can only be woken up via the CLI (not from the GUI) with the following command :

  virsh dompmwakeup 2

As far as I know, this bug has not been corrected, but at least the CLI command works, and it definitely works on my Kubuntu host.

Related


Unable to resume KVM guest after rebooting host

Japanese and Chinese I'm running KVM on Linux Mint 17.1, kernel 3.16.0-31-generic. The only guest is a Windows 8.1 VM. I noticed that if the host is restarted while the guest is running, the guest cannot be recovered after the host restarts. Virt-manager just

KVM host, add LV to guest

Bafast I have a KVM host with a software RAID 10 array. A software RAID 10 array is a PV on the host, with only one VG. I'm using several LVs ( data storage for KVM guest .imgfiles ) at the host level. Typically, when adding a new disk to the guest, I create a

Host CPU temperature in KVM guest

Yun-Chih Chen I am trying to use to lm_sensorsdetect host CPU temperature in a KVM guest. In the host, after inserting the x86_pkg_temp_thermal kernel module, the sysfs interface /sys/class/thermal/thermal_zone*/tempwill display the required information. Here

KVM host, add LV to guest

Bafast I have a KVM host with a software RAID 10 array. A software RAID 10 array is a PV on the host, with only one VG. I'm using several LVs ( data storage for KVM guest .imgfiles ) at the host level. Typically, when adding a new disk to the guest, I create a

Host CPU temperature in KVM guest

Yun-Chih Chen I am trying to use to lm_sensorsdetect host CPU temperature in a KVM guest. In the host, after inserting the x86_pkg_temp_thermal kernel module, the sysfs interface /sys/class/thermal/thermal_zone*/tempwill display the required information. Here

How to copy paste from host to KVM guest?

Ellopio I have a QEMU/KVM virtual machine created with Virtual Machine Manager. I want to be able to copy text on the host and paste it into the guest and vice versa. How to share clipboard between host and guest? Ellopio The solution is simple. Just install t

KVM guest access host USB serial dongle

Sardathrion - Preventing SE Abuse I have a KVM virtual machine running CentOS 7 on a host running Fedora 24. I installed a USB serial dongle (actually an RFID reader, but that should be fine) on that host. The host can see it after running: sudo modprobe usbse

KVM host networking - guest connection issues

Mike Souler There seems to be a lot of stuff on this topic already, so apologies for adding information, but I haven't had any luck finding anything that can solve my problem. My guests can't ping my default gateway, but my host can ping my default gateway. I

How to copy paste from host to KVM guest?

Ellopio I have a QEMU/KVM virtual machine created with Virtual Machine Manager. I want to be able to copy text on the host and paste it into the guest and vice versa. How to share clipboard between host and guest? Ellopio The solution is simple. Just install t

How to copy paste from host to KVM guest?

Ellopio I have a QEMU/KVM virtual machine created with Virtual Machine Manager. I want to be able to copy text on the host and paste it into the guest and vice versa. How to share clipboard between host and guest? Ellopio The solution is simple. Just install t

KVM guest access host USB serial dongle

Sardathrion - Preventing SE Abuse I have a KVM virtual machine running CentOS 7 on a host running Fedora 24. I installed a USB serial dongle (actually an RFID reader, but that should be fine) on that host. The host can see it after running: sudo modprobe usbse

KVM host networking - guest connection issues

Mike Souler There seems to be a lot of stuff on this topic already, so apologies for adding information, but I haven't had any luck finding anything that can solve my problem. My guests can't ping my default gateway, but my host can ping my default gateway. I

Unable to install Ubuntu 20.04 KVM guest

programmer I'm trying to install Ubuntu 20.04 the same way I install all other KVM guests by specifying the web location to install. It seems that no matter what url I put in for the locationparameter , I always get the following error: Error Validating instal

KVM: VPN host, guest needs VPN and host access to NFS

diagonal I'm running an Ubuntu guest in KVM, which in turn runs on an Ubuntu host. The host network goes through a VPN (OpenVPN), providing tun0. I need the guest network to go through the VPN as well, except I need to be able to access the host over the netwo

KVM: VPN host, guest needs VPN and host access to NFS

diagonal I'm running an Ubuntu guest in KVM, which in turn runs on an Ubuntu host. The host network goes through a VPN (OpenVPN), providing tun0. I need the guest network to go through the VPN as well, except I need to be able to access the host over the netwo

Unable to boot KVM guest via qemu/kvm-tools

Young gn I'm using the ARM Foundation Model to emulate an arm-v8 environment (I need both TrustZone and KVM), and I'm running kvm-enabled linux on it as a host OS with kernel version 3.14.0 (I'm in the Virtual Open Systems guide . However, when trying to run t

Unable to boot KVM guest via qemu/kvm-tools

Young gn I'm using the ARM Foundation Model to emulate an arm-v8 environment (I need both TrustZone and KVM), and I'm running kvm-enabled linux on it as a host OS with kernel version 3.14.0 (I'm in the Virtual Open Systems guide . However, when trying to run t

Unable to boot Ubuntu after rebooting to complete installation

Jergood I'm trying to dual boot Ubuntu 16.04.1 with Windows 10 (with UEFI). I've tried three times and failed, but I'm not quite sure what I'm doing wrong. The problem I'm having is that after successfully installing Ubuntu and restarting the laptop, the Grub

Unable to boot Ubuntu after rebooting to complete installation

Jergood I'm trying to dual boot Ubuntu 16.04.1 with Windows 10 (with UEFI). I've tried three times and failed, but I'm not quite sure what I'm doing wrong. The problem I'm having is that after successfully installing Ubuntu and restarting the laptop, the Grub

Ubuntu Server 18.04.1 guest on Ubuntu Server 18.04.1 host, KVM

user3006062 I'm trying to install an Ubuntu Server 18.04.1 guest on an Ubuntu Server 18.04.1 host using KVM. I have downloaded ubuntu-18.04.1-live-server-amd64.iso to the host. When I run the following command: sudo virt-install -n marmoset-eugo-1 --descriptio

Host CPU does not scale frequency when required by KVM guest

Huygens Observation: I have an HP server with an AMD dual core CPU (Turion II Neo N40L) that can scale the frequency from 800 to 1500 MHz. Frequency scaling is available under Ubuntu 12.04 with FreeBSD 9 and Linux kernel 3.5. However, when I put FreeBSD 9 in a

Host CPU does not scale frequency when required by KVM guest

Huygens Observation: I have an HP server with an AMD dual core CPU (Turion II Neo N40L) that can scale the frequency from 800 to 1500 MHz. Frequency scaling is available under Ubuntu 12.04 with FreeBSD 9 and Linux kernel 3.5. However, when I put FreeBSD 9 in a

How to prevent time drift in Debian guest on CentOS KVM host?

username I know I can install ntpin the guest , but the suggestions that have confused me so far from googling suggest that it's not necessary. The host is CentOS 6.3 and the guest is Debian Wheezy, which seems to use the kvm clock as the time source: # cat /s

Share folder from host to guest VM using KVM

OK I want to share a folder from the host machine (Linux) to a Linux VM that is running on it. After some research, I used the 9p (version=9p2000.L) share, following the instructions on the link below: http://www.linux-kvm.org/page/9p_virtio Problem: I can't r