Skip to contentSkip to conversation

Help booting Xen under RHEL6 beta2

DISCUSSION Dan Magenheimer 8 participants 25 messages Jul 8, 2010 – Jul 14, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

With RHEL6 beta 2 now available, I am once again trying to get a fresh Xen 4.0-testing tree booted "underneath" it. (This is for my Xen development machines, no political comments please ;-) I'm sure there are some similarities between this process and the process under FC13(?); any help appreciated.

I have cloned xen-4.0-testing.hg and successfully built a full set of Xen "stuff" with "make world". The dom0 kernel that is installed in /boot is vmlinuz-2.6.31.13 I used the default config (and default responses to the "make oldconfig" that seems to be run by default) to build this dom0 kernel.

1) Is there a better config file to start from for building the dom0 kernel? For example, I see that CONFIG_SYSFS_DEPRECATED{,V2} are not set, and I am fairly confident that this kernel will not boot a RHEL6 environment without it.
2) What do I use to build the initrd? The standard "mkinitrd initrd.img version" yields LOTS of error messages and, in any case, I believe that dracut should now be used instead of mkinitrd?
3) Should I be using a different/newer pvops kernel? IIRC, there is an issue with booting >=2.6.32 pvops dom0 with pre-xen-unstable hypervisors? Or is that fixed in latest xen-4.0-testing?
4) Anything else I should watch out for? E.g. recent tool changes due to udev or xencommon or ???

Most of these final steps are black magic to me and I've been using a recipe on RHEL5uX for them for so long, I'm not even sure what to look for if (when) the dom0 boot fails... and trial and error is not very productive for this kind of thing.

Thanks,
Dan

#1 lore raw
Quoted 14 lines · Dan Magenheimer

With RHEL6 beta 2 now available, I am once again trying to get a fresh Xen 4.0-testing tree booted "underneath" it. (This is for my Xen development machines, no political comments please ;-) I'm sure there are some similarities between this process and the process under FC13(?); any help appreciated.

I have cloned xen-4.0-testing.hg and successfully built a full set of Xen "stuff" with "make world". The dom0 kernel that is installed in /boot is vmlinuz-2.6.31.13 I used the default config (and default responses to the "make oldconfig" that seems to be run by default) to build this dom0 kernel.

Quoted 5 lines

1) Is there a better config file to start from for building the dom0 kernel? For example, I see that CONFIG_SYSFS_DEPRECATED{,V2} are not set, and I am fairly confident that this kernel will not boot a RHEL6 environment without it.

You could try my .config .. it works on Fedora 13 for me, with xen/stable-2.6.32.x dom0 kernel:
http://pasik.reaktio.net/xen/pv_ops-dom0-debug/config-2.6.32.15-pvops-dom0-xen-stable-x86_64

Quoted 4 lines

2) What do I use to build the initrd? The standard "mkinitrd initrd.img version" yields LOTS of error messages and, in any case, I believe that dracut should now be used instead of mkinitrd?

Yeah, you should use dracut instead of mkinitrd.
The usage is the same.

Quoted 5 lines

3) Should I be using a different/newer pvops kernel? IIRC, there is an issue with booting >=2.6.32 pvops dom0 with pre-xen-unstable hypervisors? Or is that fixed in latest xen-4.0-testing?

Xen 4.0.1-rc3 and newer work OK with the latest xen/stable-2.6.32.x at least for me on F13.

Quoted 3 lines

4) Anything else I should watch out for? E.g. recent tool changes due to udev or xencommon or ???

Not sure..

Quoted 6 lines

Most of these final steps are black magic to me and I've been using a recipe on RHEL5uX for them for so long, I'm not even sure what to look for if (when) the dom0 boot fails... and trial and error is not very productive for this kind of thing.

I was thinking of posting a tutorial about Xen 4 + F13, and after that try RHEL6 myself.. :)

-- Pasi

#2 lore raw
In reply to Dan Magenheimer
Quoted 14 lines · Dan Magenheimer

With RHEL6 beta 2 now available, I am once again trying to get a fresh Xen 4.0-testing tree booted "underneath" it. (This is for my Xen development machines, no political comments please ;-) I'm sure there are some similarities between this process and the process under FC13(?); any help appreciated.

I have cloned xen-4.0-testing.hg and successfully built a full set of Xen "stuff" with "make world". The dom0 kernel that is installed in /boot is vmlinuz-2.6.31.13 I used the default config (and default responses to the "make oldconfig" that seems to be run by default) to build this dom0 kernel.

Quoted 5 lines

1) Is there a better config file to start from for building the dom0 kernel? For example, I see that CONFIG_SYSFS_DEPRECATED{,V2} are not set, and I am fairly confident that this kernel will not boot a RHEL6 environment without it.

RHEL6 requires this not to be set, i.e., the redhat .config's have:
# CONFIG_SYSFS_DEPRECATED_V2 is not set

So, general rule of thumb around here: build RHEL6 kernel on RHEL6(guest). The beauty of a 2.6.32 guest (disk image) is that it can be a PV guest or an HVM guest, using just two different xen guest config files (surely simplifies my testing efforts -- far less guest disk images, kernel copy/installs, etc.), of course only one of them running at any one time, unless you like 'boom'! ;-)

Following that rule:
(a) install/make a RHEL6 xen guest: PV or HVM (although PV is much faster) on your favorite (working?) dom0/xen host.
(b) install devel pkg & build the variant kernel you want in that guest
(c) ... and for the issue below, in (2):

Quoted 4 lines

2) What do I use to build the initrd? The standard "mkinitrd initrd.img version" yields LOTS of error messages and, in any case, I believe that dracut should now be used instead of mkinitrd?

(c)... continued....
mkinitrd is a script in rhel6 that invokes dracut with
the proper params to make an initrd.
of course, in mkinitrd fashion, it uses the current
host config to determine what goes into the initrd.
So a PV guest will be better, since it'll include the xen-[blk|net]front drivers (et. al.) so you can build a -dom0 with needed boot drivers.

Quoted 3 lines

3) Should I be using a different/newer pvops kernel? IIRC, there is an issue with booting >=2.6.32 pvops dom0 with pre-xen-unstable hypervisors? Or

Not necessarily. Do this all the time: RHEL6-domU on RHEL5-dom0.
... maybe some intermediate versions of xen dont work w/pv-ops kernel, but it does with rhel5-dom0/xen.

Quoted 1 line

is that fixed in latest xen-4.0-testing?

good question! curious minds want to know....

Quoted 4 lines

4) Anything else I should watch out for? E.g. recent tool changes due to udev or xencommon or ???

Most of these final steps are black magic to me and

I haven't followed the how-to-build a dom0 from F12/F13,
so don't know the black magic to makde a dom0 from a 2.6.32 base.
I'm sure the magic has to do w/making the dom0 kernel in synch
with xen HV base code (HV calls, defines, etc.), but I believe how that is done in the late Fedora trees is quite diff. than how it was done in rhel5 sources (due to pv-ops kernel design).

Quoted 9 lines

I've been using a recipe on RHEL5uX for them for so long, I'm not even sure what to look for if (when) the dom0 boot fails... and trial and error is not very productive for this kind of thing.

Thanks,
Dan

Hope some of the above helps. Good luck!... Don

____________________________________________

Quoted 3 lines

Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 10 lines
Quoted 4 lines

3) Should I be using a different/newer pvops kernel? IIRC, there is an issue with booting >=2.6.32 pvops dom0 with pre-xen-unstable hypervisors? Or

Not necessarily. Do this all the time: RHEL6-domU on RHEL5-dom0.
... maybe some intermediate versions of xen dont work w/pv-ops kernel, but it does with rhel5-dom0/xen.

Quoted 1 line

is that fixed in latest xen-4.0-testing?

good question! curious minds want to know....

Yes. The xen/evtchn and xen/gntdev are differently created on 2.6.32 and xen-4.0-testing.

For details:
http://lists.xensource.com/archives/html/xen-devel/2010-06/msg01129.html

You can "fix" this by doing:

git revert 376d908f52427591cef4acd172db9c3ef28676ec and
git revert 9d85e25edbcb8a684db8470119077475ac4d90b5

That will make it possible for you to use the 2.6.32 with Xen 4.0 (and earlier versions).

Quoted 3 lines
Quoted 3 lines

4) Anything else I should watch out for? E.g. recent tool changes due to udev or xencommon or ???

There is a bug 1612 for udev. But that is not hit by Fedora 13, but rather other distros. There is a patch that fixes some of the udev versions, but not all.

#4 lore raw
Quoted 2 lines · Konrad Rzeszutek Wilk

Yes. The xen/evtchn and xen/gntdev are differently created on 2.6.32 and xen-4.0-testing.

That isn't quite true. A dom0 kernel based on the current xen/stable-2.6.32.x won't work with xen-4.0.0 but it will work with xen-4.0-testing (currently at 4.0.1-rc4-pre) as that has the corresponding patches since 4.0.1-rc2.

Michael Young

#5 lore raw
Quoted 9 lines · M A Young
Quoted 2 lines · Konrad Rzeszutek Wilk

Yes. The xen/evtchn and xen/gntdev are differently created on 2.6.32 and xen-4.0-testing.

That isn't quite true. A dom0 kernel based on the current xen/stable-2.6.32.x won't work with xen-4.0.0 but it will work with xen-4.0-testing (currently at 4.0.1-rc4-pre) as that has the corresponding patches since 4.0.1-rc2.

Right. Thanks for correcting me. It should have said xen-4.0.0 as you pointed out.

#6 lore raw

Thanks all for the replies. I've made some good forward progress but have run into another roadblock, so wanted to see if anyone has seen any of this before:

Booting RHEL6 distro with xen-4.0-testing (64-bit) and a 2.6.32.16 dom0 kernel (config attached), I usually get:

dracut: Switching root
Welcome to Red Hat Enterprise Linux Server Press 'I' to enter interactive startup
Starting udev: init: rcS main process (439) killed by KILL signal

Kernel panic - not syncing: Out of memory and no killable processes

