* Issue while bringing up libvirtd.service @ 2016-12-07 19:41 Praveen Kumar 2016-12-09 13:07 ` Dario Faggioli 2016-12-09 13:21 ` Wei Liu 0 siblings, 2 replies; 4+ messages in thread From: Praveen Kumar @ 2016-12-07 19:41 UTC (permalink / raw) To: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 1592 bytes --] Hi, I am new in Xen environment and trying to get VMs running with the build xen code base. But, am facing issue bringing up the libvirt deamon. I have installed latest unstable xen ( 4.9 ). There seems to be a conflict in library version and because of which I am getting below error : ... Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: Unable to configure libxl's memory management parameters Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: Initialization of LIBXL state driver failed: no error Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: Driver state initialization failed ... The problem is resolved when I remove libvirt-daemon-driver-libxl, but that seems to be removing libvirt package also and causing below error during vm-install : .... Dec 08 00:41:59 kpraveen.labs.blr.novell.com libvirtd[7005]: no connection driver available for xen:/// Dec 08 00:41:59 kpraveen.labs.blr.novell.com libvirtd[7005]: End of file while reading data: Input/output error .... I found that we have xen-libs of different version which is 4.7, but don't know if that is the root cause and how to upgrade that. As suggested, I have also rebuild xen tree and tried reinstalling, but the issue persists. Any guidance will be very much helpful to resolve this problem . Also, wanted to know, what others follow as best practices when there is a version change or if hit the similar problem. Just FYI, I am following https://wiki.xenproject.org/wiki/Compiling_Xen_From_Source link for compiling and installing xen. Thanks in advance. Regards, ~Praveen. [-- Attachment #1.2: Type: text/html, Size: 2258 bytes --] [-- Attachment #2: Type: text/plain, Size: 127 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue while bringing up libvirtd.service 2016-12-07 19:41 Issue while bringing up libvirtd.service Praveen Kumar @ 2016-12-09 13:07 ` Dario Faggioli 2016-12-09 19:29 ` Praveen Kumar 2016-12-09 13:21 ` Wei Liu 1 sibling, 1 reply; 4+ messages in thread From: Dario Faggioli @ 2016-12-09 13:07 UTC (permalink / raw) To: Praveen Kumar, xen-devel [-- Attachment #1.1: Type: text/plain, Size: 2557 bytes --] On Thu, 2016-12-08 at 01:11 +0530, Praveen Kumar wrote: > Hi, > Hey, > I am new in Xen environment and trying to get VMs running with the > build xen code base. > > But, am facing issue bringing up the libvirt deamon. I have installed > latest unstable xen ( 4.9 ). > There seems to be a conflict in library version and because of which > I am getting below error : > ... > Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: Unable > to configure libxl's memory management parameters > Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: > Initialization of LIBXL state driver failed: no error > Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: Driver > state initialization failed > ... > What distribution is this? In any case, if you are installing Xen (staging / 4.9) from the sources, and then installing libvirt's packages from the distro, that would not work. In fact, most likely, libvirt packages will bring in as a dependency the version of Xen hypervisor and toolstack that is also packaged by the distro. At which point, you have two Xen environments installed in the same host, which is asking for trouble. > I found that we have xen-libs of different version which is 4.7, but > don't know if that is the root cause and how to upgrade that. As > suggested, I have also rebuild xen tree and tried reinstalling, but > the issue persists. > Yep, here it is the version mismatch and double environment issue I was talking about. > Any guidance will be very much helpful to resolve this problem . > Also, wanted to know, what others follow as best practices when there > is a version change or if hit the similar problem. > Just FYI, I am following https://wiki.xenproject.org/wiki/Compiling_X > en_From_Source link for compiling and installing xen. > So, if you are able to build and install Xen from sources, you should, as a first step, verify that everything is working by creating a VM using the XL toolstack (`man xl', look at examples, search XL on our Wiki, etc). If you want to use libvirt, I don't think you have much alternative than building libvirt from sources as well. If I want to test or do some libvirt development on upstream Xen, that is what I do, FWIW. Regards, Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 819 bytes --] [-- Attachment #2: Type: text/plain, Size: 127 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue while bringing up libvirtd.service 2016-12-09 13:07 ` Dario Faggioli @ 2016-12-09 19:29 ` Praveen Kumar 0 siblings, 0 replies; 4+ messages in thread From: Praveen Kumar @ 2016-12-09 19:29 UTC (permalink / raw) To: Dario Faggioli, xen-devel, wei.liu2 On Fri, 2016-12-09 at 14:07 +0100, Dario Faggioli wrote: > > Thanks Dario and Wei Liu. I am able to create VMs using XL toolstack and removing old xen and libvirt packages. I think you both were right, I had double environment problem. Thanks once again for your suggestions. > On Thu, 2016-12-08 at 01:11 +0530, Praveen Kumar wrote: > > > > Hi, > > > Hey, > > > I am new in Xen environment and trying to get VMs running with the > > build xen code base. > > > > But, am facing issue bringing up the libvirt deamon. I have > > installed > > latest unstable xen ( 4.9 ). > > There seems to be a conflict in library version and because of > > which > > I am getting below error : > > ... > > Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: > > Unable > > to configure libxl's memory management parameters > > Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: > > Initialization of LIBXL state driver failed: no error > > Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: > > Driver > > state initialization failed > > ... > > > What distribution is this? In any case, if you are installing Xen > (staging / 4.9) from the sources, and then installing libvirt's > packages from the distro, that would not work. > > In fact, most likely, libvirt packages will bring in as a dependency > the version of Xen hypervisor and toolstack that is also packaged by > the distro. At which point, you have two Xen environments installed > in > the same host, which is asking for trouble. > > > > > I found that we have xen-libs of different version which is 4.7, > > but > > don't know if that is the root cause and how to upgrade that. As > > suggested, I have also rebuild xen tree and tried reinstalling, but > > the issue persists. > > > Yep, here it is the version mismatch and double environment issue I > was > talking about. > > > > > Any guidance will be very much helpful to resolve this problem . > > Also, wanted to know, what others follow as best practices when > > there > > is a version change or if hit the similar problem. > > Just FYI, I am following https://wiki.xenproject.org/wiki/Compiling > > _X > > en_From_Source link for compiling and installing xen. > > > So, if you are able to build and install Xen from sources, you > should, > as a first step, verify that everything is working by creating a VM > using the XL toolstack (`man xl', look at examples, search XL on our > Wiki, etc). > > If you want to use libvirt, I don't think you have much alternative > than building libvirt from sources as well. If I want to test or do > some libvirt development on upstream Xen, that is what I do, FWIW. > > Regards, ~Praveen. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue while bringing up libvirtd.service 2016-12-07 19:41 Issue while bringing up libvirtd.service Praveen Kumar 2016-12-09 13:07 ` Dario Faggioli @ 2016-12-09 13:21 ` Wei Liu 1 sibling, 0 replies; 4+ messages in thread From: Wei Liu @ 2016-12-09 13:21 UTC (permalink / raw) To: Praveen Kumar; +Cc: xen-devel, Wei Liu On Thu, Dec 08, 2016 at 01:11:24AM +0530, Praveen Kumar wrote: > Hi, > > I am new in Xen environment and trying to get VMs running with the build > xen code base. > > But, am facing issue bringing up the libvirt deamon. I have installed > latest unstable xen ( 4.9 ). > There seems to be a conflict in library version and because of which I am > getting below error : > ... > Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: Unable to > configure libxl's memory management parameters > Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: > Initialization of LIBXL state driver failed: no error > Dec 08 00:44:43 kpraveen.labs.blr.novell.com libvirtd[14603]: Driver state > initialization failed > ... Please make sure 'xl info' works before proceeding. > > The problem is resolved when I remove libvirt-daemon-driver-libxl, but that > seems to be removing libvirt package also and causing below error during If you're doing libvirt development, you don't want to use the package in your distro. > vm-install : > .... > Dec 08 00:41:59 kpraveen.labs.blr.novell.com libvirtd[7005]: no connection > driver available for xen:/// > Dec 08 00:41:59 kpraveen.labs.blr.novell.com libvirtd[7005]: End of file > while reading data: Input/output error > .... > > I found that we have xen-libs of different version which is 4.7, but don't > know if that is the root cause and how to upgrade that. As suggested, I > have also rebuild xen tree and tried reinstalling, but the issue persists. > Please make sure you remove all Xen packages installed in your host. > Any guidance will be very much helpful to resolve this problem . Also, > wanted to know, what others follow as best practices when there is a > version change or if hit the similar problem. > Just FYI, I am following > https://wiki.xenproject.org/wiki/Compiling_Xen_From_Source link for > compiling and installing xen. > > Thanks in advance. > > Regards, > > ~Praveen. > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > https://lists.xen.org/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-12-09 19:29 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-12-07 19:41 Issue while bringing up libvirtd.service Praveen Kumar 2016-12-09 13:07 ` Dario Faggioli 2016-12-09 19:29 ` Praveen Kumar 2016-12-09 13:21 ` Wei Liu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).