Hi, I''ve tried to convert a PV domU from using static kernel, ramdisk lines in the configuration to bootloader. I have checked the pygrub page in the Xen wiki and done some googling but have not yet managed to solve my problems. My disk section in the configuration looks like: disk = [ ''phy:systemvg/domU_rootlv,xvda1,w'' , ''phy:systemvg/domU_swaplv,xvda2,w'' , ''phy:systemvg/domU_optlv,xvda5,w'' , ''phy:systemvg/domU_usrlv,xvda6,w'' , ''phy:systemvg/domU_varlv,xvda7,w'' , ''phy:datavg/domU_datalv,xvdb1,w'' ] The domU is a 64-bit Gentoo install. So far I have installed grub-static (0.97-r9) into the domU, copied my existing kernel and ramdisk to /boot and setup the the grub.conf / menu.lst file. If I try now with the boot loader then I get "Error: Boot loader didn''t return any data". The wiki page isn''t entirely clear on this point but I think I need to do grub root(hd0,0), setup(hd0,0)? However, I''m unable to complete this step since grub does not detect the virtual disks as BIOS devices, even after adding entries to device.map. Any hints on how to get this working? Thanks, James This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Dingwall wrote: [..]> The domU is a 64-bit Gentoo install. So far I have installed grub-static > (0.97-r9) into the domU, copied my existing kernel and ramdisk to /boot > and setup the the grub.conf / menu.lst file. If I try now with the boot > loader then I get "Error: Boot loader didn''t return any data". The wiki > page isn''t entirely clear on this point but I think I need to do grub > root(hd0,0), setup(hd0,0)? However, I''m unable to complete this step > since grub does not detect the virtual disks as BIOS devices, even after > adding entries to device.map. Any hints on how to get this working?This is a bug in pygrub, the solution is to delete line 538 in pygrub: log.debug("PyGrub: Default selection is not valid, using first boot configuration...") For further details have a look here: http://permalink.gmane.org/gmane.comp.emulators.xen.devel/69803 Best regards, Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>> The domU is a 64-bit Gentoo install. So far I have installedgrub-static>> (0.97-r9) into the domU, copied my existing kernel and ramdisk to/boot>> and setup the the grub.conf / menu.lst file. If I try now with theboot>> loader then I get "Error: Boot loader didn''t return any data". Thewiki>> page isn''t entirely clear on this point but I think I need to do grub >> root(hd0,0), setup(hd0,0)? However, I''m unable to complete this step >> since grub does not detect the virtual disks as BIOS devices, evenafter>> adding entries to device.map. Any hints on how to get this working? > >This is a bug in pygrub, the solution is to delete line 538 in pygrub: >log.debug("PyGrub: Default selection is not valid, using first boot >configuration...")I have made a copy of pygrub with that line removed, running directly against the rootlv gives /tmp/pygrub /dev/systemvg/domU_rootlv Traceback (most recent call last): File "/tmp/pygrub", line 675, in <module> fs = fsimage.open(file, get_fs_offset(file)) IOError: [Errno 95] Operation not supported Thanks, James This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Dingwall wrote:> > I have made a copy of pygrub with that line removed, running directly > against the rootlv gives > > /tmp/pygrub /dev/systemvg/domU_rootlv > Traceback (most recent call last): > File "/tmp/pygrub", line 675, in <module> > fs = fsimage.open(file, get_fs_offset(file)) > IOError: [Errno 95] Operation not supported >Hm, for me that solved the problem, haven''t seen Errno 95 for a while. Can you mount the lv from dom0 at all? Maybe you''re missing the filesystem driver on dom0? Best regards, Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> James Dingwall wrote: > > > > I have made a copy of pygrub with that line removed, runningdirectly> > against the rootlv gives > > > > /tmp/pygrub /dev/systemvg/domU_rootlv > > Traceback (most recent call last): > > File "/tmp/pygrub", line 675, in <module> > > fs = fsimage.open(file, get_fs_offset(file)) > > IOError: [Errno 95] Operation not supported > > > > Hm, for me that solved the problem, haven''t seen Errno 95 for a while. > Can you mount the lv from dom0 at all? Maybe you''re missing the > filesystem driver on dom0?Yes, this is fine, rootlv is XFS which is supported in dom0. Does pygrub work by mounting the device and then read the files directly or does it rely on the information written to the MBR/partition to locate the everything? Thanks, James This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > James Dingwall wrote: > > > > > > I have made a copy of pygrub with that line removed, running > directly > > > against the rootlv gives > > > > > > /tmp/pygrub /dev/systemvg/domU_rootlv > > > Traceback (most recent call last): > > > File "/tmp/pygrub", line 675, in <module> > > > fs = fsimage.open(file, get_fs_offset(file)) > > > IOError: [Errno 95] Operation not supported > > > > > > > Hm, for me that solved the problem, haven''t seen Errno 95 for a > while. > > Can you mount the lv from dom0 at all? Maybe you''re missing the > > filesystem driver on dom0? > > Yes, this is fine, rootlv is XFS which is supported in dom0. Does > pygrub work by mounting the device and then read the files directly or > does it rely on the information written to the MBR/partition to locate > the everything?It seems that pygrub doesn''t support XFS which is probably why I am receiving this message. I found http://article.gmane.org/gmane.comp.emulators.xen.user/36999 and also looking in /usr/lib/fs seems to confirm this. Christian - thanks for your help but it seems I can''t use pygrub unless I change my fs. James This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Aug 13, 2009 at 7:17 PM, James Dingwall<james.dingwall@amdocs.com> wrote:> It seems that pygrub doesn''t support XFS which is probably why I am > receiving this message. I found > http://article.gmane.org/gmane.comp.emulators.xen.user/36999 and also > looking in /usr/lib/fs seems to confirm this. > > Christian - thanks for your help but it seems I can''t use pygrub unless > I change my fs.I have a similar problem when I want to use ext4 as domU root. The workaround is simple enough: create another LV on dom0 which will be domU''s /boot, format it as ext3. Adjust domU''s grub.conf and fstab. Then you can use whatever fs for root on domU as long as the kernel supports it. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > On Thu, Aug 13, 2009 at 7:17 PM, James > Dingwall<james.dingwall@amdocs.com> wrote: > > It seems that pygrub doesn''t support XFS which is probably why I am > > receiving this message. I found > > http://article.gmane.org/gmane.comp.emulators.xen.user/36999 and also > > looking in /usr/lib/fs seems to confirm this. > > > > Christian - thanks for your help but it seems I can''t use pygrub > unless > > I change my fs. > > I have a similar problem when I want to use ext4 as domU root. The > workaround is simple enough: create another LV on dom0 which will be > domU''s /boot, format it as ext3. Adjust domU''s grub.conf and fstab. > Then you can use whatever fs for root on domU as long as the kernel > supports it.Thanks Fajar, that''s exactly what I realised myself:) James This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users