(Xen is definitely booting... but this is a laptop and I haven't found a way to capture console output so am copying text manually. Also, I've used this laptop
for a long time with a RHEL5 distro on it with no problems, so it's highly likely any differences are due to RHEL6 vs RHEL5.)

Sometimes it gets past udev OK, completes the init scripts and then gets stuck in a very slow loop repeatedly trying to bring up the graphical console. It is alive at this point... I can ssh into it but the disk is being continually pounded so I can't do anything useful. I can "telinit 3" and the graphical console cycling stops, but the disk continues to scream. I am now able to login on the laptop screen, but again everything is VERY slow. Eventually the disk screaming stops...

Trying "service xend start" it eventually completes (with a sequence of dots), but fails... logs attached.

I tried "xl info" but get "cannot init xl context".

I do have xenfs in my /etc/fstab and "ll /proc/xen" shows everything normal.

By changing /etc/inittab to boot to runlevel 3, I can avoid the graphics issue, but at the loss of ability to VNC with a graphical display (which worked with RHEL5).

I tried disabling selinux in /etc/selinux/config but this made no difference. Realizing that there might be some never-before-tried-under-Xen service running in this distro (e.g. ksm? libvirtd?), I've also attached the output of "service --status-all".

Interestingly, vmstat seems to imply that the disk activity is due to swapping as si/so are large when the disk light is active and small/0 when the disk light is off. Why? No clue. I tried disabling ksm and ksmtuned, but no difference. It does appear with "top" that there are a lot of gnome apps using a lot of memory, so all the swapping may be completely unrelated to the Xen issues.

Thanks for any help or suggestions!
Dan

BTW, the 2.6.32.16 "dom0" kernel boots fine without Xen, which may be a good litmus test to ensure the kernel and initramfs are built properly.

Quoted 13 lines

-----Original Message-----
From: Konrad Rzeszutek Wilk
Sent: Friday, July 09, 2010 2:01 PM
To: M A Young
Cc: Don Dutile; Dan Magenheimer; [email protected]
Subject: Re: [Xen-devel] Help booting Xen under RHEL6 beta2

Quoted 5 lines · M A Young
Quoted 2 lines · Konrad Rzeszutek Wilk

Yes. The xen/evtchn and xen/gntdev are differently created on 2.6.32 and xen-4.0-testing.

Quoted 7 lines
Quoted 4 lines

That isn't quite true. A dom0 kernel based on the current xen/stable-2.6.32.x won't work with xen-4.0.0 but it will work with xen-4.0-testing (currently at 4.0.1-rc4-pre) as that has the corresponding patches since 4.0.1-rc2.

Right. Thanks for correcting me. It should have said xen-4.0.0 as you pointed out.

[2010-07-09 16:01:36 3808] INFO (SrvDaemon:332) Xend Daemon started
[2010-07-09 16:01:37 3808] INFO (SrvDaemon:336) Xend changeset: Thu Jul 08 10:03:47 2010 +0100 21258:61d705d61f20. [2010-07-09 16:01:39 3808] ERROR (SrvDaemon:349) Exception starting xend ((111, 'Connection refused')) Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/xen/xend/server/SrvDaemon.py", line 341, in run
servers = SrvServer.create()
File "/usr/lib64/python2.6/site-packages/xen/xend/server/SrvServer.py", line 251, in create
root.putChild('xend', SrvRoot())
File "/usr/lib64/python2.6/site-packages/xen/xend/server/SrvRoot.py", line 40, in __init__
self.get(name)
File "/usr/lib64/python2.6/site-packages/xen/web/SrvDir.py", line 84, in get
val = val.getobj()
File "/usr/lib64/python2.6/site-packages/xen/web/SrvDir.py", line 52, in getobj
self.obj = klassobj()
File "/usr/lib64/python2.6/site-packages/xen/xend/server/SrvNode.py", line 30, in __init__
self.xn = XendNode.instance()
File "/usr/lib64/python2.6/site-packages/xen/xend/XendNode.py", line 1141, in instance

    inst.save()
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendNode.py", line 578, in save
    self.save_networks()
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendNode.py", line 594, in save_networks
    for network_uuid in XendNetwork.get_all()])
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendBase.py", line 102, in get_record
    for key in keys])
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendNetwork.py", line 196, in get_VIFs
    vms = XendDomain.instance().get_all_vms()
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendDomain.py", line 1882, in instance
    inst.init()

File "/usr/lib64/python2.6/site-packages/xen/xend/XendDomain.py", line 114, in init
xstransact.Mkdir(XS_VMROOT)
File "/usr/lib64/python2.6/site-packages/xen/xend/xenstore/xstransact.py", line 355, in Mkdir
complete(path, lambda t: t.mkdir(*args))
File "/usr/lib64/python2.6/site-packages/xen/xend/xenstore/xstransact.py", line 361, in complete
t = xstransact(path)
File "/usr/lib64/python2.6/site-packages/xen/xend/xenstore/xstransact.py", line 29, in __init__
self.transaction = xshandle().transaction_start()
File "/usr/lib64/python2.6/site-packages/xen/xend/xenstore/xsutil.py", line 18, in xshandle
xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')
[2010-07-09 16:01:44 3803] INFO (SrvDaemon:220) Xend exited with status 1.

