search for: virdomainlookupbyname

Displaying 20 results from an estimated 33 matches for "virdomainlookupbyname".

2008 Aug 25
1
virt-install error: "virDomainLookupByName() failed got unknown HTTP error code 400"
...et_current_page()) != True): File "/usr/share/virt-manager/virtManager/create.py", line 974, in validate vm = self.connection.vmm.lookupByName(name) File "/usr/lib64/python2.4/site-packages/libvirt.py", line 646, in lookupByName if ret is None:raise libvirtError('virDomainLookupByName() failed', conn=self) libvirtError: virDomainLookupByName() failed got unknown HTTP error code 400 None There was also a lot of this in the main system log (1-2 messages per second): [Tue, 05 Aug 2008 16:16:53 virt-manager 20637] DEBUG (connection:580) Couldn't fetch domain id 3; it prob...
2013 Sep 24
2
virDomainGetInfo() returns wrong domain state
..._DOMAIN_BLOCKED)) { state = cidl_vm_state_paused; } else if (libvirt_state == VIR_DOMAIN_SHUTOFF) { state = cidl_vm_state_defined; } else { state = cidl_vm_state_not_defined; } return state; } virDomainInfo res_util; virDomainPtr dom = virDomainLookupByName(virt, private_names[vm_idx]); res = virDomainGetInfo(dom, &res_util); vminfo[vm_idx].vm_state = vm_libvirt_state_to_vmm_state(res_util.state); Regards Ritesh Sharma
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 defined...\n"); if (virDomainUndefine(dom)) printf("...unable to undefine!!!\n"); else { printf("...undefined."); free(dom...
2008 Mar 20
9
Xen Store error : out of memory
...line 638 , in start_install File "/export/builds/xvm_84/proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 701 , in _do_install File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 555, in lookupByName if ret is None:raise libvirtError(''virDomainLookupByName() failed'', conn=self) libvirt.libvirtError: virDomainLookupByName() failed out of memory The same happens when trying to install Fedora. xm top also fails: markgraf.bti1 ~ # xm top Failed to retrieve statistics from libxenstat any hints on how to get this going? Did I miss something or...
2011 Dec 13
1
Thread-safety issues with vbox driver ?
...ot;); int i; int count = virConnectNumOfDefinedDomains(conn); char **names = malloc(count * sizeof(char *)); virConnectListDefinedDomains(conn, names, count); virDomainPtr *doms = malloc(count * sizeof(virDomainPtr)); for (i = 0 ; i < count ; ++i) { doms[i] = virDomainLookupByName(conn, names[i]); } pthread_t *threads = malloc(count * sizeof(pthread_t)); pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); for (i = 0 ; i < count ; ++i) { pthread_create(&threads[i], &at...
2013 Sep 18
2
Trouble using virStream with callbacks
...{ stream_active = 0; } return; } int main(int argc, char *argv[]) { virConnectPtr conn; virDomainPtr dom; virStreamPtr st; int bytes_read; char buf[BUF_SIZE]; if ((conn = virConnectOpen(CONNECT_URI)) == NULL) errx(1, "virConnectOpen"); if ((dom = virDomainLookupByName(conn, DOMAIN)) == NULL) errx(1, "virDomainLookupByName"); if ((st = virStreamNew(conn, VIR_STREAM_NONBLOCK)) == NULL) errx(1, "virStreamNew"); if (virDomainOpenChannel(dom, CHANNEL, st, 0) == -1) errx(1, "virDomainOpenChannel"); if (virEve...
2018 Feb 27
2
Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)
...-kvm 2.9.0 + Ceph 10.2.10 ALL-in-One. I use python-sdk with libvirt and run [self.domain.updateDeviceFlags(xml, libvirt.VIR_DOMAIN_AFFECT_LIVE)] on CDROM (I want to change media path). However, I enable libvirt debug log , the log as below: "2018-02-26 13:09:13.638+0000: 50524: debug : virDomainLookupByName:412 : conn=0x7f7278000aa0, name=6ec499397d594ef2a64fcfc938f38225 2018-02-26 13:09:13.638+0000: 50515: debug : virDomainGetInfo:2431 : dom=0x7f726c000c30, (VM: name=6ec499397d594ef2a64fcfc938f38225, uuid=6ec49939-7d59-4ef2-a64f-cfc938f38225), info=0x7f72b9059b20 2018-02-26 13:09:13.638+0000: 50515...
2010 Oct 01
0
how to programmatically undefine and redefine a Domain?
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 defined...\n"); if (virDomainUndefine(dom)) printf("...unable to undefine!!!\n"); else { printf("...undefined."); free(dom...
2012 May 05
1
listing active and defined vs inactive and defined domains
i am trying to list active + defined and inactive + defined domains using libvirt 0.9.4 i can get active domains using: def s_activedomains(conn): #get active domain ids numofdomains=libvirt.virConnect.numOfDomains(conn) activedomains=libvirt.virConnect.listDomainsID(conn) return activedomains i am stuck on how to get inactive domains the example listed
2013 Sep 25
0
Re: virDomainGetInfo() returns wrong domain state
..._DOMAIN_BLOCKED)) { state = cidl_vm_state_paused; } else if (libvirt_state == VIR_DOMAIN_SHUTOFF) { state = cidl_vm_state_defined; } else { state = cidl_vm_state_not_defined; } return state; } virDomainInfo res_util; virDomainPtr dom = virDomainLookupByName(virt, private_names[vm_idx]); res = virDomainGetInfo(dom, &res_util); vminfo[vm_idx].vm_state = vm_libvirt_state_to_vmm_state(res_util.state); Regards Ritesh Sharma
2013 Sep 26
0
Re: [libvirt] virDomainGetInfo() returns wrong domain state
..._not_defined; > > } > > return state; > > } While this part ^^^ looks okay, the part below looks suspicious. I mean not from API perspective, but from data perspective. > > > > virDomainInfo res_util; > > virDomainPtr dom = virDomainLookupByName(virt, > > private_names[vm_idx]); Are you sure you're passing the correct name here? That's the only possible source of the error here. > > res = virDomainGetInfo(dom, &res_util); > > vmi...
2013 Sep 26
1
Re: [libvirt] virDomainGetInfo() returns wrong domain state
..._not_defined; > > } > > return state; > > } While this part ^^^ looks okay, the part below looks suspicious. I mean not from API perspective, but from data perspective. > > > > virDomainInfo res_util; > > virDomainPtr dom = virDomainLookupByName(virt, > > > private_names[vm_idx]); Are you sure you're passing the correct name here? That's the only possible source of the error here. > > res = virDomainGetInfo(dom, &res_util); > >...
2013 Jul 08
1
python equiv to perl list_domains()
Hey, I'm trying to figure out a way to get a list of the running domains on a dom0. I can get the ID's but I'd prefer the names. We have another script written in perl, but I'm trying to get some other functionality in python as well as work on converting it all to python. It looks like perl has a list_domains() that will, according to the libvirt doc, "Return a list of all
2010 Nov 14
2
java binding and virtualbox-ose
...tNumOfDomains:1714 : conn=0x95a1910 11:37:18.663: debug : virConnectNumOfDefinedDomains:4554 : conn=0x95a1910 11:37:18.664: debug : virConnectListDefinedDomains:4593 : conn=0x95a1910, names=0x95e9b58, maxnames=1 Id Name State ---------------------------------- 11:37:18.666: debug : virDomainLookupByName:1974 : conn=0x95a1910, name=tty 11:37:18.669: debug : virGetDomain:345 : New hash entry 0x95dad48 11:37:18.669: debug : virDomainGetInfo:2825 : domain=0x95dad48, info=0xbfeca708 - tty shut off 11:37:18.673: debug : virDomainFree:2062 : domain=0x95dad48 11:37:18.673: debug : virUn...
2014 May 28
1
Re: redirecting guest stdio to the host
On Wed, May 28, 2014 at 11:28:19AM -0600, Eric Blake wrote: > On 05/28/2014 09:14 AM, Alexander Binun wrote: > > [can you convince your mailer to wrap long lines?] > > > > > I have a program running on a VM guest. Its output is valuable (for VM introspection) so I want to let the host module know about it. I prefer to redirect ' stdio" of a guest into a device
2020 Jan 10
2
Re: [PATCH Fedora libguestfs] Don't depend on libvirt-daemon-kvm monolith.
...( virDomainGetCPUStats( virDomainGetID ( virDomainGetInfo ( virDomainGetMaxMemory ( virDomainGetName ( virDomainGetSchedulerParameters ( virDomainGetSchedulerType ( virDomainGetUUID ( virDomainGetUUIDString ( virDomainGetVcpus ( virDomainGetXMLDesc ( virDomainInterfaceStats ( virDomainLookupByID ( virDomainLookupByName ( virDomainLookupByUUIDString ( virDomainMemoryPeek ( virDomainMigrate ( virDomainPinVcpu ( virDomainRef( virDomainSetMaxMemory ( virDomainSetMemory ( virDomainSetSchedulerParameters ( virDomainSetVcpus ( virDomainStatsRecordListFree ( virEventAddTimeout( virEventRegisterDefaultImpl ( virEventRemov...
2010 Sep 17
3
access VMX config on esxi with virsh
Hi, Is virsh able to access the VMX config of a virtual machine running on a esxi host? I would like to take backups of my virtual machine configs and the doku section "Converting from VMware VMX config to domain XML config" (http://libvirt.org/drvesx.html) comes close to this - but does not tell how to get access to the vmx file. I would prefer a solution where ssh access to the
2015 May 05
2
[PATCH 0/2] v2v: -o libvirt: Check if the domain exists on the target (RHBZ#889082).
https://bugzilla.redhat.com/show_bug.cgi?id=889082
2020 Jan 10
5
[PATCH Fedora libguestfs] Don't depend on libvirt-daemon-kvm monolith.
libguestfs usually needs qemu. However it only requires an emulator for the same architecture, not for all architectures. libvirt-daemon-kvm pulls in qemu which pulls in emulators for all architectures, as well as a bunch of other stuff we don't need at all like network interface support and nwfilter. There are no Fedora TCG-only arches, so drop the conditional section. I also made support
2019 Apr 08
0
[PATCH v4 3/7] v2v: switch to ocaml-libvirt
...s to NULL to ignore errors; setting it to NULL - * restores the default error handler ... - */ - virConnSetErrorFunc (conn, NULL, ignore_errors); - - /* Look up the domain. */ - domname = String_val (domnamev); - - dom = virDomainLookupByUUIDString (conn, domname); - - if (!dom) - dom = virDomainLookupByName (conn, domname); - - if (!dom) { - err = virGetLastError (); - snprintf (errmsg, sizeof errmsg, - _("cannot find libvirt domain ā€˜%sā€™: %s"), domname, err->message); - virConnectClose (conn); - caml_invalid_argument (errmsg); - } - - /* As a side-effect we che...