[libvirt-users] Windows, qemu.agent is it possible to shut down services in running windows server?

Dominique Ramaekers dominique.ramaekers at cometal.be
Mon May 23 13:51:33 UTC 2016



> -----Oorspronkelijk bericht-----
> Van: libvirt-users-bounces at redhat.com [mailto:libvirt-users-
> bounces at redhat.com] Namens Marko Weber | 8000
> Verzonden: maandag 23 mei 2016 15:33
> Aan: libvirt liste
> Onderwerp: [libvirt-users] Windows, qemu.agent is it possible to shut down
> services in running windows server?
> 
> 
> 
> Hi List,
> 
> i installed qemu-agent on a windows server and it is working as expected.
> I can send via virsh commands. I already performed successful an online
> backup of an windows server.
> 
> Now my question is, is it possible to execute commands on the windows server
> via qemu-agent?

No, it's not possible.
You can get a list of commands trough: virsh qemu-agent-command $GUEST '{"execute": "guest-info"}'

> I want to shutdown the MSSQL Service before doing backups.
> 
> Is that possible? i dont find any helpful pages in net.
> Any hints & tipps are welcome

If you 'own' the guest system, you can install the telnet server (still available on Server 2012R2). With the linux tool 'expect' you can script trough telnet.

Maybe, you can use 'nsclient++' to send commands to your quest. I use it only in combination with Nagios but it should be a good tool to have a more protected interface in comparisance with telnet.

> 
> Marko
> 
> 
> 
> 
> --
> zbfmail - Mittendrin statt nur Datei!
> 
> OpenDKIM, SPF, DSPAM, Greylisting, POSTSCREEN, AMAVIS, Mailgateways
> Mailfiltering, SMTP Service, Spam Abwehr, MX-Backup, Mailserver Backup
> Redundante Mailgateways, HA Mailserver, Secure Mailserver
> 
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users




More information about the libvirt-users mailing list