From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerry Reno Subject: Re: pv-grub: trouble when using UUID Date: Wed, 16 Jun 2010 16:37:11 -0500 (CDT) Message-ID: <2002110594.773160.1276724231938.JavaMail.root@vms232.mailsrvcs.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0871601110==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: greno@verizon.net Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0871601110== Content-type: text/html; charset=UTF-8 Content-transfer-encoding: quoted-printable Correction: In grubdom if I just add a line 'root (hd0)' then it will boot = fine.

xen: 4.0.0-rc8


Jun 16, 2010 05:29:46 PM, greno@veri= zon.net wrote:
I have two filesystem images that I built: root and /mnt and with a guest m= enu.lst that uses UUID I am able to create a running xen domain using eithe= r a normal 'xm' config or a 'pygrub' bootloader config.

I am unable = to create a working config using 'pv-grub' however using UUID.

The g= uest menu.lst uses 'uuid' rather than 'root' and whenever I try to create t= he domain using 'pv-grub' it always drops me to a 'grubdom' prompt.  I= n grubdom if I just add a line 'root=3D/dev/xvda1' then it will boot fine.&= nbsp; I cannot test 'uuid' in grubdom because it does not recognize the 'uu= id' command.

Here are details:

host: pv_ops dom0  kernel= 2.6.32.13
guest: ubuntu  kernel 2.6.32-22-server

=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
pv-grub configfile:
=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
name =3D "test"

maxmem =3D 4096=
memory =3D 1024
vcpus =3D 4

uuid =3D "b59e45e2-3137-4685-a31c= -a8c87a65c4fc"
kernel =3D "/usr/lib/xen/boot/pv-grub-x86_64.gz"
extra= =3D "(hd0)/boot/grub/menu.lst"

disk =3D [
  "tap:aio:/root/= ubuntu-xen/root.img,xvda1,w",
  "tap:aio:/root/ubuntu-xen/____.img,= xvdb,w"
 ]

vif =3D [ "mac=3D00:16:1a:2a:ef:56,bridge=3Dbr0" = ]

on_poweroff =3D "destroy"
on_reboot =3D "restart"
on_crash = =3D "restart"

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
guest /boot/grub/menu.lst:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
default        0
timeout   =     3
hiddenmenu

title     &n= bsp;  Ubuntu 10.04 LTS, kernel 2.6.32-22-server
uuid  &nb= sp;     b59e45e2-3137-4685-a31c-a8c87a65c4fc
kernel =        /boot/vmlinuz-2.6.32-22-server root=3DUUID= =3Db59e45e2-3137-4685-a31c-a8c87a65c4fc ro console=3Dhvc0 splash
initrd=         /boot/initrd.img-2.6.32-22-server
=
title        Ubuntu 10.04 LTS, kernel 2.6= .32-22-server (recovery mode)
uuid        = b59e45e2-3137-4685-a31c-a8c87a65c4fc
kernel     &nbs= p;  /boot/vmlinuz-2.6.32-22-server root=3DUUID=3Db59e45e2-3137-4685-a3= 1c-a8c87a65c4fc ro  single
initrd      &nb= sp; /boot/initrd.img-2.6.32-22-server

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D
tune2fs -l /dev/loop0  # root fs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
tune2fs 1.41.11 (14-Mar-2010)
Filesystem volume name:   =
Last mounted on:          =
Filesystem UUID:      = ;    b59e45e2-3137-4685-a31c-a8c87a65c4fc
Filesystem magi= c number:  0xEF53
Filesystem revision #:    1 (dynam= ic)
Filesystem features:      has_journal ext_a= ttr resize_inode dir_index filetype needs_recovery sparse_super large_file<= br>Filesystem flags:         signed= _directory_hash
Default mount options:    (none)
File= system state:         clean
Erro= rs behavior:          Continue=
Filesystem OS type:       Linux
Inode = count:           &nb= sp;  655360
Block count:       &= nbsp;      2621440
Reserved block count: &= nbsp;   131072
Free blocks:      = ;        2413274
Free inodes: &n= bsp;            6328= 69
First block:         &nb= sp;    0
Block size:      &= nbsp;        4096
Fragment size: = ;           4096
Reser= ved GDT blocks:      639
Blocks per group: = ;        32768
Fragments per group:&n= bsp;     32768
Inodes per group:   &n= bsp;     8192
Inode blocks per group:   51= 2
Filesystem created:       Wed Jun 16 03:= 46:23 2010
Last mount time:       &nb= sp;  Wed Jun 16 13:15:24 2010
Last write time:   &nb= sp;      Wed Jun 16 13:15:24 2010
Mount count:&= nbsp;           &nbs= p; 5
Maximum mount count:      31
Last check= ed:            = Wed Jun 16 03:46:23 2010
Check interval:     &= nbsp;     15552000 (6 months)
Next check after: = ;        Mon Dec 13 02:46:23 2010
Res= erved blocks uid:      0 (user root)
Reserved b= locks gid:      0 (group root)
First inode:&nbs= p;             = 11
Inode size:          &nb= sp;   256
Required extra isize:     28
= Desired extra isize:      28
Journal inode:&nbs= p;           8
Default= directory hash:   half_md4
Directory Hash Seed:  &n= bsp;   afd06bb1-27d7-4921-a8fc-693df864acf5
Journal backup:&nb= sp;          inode blocks
<= br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Can anyone see what is missing?  I thought UUID should work with p= v-grub but it is failing for me.

-Gerry






<= br>


_______________________________________________Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.x= ensource.com/xen-devel
--===============0871601110== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0871601110==--