Re: How to config qga to support dompmsuspend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10.07.2014 10:54, Hong-Hua.Yin@xxxxxxxxxxxxx wrote:
Hi,

I tried to run domsuspend command on my PowerPC board but failed.
# virsh dompmsuspend sdk --target mem
error: Domain sdk could not be suspended
error: argument unsupported: QEMU guest agent is not configured

You need to configure the guest agent:

http://wiki.libvirt.org/page/Qemu_guest_agent



It seemed that support suspend-to-mem only from capabilities.

# virsh capabilities
<capabilities>

   <host>
     <uuid>52498f7c-d584-45d8-8a15-345b14fa0d10</uuid>
     <cpu>
       <arch>ppc</arch>
       <topology sockets='1' cores='2' threads='1'/>
       <pages unit='KiB' size='4'/>
       <pages unit='KiB' size='1024'/>
       <pages unit='KiB' size='4096'/>
       <pages unit='KiB' size='16384'/>
       <pages unit='KiB' size='65536'/>
       <pages unit='KiB' size='262144'/>
       <pages unit='KiB' size='1048576'/>
     </cpu>
     <power_management>
       <suspend_mem/>

This express the *host* PM capabilities (virsh nodesuspend) not the guest (virsh dompmsuspend). The guest ACPI capabilities can be found under domain XML:

<domain type='kvm'>
  <name>gentoo</name>
  <uuid>a75aca4b-a02f-2bcb-4a91-c93cd848c34b</uuid>
  ...
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <pm>
    <suspend-to-mem enabled='yes'/>
    <suspend-to-disk enabled='yes'/>
  </pm>
  <devices/>
</domain>

These are purely on mgmt application (or users) decision. Can be enabled or disabled as you wish.

Michal

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux