[libvirt-users] How to config qga to support dompmsuspend
Michal Privoznik
mprivozn at redhat.com
Thu Jul 10 13:24:25 UTC 2014
On 10.07.2014 10:54, Hong-Hua.Yin at freescale.com 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
More information about the libvirt-users
mailing list