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 19:11:57 -0500 (CDT) Message-ID: <1706386180.808624.1276733517089.JavaMail.root@vms228.mailsrvcs.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0587028738==" 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 --===============0587028738== Content-type: text/html; charset=UTF-8 Content-transfer-encoding: quoted-printable Using pv-grub config, here is what happens on the 'xm create':
---------= -----------------------------------------------
kernel  /boot/vmlin= uz-2.6.32-22-server root=3DUUID=3Db59e45e2-3137-4685-a31c-a8c87a
65c4fc = ro console=3Dhvc0 splash

Error 21: Selected disk does not exist
=
Press any key to continue...
---------------------------------------= -----------------

and when you press key you go back to the grub boo= t selection menu.  And there if you add the line 'root (hd0)' before t= he kernel line and then boot, the domain boots up to a login.  I tried= adding instead 'uuid b59e45e2-3137-4685-a31c-a8c87a65c4fc' but grubdom doe= s not recognize that command, so the 'root (hd0)' just substitutes for the = uuid command.

So it looks like what pv-grub is missing in the proces= s is a
'uuid b59e45e2-3137-4685-a31c-a8c87a65c4fc' before executing the = kernel line.

-Gerry



Jun 16, 2010 05:37:38 PM, greno@v= erizon.net wrote:
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:  
La= st mounted on:         
Fi= lesystem UUID:          b59e45= e2-3137-4685-a31c-a8c87a65c4fc
Filesystem magic number:  0xEF53
= Filesystem revision #:    1 (dynamic)
Filesystem features= :      has_journal ext_attr resize_inode dir_index= filetype needs_recovery sparse_super large_file
Filesystem flags: =         signed_directory_hash
Defaul= t mount options:    (none)
Filesystem state:  &= nbsp;      clean
Errors behavior:  &n= bsp;       Continue
Filesystem OS type:&nb= sp;      Linux
Inode count:   &n= bsp;          655360
Block = count:           &nb= sp;  2621440
Reserved block count:     131072Free blocks:          &= nbsp;   2413274
Free inodes:     &nbs= p;        632869
First block: &n= bsp;            0Block size:          &nb= sp;    4096
Fragment size:     &= nbsp;      4096
Reserved GDT blocks:  = ;    639
Blocks per group:     &= nbsp;   32768
Fragments per group:    &nbs= p; 32768
Inodes per group:       &nbs= p; 8192
Inode blocks per group:   512
Filesystem created:&n= bsp;      Wed Jun 16 03:46:23 2010
Last mount t= ime:          Wed Jun 16 13:15= :24 2010
Last write time:        = ;  Wed Jun 16 13:15:24 2010
Mount count:    &nb= sp;         5
Maximum mount coun= t:      31
Last checked:    = ;         Wed Jun 16 03:46:23 2010<= br>Check interval:         &nb= sp; 15552000 (6 months)
Next check after:     &= nbsp;   Mon Dec 13 02:46:23 2010
Reserved blocks uid: &nb= sp;    0 (user root)
Reserved blocks gid:  &nbs= p;   0 (group root)
First inode:     =          11
Inode size: &nb= sp;            256
Req= uired extra isize:     28
Desired extra isize: =      28
Journal inode:     =        8
Default directory hash: &nbs= p; half_md4
Directory Hash Seed:      afd06bb1-= 27d7-4921-a8fc-693df864acf5
Journal backup:     = ;      inode blocks

=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



_____________= __________________________________
Xen-devel mailing list
Xen-devel@l= ists.xensource.com
http://lists.xensource.com/xen-devel
= --===============0587028738== 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 --===============0587028738==--