From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerry Reno Subject: pv-grub: trouble when using UUID Date: Wed, 16 Jun 2010 16:28:57 -0500 (CDT) Message-ID: <1037678939.772512.1276723737311.JavaMail.root@vms232.mailsrvcs.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1479545062==" 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1479545062== Content-type: text/html; charset=UTF-8 Content-transfer-encoding: quoted-printable 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:   <no= ne>
Last mounted on:        &= nbsp; <not available>
Filesystem UUID:    &nbs= p;     b59e45e2-3137-4685-a31c-a8c87a65c4fc
Filesyst= em magic number:  0xEF53
Filesystem revision #:    1= (dynamic)
Filesystem features:      has_journa= l ext_attr resize_inode dir_index filetype needs_recovery sparse_super larg= e_file
Filesystem flags:        = signed_directory_hash
Default mount options:    (none)<= br>Filesystem state:         clean<= br>Errors behavior:          C= ontinue
Filesystem OS type:       LinuxInode count:          &n= bsp;   655360
Block count:      =         2621440
Reserved block count:=      131072
Free blocks:    &nbs= p;         2413274
Free inodes:&= nbsp;           &nbs= p; 632869
First block:        &n= bsp;     0
Block size:     =           4096
Fragment siz= e:            4096Reserved GDT blocks:      639
Blocks per grou= p:         32768
Fragments per g= roup:      32768
Inodes per group:  &= nbsp;      8192
Inode blocks per group: &n= bsp; 512
Filesystem created:       Wed Jun= 16 03:46:23 2010
Last mount time:      &n= bsp;   Wed Jun 16 13:15:24 2010
Last write time:  &n= bsp;       Wed Jun 16 13:15:24 2010
Mount = count:           &nb= sp;  5
Maximum mount count:      31
Las= t checked:           = ;  Wed Jun 16 03:46:23 2010
Check interval:    =        15552000 (6 months)
Next check afte= r:         Mon Dec 13 02:46:23 2010=
Reserved blocks uid:      0 (user root)
Res= erved blocks gid:      0 (group root)
First ino= de:            =   11
Inode size:         &n= bsp;    256
Required extra isize:    = 28
Desired extra isize:      28
Journal ino= de:            8
= Default directory hash:   half_md4
Directory Hash Seed: &= nbsp;    afd06bb1-27d7-4921-a8fc-693df864acf5
Journal bac= kup:           inode bloc= ks

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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> --===============1479545062== 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 --===============1479545062==--