similar to: Sending command to virtual machine

Displaying 20 results from an estimated 9000 matches similar to: "Sending command to virtual machine"

2014 Feb 28
1
Mouse events
Hello, I would like to ask if is there any way how to send mouse event to running domain. I am looking for something like a method for handling keyboard events(virDomainSendKey method). Is it implemented yet or is it future todo item(when It will be released?)? Thank for your answer
2014 Apr 16
1
Snapshots
Hello, I would like to ask what I am doing  wrong and what is the best approach to resolve this situation: First of all I start virtual machine by virDomainCreateXML. In my application I use libvncclient library that sends mouse events to this running domain. I had some troubles with coordinates of mouse cursor but all problem was solved when I added <input type='tablet'
2017 Mar 06
2
domain reinitalization detection
Hello I'm trying to find out how to detect if domain was destroyed and brought up between two time moments, let's call it reads. So far the best approach I could find is to compare domain ID from previous and current read. And this is my first question : is that reliable solution ? Or do you know any better ? And related question is how to resolve virDomainPtr into domain ID ? The
2017 Mar 06
1
Re: domain reinitalization detection
> Listen to the events I guess that would require running my own polling thread, right ? I wanted to avoid that ... Thanks for help On 06.03.2017 14:14, Matczak, KrzysztofX wrote: > Hello > > I'm trying to find out how to detect if domain was destroyed and brought up between two time moments, let's call it reads. > So far the best approach I could find is to compare
2011 Sep 23
1
The Format Of URI when Migrating
Hi, when I try to use such API: virDomainPtr <http://www.libvirt.org/html/libvirt-libvirt.html#virDomainPtr> virDomainMigrate (virDomainPtr <http://www.libvirt.org/html/libvirt-libvirt.html#virDomainPtr> domain, virConnectPtr <http://www.libvirt.org/html/libvirt-libvirt.html#virConnectPtr> dconn, unsigned long flags, const char * dname, const char * uri,
2013 Feb 09
1
OSX rpcgen problem
Trying to build the virtualbox-4.2 branch from git://pipo.sk/pipo/libvirt.git under OSX 10.7, I get the following build error: ... CC timegm.lo CC vasnprintf.lo CCLD libgnu.la /usr/bin/ranlib: file: .libs/libgnu.a(fd-hook.o) has no symbols /usr/bin/ranlib: file: .libs/libgnu.a(threadlib.o) has no symbols ranlib: file: .libs/libgnu.a(fd-hook.o) has no symbols ranlib: file:
2011 Dec 13
1
Thread-safety issues with vbox driver ?
Hi, I'm experiencing weird things with the vbox driver when using multiple threads. Following is the snippet of code I experience problems with /*****************************************************/ #include <stdlib.h> #include <stdio.h> #include <pthread.h> #include <libvirt/libvirt.h> void *create_and_destroy(void *arg) { virDomainPtr dom = (virDomainPtr)arg;
2016 Jan 19
2
[PATCH libguestfs v3] lib: Handle slow USB devices more gracefully.
Libvirt has a fixed 15 second timeout for qemu to exit. If qemu is writing to a slow USB key, it can hang (in D state) for much longer than this - many minutes usually. The solution is to check specifically for the libvirt EBUSY error when this happens, and retry the virDomainDestroyFlags operation (indefinitely). See also the description here:
2014 Mar 12
4
Problem in getting memory statistics
Hello, I need to get how much memory is used by a guest system, in order to implement some monitoring function which tells me if the system is overstressed. I am currently using java apis and the binding which was suggested to me was Domain.memoryStats(); This is a binding to int virDomainMemoryStats (virDomainPtr<http://libvirt.org/html/libvirt-libvirt.html#virDomainPtr>dom,
2012 May 05
1
printing domain information
how do i print the features of a domain from functions that return a domain object? for instance mydomain =?virdomain=libvirt.virConnect.lookupByID(conn,domainid) so mydomain is?virDomainPtr, which is?typedef virDomain * virDomainPtr i am not sure on how to print the domain object features in python, such as name, disk size, etc
2011 Nov 04
1
Event&Callback in QEMU
Hi buddy, I wanna to monitor a domain's life cycle event, so i register a event an a virConnectDomainEventCallback, the code segment is as below: ------------------------ int DomainEventCallback(virConnectPtr conn, virDomainPtr dom, int event, int detail, void * opaque){ /*My code */ ....... } int main(){ /* .....*/ virDomainPtr dom =
2019 Jan 21
2
libvirt 5.0.0 - LXC container still in "virsh list" output after shutdown
Hello. Centos 7.6 with libvirt build from base "virt" repository: libvirt-daemon-driver-lxc-5.0.0-1.el7.x86_64 libvirt-client-5.0.0-1.el7.x86_64 libvirt-daemon-5.0.0-1.el7.x86_64 libvirt-daemon-driver-network-5.0.0-1.el7.x86_64 libvirt-libs-5.0.0-1.el7.x86_64 + systemd-219-62.el7_6.2.x86_64 Now lxc containers with type='direct' can be started, but can't be stopped :)
2010 Oct 01
1
undefining and redefining a Domain
<resending as I don't think I was in the mailing list yet when I sent first time... apologies if you receive this twice> Hello, I'm facing some strange behavior, and I hope you can provide a clarification. Consider the following code: virDomainPtr dom = virDomainLookupByName(virt, domain_name); if (dom) { printf("domain already
2012 Apr 06
2
[API reference] Are there XML-handling API to retrieve info directly from xml configure file
Hi, everyone I'm writing a application using libvirt and need to query guest os's virtual network interface usage, like bytes read or written through a given interface. I know int virDomainInterfaceStats(virDomainPtr dom, const char * path, virDomainInterfaceStatsPtr stats, size_t size) is designed for my purpose but I 'm not sure how I determine the second parameter path.
2012 Apr 18
1
error: expected declaration specifiers or '...' before 'virDomainPtr'
hi there got a problem with the installation of libguestfs 1.16.19 on ubuntu.... ./configure --disable-appliance --disable-daemon runs just fine, but make crashes with In file included from virt.c:38:0: guestfs.h:2160:70: error: expected declaration specifiers or '...' before 'virDomainPtr' make[3]: *** [libguestfs_la-virt.lo] Error 1 make[3]: Leaving directory
2013 Aug 20
2
virConnectDomainEventRegisterAny problem
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 good day. i trying to make callback function for VIR_DOMAIN_EVENT_ID_LIFECYCLE, i have successfully registering callback, but it never called, i need to know when domain started, stopped or crashed, i have write following code static int domain_event_handler(virConnectPtr conn, virDomainPtr dom, int event, int detail, void * opaque) {
2013 Aug 22
1
Re: virConnectDomainEventRegisterAny problem
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 21.08.2013 12:58, Alexandr пишет: > 21.08.2013 12:39, Daniel P. Berrange пишет: >> On Wed, Aug 21, 2013 at 12:36:06PM +0300, Alexandr wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>> >>> 21.08.2013 09:46, Alexandr пишет: >>>> 21.08.2013 09:32, Martin Kletzander пишет: >>>>> On
2014 Dec 10
2
[PATCH v1 0/2] Implement guestfs_add_libvirt_dom.
This is only lightly tested at the moment. For context see: https://bugzilla.redhat.com/show_bug.cgi?id=1138203#c40 https://bugzilla.redhat.com/show_bug.cgi?id=1075143 https://bugzilla.redhat.com/show_bug.cgi?id=1075164 Note this is not a complete fix. At least one more libguestfs patch is required (to implement virDomainPtr in the python bindings). Plus a virt-manager patch. Rich.
2017 Jan 10
3
Regarding Migration Statistics
Greetings, I am writing a code using libvirt API to migrate VM between two physical hosts *(QEMU/KVM) , *say some *n *number of times. *1)* I am using right now* virDomainPtr virDomainMigrate (.......) *and to calculate the total migration time I am using something like this: *clock_gettime(CLOCK_MONOTONIC_RAW,&begin); * *migrate*(domainToMigrate,nodeToMigrate);
2013 Sep 24
2
virDomainGetInfo() returns wrong domain state
Hi Team, I have written below code to get the VM state at run time. I found, though the VM is in shut-off state, when I use the function virDomainGetInfo(); I get state as running. Could you please let me know what wrong I am doing. To know the actual VM state I used 'virsh list' and it clearly shows the VM is in shut-off state. Please find the log and code snippet below. Log from virsh: