search for: virdomaindefinexml

Displaying 20 results from an estimated 45 matches for "virdomaindefinexml".

2011 Sep 09
1
virDomainDefineXml Issue
Hello Everyone, I am facing a problem in defining the xml for domain creation using libvirt. I am using Xen hypervisor. domPtr = lib.virDomainDefineXML(conPtr, domainXML); I get the following error: "libvir: Xen Daemon error : XML error: failed to parse domain description" Any suggestions are welcome. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/ar...
2013 Jun 18
2
libvirt hang on domain attemp to create domain
good day, i am trying to create domain via virDomainDefineXML. and my program hanging, also i failed to caonnect to libvirt daemon with virt-manager after this, only killing libvirtd via SIGKILL and restarting it solveing hang (i mean after restart i able to connect with virt-manager), i using following domain xml <?xml version="1.0" encodin...
2012 Jan 24
2
how to change existing domain xml?
Hi. I'm trying to change network settings for a domain via libvirt (the driver is xenapi) with no success. According to its sources, 'virsh edit' uses virDomainGetXMLDesc(), allows to edit the received xml and then use virDomainDefineXML(). In case of xenapi driver it leads to a new vm creation (with the same name and edited settings). Looking through the list of API functions I failed to find a function like virDomainUpdateXML() that would change configuration of existing domain. Could you please suggest a way to do it? Thank...
2010 Oct 01
1
undefining and redefining a Domain
...printf("domain already defined...\n"); if (virDomainUndefine(dom)) printf("...unable to undefine!!!\n"); else { printf("...undefined."); free(dom); } } dom = virDomainDefineXML(virt, SOME_XML); if (dom != NULL) { const char *name = virDomainGetName(dom); printf("NAME IS NOW: %s\n", name); } else printf("dom is NULL!\n"); When executed the first time, the code correctly defines the domain, and prints:...
2013 Jun 18
2
Re: libvirt hang on domain attemp to create domain
В письме от Вторник, 18-июн-2013 12:10:41 пользователь Michal Privoznik написал: > On 18.06.2013 07:14, Александр wrote: > > good day, i am trying to create domain via virDomainDefineXML. and my > > program hanging, also i failed to caonnect to libvirt daemon with > > virt-manager after this, only killing libvirtd via SIGKILL and restarting > > it solveing hang (i mean after restart i able to connect with > > virt-manager), i using following domain xml >...
2013 Jun 19
3
Re: libvirt hang on domain attemp to create domain
...атель Michal Privoznik написал: > On 18.06.2013 22:21, Александр wrote: > > В письме от Вторник, 18-июн-2013 12:10:41 пользователь Michal Privoznik > > > > написал: > >> On 18.06.2013 07:14, Александр wrote: > >>> good day, i am trying to create domain via virDomainDefineXML. and my > >>> program hanging, also i failed to caonnect to libvirt daemon with > >>> virt-manager after this, only killing libvirtd via SIGKILL and > >>> restarting > >>> it solveing hang (i mean after restart i able to connect with > >>>...
2016 Oct 13
3
Libvirt adds extra parameters in domain XML
Hello, In my C++ code, I generate my own domain XML file and I use virDomainCreateXML or virDomainDefineXML to launch my qemu VM. However, when I get to check which commands are sent to the qemu commandline, I find that libvirt has added so many extra parameters to the ones I have already set. How can I prevent libvirt from adding any extra parameters to the ones I originally defined in the domain XML?...
2013 Jun 20
2
Re: libvirt hang on domain attemp to create domain
..., 18-июн-2013 12:10:41 пользователь Michal >>>>>>> Privoznik >>>>>>> >>>>>>> написал: >>>>>>>> On 18.06.2013 07:14, Александр wrote: >>>>>>>>> good day, i am trying to create domain via virDomainDefineXML. >>>>>>>>> and my >>>>>>>>> program hanging, also i failed to caonnect to libvirt daemon with >>>>>>>>> virt-manager after this, only killing libvirtd via SIGKILL and >>>>>>>>> restarting &gt...
2012 Aug 22
0
libvir: Domain Config error : internal error incorrect root element
hi, When I use dom = virDomainDefineXML(conn, xml) to define xml, I countered a problem that " libvir: Domain Config error : internal error incorrect root element". Could you please tell me what's wrong with it? I tend to debug such problem above by gdb to step into virDomainDefineXML. When I press "step" in gd...
2013 Jul 08
2
Re: deadlock on connection loosing
...0-июн-2013 03:41:37 пользователь Александр написал: >> В письме от Вторник, 25-июн-2013 11:47:10 пользователь Michal Privoznik .... > > i have found source of problem, my code looks like this: > > int count = virConnectListAllDomains(connection, NULL, 0); > .... > domain = virDomainDefineXML(connection, d.write_to_string().c_str()); > > > call to virConnectListAllDomains always cause libvirt deadlock. > > and another question, is here exists any other way to determinate number of > persistent domains ? > This code is just a reproducer. Client shouldn't be...
2013 Jun 20
0
Re: libvirt hang on domain attemp to create domain
...>>>>>> В письме от Вторник, 18-июн-2013 12:10:41 пользователь Michal Privoznik >>>>>> >>>>>> написал: >>>>>>> On 18.06.2013 07:14, Александр wrote: >>>>>>>> good day, i am trying to create domain via virDomainDefineXML. and my >>>>>>>> program hanging, also i failed to caonnect to libvirt daemon with >>>>>>>> virt-manager after this, only killing libvirtd via SIGKILL and >>>>>>>> restarting >>>>>>>> it solveing hang (i...
2013 Jun 20
0
Re: libvirt hang on domain attemp to create domain
...ьзователь Michal > >>>>>>> Privoznik > >>>>>>> > >>>>>>> написал: > >>>>>>>> On 18.06.2013 07:14, Александр wrote: > >>>>>>>>> good day, i am trying to create domain via virDomainDefineXML. > >>>>>>>>> and my > >>>>>>>>> program hanging, also i failed to caonnect to libvirt daemon with > >>>>>>>>> virt-manager after this, only killing libvirtd via SIGKILL and > >>>>>>>&gt...
2018 Apr 26
2
how xml generated
hi : i create a domain by virt-manager tool, then there is a xxx.xml generated in /etc/libvirt/qemu/. so, my question is how the xx.xml generated? What the code involves in libvirt ? Thanks! -- Have a good day
2010 Oct 01
0
how to programmatically undefine and redefine a Domain?
...printf("domain already defined...\n"); if (virDomainUndefine(dom)) printf("...unable to undefine!!!\n"); else { printf("...undefined."); free(dom); } } dom = virDomainDefineXML(virt, SOME_XML); if (dom != NULL) { const char *name = virDomainGetName(dom); printf("NAME IS NOW: %s\n", name); } else printf("dom is NULL!\n"); When executed the first time, the code correctly defines the domain, and prints:...
2013 Jun 18
0
Re: libvirt hang on domain attemp to create domain
On 18.06.2013 07:14, Александр wrote: > good day, i am trying to create domain via virDomainDefineXML. and my program > hanging, also i failed to caonnect to libvirt daemon with virt-manager after > this, only killing libvirtd via SIGKILL and restarting it solveing hang (i > mean after restart i able to connect with virt-manager), i using following > domain xml > > <?xml v...
2013 Jun 19
0
Re: libvirt hang on domain attemp to create domain
On 18.06.2013 22:21, Александр wrote: > В письме от Вторник, 18-июн-2013 12:10:41 пользователь Michal Privoznik > написал: >> On 18.06.2013 07:14, Александр wrote: >>> good day, i am trying to create domain via virDomainDefineXML. and my >>> program hanging, also i failed to caonnect to libvirt daemon with >>> virt-manager after this, only killing libvirtd via SIGKILL and restarting >>> it solveing hang (i mean after restart i able to connect with >>> virt-manager), i using following doma...
2009 Aug 26
2
Error starting a virtual machine
...t='0'/></serial></devices><features><acpi/><apic/></features></domain> ERROR Wed Aug 26 14:33:29 -0600 2009 (12750) Task action processing failed: RuntimeError: Error defining virtual machine: Error: Error creating domain using xml description (virDomainDefineXML). Subsystem unknown: internal error no supported architecture for os type 'hvm' in NodeWrap.cpp:ManagementMethod:414 ERROR Wed Aug 26 14:33:29 -0600 2009 (12750) /usr/share/ovirt-server/task-omatic/taskomatic.rb:395:in `task_start_vm'/usr/share/ovirt-server/task-omatic/taskomatic.rb...
2011 Aug 26
1
Help!
Buddy, I am a noob in libvirt develop. When I want to create a domain by using virDomainDefineXML and displays a window on the host desktop. But when I add the line " <graphics type='sdl' display=':0.0'/>" into the config xml file, the error as below will happen. libvir: QEMU error : internal error process exited while connecting to monitor: Could not initialize...
2013 Jun 30
2
Re: deadlock on connection loosing
...n virDomainObjListAddLocked.isra.54.25425 () from /usr/lib64/libvirt.so.0 #6 0x00007f574f0bf557 in virDomainObjListAdd () from /usr/lib64/libvirt.so.0 #7 0x00007f5741e7e8bf in qemuDomainDefineXML.40992 () from /usr/lib64/libvirt/connection-driver/libvirt_driver_qemu.so #8 0x00007f574f06eddb in virDomainDefineXML () from /usr/lib64/libvirt.so.0 #9 0x00007f574facac6d in remoteDispatchDomainDefineXMLHelper.10498 () #10 0x00007f574f04ec27 in virNetServerProgramDispatch () from /usr/lib64/libvirt.so.0 #11 0x00007f574f04f128 in virNetServerHandleJob.78060 () from /usr/lib64/libvirt.so.0 #12 0x00007f574f17d1db...
2015 Apr 21
3
Re: QemuDomainObjEndJob called when libvirtd is started and libvirt insists qemu is using the wrong disk source.
...int, you could > get a backtrace with the "bt" command and that might give us some useful > info about where it is coming from. > > Oh, by the way, are these perhaps transient domains started with > virDomainCreate*? Or are they standard persistent domains defined with > virDomainDefineXML? > > (Also, I'll just mention that qemuProcessKill() is called from > qemuProcessStop(), and I notice that is called in a couple places > related to snapshot create and revert which you mentioned in the > original message. Since this isn't normal behavior, and the snapshot &g...