Re: [Fedora-xen] Fedora 12 x86_64, Xen 4.0.1-6 and Fedora 16 domU

2012-01-25 Thread M A Young

On Wed, 25 Jan 2012, Roberto Fichera wrote:


On 01/25/2012 10:43 AM, M A Young wrote:

On Wed, 25 Jan 2012, Roberto Fichera wrote:

As I can see the /grub2/grub.cfg contains a valid grub2 configuration.


In pygrub in 4.1 grub gets checked before grub2, and I can't remember if it 
goes on to check grub2 locations if it
finds a grub related file which doesn't work.


Actually I'm under xen-4.0.1-6, should I upgrade it? If so which version 
do you suggest?


Still doesn't work and the pygrub menu doesn't even come up at all.


Yes, as I already said you need at least the Fedora xen-4.1.1-8 package 
for grub2 to work. The latest F16 xen should work or you could try 
backporting pygrubfix2.patch from a recent Fedora xen source package to 
4.0.


Michael Young
--
xen mailing list
xen@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen

Re: [Fedora-xen] Fedora 12 x86_64, Xen 4.0.1-6 and Fedora 16 domU

2012-01-25 Thread Roberto Fichera
On 01/25/2012 10:51 AM, Roberto Fichera wrote:
> On 01/25/2012 10:43 AM, M A Young wrote:
>> On Wed, 25 Jan 2012, Roberto Fichera wrote:
>>
 2) Running pygrub directly to see if it works or gives useful debugging ie.
 pygrub 
>>> The pygrub menu starts and after a second or so I got this:
>>>
>>> pygrub 
>>> /dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2009-12.it.tekno-soft:xen.vm.TeknoProxy-lun-1
>>> Using  to parse /grub/menu.lst
>>> Traceback (most recent call last):
>>>File "/usr/bin/pygrub", line 715, in 
>>> 
>>> 
>>> data =
>>> fs.open_file(chosencfg["kernel"]).read()
>>>
>>> IOError: [Errno 2] No such file or directory
>>> As I can see the /grub2/grub.cfg contains a valid grub2 configuration.
>> In pygrub in 4.1 grub gets checked before grub2, and I can't remember if it 
>> goes on to check grub2 locations if it
>> finds a grub related file which doesn't work.
> Actually I'm under xen-4.0.1-6, should I upgrade it? If so which version do 
> you suggest?
>
>> I suggest you move or rename /grub/grub.conf and /grub/menu.lst so pygrub 
>> doesn't get confused by them.
> Still doesn't work and the pygrub menu doesn't even come up at all.

I got it working by adding the related kernel lines in /grub/grub.conf.

>
>> Michael Young
>>
> --
> xen mailing list
> xen@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/xen

--
xen mailing list
xen@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen

Re: [Fedora-xen] Fedora 12 x86_64, Xen 4.0.1-6 and Fedora 16 domU

2012-01-25 Thread Roberto Fichera
On 01/25/2012 10:43 AM, M A Young wrote:
> On Wed, 25 Jan 2012, Roberto Fichera wrote:
>
>>> 2) Running pygrub directly to see if it works or gives useful debugging ie.
>>> pygrub 
>> The pygrub menu starts and after a second or so I got this:
>>
>> pygrub 
>> /dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2009-12.it.tekno-soft:xen.vm.TeknoProxy-lun-1
>> Using  to parse /grub/menu.lst
>> Traceback (most recent call last):
>>File "/usr/bin/pygrub", line 715, in 
>> 
>>  
>>data =
>> fs.open_file(chosencfg["kernel"]).read()
>>
>> IOError: [Errno 2] No such file or directory
>
>> As I can see the /grub2/grub.cfg contains a valid grub2 configuration.
>
> In pygrub in 4.1 grub gets checked before grub2, and I can't remember if it 
> goes on to check grub2 locations if it
> finds a grub related file which doesn't work.

Actually I'm under xen-4.0.1-6, should I upgrade it? If so which version do you 
suggest?

>
> I suggest you move or rename /grub/grub.conf and /grub/menu.lst so pygrub 
> doesn't get confused by them.

Still doesn't work and the pygrub menu doesn't even come up at all.

>
> Michael Young
>

--
xen mailing list
xen@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen

Re: [Fedora-xen] Fedora 12 x86_64, Xen 4.0.1-6 and Fedora 16 domU

2012-01-25 Thread M A Young

On Wed, 25 Jan 2012, Roberto Fichera wrote:


2) Running pygrub directly to see if it works or gives useful debugging ie.
pygrub 

The pygrub menu starts and after a second or so I got this:

pygrub 
/dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2009-12.it.tekno-soft:xen.vm.TeknoProxy-lun-1
Using  to parse /grub/menu.lst
Traceback (most recent call last):
   File "/usr/bin/pygrub", line 715, in 

data =
fs.open_file(chosencfg["kernel"]).read()

IOError: [Errno 2] No such file or directory



As I can see the /grub2/grub.cfg contains a valid grub2 configuration.


In pygrub in 4.1 grub gets checked before grub2, and I can't remember if 
it goes on to check grub2 locations if it finds a grub related file which 
doesn't work.


I suggest you move or rename /grub/grub.conf and /grub/menu.lst so pygrub 
doesn't get confused by them.


Michael Young
--
xen mailing list
xen@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen

Re: [Fedora-xen] Fedora 12 x86_64, Xen 4.0.1-6 and Fedora 16 domU

2012-01-25 Thread Roberto Fichera
On 01/25/2012 12:06 AM, M A Young wrote:
> On Tue, 24 Jan 2012, Roberto Fichera wrote:
>
>> My thought is that since Fedora 16 comes with grub2, my current xen setup 
>> doesn't support it.
>
> It doesn't. The most recent F16 xen (4.1.1-8 or later) should though (the 
> patches for Fedora style grub2 support are
> upstream in the 4.1 and unstable development trees but not in any released 
> version yet).
>
> You could try
>
> 1) turning selinux off (setenforce 0) if it is on.

I switch it off by default in my xen servers

> 2) Running pygrub directly to see if it works or gives useful debugging ie.
> pygrub 
The pygrub menu starts and after a second or so I got this:

pygrub 
/dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2009-12.it.tekno-soft:xen.vm.TeknoProxy-lun-1
Using  to parse /grub/menu.lst
Traceback (most recent call last):
File "/usr/bin/pygrub", line 715, in 


 data =
fs.open_file(chosencfg["kernel"]).read()

   
IOError: [Errno 2] No such file or directory

Note that in the disk 
/dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2009-12.it.tekno-soft:xen.vm.TeknoProxy-lun-1
the boot partition contains the /grub/grub.conf related to the upgrade process:

#boot=/dev/xvda
default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Upgrade to Fedora 16 (Verne)
kernel /upgrade/vmlinuz preupgrade repo=hd::/var/cache/yum/preupgrade
ks=hd:UUID=ef1946b3-70ab-40fc-91c6-2e8ab1765b35:/upgrade/ks.cfg
initrd /upgrade/initrd.img


