/usr/lib64/python2.7/site-packages/xen/util/pci.py stays untouched
Dmesg log attached
[root@fedora14 ~]# xm info
Traceback (most recent call last):
File "/usr/sbin/xm", line 5, in <module>
from xen.xm import main
File "/usr/lib64/python2.7/site-packages/xen/xm/main.py", line 41, in
<module>
from xen.util.pci import *
File "/usr/lib64/python2.7/site-packages/xen/util/pci.py", line 937
pos = 0
^
IndentationError: expected an indented block
Convert /usr/lib64/python2.7/site-packages/xen/util/pci.py back as it was
[root@fedora14 ~]# vi /usr/lib64/python2.7/site-packages/xen/util/pci.py
[root@fedora14 ~]# service xend start
Starting xend daemon: [ OK ]
[root@fedora14 ~]# service xenconsoled start
Starting xenconsoled daemon: [ OK ]
[root@fedora14 ~]# xm info
host : fedora14
release : 2.6.32.19-xen
version : #4 SMP Fri Sep 3 22:10:56 MSD 2010
machine : x86_64
nr_cpus : 4
nr_nodes : 1
cores_per_socket : 4
threads_per_core : 1
cpu_mhz : 2833
hw_caps :
bfebfbff:20100800:00000000:00000940:0408e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 8190
free_memory : 1671
node_to_cpu : node0:0-3
node_to_memory : node0:1671
node_to_dma32_mem : node0:841
max_node_id : 0
xen_major : 4
xen_minor : 0
xen_extra : .1
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p
hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
xen_commandline :
cc_compiler : gcc version 4.5.1 20100812 (Red Hat 4.5.1-1) (GCC)
cc_compile_by : root
cc_compile_domain :
cc_compile_date : Fri Sep 3 21:16:54 MSD 2010
xend_config_format : 4
Boris.
--- On Wed, 9/1/10, W. Michael Petullo <mike(a)flyn.org> wrote:
From: W. Michael Petullo <mike(a)flyn.org>
Subject: [Fedora-xen] Xen Dom0 and Fedora 14
To: xen(a)lists.fedoraproject.org
Date: Wednesday, September 1, 2010, 2:42 PM
I have been investigating the use of Xen with a Fedora 14 (devel)-based
Dom0. Until now, I have always used Michael Young's Dom0 kernels.
The first thing I did was try to build the current Fedora 14 kernel with
Xen Dom0 support. I began porting Michael's RPM specification to the
Fedora 14 specification. What I found was that the Xen pvops work seems
to be targeting 2.6.32 and possibly 2.6.36. As a result, I was unable
to find a straightforward way to create a patch for 2.6.35.4. Am I
missing something here? Is building a 2.6.35.4-based kernel difficult
in this way?
Next, I tried to use Michael's latest Fedora 12 kernel on Fedora
14. Of course, Fedora 14 uses some features that are not available
in this kernel. Most notably, I had to provide the kernel with the
"init=/sbin/upstart" option to avoid the use of systemd.
Once I booted the system, I found that xend would not start because it did
not find what it expected in /sys/bus/pci/devices/0000\:00\:03.2/config:
[...]
File "/usr/lib/python2.7/site-packages/xen/util/pci.py", line 1050, in
detect_dev_info
pos = self.find_cap_offset(PCI_CAP_ID_EXP)
File "/usr/lib/python2.7/site-packages/xen/util/pci.py", line 933, in
find_cap_offset
id = ord(os.read(fd, 1))
TypeError: ord() expected a character, but string of length 0 found
I "fixed" this by editing pci.py and changing:
id = ord(os.read(fd, 1))
to:
try:
id = ord(os.read(fd, 1))
except:
pos = 0
break;
Of course, this might not be a good fix, but it was quick and it allowed
me to continue and experiment. Does anyone know what is going on here?
At this point, I was able to boot a DomU image, although I need to do a
lot more testing. Has anyone else experimented with Fedora 14? What is
your experience? I am especially interested in hearing about Fedora 14
Dom0 kernels.
--
Mike
:wq
--
xen mailing list
xen(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen