LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 12-19-2008, 07:56 PM   #1
piukeman
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Rep: Reputation: 0
Xen in fedora 10


I `ve installed fedora 10, so i need xen to work, but xen doesn `t work. I installed with these steps :

1) yum install xen
2) yum install kernel-xen
3) yum install virt-manager

I have no errors in the installation. BUT WHE I REBOOT AND I RUN XEND I `VE GOT THE MESSAGE:

[root@Tirnanog sebastian]# xend
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 16, in <module>
from xen.xend.server import SrvDaemon
File "/usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", line 26, in <module>
import relocate
File "/usr/lib/python2.5/site-packages/xen/xend/server/relocate.py", line 28, in <module>
from xen.xend import XendDomain
File "/usr/lib/python2.5/site-packages/xen/xend/XendDomain.py", line 35, in <module>
from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
File "/usr/lib/python2.5/site-packages/xen/xend/XendCheckpoint.py", line 20, in <module>
from xen.xend import balloon, sxp, image
File "/usr/lib/python2.5/site-packages/xen/xend/image.py", line 44, in <module>
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)')


Please any help will be useful, i don `t know what to do !

Piukeman !
 
Old 12-19-2008, 09:07 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Have you booted to the xen kernel?
 
Old 12-19-2008, 09:13 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I think you could try

yum groupinstall Virtualization

to make sure it has everything it needs if Simon's idea doesn't sort it.

Last edited by billymayday; 12-19-2008 at 09:14 PM.
 
Old 12-20-2008, 07:35 PM   #4
piukeman
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I did it all

Hi, and thanks to everyone, i did it all... i booted the right kernel, and i have installed all the packages. I don `t know what to do !i need xen in fedora, all the tutoruials are really simple. I did the correct installation, everything is installed. Then i booted the vmlinuz-2.6.27.7-134.fc10.i686.PAE kernel (xen kernel) but the when i run xend, I `ve this message error:

[root@Tirnanog sebastian]# xend
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 16, in <module>
from xen.xend.server import SrvDaemon
File "/usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", line 26, in <module>
import relocate
File "/usr/lib/python2.5/site-packages/xen/xend/server/relocate.py", line 28, in <module>
from xen.xend import XendDomain
File "/usr/lib/python2.5/site-packages/xen/xend/XendDomain.py", line 35, in <module>
from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
File "/usr/lib/python2.5/site-packages/xen/xend/XendCheckpoint.py", line 20, in <module>
from xen.xend import balloon, sxp, image
File "/usr/lib/python2.5/site-packages/xen/xend/image.py", line 44, in <module>
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)')
[root@Tirnanog sebastian]#


Thanks in advanced to all of you !

Last edited by piukeman; 12-20-2008 at 07:37 PM.
 
Old 12-20-2008, 08:33 PM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I don't have a xen kernel loaded, but doing yum list "*kernel*" on CentOS (and the naming is pretty much the same), I see

kernel-xen.x86_64 2.6.18-92.1.22.el5

which is more like what I'd expect (PAE is a large memory module kernel).

Check you're loading the right one (show us "ls /boot")
 
Old 12-20-2008, 09:04 PM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
i booted the right kernel, [snip] vmlinuz-2.6.27.7-134.fc10.i686.PAE
What makes you think that this is the xen kernel? Usually they have "xen" in there name.

How did you check that you have all the needed packages?
Quote:
ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory)
This error is telling you that you do not have everything you need.

What happens when you enter:

su -c "yum groupinstall 'Virtualization'"
 
Old 12-20-2008, 09:08 PM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,617
Blog Entries: 3

Rep: Reputation: 219Reputation: 219Reputation: 219
over 5000 post 10 thank you's you needed this one and it is a good one.
 
Old 12-20-2008, 09:13 PM   #8
agerardi
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
There is a bug issue with using Zen in Fedora 10.

Snip:

