Re: [CentOS-virt] Fedora 12 2.6.31.5-127.fc12 domU on CentOS 5.4 2.6.18-164.6.1.el5xen fails to boot

2009-11-24 Thread Pasi Kärkkäinen
On Mon, Nov 23, 2009 at 05:51:51PM -0500, Charles J Gruener wrote:
 I've only got the one virtual disk. /boot is on xvda1 with / and swap  
 in LVs. The PV is xvda2.


Double check the F12 /boot type. It needs to be ext3 for now.
RHEL5 / CentOS5 doesn't have ext4 pygrub support yet.

Xen packages on F12 host/dom0 do support ext4 pygrub though.

-- Pasi

 Charles
 
 On Nov 23, 2009, at 4:43 PM, Andri Möll an...@dot.ee wrote:
 
  If /boot is on another virtual drive, make sure it's the first one in
  the VM's 'disk' listing (/etc/xen/foo).  I remember reading that Xen
  gives only the first disk to pygrub as an arg.
  /usr/bin/pygrub is a Python script.  Probably printing the 'file'  
  var to
  stderr before the line fsimage.open(file, get_fs_offset(file)) shows
  what it's trying to open.
 
 
  Andri
 
 
  On Mon, 2009-11-23 at 15:59 -0500, Charles J Gruener wrote:
  I specifically call out to create an ext3 filesystem in the  
  kickstart file for /boot.  I did neglect to mention that in my  
  original post.
 
  Charles
 
  On Nov 23, 2009, at 3:56 PM, Andri Möll wrote:
 
  This looks like your host doesn't support the filesystem your domU's
  using.  I think Fedora's on ext4 by default.  One solution is to use
  ext2/ext3 for the domU's boot media or partition.
 
 
  Andri
  ___
  CentOS-virt mailing list
  CentOS-virt@centos.org
  http://lists.centos.org/mailman/listinfo/centos-virt
 
  ___
  CentOS-virt mailing list
  CentOS-virt@centos.org
  http://lists.centos.org/mailman/listinfo/centos-virt
 ___
 CentOS-virt mailing list
 CentOS-virt@centos.org
 http://lists.centos.org/mailman/listinfo/centos-virt
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Fedora 12 2.6.31.5-127.fc12 domU on CentOS 5.4 2.6.18-164.6.1.el5xen fails to boot

2009-11-24 Thread Charles J Gruener
I mentioned in a previous post that I specifically call out ext3 as the fstype 
option for /boot.  To alleviate further confusion, here is my kickstart file.

install
cmdline
url --url http://mirrors.rit.edu/fedora/linux/releases/12/Fedora/x86_64/os
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp
rootpw ChangeMeNOW!
firewall --enabled --port=22:tcp
selinux --enforcing
timezone --utc America/New_York
bootloader --location=mbr
reboot
clearpart --all --initlabel
part /boot --fstype=ext3 --size=256
part pv.01 --size=2048 --grow
volgroup vg0 pv.01
logvol swap --fstype=swap --name=swap --vgname=vg0 --recommended
logvol / --fstype=ext3 --name=root --vgname=vg0 --size=1024 --grow

%packages --nobase

If I simply change the url line to be fedora 11 instead of 12, everything works 
and I can boot.

I decided to look into this a bit further.  After installing and getting the 
following error:

# pygrub /var/lib/xen/images/fedora12.img 
Traceback (most recent call last):
  File /usr/bin/pygrub, line 677, in ?
fs = fsimage.open(file, get_fs_offset(file))
IOError: [Errno 95] Operation not supported

I decided to 100% verify that the filesystem was in fact created as ext3.

# losetup /dev/loop0 /var/lib/xen/images/fedora12.img 
# kpartx -a /dev/loop0
# mount /dev/mapper/loop0p1 /mnt
# mount | grep /dev/mapper/loop0p1
/dev/mapper/loop0p1 on /mnt type ext4 (rw)

Wait...what?  But I specified ext3 in the kickstart file...

So how do I get anaconda on Fedora 12 to honor the --fstype=ext3 option for 
part /boot?  I tried both:

--fstype ext3

and

--fstype=ext3

with the same results.

Thanks,
Charles

On Nov 24, 2009, at 12:06 PM, Pasi Kärkkäinen wrote:

 On Mon, Nov 23, 2009 at 05:51:51PM -0500, Charles J Gruener wrote:
 I've only got the one virtual disk. /boot is on xvda1 with / and swap  
 in LVs. The PV is xvda2.
 
 
 Double check the F12 /boot type. It needs to be ext3 for now.
 RHEL5 / CentOS5 doesn't have ext4 pygrub support yet.
 
 Xen packages on F12 host/dom0 do support ext4 pygrub though.
 
 -- Pasi

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] Fedora 12 2.6.31.5-127.fc12 domU on CentOS 5.4 2.6.18-164.6.1.el5xen fails to boot

2009-11-24 Thread R P Herrold
On Tue, 24 Nov 2009, Scot P. Floess wrote:

  I know  10 and 11 I'd have to use KVM

ehhh --- I run Fedora 10 and 11 in pure quill xen here and 
have, predating kvm

-- Russ herrold
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Fedora 12 2.6.31.5-127.fc12 domU on CentOS 5.4 2.6.18-164.6.1.el5xen fails to boot

2009-11-24 Thread Scot P. Floess

Is qemu running as well?  So, for example F9 had a Xen based kernel and it 
actually ran fine for me...  Alas, I do not have great harware and running 
F11 using qemu was painful at best - to the tune I just will not do it... 
I was hopeing 12 might have a Xen based kernel so I can just do like I was 
with F9...

On Tue, 24 Nov 2009, R P Herrold wrote:

 On Tue, 24 Nov 2009, Scot P. Floess wrote:

  I know  10 and 11 I'd have to use KVM

 ehhh --- I run Fedora 10 and 11 in pure quill xen here and
 have, predating kvm

 -- Russ herrold
 ___
 CentOS-virt mailing list
 CentOS-virt@centos.org
 http://lists.centos.org/mailman/listinfo/centos-virt


Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros  http://sourceforge.net/projects/keros
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Fedora 12 2.6.31.5-127.fc12 domU on CentOS 5.4 2.6.18-164.6.1.el5xen fails to boot

2009-11-24 Thread Charles J Gruener
 On Tue, 2009-11-24 at 14:11 -0500, Charles J Gruener wrote:
 Well, I found the issue.  Anyone care to help me figure out how to get this 
 resolved?
 
 https://bugzilla.redhat.com/show_bug.cgi?id=529846
 
 Charles

To follow up on this post, the bugzilla entry above has been updated to include 
an updates.img file that works perfectly.  I can now format an ext3 partition 
for /boot and kickstart my Fedora 12 domU installs on a CentOS 5.4 dom0.

I hope this helps others who may experience this issue in the future.

Charles
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Shell command to list cpu usage for KVM guests?

2009-11-24 Thread S.Tindall
On Wed, 2009-11-25 at 00:48 -0600, Neil Aggarwal wrote:
 Hello:
 
 I am looking for a way to check CPU usage for
 KVM guests.
 
 I see that capability in virt-manager, but that would
 require me to install a GUI on the host.
 
 Is there a simple report from a command line tool?
 
 Something like the three load average numbers per
 guest in a list?
 
 I took a look at virsh but could not find anything.

Look at virt-top from epel.

Works something like top and shows all guests.

# rpm -q virt-top
virt-top-1.0.1-7.el5


Steve



___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt