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

RE: [Xen-users] Full Virtualised DomU Hang on Boot

Thanks Fajar for your response.

DomU has this grub.conf

# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,1)
#          kernel /boot/vmlinuz-version ro root=/dev/sda2
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-57.ELsmp)
        root (hd0,1)
        kernel /boot/vmlinuz-2.4.21-57.ELsmp ro root=/dev/sda2 1
        initrd /boot/initrd-2.4.21-57.ELsmp.img
title Red Hat Enterprise Linux AS (2.4.21-57.EL)
        root (hd0,1)
        kernel /boot/vmlinuz-2.4.21-57.EL ro root=LABEL=/1
        initrd /boot/initrd-2.4.21-57.EL.img
title Red Hat Enterprise Linux AS (2.4.21-53.ELsmp)
        root (hd0,1)
        kernel /boot/vmlinuz-2.4.21-53.ELsmp ro root=LABEL=/1
        initrd /boot/initrd-2.4.21-53.ELsmp.img
title Red Hat Enterprise Linux AS (2.4.21-53.EL)
... shortened.

On the guest OS, the actually devices are sda, and not hda.
[root@ignis log]# df -hl
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             9.7G  8.4G  817M  92% /
none                 1004M     0 1004M   0% /dev/shm
/dev/sda1              12G   10G  1.1G  91% /mnt/rh9
/dev/sda5             112G   66G   40G  63% /disks/ignis1

Are you saying that the full virtualised loader (HVM?) cannot support sda?


Regarding the other command on the use of live CD/USB?
I don't quite follow the use on that.

The main objective I am trying to achieve is to flexibly transfer a running 
service to run on a xen server,
in the hope that we do not need to redo a fresh installation and its layered 
applications.
This will be useful so we can save time, but also some applications may not 
easily be redone due to departure of staff who set them up.

If we use live CD/USB, can you tell how to transfer a running service to run as 
a guest OS?

Many thanks again.

Kind regards,

Peter 


-----Original Message-----
From: Fajar A. Nugraha [mailto:fajar@xxxxxxxxx] 
Sent: 29 January 2010 14:19
To: Chiu, Peter (STFC,RAL,SSTD)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Full Virtualised DomU Hang on Boot

On Fri, Jan 29, 2010 at 7:00 PM,  <peter.chiu@xxxxxxxxxx> wrote:
> root (hd0,1)
>
>  Fileysystem type is ext2fs, partition type 0x83
>
> kernel /boot/vmlinuz-2.4.21-57.ELsmp ro root=/dev/sda2
>
>   [Linux-bzImage, setup=0x1400, size=0x14d31e]
>
> initrd /boot/initrd-2.4.21-57.ELsmp.img

at least this means boot and initrd was loaded.
What does domU's grub.conf look like? You might want to remove "quiet"
and "rhgb" (so you get more verbose messages). Also HVM domUs sees
disk as hda, not sda, so you need to change that (grub.conf, fstab).

> Guest Image prepared by dd if=/dev/sda | ssh apricot "dd
> of=/disks/apricot1/xen/ignis"

I hope you use Live CD/USB for this? dd-ing the content of live disk
with mounted partitions (I assume sda is the disk you're booting from)
is a bad idea.

-- 
Fajar
--
Scanned by iCritical.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users