From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jaggi, Manish" Subject: Re: Using Libvirtd with virt-manager on aarch64 Date: Wed, 21 Jan 2015 16:23:04 +0000 Message-ID: <1421857382055.6630@caviumnetworks.com> References: <1421410606285.98486@caviumnetworks.com> <1421429287672.21500@caviumnetworks.com> <1421694570245.54845@caviumnetworks.com> <1421698580243.46962@caviumnetworks.com> <1421759702301.95717@caviumnetworks.com>, Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3800835042987766727==" Return-path: In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Clark Laughlin Cc: "xen-devel@lists.xensource.com" , Ian Campbell , Stefano Stabellini , "Kumar, Vijaya" , "jfehlig@suse.com" , "Anthony.Perard@citrix.com" , Kiarie Kahurani List-Id: xen-devel@lists.xenproject.org --===============3800835042987766727== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_14218573820556630caviumnetworkscom_" --_000_14218573820556630caviumnetworkscom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ________________________________ From: Clark Laughlin Sent: Tuesday, January 20, 2015 6:57 PM To: Jaggi, Manish Cc: Stefano Stabellini; jfehlig@suse.com; Kiarie Kahurani; Kumar, Vijaya; A= nthony.Perard@citrix.com; Ian Campbell; xen-devel@lists.xensource.com Subject: Re: Using Libvirtd with virt-manager on aarch64 I will check and see if I still have it, but I have moved on to other work = and have already destroyed that build/test environment. [Manish] Please it would really help I would love to give you a link to Linaro-generated build output, but we ar= e still in the process of getting that setup and running as well. If you follow the steps in the document (or the steps in the script), you e= nd up having to build both xen and xen tools. You can not use any of the d= istro-provided packages. [Manish] I have built the tools and my ubuntu is used as dom0. You will also need to build libvirt, as the libvirt in the distro packages = does not have xen support enabled. [Manish] The build fails with trivial errors like test c code does not have= main. It appears that something is missing in my setup and I need to spend= more time on it, which at the moment I don't have. What version of Ubuntu are you using? [Manish] Using the link given on the linaro devstack page. Only difference= is I used the rootfs. - Clark On Tuesday, January 20, 2015, Jaggi, Manish > wrote: ________________________________________ From: Stefano Stabellini Sent: Tuesday, January 20, 2015 5:04 AM To: Jaggi, Manish Cc: Stefano Stabellini; clark.laughlin@linaro.org; jfehlig@suse.com; Kiarie= Kahurani; Kumar, Vijaya; Anthony.Perard@citrix.com; Ian Campbell; xen-deve= l@lists.xensource.com Subject: Re: Using Libvirtd with virt-manager on aarch64 On Mon, 19 Jan 2015, Jaggi, Manish wrote: > (B) solved, it was a small copy. > (A) Still not able to fix. > > ________________________________________ > From: Jaggi, Manish > Sent: Tuesday, January 20, 2015 12:39 AM > To: Stefano Stabellini; clark.laughlin@linaro.org > Cc: jfehlig@suse.com; Kiarie Kahurani; Kumar, Vijaya; Anthony.Perard@citr= ix.com; Ian Campbell; xen-devel@lists.xensource.com > Subject: Re: Using Libvirtd with virt-manager on aarch64 > > Hi Stefano / Clark, > > I thought ubuntu dom0 is the better way to get libvirt working, so follow= ing the steps, > (A) there is a build error, if you can help with > > root@manish-thunder-dev:/build/libvirt-upstream/libvirt# debuild -us -uc = -i -I > Fatal Python error: Failed to open /dev/urandom > Aborted (core dumped) /dev/urandom is a common Linux device for pseudo-randomness, see http://en.wikipedia.org/?title=3D/dev/random. It is not Xen specific or board specific. I don't know why you don't have it in your installation. Have you tried creating it? mknod -m 444 /dev/urandom c 1 9 [manish] I am running in chroot environment so it could be an issue. Btw Is it possible to get the libvirtd deb so that i can just test it out i= f it works as desired. Clark can you please fwd. > (B) Also, I was using opensuse image which I believe had xencomons xensto= red etc. > How do i get them ? Do i need to do apt-get install xen-tools > > I am stuck on these two points. > > -Regards > Manish > > ________________________________________ > From: Stefano Stabellini > Sent: Monday, January 19, 2015 4:01 PM > To: Jaggi, Manish > Cc: Stefano Stabellini; clark.laughlin@linaro.org; jfehlig@suse.com; Kiar= ie Kahurani; Kumar, Vijaya; Anthony.Perard@citrix.com; Ian Campbell; xen-de= vel@lists.xensource.com > Subject: Re: Using Libvirtd with virt-manager on aarch64 > > On Fri, 16 Jan 2015, Jaggi, Manish wrote: > > Hi Stefano /clark, > > Thanks for sharing the link. For dom0 I am using openSuse. > > I have followed the steps listed on the(https://libvirt.org/compiling.h= tml#building) to build and install. I believe build-librvit-deb would be do= ing the same steps or I need to create libvirt-xen.spec.in ? > > You are right: at the end of build-librvit-deb, the script calls > debuild, that is not going to work on opensuse. > > I suggest you avoid build-librvit-deb and build libvirt by hand, as from > the webpage you linked. > > > > > I need some pointers on what could be wrong in my setup because of whic= h I am getting virsh list empty. > > One thing I noted that virsh is able to connect to xen:/// after /etc/i= nit.d/xencommons start is done. > > I am using xen 4.5 rc1. > > > > Is virsh list working in your setup? > > virsh is supposed to be working correctly. Have you tried creating any > guests via virsh? > > > > > -Regards > > Manish > > > > ________________________________________ > > From: Stefano Stabellini > > Sent: Friday, January 16, 2015 8:44 PM > > To: Jaggi, Manish > > Cc: jfehlig@suse.com; Kiarie Kahurani; Stefano Stabellini; Kumar, Vijay= a; Anthony.Perard@citrix.com; Ian Campbell; xen-devel@lists.xensource.com; = clark.laughlin@linaro.org > > Subject: Re: Using Libvirtd with virt-manager on aarch64 > > > > Hello Manish, > > recently Clark Laughlin (CC'ed) got OpenStack, libvirt and Xen all > > working together on ARM. He wrote the following wiki page: > > > > https://wiki.linaro.org/OpenStack/DevstackOnXenARM > > > > Cheers, > > > > Stefano > > > > On Fri, 16 Jan 2015, Jaggi, Manish wrote: > > > Hi Jim, > > > > > > > > > I am trying to run libvirtd / virsh / virt-manager on aarch64 platfor= m (Cavium thunderX). > > > > > > Am able to build from the git and able to connect virsh with xen:/// = but am not able to get the output of list. > > > > > > vish nodeinfo command is working. > > > > > > > > > ?Saw patches in the git log > > > - Add support for parsing/formating Xen XL config > > > - tests: Tests for the xen-xl parser > > > > > > Could you please help with the steps / pointers to run virsh / virt-m= anager with libvirtd. > > > ?-Regards > > > Manish > > > > > > > > > --_000_14218573820556630caviumnetworkscom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable



From: Clark Laughlin <cl= ark.laughlin@linaro.org>
Sent: Tuesday, January 20, 2015 6:57 PM
To: Jaggi, Manish
Cc: Stefano Stabellini; jfehlig@suse.com; Kiarie Kahurani; Kumar, Vi= jaya; Anthony.Perard@citrix.com; Ian Campbell; xen-devel@lists.xensource.co= m
Subject: Re: Using Libvirtd with virt-manager on aarch64
 
I will check and see if I still have it, but I have moved on to other = work and have already destroyed that build/test environment.

[Manish] Please it would really help

I would love to give you a link to Linaro-generated build output, but = we are still in the process of getting that setup and running as well.

If you follow the steps in the document (or the steps in the script), = you end up having to build both xen and xen tools.  You can not use an= y of the distro-provided packages.

[Manish] I have built the tools and my ubuntu is used as dom0.
 
You will also need to build libvirt, as the libvirt in the distro pack= ages does not have xen support enabled.
[Manish] The build fails with trivial errors like test c code does not= have main. It appears that something is missing in my setup and I need to = spend more time on it, which at the moment I don't have.

What version of Ubuntu are you using?
[Manish] Using the  link given on the linaro devstack page. Only = difference is I used the rootfs.

- Clark


On Tuesday, January 20, 2015, Jaggi, Manish <Manish.Jaggi@caviumnetworks.com> wrote:


________________________________________
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com<= /a>>
Sent: Tuesday, January 20, 2015 5:04 AM
To: Jaggi, Manish
Cc: Stefano Stabellini;
clark.laughlin@linaro.org; jfehlig@suse.com; Kiarie Kahurani; Kumar, Vijaya; Anthony.Perard@citrix.com; Ian Campbell; xen-= devel@lists.xensource.com
Subject: Re: Using Libvirtd with virt-manager on aarch64

On Mon, 19 Jan 2015, Jaggi, Manish wrote:
> (B) solved, it was a small copy.
> (A) Still not able to fix.
>
> ________________________________________
> From: Jaggi, Manish
> Sent: Tuesday, January 20, 2015 12:39 AM
> To: Stefano Stabellini; clark.laughlin@linaro.org
> Cc: jfehlig@suse.com; Kiarie Kahurani; Kumar, Vijaya;= Anthony.Perard@citrix.com; Ian Campbell; xen-devel@lists.x= ensource.com
> Subject: Re: Using Libvirtd with virt-manager on aarch64
>
> Hi Stefano / Clark,
>
> I thought ubuntu dom0 is the better way to get libvirt working, so fol= lowing the steps,
> (A) there is a build error, if you can help with
>
> root@manish-thunder-dev:/build/libvirt-upstream/libvirt# debuild -us -= uc -i -I
> Fatal Python error: Failed to open /dev/urandom
> Aborted (core dumped)

/dev/urandom is a common Linux device for pseudo-randomness, see
= http://en.wikipedia.org/?title=3D/dev/random. It is not Xen specific or=
board specific. I don't know why you don't have it in your installation.
Have you tried creating it?

mknod -m 444 /dev/urandom c 1 9

[manish] I am running in chroot environment so it could be an issue.
Btw Is it possible to get the libvirtd deb so that i can just test it out i= f it works as desired. Clark can you please fwd.


> (B) Also, I was using opensuse image which I believe had xencomons xen= stored etc.
> How do i get them ? Do i need to do apt-get install xen-tools
>
> I am stuck on these two points.
>
> -Regards
> Manish
>
> ________________________________________
> From: Stefano Stabellini <stefano.stabellini@eu.citrix= .com>
> Sent: Monday, January 19, 2015 4:01 PM
> To: Jaggi, Manish
> Cc: Stefano Stabellini; clark.laughlin@linaro.org; jfehlig@suse.com; Kiarie Kahurani; Kumar, Vijaya; Anthony.Perard@citrix.com; Ian Campbell; xen-= devel@lists.xensource.com
> Subject: Re: Using Libvirtd with virt-manager on aarch64
>
> On Fri, 16 Jan 2015, Jaggi, Manish wrote:
> > Hi Stefano /clark,
> > Thanks for sharing the link. For dom0 I am using openSuse.
> > I have followed the steps listed on the(https://libvirt.org/compil= ing.html#building) to build and install. I believe build-librvit-deb wo= uld be doing the same steps or I need to create libvirt-xen.spec.i= n ?
>
> You are right: at the end of build-librvit-deb, the script calls
> debuild, that is not going to work on opensuse.
>
> I suggest you avoid build-librvit-deb and build libvirt by hand, as fr= om
> the webpage you linked.
>
>
>
> > I need some pointers on what could be wrong in my setup because o= f which I am getting virsh list empty.
> > One thing I noted that virsh is able to connect to xen:/// after = /etc/init.d/xencommons start is done.
> > I am using xen 4.5 rc1.
> >
> > Is virsh list working in your setup?
>
> virsh is supposed to be working correctly. Have you tried creating any=
> guests via virsh?
>
>
>
> > -Regards
> > Manish
> >
> > ________________________________________
> > From: Stefano Stabellini <stefano.stabellini@eu.c= itrix.com>
> > Sent: Friday, January 16, 2015 8:44 PM
> > To: Jaggi, Manish
> > Cc: jfehlig@suse.com; Kiarie Kahurani; Stefano S= tabellini; Kumar, Vijaya; Anthony.Perard@citrix.com; Ian Campbell; xen-= devel@lists.xensource.com; clark.laughlin@linaro.org
> > Subject: Re: Using Libvirtd with virt-manager on aarch64
> >
> > Hello Manish,
> > recently Clark Laughlin (CC'ed) got OpenStack, libvirt and Xen al= l
> > working together on ARM.  He wrote the following wiki page:<= br> > >
> > https://wiki.linaro.org/OpenStack/DevstackOnXenARM
> >
> > Cheers,
> >
> > Stefano
> >
> > On Fri, 16 Jan 2015, Jaggi, Manish wrote:
> > > Hi Jim,
> > >
> > >
> > > I am trying to run libvirtd / virsh / virt-manager on aarch6= 4 platform (Cavium thunderX).
> > >
> > > Am able to build from the git and able to connect virsh with= xen:/// but am not able to get the output of list.
> > >
> > > vish nodeinfo command is working.
> > >
> > >
> > > ​Saw  patches in the git log
> > > - Add support for parsing/formating Xen XL config
> > > - tests: Tests for the xen-xl parser
> > >
> > > Could you please help with the steps / pointers to run virsh= / virt-manager with libvirtd.
> > > ​-Regards
> > > Manish
> > >
> > >
> >
>
--_000_14218573820556630caviumnetworkscom_-- --===============3800835042987766727== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============3800835042987766727==--