Fedora 10 i686 Xen guest won't boot
link to this item - Bugzilla: 470905
Fedora 10 (i686) must use the kernel-PAE package to run as a Xen guest. The installer fails to choose this kernel when it is being installed under Xen, so the installed system will not boot.
As a workaround, you can use a kickstart file to install kernel-PAE. An updates.img file that fixes this problem should be made available soon.
Error upgrading systems with kernel-xen installed
link to this item - Bugzilla: 472462
If you try to upgrade a system with image:Echo-package-16px.pngkernel-xen installed, anaconda will fail with an error message ending
 
Old 12-20-2008, 09:21 PM   #9
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That's as a guest though, you still need the xen kernel as Dom0
 
Old 12-20-2008, 09:37 PM   #10
agerardi
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
There is no kernel-zen kernel in Fedora 10 if I understand correctly the info put out by the fedora project folks. It said to use the Kernel-PAE and intall zenner as the managing application. Its late at night so I could be miss-informed.

Al
 
Old 12-20-2008, 09:42 PM   #11
agerardi
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
I promise, my last comment for tonight:

Previous versions of fedora had a distinct kernel image for Xen domains. This is no longer the case for Fedora 10. The version of image:Echo-package-16px.pngpython-virtinst on Fedora 8 is not aware of this change.

A newer build of image:Echo-package-16px.pngpython-virtinst has been created in updates-testing. Try this test version and give it some positive karma if it works for you.
 
Old 12-20-2008, 09:43 PM   #12
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'll fire up F10 later and check it out.
 
Old 12-20-2008, 09:50 PM   #13
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
looks like you're spot on
Code:
yum groupinstall virtualization
Loaded plugins: refresh-packagekit
rpmfusion-nonfree-updates                                                                                                                                    | 2.7 kB     00:00     
rpmfusion-nonfree-updates/primary_db                                                                                                                         |  18 kB     00:00     
fedora                                                                                                                                                       | 2.8 kB     00:00     
rpmfusion-free-updates                                                                                                                                       | 2.7 kB     00:00     
rpmfusion-free-updates/primary_db                                                                                                                            |  71 kB     00:00     
rpmfusion-free                                                                                                                                               | 2.7 kB     00:00     
updates                                                                                                                                                      | 2.3 kB     00:00     
updates/primary_db                                                                                                                                           | 1.2 MB     00:01     
rpmfusion-nonfree                                                                                                                                            | 2.7 kB     00:00     
Setting up Group Process
rpmfusion-nonfree-updates/group_gz                                                                                                                           |  938 B     00:00     
rpmfusion-free-updates/group_gz                                                                                                                              | 1.4 kB     00:00     
updates/group                                                                                                                                                | 1.4 MB     00:01     
Resolving Dependencies
--> Running transaction check
---> Package kvm.i386 0:74-6.fc10 set to be updated
--> Processing Dependency: etherboot-roms-kvm for package: kvm
---> Package virt-manager.i386 0:0.6.0-5.fc10 set to be updated
--> Processing Dependency: libvirt-python >= 0.4.5 for package: virt-manager
--> Processing Dependency: gtk-vnc-python >= 0.3.4 for package: virt-manager
--> Processing Dependency: gnome-python2-gnomekeyring >= 2.15.4 for package: virt-manager
---> Package python-virtinst.noarch 0:0.400.0-5.fc10 set to be updated
---> Package virt-viewer.i386 0:0.0.3-3.fc10 set to be updated
--> Processing Dependency: libxenstore.so.3.0 for package: virt-viewer
--> Processing Dependency: libgtk-vnc-1.0.so.0 for package: virt-viewer
--> Processing Dependency: libvirt.so.0 for package: virt-viewer
--> Running transaction check
---> Package gnome-python2-gnomekeyring.i386 0:2.23.0-1.fc10 set to be updated
---> Package gtk-vnc.i386 0:0.3.7-3.fc10 set to be updated
---> Package xen-libs.i386 0:3.3.0-1.fc10 set to be updated
---> Package libvirt-python.i386 0:0.5.0-1.fc10 set to be updated
---> Package libvirt.i386 0:0.5.0-1.fc10 set to be updated
--> Processing Dependency: /usr/bin/qemu-img for package: libvirt
--> Processing Dependency: iscsi-initiator-utils for package: libvirt
--> Processing Dependency: bridge-utils for package: libvirt
---> Package gtk-vnc-python.i386 0:0.3.7-3.fc10 set to be updated
---> Package etherboot-roms-kvm.i386 0:5.4.4-4.fc10 set to be updated
--> Running transaction check
---> Package iscsi-initiator-utils.i386 0:6.2.0.870-1.0.fc10 set to be updated
---> Package qemu-img.i386 0:0.9.1-10.fc10 set to be updated
---> Package bridge-utils.i386 0:1.2-6.fc10 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================
 Package                                                Arch                               Version                                        Repository                           Size