Xend started at Fri Jul 9 16:01:35 2010. /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/eth0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory /sys/class/net/virbr0/bridge: No such file or directory
cat: /sys/bus/scsi/devices/host0/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host0/model: No such file or directory
cat: /sys/bus/scsi/devices/host0/type: No such file or directory
cat: /sys/bus/scsi/devices/host0/rev: No such file or directory
cat: /sys/bus/scsi/devices/host0/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/host1/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host1/model: No such file or directory
cat: /sys/bus/scsi/devices/host1/type: No such file or directory
cat: /sys/bus/scsi/devices/host1/rev: No such file or directory
cat: /sys/bus/scsi/devices/host1/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/host2/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host2/model: No such file or directory
cat: /sys/bus/scsi/devices/host2/type: No such file or directory
cat: /sys/bus/scsi/devices/host2/rev: No such file or directory
cat: /sys/bus/scsi/devices/host2/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/host3/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host3/model: No such file or directory
cat: /sys/bus/scsi/devices/host3/type: No such file or directory
cat: /sys/bus/scsi/devices/host3/rev: No such file or directory
cat: /sys/bus/scsi/devices/host3/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/target0:0:0/vendor: No such file or directory
cat: /sys/bus/scsi/devices/target0:0:0/model: No such file or directory
cat: /sys/bus/scsi/devices/target0:0:0/type: No such file or directory
cat: /sys/bus/scsi/devices/target0:0:0/rev: No such file or directory
cat: /sys/bus/scsi/devices/target0:0:0/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/target2:0:0/vendor: No such file or directory
cat: /sys/bus/scsi/devices/target2:0:0/model: No such file or directory
cat: /sys/bus/scsi/devices/target2:0:0/type: No such file or directory
cat: /sys/bus/scsi/devices/target2:0:0/rev: No such file or directory
cat: /sys/bus/scsi/devices/target2:0:0/scsi_level: No such file or directory Exception starting xend: (111, 'Connection refused')

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#7 lore raw
Quoted 4 lines · Dan Magenheimer

Thanks all for the replies. I've made some good forward progress but have run into another roadblock, so wanted to see if anyone has seen any of this before:

Quoted 8 lines

Booting RHEL6 distro with xen-4.0-testing (64-bit) and a 2.6.32.16 dom0 kernel (config attached), I usually get:

dracut: Switching root
Welcome to Red Hat Enterprise Linux Server Press 'I' to enter interactive startup
Starting udev: init: rcS main process (439) killed by KILL signal

Kernel panic - not syncing: Out of memory and no killable processes

Are you limiting the memory for dom0? If so I suggest you allow it more, or don't limit it at all and see if it boots any more successfully. It is also probably worth booting direct to run level 3 (add 3 to the boot line) to so you can eliminate whether or not graphics is an issue.

Also I suggest you check whether the hypervisor and xen software are the same version. If they aren't then xend may not be able to the hypervisor.

Michael Young

#8 lore raw

Hi Michael --

Thanks for the help!

Quoted 3 lines

Also I suggest you check whether the hypervisor and xen software are the same version. If they aren't then xend may not be able to the hypervisor.

They are definitely the same version as I cloned only xen-4.0-testing and built/installed both on the test machine itself.

Quoted 3 lines

Are you limiting the memory for dom0? If so I suggest you allow it more, or don't limit it at all and see if it boots any more successfully.

Yes, I think you are right. I have always booted dom0 with 256M on this box, but I guess more recent gnome tools are much more bloated so that accounts for the swapping and slowness.

Quoted 3 lines

It is
also probably worth booting direct to run level 3 (add 3 to the boot line) to so you can eliminate whether or not graphics is an issue.

Yes, I did that. This skips the graphics looping but xend still fails to start (and I can no longer VNC to the box... fortunately it is a laptop at least).

Thanks,
Dan

#9 lore raw

Slightly more progress. I discovered xenstored is not running... so I did:

# modprobe xen-evtchn
# xenstored
# xenconsoled
# /etc/init.d/xend start

but xend fails to start with the same messages (ending in "Connection refused").

Quoted 41 lines

-----Original Message-----
From: Dan Magenheimer
Sent: Saturday, July 10, 2010 3:42 PM
To: M A Young
Cc: [email protected]; Don Dutile; Konrad Wilk
Subject: RE: [Xen-devel] Help booting Xen under RHEL6 beta2

Hi Michael --

Thanks for the help!

Quoted 3 lines

Also I suggest you check whether the hypervisor and xen software are the same version. If they aren't then xend may not be able to the hypervisor.

They are definitely the same version as I cloned only xen-4.0-testing and built/installed both on the test machine itself.

Quoted 3 lines

Are you limiting the memory for dom0? If so I suggest you allow it more, or don't limit it at all and see if it boots any more successfully.

Yes, I think you are right. I have always booted dom0 with 256M on this box, but I guess more recent gnome tools are much more bloated so that accounts for the swapping and slowness.

Quoted 3 lines

It is
also probably worth booting direct to run level 3 (add 3 to the boot line) to so you can eliminate whether or not graphics is an issue.

Yes, I did that. This skips the graphics looping but xend still fails to start (and I can no longer VNC to the box... fortunately it is a laptop at least).

Thanks,
Dan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#10 lore raw
Quoted 6 lines · Dan Magenheimer

Slightly more progress. I discovered xenstored is not running... so I did:

# modprobe xen-evtchn
# xenstored
# xenconsoled

xencommons should take care of starting xenstored and xenconsoled

#11 lore raw

Is xencommons in 4.0-testing? If so, where?

Sent from my iPhone

Quoted 15 lines · Stefano Stabellini
Quoted 6 lines · Dan Magenheimer

Slightly more progress. I discovered xenstored is not running... so I did:

# modprobe xen-evtchn
# xenstored
# xenconsoled

xencommons should take care of starting xenstored and xenconsoled

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#12 lore raw
Quoted 1 line · On Mon, 12 Jul 2010, Dan M @ Oracle wrote:

Is xencommons in 4.0-testing? If so, where?

in the sources:

tools/hotplug/Linux/init.d/xencommons

it should be installed in /etc/init.d

#13 lore raw
Quoted 8 lines · Stefano Stabellini
Quoted 1 line · On Mon, 12 Jul 2010, Dan M @ Oracle wrote:

Is xencommons in 4.0-testing? If so, where?

in the sources:

tools/hotplug/Linux/init.d/xencommons

it should be installed in /etc/init.d

It doesn't exist in 4.0-testing. In that tree, the xend wrapper script is still starting xenstored and xenconsoled.

-- Keir

#14 lore raw
In reply to Stefano Stabellini
Quoted 8 lines · Stefano Stabellini
Quoted 1 line · On Mon, 12 Jul 2010, Dan M @ Oracle wrote:

Is xencommons in 4.0-testing? If so, where?

in the sources:

tools/hotplug/Linux/init.d/xencommons

it should be installed in /etc/init.d

That change is only in xen-unstable, isn't it? In xen-4.0-testing it looks to me like tools/misc/xend still takes care of it so if you've switched to xl in that branch you might still need to start stuff by hand.

Ian.

#15 lore raw

OK, so here's another interesting piece of information:

The xend.log python error trace ends with:

xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

So I rebooted (with xend disabled), manually started xenstored, and ensured xenstored is indeed running with ps -ef. Then I tried "xenstore-ls" and all I get is:

tool = ""
xenstored = ""
local = ""

I tried this on a EL5-based distro running a 2.6.18.8-xen dom0 (with xend disabled on boot) and xenstore-ls gives me a long list of dom0 related registry entries.

So maybe xenstored is dependent on some distro configuration that is missing on RHEL6b2?

Thanks,
Dan

P.S. I checked /dev/xen and it does contain evtchn and gntdev and my kernel config does have CONFIG_XEN_DEV_EVTCHN=y

Quoted 26 lines

-----Original Message-----
From: Ian Campbell [mailto:[email protected]]
Sent: Monday, July 12, 2010 8:37 AM
To: Stefano Stabellini
Cc: Dan Magenheimer; [email protected]; Konrad Rzeszutek Wilk; DonDutile; Young
Subject: Re: [Xen-devel] Help booting Xen under RHEL6 beta2

Quoted 8 lines · Stefano Stabellini
Quoted 1 line · On Mon, 12 Jul 2010, Dan M @ Oracle wrote:

Is xencommons in 4.0-testing? If so, where?

in the sources:

tools/hotplug/Linux/init.d/xencommons

it should be installed in /etc/init.d

That change is only in xen-unstable, isn't it? In xen-4.0-testing it looks to me like tools/misc/xend still takes care of it so if you've switched to xl in that branch you might still need to start stuff by hand.

Ian.

#16 lore raw
Quoted 11 lines · Dan Magenheimer

So I rebooted (with xend disabled), manually started xenstored, and ensured xenstored is indeed running with ps -ef. Then I tried "xenstore-ls" and all I get is:

tool = ""
xenstored = ""
local = ""

I tried this on a EL5-based distro running a 2.6.18.8-xen dom0 (with xend disabled on boot) and xenstore-ls gives me a long list of dom0 related registry entries.

Those dom0 registry entries would be written by xend. If you just run xenstored, you'd expect the database to be pretty empty. Looks like xenstored is running okay. Perhaps xend is trying to connect to xenstored in a different way to xenstore-ls. There are two different ways to connect -- via a Unix domains socket /var/run/xenstored/socket; or via a kernel device /proc/xen/xenbus.

-- Keir

#17 lore raw

This recent thread from xen-users with the exact symptoms:
http://www.gossamer-threads.com/lists/xen/users/177223
(see last in thread) implies that this is the result of a regression since xen-4.0.1-rc3, though it's vague on exactly what regressed ("evtchn stuff"?).

I'll try rebuilding to confirm.

Quoted 35 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Monday, July 12, 2010 2:39 PM
To: Dan Magenheimer; Ian Campbell; Stefano Stabellini
Cc: Young; [email protected]; DonDutile; Konrad Wilk
Subject: Re: [Xen-devel] Help booting Xen under RHEL6 beta2

Quoted 11 lines · Dan Magenheimer

So I rebooted (with xend disabled), manually started xenstored, and ensured xenstored is indeed running with ps -ef. Then I tried "xenstore-ls" and all I get is:

tool = ""
xenstored = ""
local = ""

I tried this on a EL5-based distro running a 2.6.18.8-xen dom0 (with xend disabled on boot) and xenstore-ls gives me a long list of dom0 related registry entries.

Those dom0 registry entries would be written by xend. If you just run xenstored, you'd expect the database to be pretty empty. Looks like xenstored is running okay. Perhaps xend is trying to connect to xenstored in
a different way to xenstore-ls. There are two different ways to connect --
via a Unix domains socket /var/run/xenstored/socket; or via a kernel device
/proc/xen/xenbus.

-- Keir

#18 lore raw

