WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Transitioning from multi-boot to Xen

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Transitioning from multi-boot to Xen
From: Chris Jones <cjns1989@xxxxxxxxx>
Date: Thu, 27 Jan 2011 22:31:45 -0500
Delivery-date: Thu, 27 Jan 2011 19:32:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: xen-users@xxxxxxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Transitioning from multi-boot to Xen, Chris Jones <=