Hello guys, I''ve compiled the xen sourcecode and it gave me no errors, but I don''t know what to do now! how to add xen kernel to the grub menu and how to make it run? I''ve used the "xen-hypervisor-amd64" on ubuntu 12.04, but now I need to compile the sourcecode on centos 6.4 Thanks, Mohammad Altahat. _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Wed, 2013-06-05 at 00:27 -0700, Mohammad Altahat wrote:> I''ve compiled the xen sourcecode and it gave me no errors, but I don''t > know what to do now! how to add xen kernel to the grub menu and how to > make it run? > I''ve used the "xen-hypervisor-amd64" on ubuntu 12.04, but now I need > to compile the sourcecode on centos 6.4There are guides for how to do this on wiki.xen.org and elsewhere available via search engines. Ian.
On Wed, Jun 05, 2013 at 12:27:33AM -0700, Mohammad Altahat wrote:> Hello guys, > > I''ve compiled the xen sourcecode and it gave me no errors, but I don''t know what to do now! how to add xen kernel to the grub menu and how to make it run? > I''ve used the "xen-hypervisor-amd64" on ubuntu 12.04, but now I need to compile the sourcecode on centos 6.4 > > Thanks, > Mohammad Altahat.Getting Xen to work in CentOS 6 is a bit tricky. Since Redhat decided that thay were no longer going to support it (they went with some other virtualization system), the default CentOS kernel is not compiled with Xen hypervisor support. This means that in order to make it work on CentOS, you will have to recompile the kernel. There are guides online with links to prebuilt repos that have modified kernels [1], but I cannot vouch for any of them. To be honest, getting Xen running on CentOS was (for me) more trouble than it was worth. I personally was able to run it on ArchLinux very well, but this may not be the best option for everyone. If you''re familiar with Ubuntu, perhaps you would consider using Debian? The jump would not be that hard to make, and Debian is well-suited to be a server OS. --Sean [1] http://www.howtoforge.com/virtualization-with-xen-on-centos-6.2-x86_64-paravirtualization-and-hardware-virtualization
On mer, 2013-06-05 at 10:30 -0400, Sean Greenslade wrote:> On Wed, Jun 05, 2013 at 12:27:33AM -0700, Mohammad Altahat wrote: > > Hello guys, > > > > I''ve compiled the xen sourcecode and it gave me no errors, but I don''t know what to do now! how to add xen kernel to the grub menu and how to make it run? > > I''ve used the "xen-hypervisor-amd64" on ubuntu 12.04, but now I need to compile the sourcecode on centos 6.4 > > > > Thanks, > > Mohammad Altahat. > > Getting Xen to work in CentOS 6 is a bit tricky. Since Redhat decided > that thay were no longer going to support it (they went with some other > virtualization system), the default CentOS kernel is not compiled with > Xen hypervisor support. This means that in order to make it work on > CentOS, you will have to recompile the kernel. There are guides online > with links to prebuilt repos that have modified kernels [1], but I > cannot vouch for any of them. > > To be honest, getting Xen running on CentOS was (for me) more trouble > than it was worth. I personally was able to run it on ArchLinux very > well, but this may not be the best option for everyone. If you''re > familiar with Ubuntu, perhaps you would consider using Debian? The jump > would not be that hard to make, and Debian is well-suited to be a server > OS. >Fedora is also fine... It''s almost a matter of `yum install xen''. The main difference with Debian, is that you''re going to get more recent versions of both Xen and Linux (at least wrt Debian stable and testing). However, CentOS is also going to be a lot better with this respect, as it has been announced during last edition of FOSDEM: https://fosdem.org/2013/schedule/event/xen_centos6/ 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) _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Wed, Jun 05, 2013 at 07:08:52PM +0200, Dario Faggioli wrote: <snip>> Fedora is also fine... It''s almost a matter of `yum install xen''. The > main difference with Debian, is that you''re going to get more recent > versions of both Xen and Linux (at least wrt Debian stable and testing). > > However, CentOS is also going to be a lot better with this respect, as > it has been announced during last edition of FOSDEM: > > https://fosdem.org/2013/schedule/event/xen_centos6/ > > 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) >That is interesting, I didn''t know about that project. I would love to see a working (semi-)official Xen package set for CentOS 6. --Sean
I''m presuming that it would have something to do with xen kernel stuff being merged into the main kernel - that kind of makes redhat (and decendants) switch to kvm moot - doesn''t it? As long as there are no conflicts - but definitely - a mainstream official package set should make everything easier and help with adoption - I''m looking forward to that as well :-) Cheers, Mitch -----Original Message----- From: xen-users-bounces@lists.xen.org [mailto:xen-users-bounces@lists.xen.org] On Behalf Of Sean Greenslade Sent: June 5, 2013 10:13 AM To: Dario Faggioli Cc: Mohammad Altahat; xen-users@lists.xen.org Subject: Re: [Xen-users] Running Xen after compile On Wed, Jun 05, 2013 at 07:08:52PM +0200, Dario Faggioli wrote: <snip>> Fedora is also fine... It''s almost a matter of `yum install xen''. The > main difference with Debian, is that you''re going to get more recent > versions of both Xen and Linux (at least wrt Debian stable and testing). > > However, CentOS is also going to be a lot better with this respect, as > it has been announced during last edition of FOSDEM: > > https://fosdem.org/2013/schedule/event/xen_centos6/ > > 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) >That is interesting, I didn''t know about that project. I would love to see a working (semi-)official Xen package set for CentOS 6. --Sean _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Wed, Jun 05, 2013 at 06:31:26PM +0000, mitch@bitblock.net wrote:> I''m presuming that it would have something to do with xen kernel stuff being merged into the main kernel - that kind of makes redhat (and decendants) switch to kvm moot - doesn''t it? > As long as there are no conflicts - but definitely - a mainstream official package set should make everything easier and help with adoption - I''m looking forward to that as well :-) > Cheers, > Mitch >Not exactly. The Xen stuff has been merged into the kernel for quite some time now. As with almost every feature of the kernel, however, it is configurable to be compiled in or not. The stock CentOS 6 kernels do not have the Xen features enabled at compile time, and therefore cannot run Xen even though the versions of kernels that they run _could_ support it. It''s something they actively choose to disable. --Sean
----- Original Message -----> From: "Sean Greenslade" <sean@seangreenslade.com> > To: "Mohammad Altahat" <maaltahat@yahoo.com> > Cc: xen-users@lists.xen.org > Sent: Wednesday, June 5, 2013 7:30:17 AM > Subject: Re: [Xen-users] Running Xen after compile > > On Wed, Jun 05, 2013 at 12:27:33AM -0700, Mohammad Altahat wrote: > > Hello guys, > > > > I've compiled the xen sourcecode and it gave me no errors, but I > > don't know what to do now! how to add xen kernel to the grub menu > > and how to make it run? > > I've used the "xen-hypervisor-amd64" on ubuntu 12.04, but now I > > need to compile the sourcecode on centos 6.4 > > > > Thanks, > > Mohammad Altahat. > > Getting Xen to work in CentOS 6 is a bit tricky. Since Redhat decided > that thay were no longer going to support it (they went with some > other > virtualization system), the default CentOS kernel is not compiled > with > Xen hypervisor support. This means that in order to make it work on > CentOS, you will have to recompile the kernel. There are guides > online > with links to prebuilt repos that have modified kernels [1], but I > cannot vouch for any of them. > > To be honest, getting Xen running on CentOS was (for me) more trouble > than it was worth. I personally was able to run it on ArchLinux very > well, but this may not be the best option for everyone. If you're > familiar with Ubuntu, perhaps you would consider using Debian? The > jump > would not be that hard to make, and Debian is well-suited to be a > server > OS. > > --Sean > > [1] > http://www.howtoforge.com/virtualization-with-xen-on-centos-6.2-x86_64-paravirtualization-and-hardware-virtualizationI agree CentOS 6.x required some hoops. I got upstream 3.9.3 working (the stock kernel's config wouldn't import to the sources, so I just used the one provided). The only troubles I encountered where during "make install" when the build would create the ramdisk and not be able to find certain kernel modules to include. So I'd search in menuconfig for them, enable as modules and retry. I can make the config file I used available. -Alex _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users