Xen-4.0-testing:19983 would be the c/s being discussed there. You could try reverting it and see how that goes for you. But if you have /dev/xen/evtchn and /dev/xen/gntdev then (assuming the device nodes aren't bogus for some reason, and there's no reason they should be) you should be good to go in this respect. You could double check by 'ls -l /dev/xen' and compare the device-node minors to the list in /proc/misc.

-- Keir

Quoted 43 lines · Dan Magenheimer

This recent thread from xen-users with the exact symptoms:
http://www.gossamer-threads.com/lists/xen/users/177223
(see last in thread) implies that this is the result of a regression since xen-4.0.1-rc3, though it's vague on exactly what regressed ("evtchn stuff"?).

I'll try rebuilding to confirm.

Quoted 35 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Monday, July 12, 2010 2:39 PM
To: Dan Magenheimer; Ian Campbell; Stefano Stabellini
Cc: Young; [email protected]; DonDutile; Konrad Wilk
Subject: Re: [Xen-devel] Help booting Xen under RHEL6 beta2

Quoted 11 lines · Dan Magenheimer

So I rebooted (with xend disabled), manually started xenstored, and ensured xenstored is indeed running with ps -ef. Then I tried "xenstore-ls" and all I get is:

tool = ""
xenstored = ""
local = ""

I tried this on a EL5-based distro running a 2.6.18.8-xen dom0 (with xend disabled on boot) and xenstore-ls gives me a long list of dom0 related registry entries.

Those dom0 registry entries would be written by xend. If you just run xenstored, you'd expect the database to be pretty empty. Looks like xenstored is running okay. Perhaps xend is trying to connect to xenstored in
a different way to xenstore-ls. There are two different ways to connect --
via a Unix domains socket /var/run/xenstored/socket; or via a kernel device
/proc/xen/xenbus.

-- Keir

#19 lore raw
Quoted 1 line

Xen-4.0-testing:19983 would be the c/s being discussed there.

Could you confirm that number? The changeset says "xend: Fix use of set() for Python 2.3" and it was 11 months ago which doesn't match the "roll back to xen-4.0.1-rc3" suggestion in the xen-users thread, so I'm confused.

The device-node minors do match between /dev/xen and /proc/misc.

I'm in the process of doing a fresh build which will take awhile.

Thanks,
Dan

Quoted 71 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Monday, July 12, 2010 3:10 PM
To: Dan Magenheimer; Ian Campbell; Stefano Stabellini
Cc: Young; [email protected]; DonDutile; Konrad Wilk
Subject: Re: [Xen-devel] Help booting Xen under RHEL6 beta2

