LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Xen in fedora 10 (https://www.linuxquestions.org/questions/fedora-35/xen-in-fedora-10-a-691804/)

piukeman 12-19-2008 07:56 PM

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 !

Simon Bridge 12-19-2008 09:07 PM

Have you booted to the xen kernel?

billymayday 12-19-2008 09:13 PM

I think you could try

yum groupinstall Virtualization

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

piukeman 12-20-2008 07:35 PM

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 !

billymayday 12-20-2008 08:33 PM

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")

Simon Bridge 12-20-2008 09:04 PM

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'"

Drakeo 12-20-2008 09:08 PM

over 5000 post 10 thank you's you needed this one and it is a good one.

agerardi 12-20-2008 09:13 PM

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

billymayday 12-20-2008 09:21 PM

That's as a guest though, you still need the xen kernel as Dom0

agerardi 12-20-2008 09:37 PM

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

agerardi 12-20-2008 09:42 PM

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.

billymayday 12-20-2008 09:43 PM

I'll fire up F10 later and check it out.

billymayday 12-20-2008 09:50 PM

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


Simon Bridge 12-21-2008 12:37 AM

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

sunjith 01-11-2009 11:14 PM

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.


All times are GMT -5. The time now is 05:02 PM.