All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Praveen Kumar <kpraveen.lkml@gmail.com>, xen-devel@lists.xenproject.org
Subject: Re: Issue while bringing up libvirtd.service
Date: Fri, 9 Dec 2016 14:07:22 +0100	[thread overview]
Message-ID: <1481288842.3445.245.camel@citrix.com> (raw)
In-Reply-To: <CABcWhv4Gkya_XaeVWheB7KO4OXKtoKcqa9PddEuChSBcKcOHWA@mail.gmail.com>


[-- 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

  reply	other threads:[~2016-12-09 13:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-07 19:41 Issue while bringing up libvirtd.service Praveen Kumar
2016-12-09 13:07 ` Dario Faggioli [this message]
2016-12-09 19:29   ` Praveen Kumar
2016-12-09 13:21 ` Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1481288842.3445.245.camel@citrix.com \
    --to=dario.faggioli@citrix.com \
    --cc=kpraveen.lkml@gmail.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.