====================================================================================================================================================================================
Installing:
 kvm                                                    i386                               74-6.fc10                                      updates                             745 k
 python-virtinst                                        noarch                             0.400.0-5.fc10                                 updates                             315 k
 virt-manager                                           i386                               0.6.0-5.fc10                                   updates                             1.4 M
 virt-viewer                                            i386                               0.0.3-3.fc10                                   fedora                               28 k
Installing for dependencies:
 bridge-utils                                           i386                               1.2-6.fc10                                     fedora                               28 k
 etherboot-roms-kvm                                     i386                               5.4.4-4.fc10                                   fedora                              126 k
 gnome-python2-gnomekeyring                             i386                               2.23.0-1.fc10                                  fedora                               20 k
 gtk-vnc                                                i386                               0.3.7-3.fc10                                   fedora                               80 k
 gtk-vnc-python                                         i386                               0.3.7-3.fc10                                   fedora                               13 k
 iscsi-initiator-utils                                  i386                               6.2.0.870-1.0.fc10                             updates                             606 k
 libvirt                                                i386                               0.5.0-1.fc10                                   updates                             1.7 M
 libvirt-python                                         i386                               0.5.0-1.fc10                                   updates                             101 k
 qemu-img                                               i386                               0.9.1-10.fc10                                  fedora                               76 k
 xen-libs                                               i386                               3.3.0-1.fc10                                   fedora                              180 k

Transaction Summary
====================================================================================================================================================================================
Install     14 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 5.4 M
 
Old 12-21-2008, 12:37 AM   #14
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Hmmm... perhaps we are out of date?
Fedora 10 doesn’t include Xen, KVM rules uncontested

Quote:
Daniel P. Berrange laid[1] it out there. "There is pretty much zero chance that Fedora 10 will include a Xen Dom0 host. While upstream Xen developers are making good progress on porting Dom0 to paravirt_ops, there is simply too little time for this to be ready for Fedora 10. So if you need to use Fedora 10 as a host, then KVM is your only viable option at this time. If you can wait for Fedora 11 (or use RHEL-5 / CentOS-5) then Xen may be an option for you." See also FWN 143[2].

[1] https://www.redhat.com/archives/fedo.../msg00035.html
[2] https://fedoraproject.org/wiki/FWN/I...main_0_Support
http://www.virtualization.info/2008/...kvm-rules.html
 
Old 01-11-2009, 11:14 PM   #15
sunjith
LQ Newbie
 
Registered: Jan 2009
Location: Kochi, India
Distribution: Fedora
Posts: 4

Rep: Reputation: 0
It's different in F10. See this: http://fedoraproject.org/wiki/Features/XenPvopsDom0

Update: dom0 xen not yet implemented in F10 though. Hopefully F11 would have it.

Last edited by sunjith; 01-13-2009 at 12:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xen on Fedora 7 akvino Fedora 3 03-18-2008 09:08 AM
please help me get xen running on fedora 6 extendedping Linux - General 2 02-08-2007 06:56 AM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 11-05-2006 12:21 PM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 10-21-2006 11:33 PM
Fedora 5 GFS and Xen EatPaste Fedora - Installation 2 05-30-2006 10:25 AM


All times are GMT -5. The time now is 07:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration