[libvirt-users] snapshot of running vm's

Lentes, Bernd bernd.lentes at helmholtz-muenchen.de
Wed Dec 2 20:22:12 UTC 2015


Dominique wrote:

> > virsh # snapshot-create --domain sles11 --atomic --disk-only --quiesce
> > error: argument unsupported: QEMU guest agent is not configured The
> > system I'm testing with is SLES11 SP4 (host and guest).  I installed
the
> guest agent:
> >
> > vm58820-8:~ # rpm -q qemu-guest-agent
> > qemu-guest-agent-2.0.2-1.35
> > Is there something I have to configure ?
> Yes, you have to update the guest xml with 'virsh edit $VM' and enter
> these lines in the devices section <channel type='unix'>
>    <source mode='bind'>
>    <target type='virtio' name='org.qemu.guest_agent.0'/> </channel>
> 
> After this, it's possible the qemu guest agent is still not working,
edit the
> xml again and change the port number in the line to a free port (you'll
> see that for example spice is using the same controller, bus and
port...)
> <address type='virtio-serial' controller='0' bus='0' port='1'/>

Hi,

i have inserted:

<channel type='unix'>
      <source mode='bind'
path='/var/lib/libvirt/qemu/channel/target/sles11.org.qemu.guest_agent.0'/
>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='2'/>
</channel>


I didn't insert the path, it was added automatically, the same with
"<address type='virtio-serial' controller='0' bus='0' port='2'/>".
I tried already port 1 and 2, but get this error:

sunhb58820:~/libvirt_1.2.11 # virsh start sles11
error: Failed to start domain sles11
error: internal error: process exited while connecting to monitor:
qemu-kvm: -chardev
socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/sles11.or
g.qemu.guest_agent.0,server,nowait: Failed to bind socket: No such file or
directory
chardev: opening backend "socket" failed


Bernd
   

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671




More information about the libvirt-users mailing list