Xen-4.0-testing:19983 would be the c/s being discussed there. You could try
reverting it and see how that goes for you. But if you have /dev/xen/evtchn
and /dev/xen/gntdev then (assuming the device nodes aren't bogus for some
reason, and there's no reason they should be) you should be good to go in
this respect. You could double check by 'ls -l /dev/xen' and compare the
device-node minors to the list in /proc/misc.

-- Keir

Quoted 6 lines · Dan Magenheimer

This recent thread from xen-users with the exact symptoms:
http://www.gossamer-threads.com/lists/xen/users/177223
(see last in thread) implies that this is the result of a regression since xen-4.0.1-rc3, though it's vague on exactly what regressed ("evtchn stuff"?).

Quoted 25 lines

I'll try rebuilding to confirm.

Quoted 23 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Monday, July 12, 2010 2:39 PM
To: Dan Magenheimer; Ian Campbell; Stefano Stabellini
Cc: Young; [email protected]; DonDutile; Konrad Wilk
Subject: Re: [Xen-devel] Help booting Xen under RHEL6 beta2

Quoted 11 lines · Dan Magenheimer

So I rebooted (with xend disabled), manually started xenstored, and ensured xenstored is indeed running with ps -ef. Then I tried "xenstore-ls" and all I get is:

tool = ""
xenstored = ""
local = ""

I tried this on a EL5-based distro running a 2.6.18.8-xen dom0 (with xend disabled on boot) and xenstore-ls gives me a long list of dom0 related registry entries.

Those dom0 registry entries would be written by xend. If you just

run

Quoted 4 lines
Quoted 4 lines

xenstored, you'd expect the database to be pretty empty. Looks like xenstored is running okay. Perhaps xend is trying to connect to xenstored in
a different way to xenstore-ls. There are two different ways to

connect

Quoted 8 lines
Quoted 8 lines

--
via a Unix domains socket /var/run/xenstored/socket; or via a kernel device
/proc/xen/xenbus.

-- Keir

#21 lore raw
In reply to Keir Fraser
Quoted 2 lines

I'm in the process of doing a fresh build which will take awhile.

Backing out to xen-4.0.1-rc3 did not help, though short of reinstalling the entire system from scratch, I'm not sure how to ensure I've backed _everything_ out to rc3... there's too many flying parts.

Quoted 8 lines
Quoted 8 lines

So I rebooted (with xend disabled), manually started xenstored, and ensured xenstored is indeed running with ps -ef. Then I tried "xenstore-ls" and all I get is:

tool = ""
xenstored = ""
local = ""

Quoted 7 lines
Quoted 3 lines

I tried this on a EL5-based distro running a 2.6.18.8-xen dom0 (with xend disabled on boot) and xenstore-ls gives me a long list of dom0 related registry entries.

Those dom0 registry entries would be written by xend. If you just run xenstored, you'd expect the database to be pretty empty. Looks like xenstored is running okay.

I had forgotten that the xenstored data is persistent across boot, so I removed /var/lib/xenstored/tdb on the working machine and rebooted. The behavior is still different between the two systems. This may or may not be relevant or provide a clue to someone who knows far more about xenstored and xend than I do. It appears to me that dom0 is "waiting" to connect to xenstored on the good system, but not on the bad system. Any chance this might be related to the renaming of evtchn (to xen_evtchn or xen-evtchn or whatever it is)? How might I check that?

# GOOD system, xen-4.0-testing c/s 21209, 2.6.18.8-xen dom0, EL5 distro

# ls /var/lib/xenstored/tdb
ls: /var/lib/xenstored/tdb: No such file or directory
# xenstore-ls
xenstore-ls: xs_directory (/): No such device
# xenstored
# xenstore-ls
tool = ""
 xenstored = ""
local = ""
 domain = ""
  0 = ""
   device = ""
    suspend = ""
     event-channel = "39"
# /usr/lib/xen/bin/lsevtchn | grep 39
 39: VCPU 0: Interdomain (Waiting connection) - Remote Domain 0
# # NOTE, xend not started yet

#############################################
# BAD system, xen-4.0-testing c/s 21263, 2.6.32.16 pvops dom0, RHEL6b2 distro

# ls /var/lib/xenstored/tdb
ls: cannot access /var/lib/xenstored/tdb: No such file or directory
# xenstore-ls  ## HANGS until xenstored in another window!!
# xenstored
# xenstore-ls
tool = ""
 xenstored = ""
# ls /usr/lib/xen/bin/lsevtchn
ls: cannot access /usr/lib/xen/bin/lsevtchn: No such file or directory
# cd src/xen/xen-4.0-testing.hg
# tools/xcutils/  adfljad;khgalkjgdhl
11: VCPU 0: Interdomain (Waiting connection) - Remote Domain 0, Port 28
28: VCPU 0: Interdomain (Waiting connection) - Remote Domain 0, Port 11
# # attempting to start xend prints a handful of dots, no errors,
# # but /var/log/xen/xend.log shows the "Connection refused" failure
# # and xend hasn't started
Quoted 5 lines

Perhaps xend is trying to connect to xenstored in
a different way to xenstore-ls. There are two different ways to connect --
via a Unix domains socket /var/run/xenstored/socket; or via a kernel device /proc/xen/xenbus.

Could be, though I haven't intentionally changed anything other than switching to the RHEL6b2 distro and 64-bit pvops dom0.

Dan

#22 lore raw
Quoted 7 lines · Dan Magenheimer
Quoted 2 lines

I'm in the process of doing a fresh build which will take awhile.

Backing out to xen-4.0.1-rc3 did not help, though short of reinstalling the entire system from scratch, I'm not sure how to ensure I've backed _everything_ out to rc3... there's too many flying parts.

Well, you can try to back-out the two changes in the pv-ops kernel.

git revert 376d908f52427591cef4acd172db9c3ef28676ec

and
git revert 9d85e25edbcb8a684db8470119077475ac4d90b5

And that way the pv-ops kernel can run with Xen 4.0 and Xen 4.0-unstable as well.

It could also be that you are mixing two versions of Xen. As in you might have the distro's libs and then yours. Perhaps a bit of find / -name libxens*.so could shed some light?

#20 lore raw
In reply to Dan Magenheimer
Quoted 7 lines · Dan Magenheimer
Quoted 1 line

Xen-4.0-testing:19983 would be the c/s being discussed there.

Could you confirm that number? The changeset says "xend: Fix use of set() for Python 2.3" and it was 11 months ago which doesn't match the "roll back to xen-4.0.1-rc3" suggestion in the xen-users thread, so I'm confused.

Sorry it's 21182. I was looking in 3.4 tree by mistake.

-- Keir

Quoted 79 lines

The device-node minors do match between /dev/xen and /proc/misc.

I'm in the process of doing a fresh build which will take awhile.

Thanks,
Dan

Quoted 71 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Monday, July 12, 2010 3:10 PM
To: Dan Magenheimer; Ian Campbell; Stefano Stabellini
Cc: Young; [email protected]; DonDutile; Konrad Wilk
Subject: Re: [Xen-devel] Help booting Xen under RHEL6 beta2

Xen-4.0-testing:19983 would be the c/s being discussed there. You could try
reverting it and see how that goes for you. But if you have /dev/xen/evtchn
and /dev/xen/gntdev then (assuming the device nodes aren't bogus for some
reason, and there's no reason they should be) you should be good to go in
this respect. You could double check by 'ls -l /dev/xen' and compare the
device-node minors to the list in /proc/misc.

-- Keir

Quoted 6 lines · Dan Magenheimer

This recent thread from xen-users with the exact symptoms:
http://www.gossamer-threads.com/lists/xen/users/177223
(see last in thread) implies that this is the result of a regression since xen-4.0.1-rc3, though it's vague on exactly what regressed ("evtchn stuff"?).

Quoted 25 lines

I'll try rebuilding to confirm.

Quoted 23 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Monday, July 12, 2010 2:39 PM
To: Dan Magenheimer; Ian Campbell; Stefano Stabellini
Cc: Young; [email protected]; DonDutile; Konrad Wilk
Subject: Re: [Xen-devel] Help booting Xen under RHEL6 beta2

Quoted 11 lines · Dan Magenheimer

So I rebooted (with xend disabled), manually started xenstored, and ensured xenstored is indeed running with ps -ef. Then I tried "xenstore-ls" and all I get is:

tool = ""
xenstored = ""
local = ""

I tried this on a EL5-based distro running a 2.6.18.8-xen dom0 (with xend disabled on boot) and xenstore-ls gives me a long list of dom0 related registry entries.

Those dom0 registry entries would be written by xend. If you just

run

Quoted 4 lines
Quoted 4 lines

xenstored, you'd expect the database to be pretty empty. Looks like xenstored is running okay. Perhaps xend is trying to connect to xenstored in
a different way to xenstore-ls. There are two different ways to

connect

Quoted 8 lines
Quoted 8 lines

--
via a Unix domains socket /var/run/xenstored/socket; or via a kernel device
/proc/xen/xenbus.

-- Keir

#23 lore raw
In reply to Konrad Rzeszutek Wilk

Status update: Still no go.

Konrad and I repeated some of the obvious xenstored related possible problems and everything looks fine.

I tried rolling back the pvops evtchn/gntdev naming changes. No difference. I tried rolling back the tools evtchn changeset (21182). No difference.

Best I can tell so far, this seems to be something unique to RHEL6b2 but don't have the xenstored skills to debug any further.

Dan

Quoted 32 lines

-----Original Message-----
From: Konrad Rzeszutek Wilk
Sent: Monday, July 12, 2010 7:30 PM
To: Dan Magenheimer
Cc: Keir Fraser; Ian Campbell; Stefano Stabellini; xen- [email protected]; DonDutile; Young
Subject: Re: [Xen-devel] Help booting Xen under RHEL6 beta2

Quoted 7 lines · Dan Magenheimer
Quoted 2 lines

I'm in the process of doing a fresh build which will take awhile.

Backing out to xen-4.0.1-rc3 did not help, though short of reinstalling the entire system from scratch, I'm not sure how to ensure I've backed _everything_ out to rc3... there's too many flying parts.

Well, you can try to back-out the two changes in the pv-ops kernel.

git revert 376d908f52427591cef4acd172db9c3ef28676ec

and
git revert 9d85e25edbcb8a684db8470119077475ac4d90b5

And that way the pv-ops kernel can run with Xen 4.0 and Xen 4.0- unstable
as well.

It could also be that you are mixing two versions of Xen. As in you might have the distro's libs and then yours. Perhaps a bit of find / -name libxens*.so could shed some light?

#24 lore raw

Just to close this for posterity:

Move along, these are not the droids you are looking for.

In days of debugging this problem (and also during much help from Konrad), I had always manually started xenstored before attempting to start xend. And every time I had tried xl, I had tried it after attempting to start xend, and it had failed.

Apparently starting xend (in 4.0.1-rcX) AFTER starting xenstored puts xenstored into a very strange state, after which neither xm nor xl will work (but xenstore-ls and friends do work). In this state, all socket connections fail. So the classic joke: If it hurts when you do that, don't do that.

Bottom line: RHEL6b2 distro with 2.6.32.x pvops dom0 with xen-4.0-testing works.

Thanks to everyone for helping on this!
Dan

Quoted 54 lines

-----Original Message-----
From: Dan Magenheimer
Sent: Tuesday, July 13, 2010 5:55 PM
To: Konrad Wilk; Keir Fraser; Ian Campbell; Stefano Stabellini; xen- [email protected]; DonDutile; Young
Subject: RE: [Xen-devel] Help booting Xen under RHEL6 beta2

Status update: Still no go.

Konrad and I repeated some of the obvious xenstored related possible problems and everything looks fine.

I tried rolling back the pvops evtchn/gntdev naming changes. No difference. I tried rolling back the tools evtchn changeset (21182). No difference.

Best I can tell so far, this seems to be something unique to RHEL6b2 but don't have the xenstored skills to debug any further.

Dan

Quoted 32 lines

-----Original Message-----
From: Konrad Rzeszutek Wilk
Sent: Monday, July 12, 2010 7:30 PM
To: Dan Magenheimer
Cc: Keir Fraser; Ian Campbell; Stefano Stabellini; xen- [email protected]; DonDutile; Young
Subject: Re: [Xen-devel] Help booting Xen under RHEL6 beta2

Quoted 7 lines · Dan Magenheimer
Quoted 2 lines

I'm in the process of doing a fresh build which will take awhile.

Backing out to xen-4.0.1-rc3 did not help, though short of reinstalling the entire system from scratch, I'm not sure how to ensure I've backed _everything_ out to rc3... there's too many flying parts.

Well, you can try to back-out the two changes in the pv-ops kernel.

git revert 376d908f52427591cef4acd172db9c3ef28676ec

and
git revert 9d85e25edbcb8a684db8470119077475ac4d90b5

And that way the pv-ops kernel can run with Xen 4.0 and Xen 4.0- unstable
as well.

It could also be that you are mixing two versions of Xen. As in you might have the distro's libs and then yours. Perhaps a bit of find / -name libxens*.so could shed some light?