[libvirt-users] monitor option in libvirt ?

Hello, I woudl liek to start qemu-kvm with -monitor myfile.pipe options instead of default -monitor pty Anyway I have not found any way to tell libvirt (using virsh) that I want to set a specific -monitor option to the qemu-kvm command line. How can I do this ? I do not want to start manually qemu-kvm because in this way I will loose the libvirt VM management thanks Rick

On Tue, Jan 26, 2010 at 01:52:13PM +0100, Riccardo Veraldi wrote:
Hello,
I woudl liek to start qemu-kvm with -monitor myfile.pipe options instead of default -monitor pty
Anyway I have not found any way to tell libvirt (using virsh) that I want to set a specific -monitor option to the qemu-kvm command line. How can I do this ?
libvirt controls the monitor interface so it can manage the guest while it is running. As such we don't give users access to it, since having two different things changing the running guest state is a recipe for trouble Why do you need to acess the monitor directly ? Our goal is to expose APIs for any monitor command that users would need to use in administrative tasks Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

because I wold like to do this: 1) start qemu-kvm and redirect the monitor to a named pipe called let's say my.pipe 2) write into the named pipe with a script when I want to take a snapshot, somthing like: echo "savevm mysnapshot">my.pipe bascally I need to be able to access the monitor to issue a savevm command because I want to take a snapshot of my qcow2 images. How could I do it otherwise ? thank you Rick Daniel P. Berrange wrote:
On Tue, Jan 26, 2010 at 01:52:13PM +0100, Riccardo Veraldi wrote:
Hello,
I woudl liek to start qemu-kvm with -monitor myfile.pipe options instead of default -monitor pty
Anyway I have not found any way to tell libvirt (using virsh) that I want to set a specific -monitor option to the qemu-kvm command line. How can I do this ?
libvirt controls the monitor interface so it can manage the guest while it is running. As such we don't give users access to it, since having two different things changing the running guest state is a recipe for trouble
Why do you need to acess the monitor directly ? Our goal is to expose APIs for any monitor command that users would need to use in administrative tasks
Regards, Daniel

On Tue, Jan 26, 2010 at 08:33:27PM +0100, Riccardo Veraldi wrote:
because I wold like to do this:
1) start qemu-kvm and redirect the monitor to a named pipe called let's say my.pipe
2) write into the named pipe with a script when I want to take a snapshot, somthing like:
echo "savevm mysnapshot">my.pipe
bascally I need to be able to access the monitor to issue a savevm command because I want to take a snapshot of my qcow2 images.
That's not currently supported, but is being worked on http://www.redhat.com/archives/libvir-list/2010-January/msg00506.html Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
participants (2)
-
Daniel P. Berrange
-
Riccardo Veraldi