Skip to contentSkip to conversation

xend running on EL5

DISCUSSION Steven Haigh 3 participants 3 messages Oct 14, 2012

lore
Share & tools
lore
#0 lore raw

Hi guys,

I've been trying to get my Xen 4.2 RPMs to build on both EL5 and EL6 systems. I'm just about there but I've noticed one issue which I'm not 100% sure of the best way to resolve.

/usr/sbin/xend is a simple python launcher that runs fine as is on EL6, but in EL5 it comes up with:

# service xend start
Starting xend daemon: Unknown option: -s
Unknown option: -s
usage: /usr/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.

The standard hashbang line for xend is:
#!/usr/bin/python -Es

EL5 seems to run python 2.4.3 which doesn't have the -s option.

So, what would be the best way to work around this?

I could patch out the -s when building the RPMs, however would that
have any effect on EL6 systems?

Signature · 6 lines
Steven Haigh

Email: [email protected]
Web: http://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
Fax: (03) 8338 0299

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

#1 lore raw
Quoted 12 lines · Steven Haigh

Hi guys,

I've been trying to get my Xen 4.2 RPMs to build on both EL5 and EL6 systems. I'm just about there but I've noticed one issue which I'm not 100% sure of the best way to resolve.

/usr/sbin/xend is a simple python launcher that runs fine as is on EL6, but in EL5 it comes up with:

# service xend start
Starting xend daemon: Unknown option: -s
Unknown option: -s
usage: /usr/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
Quoted 4 lines

The standard hashbang line for xend is:
#!/usr/bin/python -Es

EL5 seems to run python 2.4.3 which doesn't have the -s option.

That isn't a standard xen line, it is a hack I put into the Fedora code to try to get xend to work better with selinux in recent Fedora versions (the switch to systemd might also have been a factor). You can probably safely throw away the xend.selinux.fixes.patch (or that part of it) for EL5 and EL6 as I think the selinux problems came later.

Michael Young

#2 lore raw
Quoted 22 lines · M A Young
Quoted 18 lines · Steven Haigh

Hi guys,

I've been trying to get my Xen 4.2 RPMs to build on both EL5 and EL6 systems. I'm just about there but I've noticed one issue which I'm not 100% sure of the best way to resolve.

/usr/sbin/xend is a simple python launcher that runs fine as is on EL6, but in EL5 it comes up with:

# service xend start
Starting xend daemon: Unknown option: -s
Unknown option: -s
usage: /usr/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.

The standard hashbang line for xend is:
#!/usr/bin/python -Es

Quoted 9 lines
Quoted 1 line

EL5 seems to run python 2.4.3 which doesn't have the -s option.

That isn't a standard xen line, it is a hack I put into the Fedora code to try to get xend to work better with selinux in recent Fedora versions (the switch to systemd might also have been a factor). You can probably safely throw away the xend.selinux.fixes.patch (or that part of it) for EL5 and EL6 as I think the selinux problems came later.

For rhel5 you might also want this patch:

"libfsimage: add ext4 support for CentOS 5.x":
http://xenbits.xen.org/hg/xen-unstable.hg/rev/98e1ba6a672a

which adds pygrub ext4 support on el5 using e4fsprogs.

-- Pasi