marcus
2008-Jan-28 14:41 UTC
[Xen-users] Problems running Debian as Guest System on SLES10 Dom0
Hi, I have a problem with my SLES10 xen system...I''m using xen 3.04. ok...first I created a debian guest system with debootstrap, i worked well by using this configuration: kernel = ''/boot/vmlinuz-xen'' ramdisk = ''/boot/initrd-xen'' memory = 256 name = "debian" vif = [ ''mac=00:16:3e:cd:ed:4b'' ] disk = [ ''file:/vm/tests/debian/disk0,xvda1,w'', ''file:/vm/tests/debian/disk1,xvda2,w''] root = "/dev/xvda1 ro" extra = ''xencons=tty1 console=tty1'' now i would like to use the graphical xserver, but the guest can''t start it, maybe its a problem of the emulation or...lets say it this way i dont know, should i add some parameter in my configuration so that i can use the graphical interface? ok now my second question. I WOULD LIKE TO USE THE DEBIAN KERNEL :). I tried to install the xen fixed kernel via apt on the machine. now i tried to install grub but it didn''t worked (i tried to edit the device.map manually for /dev/xvda/ but it didnt worked). Does everbody know how its possible to run a debian xen kernel on a SLES10 dom0? my configuration looks like this name = "debian" builder="linux" memory = 256 builder="linux" bootloader="/usr/lib/xen/boot/domUloader.py" bootargs="--entry=xvda1:/boot/vmlinuz-xen,/boot/initrd-xen" disk = [ ''file:/vm/tests/debian/disk0,xvda1,w'', ''file:/vm/tests/debian/disk1,xvda2,w''] vif = [ ''mac=00:16:3e:cd:ed:4b'' ] extra = ''xencons=tty1 console=tty1'' -- Marcus Herz -------------------------------------------------------- IT-Infrastructure -------------------------------------------------------- Max-Planck-Institute for the physics of complex systems Nöthnitzer Straße 38 01187 Dresden Tel: 0351 / 871 2104 Fax: 0351 / 871 1999 Mail: marcus@mpipks-dresden.mpg.de -------------------------------------------------------- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-Jan-28 15:58 UTC
[Xen-users] Problems running Debian as Guest System on SLES10 Dom0
On Jan 28, 2008 9:41 AM, marcus <marcus@pks.mpg.de> wrote:> Hi, > > I have a problem with my SLES10 xen system...I''m using xen 3.04. > ok...first I created a debian guest system with debootstrap, i worked > well by using this configuration: > > kernel = ''/boot/vmlinuz-xen'' > ramdisk = ''/boot/initrd-xen'' > memory = 256 > name = "debian" > vif = [ ''mac=00:16:3e:cd:ed:4b'' ] > disk = [ ''file:/vm/tests/debian/disk0,xvda1,w'', > ''file:/vm/tests/debian/disk1,xvda2,w''] > root = "/dev/xvda1 ro" > extra = ''xencons=tty1 console=tty1'' > > now i would like to use the graphical xserver, but the guest can''t start > it, maybe its a problem of the emulation or...lets say it this way i > dont know, should i add some parameter in my configuration so that i can > use the graphical interface? > > ok now my second question. I WOULD LIKE TO USE THE DEBIAN KERNEL :). > > I tried to install the xen fixed kernel via apt on the machine. now i > tried to install grub but it didn''t worked (i tried to edit the > device.map manually for /dev/xvda/ but it didnt worked). Does everbody > know how its possible to run a debian xen kernel on a SLES10 dom0? >You should be able to use pygrub. change bootloader to ''/usr/bin/pygrub'' add the file /boot/grub/menu.lst to the debian image. You don''t actually need grub installed i don''t think, since pygrub just reads the image for a menu.lst or grub.conf file. You just need the menu.lst file to contain a standard entry for the debian kernel you want to boot (make sure that it is within the debian image of course). Regards, Todd> > my configuration looks like this > name = "debian" > builder="linux" > memory = 256 > builder="linux" > bootloader="/usr/lib/xen/boot/domUloader.py" > bootargs="--entry=xvda1:/boot/vmlinuz-xen,/boot/initrd-xen" > disk = [ ''file:/vm/tests/debian/disk0,xvda1,w'', > ''file:/vm/tests/debian/disk1,xvda2,w''] > vif = [ ''mac=00:16:3e:cd:ed:4b'' ] > extra = ''xencons=tty1 console=tty1'' > > -- > Marcus Herz > -------------------------------------------------------- > IT-Infrastructure > -------------------------------------------------------- > Max-Planck-Institute for the physics of complex systems > > Nöthnitzer Straße 38 > 01187 Dresden > > Tel: 0351 / 871 2104 > Fax: 0351 / 871 1999 > Mail: marcus@mpipks-dresden.mpg.de > -------------------------------------------------------- > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jonathan Ervine
2008-Jan-29 01:58 UTC
Re: [Xen-users] Problems running Debian as Guest System on SLES10 Dom0
On Monday 28 January 2008 22:41:04 marcus wrote:> Hi, > > I have a problem with my SLES10 xen system...I''m using xen 3.04. > ok...first I created a debian guest system with debootstrap, i worked > well by using this configuration: > ok now my second question. I WOULD LIKE TO USE THE DEBIAN KERNEL :). > > I tried to install the xen fixed kernel via apt on the machine. now i > tried to install grub but it didn''t worked (i tried to edit the > device.map manually for /dev/xvda/ but it didnt worked). Does > everbody know how its possible to run a debian xen kernel on a SLES10 > dom0?You should be aware that Debian i586 32 bit kernels only seem to have the PAE variant available and this will not boot if you have installed a non-PAE kernel within the SLES 10 Dom0. If you are running 32 bit PAE or 64 bit x86_64 then you should be able to get the normal Debian kernel to boot. Jon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
marcus
2008-Jan-29 11:29 UTC
Re: [Xen-users] Problems running Debian as Guest System on SLES10 Dom0
Jonathan Ervine schrieb:> On Monday 28 January 2008 22:41:04 marcus wrote: > >> Hi, >> >> I have a problem with my SLES10 xen system...I''m using xen 3.04. >> ok...first I created a debian guest system with debootstrap, i worked >> well by using this configuration: >> ok now my second question. I WOULD LIKE TO USE THE DEBIAN KERNEL :). >> >> I tried to install the xen fixed kernel via apt on the machine. now i >> tried to install grub but it didn''t worked (i tried to edit the >> device.map manually for /dev/xvda/ but it didnt worked). Does >> everbody know how its possible to run a debian xen kernel on a SLES10 >> dom0? >> > > You should be aware that Debian i586 32 bit kernels only seem to have > the PAE variant available and this will not boot if you have installed > a non-PAE kernel within the SLES 10 Dom0. If you are running 32 bit PAE > or 64 bit x86_64 then you should be able to get the normal Debian > kernel to boot. > > Jon > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >its quite funny because sles 10 does not have any pygrub, the only way to create vms is the domUloader. yesterday I tried had some idea but i dont know if this is a good or a worse idea maybe you can give my some feedback. ok i thought maybe its possible to create a block device with dd (the normal way). than create a partition table on it and create some partitions with filesystem on it. afterwards to mount this first partition an do the installation stuff with debootstrap.....like i told you i created a partition table...and now its possible to install grub on the block-device, which can start and load the normal xen fixed kernel from debian.... what do you think? a worse idea or a good idea ^^ regards marcus -- Marcus Herz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-Jan-29 16:21 UTC
Re: [Xen-users] Problems running Debian as Guest System on SLES10 Dom0
its quite funny because sles 10 does not have any pygrub, the only way> to create vms is the domUloader. > yesterday I tried had some idea but i dont know if this is a good or a > worse idea maybe you can give my some feedback. >Why doesn''t sles 10 have pygrub? pygrub comes with Xen.> > ok i thought maybe its possible to create a block device with dd (the > normal way). than create a partition table on it and create some > partitions with filesystem on it. afterwards to mount this first > partition an do the installation stuff with debootstrap.....like i told > you i created a partition table...and now its possible to install grub > on the block-device, which can start and load the normal xen fixed > kernel from debian.... > > what do you think? a worse idea or a good idea ^^ >For a PV guest, you can''t boot directly with grub. You need to use either the kernel= parameter or use a bootloader of some kind.> > regards marcus > > -- > Marcus Herz > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jonathan Ervine
2008-Jan-30 02:05 UTC
Re: [Xen-users] Problems running Debian as Guest System on SLES10 Dom0
On Wednesday 30 January 2008 00:21:09 Todd Deshane wrote:> its quite funny because sles 10 does not have any pygrub, the only > way > > > to create vms is the domUloader. > > yesterday I tried had some idea but i dont know if this is a good > > or a worse idea maybe you can give my some feedback. > > Why doesn''t sles 10 have pygrub? pygrub comes with Xen.SLES seems to use domUloader instead of pygrub. I''m not the person to ask as to why this is the case, though I believe it was done to support booting operating systems that don''t use grub as a bootloader. Using domUloader requires the kernel and ramdisk to be booted to be specified in the config file though. It did look like the original poster had done this correctly via bootargs. I''ll need to check that the syntax used is correct, and I can only do this tonight when I can fire up my Xen system. The kernel and ramdisk do not necessarily have to be within the DomU filesystem - they can reside on the Dom0 filesystem.> > ok i thought maybe its possible to create a block device with dd > > (the normal way). than create a partition table on it and create > > some partitions with filesystem on it. afterwards to mount this > > first partition an do the installation stuff with > > debootstrap.....like i told you i created a partition table...and > > now its possible to install grub on the block-device, which can > > start and load the normal xen fixed kernel from debian.... > > > > what do you think? a worse idea or a good idea ^^ > > For a PV guest, you can''t boot directly with grub. You need to use > either the kernel= parameter or use a bootloader of some kind.But other than that, it seems reasonable to install via debootstrap. It should then just be a case of booting via the kernel and bootloader. I think I''ve pretty much done the same as the original poster, only to stumble because I''m on a 32 bit system with everything installed as non-PAE whereas Debian do not make a Xen enabled non-PAE kernel available... Jon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jonathan Ervine
2008-Jan-31 02:36 UTC
Re: [Xen-users] Problems running Debian as Guest System on SLES10 Dom0
On Wednesday 30 January 2008 10:05:59 Jonathan Ervine wrote:> On Wednesday 30 January 2008 00:21:09 Todd Deshane wrote: > > its quite funny because sles 10 does not have any pygrub, the only > > way > > > > > to create vms is the domUloader. > > > yesterday I tried had some idea but i dont know if this is a good > > > or a worse idea maybe you can give my some feedback. > > > > Why doesn''t sles 10 have pygrub? pygrub comes with Xen. > > SLES seems to use domUloader instead of pygrub. I''m not the person to > ask as to why this is the case, though I believe it was done to > support booting operating systems that don''t use grub as a > bootloader. Using domUloader requires the kernel and ramdisk to be > booted to be specified in the config file though. It did look like > the original poster had done this correctly via bootargs. I''ll need > to check that the syntax used is correct, and I can only do this > tonight when I can fire up my Xen system. The kernel and ramdisk do > not necessarily have to be within the DomU filesystem - they can > reside on the Dom0 filesystem.OK - checked this last night. There is pygrub in SUSE Linux, and domUloader is used instead which requires the kernel and initrd to be specified in the config. This can be on the Dom0 filesystem or in the DomU disk image and their location(s) are specified using the bootargs parameter or explicitly in the config file e.g. kernel Going back to the original query, it should be possible to boot via a Debian kernel, so long as it is Xen enabled and, in my experience, isn''t a PAE kernel trying to boot on a non-PAE Xen kernel. Jon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jd
2008-Jan-31 06:11 UTC
Re: [Xen-users] Problems running Debian as Guest System on SLES10 Dom0
SLES10 SP1 does NOT have pygrub. /Jd --- Jonathan Ervine <jervine@novell.com> wrote:> On Wednesday 30 January 2008 10:05:59 Jonathan > Ervine wrote: > > On Wednesday 30 January 2008 00:21:09 Todd Deshane > wrote: > > > its quite funny because sles 10 does not have > any pygrub, the only > > > way > > > > > > > to create vms is the domUloader. > > > > yesterday I tried had some idea but i dont > know if this is a good > > > > or a worse idea maybe you can give my some > feedback. > > > > > > Why doesn''t sles 10 have pygrub? pygrub comes > with Xen. > > > > SLES seems to use domUloader instead of pygrub. > I''m not the person to > > ask as to why this is the case, though I believe > it was done to > > support booting operating systems that don''t use > grub as a > > bootloader. Using domUloader requires the kernel > and ramdisk to be > > booted to be specified in the config file though. > It did look like > > the original poster had done this correctly via > bootargs. I''ll need > > to check that the syntax used is correct, and I > can only do this > > tonight when I can fire up my Xen system. The > kernel and ramdisk do > > not necessarily have to be within the DomU > filesystem - they can > > reside on the Dom0 filesystem. > > OK - checked this last night. There is pygrub in > SUSE Linux, and > domUloader is used instead which requires the kernel > and initrd to be > specified in the config. This can be on the Dom0 > filesystem or in the > DomU disk image and their location(s) are specified > using the bootargs > parameter or explicitly in the config file e.g. > kernel> > Going back to the original query, it should be > possible to boot via a > Debian kernel, so long as it is Xen enabled and, in > my experience, > isn''t a PAE kernel trying to boot on a non-PAE Xen > kernel. > > Jon > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jonathan Ervine
2008-Jan-31 06:23 UTC
Re: [Xen-users] Problems running Debian as Guest System on SLES10 Dom0
On Thursday 31 January 2008 14:11:53 jd wrote:> SLES10 SP1 does NOT have pygrub. >That''s what I was saying. SUSE Linux (including SLES and openSUSE) uses domUloader to boot DomUs. If that wasn''t clear I apologise. Jon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users