Hello, Is someone know how to recompiling linux kernel (2.6.22) to work properly on OpenSolaris Xen in paravirtaulization level ? Or how to run linux on xVM on Intel processor which haven''t VT bit ? Regards, Maciej This message posted from opensolaris.org
Maciej Browarski wrote:> Hello, > Is someone know how to recompiling linux kernel (2.6.22) to work > properly on OpenSolaris Xen in paravirtaulization level ? Or how to run > linux on xVM on Intel processor which haven''t VT bit ?IMO this is the same question in two different ways, so I''ll just answer once ;-): You don''t just "recompile" a kernel to be (Xen-) PV aware, it''s a porting effort. That means you need to find a kernel that has been "ported to" Xen. AFAIK, many modern (if not most) Linux distros deliver and can install such a kernel (not much first-hand experience though). As far as building is concerned, a more linux-oriented mailing list is probably a better place to send this question to. HTH Michael -- Michael Schuster Sun Microsystems, Inc. recursion, n: see ''recursion''
Maciej Browarski wrote:> Hello, > Is someone know how to recompiling linux kernel (2.6.22) to work properly on OpenSolaris Xen in paravirtaulization level ? Or how to run linux on xVM on Intel processor which haven''t VT bit ?What distro are you looking to run? You can install a PV version of fedora and openSUSE http://www.opensolaris.org/os/community/xen/docs/fedora-install.htm http://www.opensolaris.org/os/community/xen/docs/opensuse-install.htm You can use one of those distros to build a custom kernel.. For gentoo, I compiled the linux kernel included with the hypervisor source. MRJ> Regards, > Maciej > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org-- Mark Johnson <mark.johnson@sun.com> Sun Microsystems, Inc. (781) 442-0869
Mark Johnson wrote:> Maciej Browarski wrote: > >> Hello, >> Is someone know how to recompiling linux kernel (2.6.22) to work properly on OpenSolaris Xen in paravirtaulization level ? Or how to run linux on xVM on Intel processor which haven''t VT bit ? >> > > What distro are you looking to run? > > You can install a PV version of fedora and openSUSE > http://www.opensolaris.org/os/community/xen/docs/fedora-install.htm > http://www.opensolaris.org/os/community/xen/docs/opensuse-install.htm > > You can use one of those distros to build a custom > kernel.. For gentoo, I compiled the linux kernel > included with the hypervisor source. > > > > MRJ > > > > >My favorite distro is Debian and I don''t see that they have kernel with xen. I''d like to compile kernel myself so I''m searching a procedure how to make it. On my computer I have: 1. Debian distro + gcc and etc., 2. OpenSolaris Nevada 66 with XEN, And my wish is to run debian on to top of XEN. I think, that I need Linux patch for 2.6.22 and some header file from XEN but, I don''t from whom, from OpenSolaris.org or from XenSource ? Have you any idea how to make it ? Regards, Maciej
Sriram Narayanan wrote:> On 9/27/07, Maciej Browarski <Maciej.Browarski@sun.com> wrote: > > >> My favorite distro is Debian and I don''t see that they have kernel with xen. >> I''d like to compile kernel myself so I''m searching a procedure how to >> make it. >> On my computer I have: >> 1. Debian distro + gcc and etc., >> 2. OpenSolaris Nevada 66 with XEN, >> And my wish is to run debian on to top of XEN. >> I think, that I need Linux patch for 2.6.22 and some header file >> from XEN but, I don''t from whom, from OpenSolaris.org or from XenSource ? >> Have you any idea how to make it ? >> > > http://www.debian-administration.org/articles/320 > > -- Sriram >Thanks for your reply and very good article, but I have one question more... Is there any difference, to compile linux kernel for Dom0 and DomU ? I''d like to have dom0 control by OpenSolaris and Linux for DomU (PV). Regards, Maciej
Maciej Browarski wrote:> > > Sriram Narayanan wrote: >> On 9/27/07, Maciej Browarski <Maciej.Browarski@sun.com> wrote: >> >> >>> My favorite distro is Debian and I don''t see that they have kernel with xen. >>> I''d like to compile kernel myself so I''m searching a procedure how to >>> make it. >>> On my computer I have: >>> 1. Debian distro + gcc and etc., >>> 2. OpenSolaris Nevada 66 with XEN, >>> And my wish is to run debian on to top of XEN. >>> I think, that I need Linux patch for 2.6.22 and some header file >>> from XEN but, I don''t from whom, from OpenSolaris.org or from XenSource ? >>> Have you any idea how to make it ? >>> >> http://www.debian-administration.org/articles/320 >> >> -- Sriram >> > Thanks for your reply and very good article, but I have one question more... > Is there any difference, to compile linux kernel for Dom0 and DomU ? > I''d like to have dom0 control by OpenSolaris and Linux for DomU (PV). >yes, you can compile the linux kernel for both dom0/domU. I have a kernel with every complied in statically.. I just did the following and other than a couple non critical errors which I skipped over, the debian installer is cranking away (doing a net install). (where vmlinux is the kernel I compiled) # pwd /tank/guests/install/debian # wget http://http.us.debian.org/debian/dists/etch/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz # dd if=/dev/zero of=disk.img bs=1024k seek=8k count=1 # cat guest.py kernel = "/tank/guests/install/debian/vmlinuz" ramdisk = "/tank/guests/install/debian/initrd.gz" memory = 512 name = "debian4-install" vif = [ '''' ] disk = [''file:/tank/guests/install/debian/disk.img,hda,w''] root = "console=xvc0" # # xm create -c guest.py -- Mark Johnson <mark.johnson@sun.com> Sun Microsystems, Inc. (781) 442-0869
Mark Johnson wrote:> Maciej Browarski wrote: > >> Sriram Narayanan wrote: >> >>> On 9/27/07, Maciej Browarski <Maciej.Browarski@sun.com> wrote: >>> >>> >>> >>>> My favorite distro is Debian and I don''t see that they have kernel with xen. >>>> I''d like to compile kernel myself so I''m searching a procedure how to >>>> make it. >>>> On my computer I have: >>>> 1. Debian distro + gcc and etc., >>>> 2. OpenSolaris Nevada 66 with XEN, >>>> And my wish is to run debian on to top of XEN. >>>> I think, that I need Linux patch for 2.6.22 and some header file >>>> from XEN but, I don''t from whom, from OpenSolaris.org or from XenSource ? >>>> Have you any idea how to make it ? >>>> >>>> >>> http://www.debian-administration.org/articles/320 >>> >>> -- Sriram >>> >>> >> Thanks for your reply and very good article, but I have one question more... >> Is there any difference, to compile linux kernel for Dom0 and DomU ? >> I''d like to have dom0 control by OpenSolaris and Linux for DomU (PV). >> >> > > yes, you can compile the linux kernel for both dom0/domU. > I have a kernel with every complied in statically.. > > I just did the following and other than a couple non > critical errors which I skipped over, the debian installer is > cranking away (doing a net install). (where vmlinux is the > kernel I compiled) > > # pwd > /tank/guests/install/debian > # wget http://http.us.debian.org/debian/dists/etch/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz > # dd if=/dev/zero of=disk.img bs=1024k seek=8k count=1 > # cat guest.py > kernel = "/tank/guests/install/debian/vmlinuz" > ramdisk = "/tank/guests/install/debian/initrd.gz" > memory = 512 > name = "debian4-install" > vif = [ '''' ] > disk = [''file:/tank/guests/install/debian/disk.img,hda,w''] > root = "console=xvc0" > # > > > # xm create -c guest.py > >Thanks for procedure. But what with 64bit linux ? I see on xen mailing list, that this is broken, but what with xen-opensolaris version ? Regards, Maciej
Maciej Browarski wrote:> Mark Johnson wrote: >> Maciej Browarski wrote: >> >>> Sriram Narayanan wrote: >>> >>>> On 9/27/07, Maciej Browarski <Maciej.Browarski@sun.com> wrote: >>>> >>>> >>>> >>>>> My favorite distro is Debian and I don''t see that they have kernel with xen. >>>>> I''d like to compile kernel myself so I''m searching a procedure how to >>>>> make it. >>>>> On my computer I have: >>>>> 1. Debian distro + gcc and etc., >>>>> 2. OpenSolaris Nevada 66 with XEN, >>>>> And my wish is to run debian on to top of XEN. >>>>> I think, that I need Linux patch for 2.6.22 and some header file >>>>> from XEN but, I don''t from whom, from OpenSolaris.org or from XenSource ? >>>>> Have you any idea how to make it ? >>>>> >>>>> >>>> http://www.debian-administration.org/articles/320 >>>> >>>> -- Sriram >>>> >>>> >>> Thanks for your reply and very good article, but I have one question more... >>> Is there any difference, to compile linux kernel for Dom0 and DomU ? >>> I''d like to have dom0 control by OpenSolaris and Linux for DomU (PV). >>> >>> >> yes, you can compile the linux kernel for both dom0/domU. >> I have a kernel with every complied in statically.. >> >> I just did the following and other than a couple non >> critical errors which I skipped over, the debian installer is >> cranking away (doing a net install). (where vmlinux is the >> kernel I compiled) >> >> # pwd >> /tank/guests/install/debian >> # wget http://http.us.debian.org/debian/dists/etch/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz >> # dd if=/dev/zero of=disk.img bs=1024k seek=8k count=1 >> # cat guest.py >> kernel = "/tank/guests/install/debian/vmlinuz" >> ramdisk = "/tank/guests/install/debian/initrd.gz" >> memory = 512 >> name = "debian4-install" >> vif = [ '''' ] >> disk = [''file:/tank/guests/install/debian/disk.img,hda,w''] >> root = "console=xvc0" >> # >> >> >> # xm create -c guest.py >> >> > Thanks for procedure. > But what with 64bit linux ? > I see on xen mailing list, that this is broken, but what with > xen-opensolaris version ?Seems to be working fine... I grabbed the 64-bit initrd and built a 64-bit linux kernel and the install is cranking away on a 64-bit dom0 now.. wget http://http.us.debian.org/debian/dists/etch/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz MRJ -- Mark Johnson <mark.johnson@sun.com> Sun Microsystems, Inc. (781) 442-0869