raghunathan srinivasan
2007-Nov-06 05:30 UTC
[Xen-users] Problem while installing XEN 3.1 on Fedora 6
Hi, I downloaded XEN 3.1 source code on a fedora 6 machine. I did # make world # make install It did not give me an error then when I restarted the machine the Grub did not have 2 options. It had only one option that was the kernel. On loading the OS, when i gave # xend it gives the following errors: [root@localhost sbin]# xend ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory) ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory) Traceback (most recent call last): File "/usr/sbin/xend", line 42, in ? from xen.xend.server import SrvDaemon File "//usr/lib/python/xen/xend/server/SrvDaemon.py", line 26, in ? import relocate File "//usr/lib/python/xen/xend/server/relocate.py", line 26, in ? from xen.xend import XendDomain File "//usr/lib/python/xen/xend/XendDomain.py", line 35, in ? from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo File "//usr/lib/python/xen/xend/XendCheckpoint.py", line 22, in ? from xen.xend.XendConfig import XendConfig File "//usr/lib/python/xen/xend/XendConfig.py", line 27, in ? from xen.xend.XendDevices import XendDevices File "//usr/lib/python/xen/xend/XendDevices.py", line 22, in ? from xen.xend.server import blkif, netif, tpmif, pciif, iopif, irqif, usbif, vfbif File "//usr/lib/python/xen/xend/server/pciif.py", line 38, in ? xc = xen.lowlevel.xc.xc() xen.lowlevel.xc.Error: (1, ''Internal error'', ''Could not obtain handle on privileged command interface (2 = No such file or directory)'') Can anyone tell me what has gone wrong and how I can correct this? thanks & regards raghu -- http://www.public.asu.edu/~rsriniv8/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nico Kadel-Garcia
2007-Nov-06 08:16 UTC
Re: [Xen-users] Problem while installing XEN 3.1 on Fedora 6
raghunathan srinivasan wrote:> Hi, > > I downloaded XEN 3.1 source code on a fedora 6 machine. > I did > # make world > # make install > > It did not give me an error then when I restarted the machine the Grub > did not have 2 options. It had only one option that was the kernel. > On loading the OS, when i gave >Right. The source code does not have the smarts to run "grubby" and set up the kernel. This is what you get for using source code, and not an RPM. Go ahead and take a look at the SRPM and the .spec file to see exactly how it uses grubby, and reset your default kernel, and reboot.> # xend > it gives the following errors: > [root@localhost sbin]# xend > ERROR Internal error: Could not obtain handle on privileged command > interface (2 = No such file or directory) > ERROR Internal error: Could not obtain handle on privileged command > interface (2 = No such file or directory) > Traceback (most recent call last): > File "/usr/sbin/xend", line 42, in ? > from xen.xend.server import SrvDaemon > File "//usr/lib/python/xen/xend/server/SrvDaemon.py", line 26, in ? > import relocate > File "//usr/lib/python/xen/xend/server/relocate.py", line 26, in ? > from xen.xend import XendDomain > File "//usr/lib/python/xen/xend/XendDomain.py", line 35, in ? > from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo > File "//usr/lib/python/xen/xend/XendCheckpoint.py", line 22, in ? > from xen.xend.XendConfig import XendConfig > File "//usr/lib/python/xen/xend/XendConfig.py", line 27, in ? > from xen.xend.XendDevices import XendDevices > File "//usr/lib/python/xen/xend/XendDevices.py", line 22, in ? > from xen.xend.server import blkif, netif, tpmif, pciif, iopif, > irqif, usbif, vfbif > File "//usr/lib/python/xen/xend/server/pciif.py", line 38, in ? > xc = xen.lowlevel.xc.xc() > xen.lowlevel.xc.Error: (1, ''Internal error'', ''Could not obtain handle > on privileged command interface (2 = No such file or directory)'') > > Can anyone tell me what has gone wrong and how I can correct this? >Yes, upgrade to Fedora Release 7, and use the kernek-xen RPM if you can. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
raghunathan srinivasan
2007-Nov-06 23:23 UTC
Re: [Xen-users] Problem while installing XEN 3.1 on Fedora 6
thanks for that. I actually wanted to use the source code as I wanted to make small changes to XEN and recompile it. If I use the RPM can I recompile the code? I tried making changes to the grub.conf file. It has the following contents, my paths are relative to /boot: title Fedora Core (2.6.18-1.2798.fc6) root (hd0,0) kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-1.2798.fc6.img title XEN 3.1 /XenLinux 2.6 kernel /xen-3.1.gz console=vga module /vmlinuz-2.6-xen root=/dev/VolGroup00/LogVol00 console=tty0 I made these entries using the documentation on XEN. On booting that kernel it displays some commands and then it displays kernel panic and reboots the machine. Is it because I dont have an initrd entry for it? There is no initrd file corresponding to XEN in the boot directory. thanks & regards. raghu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~``>Right. The source code does not have the smarts to run "grubby" and set >up the kernel. This is what you get for using source code, and not an >RPM. Go ahead and take a look at the SRPM and the .spec file to see >exactly how it uses grubby, and reset your default kernel, and reboot._______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nico Kadel-Garcia
2007-Nov-07 00:13 UTC
Re: [Xen-users] Problem while installing XEN 3.1 on Fedora 6
raghunathan srinivasan wrote:> thanks for that. > > I actually wanted to use the source code as I wanted to make small > changes to XEN and recompile it. If I use the RPM can I recompile the > code? >Oh, yes. Start with the SRPM, and be ready to spend some time waiting for it to compile. And make sure to reset the %release setting in the .spec file.> I tried making changes to the grub.conf file. It has the following > contents, my paths are relative to /boot: > > title Fedora Core (2.6.18-1.2798.fc6) > root (hd0,0) > kernel /vmlinuz-2.6.18-1.2798.fc6 ro > root=/dev/VolGroup00/LogVol00 rhgb quiet > initrd /initrd-2.6.18-1.2798.fc6.img > title XEN 3.1 /XenLinux 2.6 > kernel /xen-3.1.gz console=vga > module /vmlinuz-2.6-xen root=/dev/VolGroup00/LogVol00 console=tty0 > > I made these entries using the documentation on XEN. On booting that > kernel it displays some commands and then it displays kernel panic and > reboots the machine. > > Is it because I dont have an initrd entry for it? There is no initrd > file corresponding to XEN in the boot directory. > > thanks & regards. >You do have a /boot partition of its own, as partition 0 on hard drive 0 (which you can look up in /boot/grub/device.map), right? And why not boot with your installation CD in "rescue" mode in order to get at and play with the grub configuration as needed? Also, I would *not* put a "/" in a title. And last, how did you install your Xen kernel? See, the SRPM does all that for you, but did you do a "make install" with it? That should have given you an initrd. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users