| 
 Hi, 
  
Thanks! 
  
I have tried to use pygrub to point to the image file to try to start the DomU guest. The following messages appears.
  
pygrub -i /root/iso/ubuntu.img Traceback (most recent call last):   File "/usr/bin/pygrub", line 679, in ?     chosencfg = run_grub(file, entry, fs, incfg["args"])   File "/usr/bin/pygrub", line 515, in run_grub 
    g = Grub(file, fs)   File "/usr/bin/pygrub", line 202, in __init__     self.read_config(file, fs)   File "/usr/bin/pygrub", line 397, in read_config     raise RuntimeError, "couldn't find bootloader config file in the image provided." 
RuntimeError: couldn't find bootloader config file in the image provided.
  I have used kpartx -av /root/iso/ubuntu.img to mount the boot directory of the first partition 
  
The contents under /boot is 
abi-2.6.32-22-generic         memtest86+.bin config-2.6.32-22-generic      System.map-2.6.32-22-generic grub                          vmcoreinfo-2.6.32-22-generic initrd.img-2.6.32-22-generic  vmlinuz-2.6.32-22-generic 
 
It seems that it don't has the linux-xen kernel for PV client.  Is it the reason for it fail to boot? 
  
Do you have any idea? 
  
On 20 June 2010 09:09, Fajar A. Nugraha  <fajar@xxxxxxxxx> wrote:
 
On Sat, Jun 19, 2010 at 1:59 AM, KC LO < kclo2000@xxxxxxxxx> wrote: > Thanks! > > > > I have follow the link and download initrd.gz and vmlinuz to create the 
> initial ubuntu.cfg and use it to start the installation by xm create -c > ubuntu.cfg.  I can complete the installation over Internet.  However, after > installation, how can I start the ubuntu DOMU guest?  What should I change 
> on the ubuntu.cfg?  I'd test by running "pygrub -i /path/to/your/domU/disk/image.img" (adjust the disk image path to your setup, obviously). If it doesn't return an error, you can simpley comment out kernel, 
ramdisk, and extra line on your original config, and add a line
  bootloader="/usr/bin/pygrub"
  Some peope has concerns about pygrub's potential security problem since it copies some files from domU to dom0 and run it. So for some 
added security measure, once you have pygrub running, you can replace pygrub with pv-grub by commenting pygrub line and replace it with something like this
  kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz" 
extra = "(hd0,0)/grub/menu.lst"
  IMHO problems with pv-grub is harder to diagnose though, so I strongly suggest you only try pv-grub AFTER you get pygrub working correctly.
  -- Fajar 
  
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users 
 |