I am looking into setting up Xen 4.0 on a simple dual-boot Windows/ubuntu laptop with the following partitions: | Device Boot Start End Blocks Id System | /dev/sda1 * 1 223 1782784 7 HPFS/NTFS | /dev/sda2 223 21713 172624888 7 HPFS/NTFS | /dev/sda3 35854 38914 24576344 7 HPFS/NTFS | /dev/sda4 21713 28522 54686721 5 Extended | /dev/sda5 21713 24145 19530752 83 Linux | /dev/sda6 24145 26090 15624192 82 Linux swap | /dev/sda7 26090 28522 19529728 83 Linux I did a minimal ‘server type’ install of debian squeeze in /dev/sda7 and downloaded the Xen kernel and other packages per the debian wiki. Now, I am a confused as to what to do next. The laptop currently boots off of the default grub2 bootloader installed in the /dev/sda5 ubuntu 10.10 partition. I understand I need to manually add a ‘Xen’ stanza pointing to /dev/sda7 and the Xen kernel to for instance /etc/grub.d/40_custom - and run ‘update-grub’ so that I end up with the corresponding entry in /boot/grub/grub.cfg, but I can''t seem to find any sample or description of how I should code this additional stanza. By fiddling with grub interactively, I eventually came up with a stanza that looks something like: | menuentry "Xen ..." | insmod ext2 | set root=(hd0,7) | multiboot /boot/xen4.0-686.2.32.5.gz | module /boot/vmlinuz-xen-686.2.32.5.gz | module /boot/initrd-xen-686.2.32.5.gz This¹ actually boots ‘something’, presumably my initrd but the boot messages go by too quickly for me to tell what is actually going on or see if there are any errors. Eventually, after displaying messages re: USB initialization, the boot process stops and when I hit enter, the following prompt is displayed: | (initramfs) This is apparently some form of minimal shell where I can enter basic commands, such as ‘mount’, ‘ps’.. ’ping’.. ’route’, etc. and even run ‘top’. But, as far as I can tell, my root partition is not mounted. Has anyone a working environment based on debian squeeze and Xen 4.0, and if so, could they either point me to the documentation that they used or even post a sample grub2 stanza? Thanks, cj ¹ Probably not the actual file names in the sample stanza above. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Jan 27, 2011 at 10:31:45PM EST, Chris Jones wrote:> I am looking into setting up Xen 4.0 on a simple dual-boot > Windows/ubuntu laptop with the following partitions: > > | Device Boot Start End Blocks Id System > | /dev/sda1 * 1 223 1782784 7 HPFS/NTFS > | /dev/sda2 223 21713 172624888 7 HPFS/NTFS > | /dev/sda3 35854 38914 24576344 7 HPFS/NTFS > | /dev/sda4 21713 28522 54686721 5 Extended > | /dev/sda5 21713 24145 19530752 83 Linux > | /dev/sda6 24145 26090 15624192 82 Linux swap > | /dev/sda7 26090 28522 19529728 83 Linux > > I did a minimal ‘server type’ install of debian squeeze in /dev/sda7 and > downloaded the Xen kernel and other packages per the debian wiki. > > Now, I am a confused as to what to do next. > > The laptop currently boots off of the default grub2 bootloader installed > in the /dev/sda5 ubuntu 10.10 partition. I understand I need to manually > add a ‘Xen’ stanza pointing to /dev/sda7 and the Xen kernel to for > instance /etc/grub.d/40_custom - and run ‘update-grub’ so that I end up > with the corresponding entry in /boot/grub/grub.cfg, but I can''t seem to > find any sample or description of how I should code this additional > stanza. > > By fiddling with grub interactively, I eventually came up with a stanza > that looks something like: > > | menuentry "Xen ..." > | insmod ext2 > | set root=(hd0,7) > | multiboot /boot/xen4.0-686.2.32.5.gz > | module /boot/vmlinuz-xen-686.2.32.5.gz > | module /boot/initrd-xen-686.2.32.5.gz > > This¹ actually boots ‘something’, presumably my initrd but the boot > messages go by too quickly for me to tell what is actually going on or > see if there are any errors. > > Eventually, after displaying messages re: USB initialization, the boot > process stops and when I hit enter, the following prompt is displayed: > > | (initramfs) > > This is apparently some form of minimal shell where I can enter basic > commands, such as ‘mount’, ‘ps’.. ’ping’.. ’route’, etc. and even run > ‘top’. > > But, as far as I can tell, my root partition is not mounted. > > Has anyone a working environment based on debian squeeze and Xen 4.0, > and if so, could they either point me to the documentation that they > used or even post a sample grub2 stanza? > > Thanks, > > cj > > ¹ Probably not the actual file names in the sample stanza above.Hmm.. If my question is completely [OT] .. maybe s/o could point me to the proper place to ask .. ? Or is Xen is unusuitable for what I have in mind, namely running different systems concurrently on my laptop..? Thanks, cj _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Jan 28, 2011 at 3:31 AM, Chris Jones <cjns1989@gmail.com> wrote:> I am looking into setting up Xen 4.0 on a simple dual-boot > Windows/ubuntu laptop with the following partitions: > > | Device Boot Start End Blocks Id System > | /dev/sda1 * 1 223 1782784 7 HPFS/NTFS > | /dev/sda2 223 21713 172624888 7 HPFS/NTFS > | /dev/sda3 35854 38914 24576344 7 HPFS/NTFS > | /dev/sda4 21713 28522 54686721 5 Extended > | /dev/sda5 21713 24145 19530752 83 Linux > | /dev/sda6 24145 26090 15624192 82 Linux swap > | /dev/sda7 26090 28522 19529728 83 Linux > > I did a minimal ‘server type’ install of debian squeeze in /dev/sda7 and > downloaded the Xen kernel and other packages per the debian wiki. > > Now, I am a confused as to what to do next. > > The laptop currently boots off of the default grub2 bootloader installed > in the /dev/sda5 ubuntu 10.10 partition. I understand I need to manually > add a ‘Xen’ stanza pointing to /dev/sda7 and the Xen kernel to for > instance /etc/grub.d/40_custom - and run ‘update-grub’ so that I end up > with the corresponding entry in /boot/grub/grub.cfg, but I can''t seem to > find any sample or description of how I should code this additional > stanza. > > By fiddling with grub interactively, I eventually came up with a stanza > that looks something like: > > | menuentry "Xen ..." > | insmod ext2 > | set root=(hd0,7) > | multiboot /boot/xen4.0-686.2.32.5.gz > | module /boot/vmlinuz-xen-686.2.32.5.gz > | module /boot/initrd-xen-686.2.32.5.gz > > This¹ actually boots ‘something’, presumably my initrd but the boot > messages go by too quickly for me to tell what is actually going on or > see if there are any errors. > > Eventually, after displaying messages re: USB initialization, the boot > process stops and when I hit enter, the following prompt is displayed: > > | (initramfs) > > This is apparently some form of minimal shell where I can enter basic > commands, such as ‘mount’, ‘ps’.. ’ping’.. ’route’, etc. and even run > ‘top’. > > But, as far as I can tell, my root partition is not mounted. > > Has anyone a working environment based on debian squeeze and Xen 4.0, > and if so, could they either point me to the documentation that they > used or even post a sample grub2 stanza? >Google results for ''grub2 xen'' seem good For example: http://lists.xensource.com/archives/html/xen-users/2010-06/msg00761.html Hope that helps. Thanks, Todd _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Feb 07, 2011 at 10:56:05PM EST, Todd Deshane wrote:> On Fri, Jan 28, 2011 at 3:31 AM, Chris Jones <cjns1989@gmail.com> wrote:[..]> > Has anyone a working environment based on debian squeeze and Xen > > 4.0, and if so, could they either point me to the documentation that > > they used or even post a sample grub2 stanza?> Google results for ''grub2 xen'' seem good > > For example: > http://lists.xensource.com/archives/html/xen-users/2010-06/msg00761.html > > Hope that helps.:-) it might have.. but since squeeze went stable over the weekend, I reinstalled from scratch, followed the same instructions I had found in the debian/xen wiki, and now I''m up and running.. With my luck, I probably was hit by some bug that got fixed the next day. Still not sure whether Xen is the way to go when you want to get rid of multi-booting, but now at least I can play with it and hopefully learn enough to make an informed decision. Thanks, cj _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users