so, I guess that since the /upgrade/* stuff aren't there because the upgrade 
process completes correctly
then pygrub fails to find the /upgrade/vmlinuz kernel to boot.

As I can see the /grub2/grub.cfg contains a valid grub2 configuration.

This is what I see in my /var/log/xen/xend.log

[2012-01-25 09:14:06 2460] DEBUG (XendDomainInfo:2508) 
XendDomainInfo.constructDomain
[2012-01-25 09:14:06 2460] DEBUG (balloon:172) Balloon: tmem relinquished -1 
KiB of 16364 KiB requested.
[2012-01-25 09:14:06 2460] DEBUG (balloon:226) Balloon: 20 KiB free; 0 to 
scrub; need 16384; retries: 20.
[2012-01-25 09:14:06 2460] DEBUG (balloon:240) Balloon: setting dom0 target to 
4727 MiB.
[2012-01-25 09:14:06 2460] DEBUG (XendDomainInfo:1477) Setting memory target of 
domain Domain-0 (0) to 4727 MiB.
[2012-01-25 09:14:06 2460] DEBUG (balloon:220) Balloon: 16404 KiB free; need 
16384; done.
[2012-01-25 09:14:06 2460] DEBUG (XendDomain:464) Adding Domain: 9
[2012-01-25 09:14:06 2460] DEBUG (XendDomainInfo:2818) 
XendDomainInfo.initDomain: 9 256
[2012-01-25 09:14:06 8044] DEBUG (XendBootloader:113) Launching bootloader as 
['/usr/bin/pygrub',
'--output=/var/run/xend/boot/xenbl.12897',
'/dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2009-12.it.tekno-soft:xen.vm.TeknoProxy-lun-1'].
[2012-01-25 09:14:07 2460] ERROR (XendBootloader:214) Boot loader didn't return 
any data!
[2012-01-25 09:14:07 2460] ERROR (XendDomainInfo:483) VM start failed
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendDomainInfo.py", line 
469, in start
XendTask.log_progress(31, 60, self._initDomain)
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendTask.py", line 209, in 
log_progress
retval = func(*args, **kwds)
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendDomainInfo.py", line 
2820, in _initDomain
self._configureBootloader()
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendDomainInfo.py", line 
3266, in _configureBootloader
bootloader_args, kernel, ramdisk, args)
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendBootloader.py", line 
215, in bootloader
raise VmError, msg
VmError: Boot loader didn't return any data!
[2012-01-25 09:14:07 2460] DEBUG (XendDomainInfo:3053) XendDomainInfo.destroy: 
domid=9
[2012-01-25 09:14:07 2460] DEBUG (XendDomainInfo:2416) No device model
[2012-01-25 09:14:07 2460] DEBUG (XendDomainInfo:2418) Releasing devices

>
> Note if you are using pvgrub as your boot loader then it is unlikely to cope 
> with F16 guests.

I never used it.

>
> Another possibility is that your upgrade didn't generate a valid grub2 
> configuration, so there is nothing for the boot
> loader to find.

I had to change the layout, with gparted, of the given partition leaving 1Mb of 
space at the beginning of the first
partition (boot) so that
the update process complete its job. This is what I usually do before upgrading 
an F14 to F16 since grub2 does require more
space at the beginning of the disk. I never had any problem in this resizing 
process on a normal machine. So I was expecting
the same on xen.

Actually I have several ubuntu machine that uses grub2, so it might be that the 
boot loader get screwed
for some reasons. If it's so then how can I restore the boot loader since I 

Re: [Fedora-xen] Fedora 12 x86_64, Xen 4.0.1-6 and Fedora 16 domU

2012-01-24 Thread M A Young

On Tue, 24 Jan 2012, Roberto Fichera wrote:

My thought is that since Fedora 16 comes with grub2, my current xen 
setup doesn't support it.


It doesn't. The most recent F16 xen (4.1.1-8 or later) should though (the 
patches for Fedora style grub2 support are upstream in the 4.1 and 
unstable development trees but not in any released version yet).


You could try

1) turning selinux off (setenforce 0) if it is on.
2) Running pygrub directly to see if it works or gives useful debugging ie.
pygrub 

Note if you are using pvgrub as your boot loader then it is unlikely to 
cope with F16 guests.


Another possibility is that your upgrade didn't generate a valid grub2 
configuration, so there is nothing for the boot loader to find.


Michael Young
--
xen mailing list
xen@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen

Re: [Fedora-xen] Fedora 12 x86_64, Xen 4.0.1-6 and Fedora 16 domU

2012-01-24 Thread Roberto Fichera
Il 24/01/2012 20.31, Konrad Rzeszutek Wilk ha scritto:
> On Tue, Jan 24, 2012 at 08:24:28PM +0100, Roberto Fichera wrote:
>> Hi All,
>>
>> I just update one of my Fedora 14 domU to Fedora 16 and everything when ok
>> in the update process. But once I did the first domU reboot than I got the
>>
>> Error: Boot loader didn't return any data!
>>
>> while virt-manager reports:
>>
>> Error starting domain: POST operation failed: xend_post: error from xen 
>> daemon: (xend.err "Boot loader didn't return any
>> data!")
>>
>> details reports:
>>
>> raceback (most recent call last):
>>   File "/usr/share/virt-manager/virtManager/engine.py", line 589, in 
>> run_domain
>> vm.startup()
>>   File "/usr/share/virt-manager/virtManager/domain.py", line 150, in startup
>> self._backend.create()
>>   File "/usr/lib64/python2.6/site-packages/libvirt.py", line 333, in create
>> if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
>> libvirtError: POST operation failed: xend_post: error from xen daemon: 
>> (xend.err "Boot loader didn't return any data!")
>>
>> My thought is that since Fedora 16 comes with grub2, my current xen setup 
>> doesn't support it.
> And what is "current xen setup"? What version of Xen toolstack do you have?
Distribution is a plain F12 and the Xen stack is:

Kernel 2.6.32.39-175.xendom0.fc13.x86_64
xen-4.0.1-6.fc12.src.rpm
virt-manager-0.8.2-3.fc12.src.rpm

>> I also did a backport of xen4.2.1 from F16, recompiling it from src.rpm but 
>> anything was really working.
> Huh? So did it work or not? What version of src.rpm? xen-4.1.2-2 or later?

No! It wasn't working! I rebuilded under F12 the
xen-4.1.2-2.fc16.src.rpm from the last F16 updates.

>> Does anyone can suggest something to solve this problem.
> I am pretty sure this is solved - if you look in the Fedora bugzilla there is 
> a BZ
> for this and it has been fixed.

Yes! I read it! But I don't know if the xen-4.1.2-2 from F16 can work
against the kernel I have. Otherwise
feel free to suggest me any other combination that might work with my
current situation.

>
>> Thanks in advance.
>> Roberto Fichera.
>> --
>> xen mailing list
>> xen@lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/xen

--
xen mailing list
xen@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen

Re: [Fedora-xen] Fedora 12 x86_64, Xen 4.0.1-6 and Fedora 16 domU

2012-01-24 Thread Konrad Rzeszutek Wilk
On Tue, Jan 24, 2012 at 08:24:28PM +0100, Roberto Fichera wrote:
> Hi All,
> 
> I just update one of my Fedora 14 domU to Fedora 16 and everything when ok
> in the update process. But once I did the first domU reboot than I got the
> 
> Error: Boot loader didn't return any data!
> 
> while virt-manager reports:
> 
> Error starting domain: POST operation failed: xend_post: error from xen 
> daemon: (xend.err "Boot loader didn't return any
> data!")
> 
> details reports:
> 
> raceback (most recent call last):
>   File "/usr/share/virt-manager/virtManager/engine.py", line 589, in 
> run_domain
> vm.startup()
>   File "/usr/share/virt-manager/virtManager/domain.py", line 150, in startup
> self._backend.create()
>   File "/usr/lib64/python2.6/site-packages/libvirt.py", line 333, in create
> if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
> libvirtError: POST operation failed: xend_post: error from xen daemon: 
> (xend.err "Boot loader didn't return any data!")
> 
> My thought is that since Fedora 16 comes with grub2, my current xen setup 
> doesn't support it.

And what is "current xen setup"? What version of Xen toolstack do you have?

> 
> I also did a backport of xen4.2.1 from F16, recompiling it from src.rpm but 
> anything was really working.

Huh? So did it work or not? What version of src.rpm? xen-4.1.2-2 or later?
> 
> Does anyone can suggest something to solve this problem.

I am pretty sure this is solved - if you look in the Fedora bugzilla there is a 
BZ
for this and it has been fixed.

> 
> Thanks in advance.
> Roberto Fichera.
> --
> xen mailing list
> xen@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/xen
--
xen mailing list
xen@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen