Skip to contentSkip to conversation

How to install Xen on Fedora 23?

DISCUSSION Jason Long 2 participants 7 messages Apr 26, 2016 – May 2, 2016 1 message not in the archive

lore
Share & tools
lore

Jason Long

author
#1 lore raw
In reply to a message not in the archive

Hello.
I installed Fedora 23 x64 on my PC and id below command for installing Xen :

# cd /etc/yum.repos.d/
# wget http://fedorapeople.org/groups/virt/...t-preview.repo
# yum update
# yum -y install xen xen-hypervisor xen-libs xen-runtime
# systemctl enable xend.service
# systemctl enable xendomains.service

After it I run below command :

# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2
Fedora (4.4.7-300.fc23.i686) 23 (Workstation Edition)
Fedora (4.2.3-300.fc23.i686) 23 (Workstation Edition)
Fedora (0-rescue-204e260309794cee901bd6e0b46ace3a) 23 (Workstation Edition)

But, I can't see any "Fedora, with Xen hypervisor" !!! and when I run "xl info" it show me below error :

# xl info
xc: error: Could not obtain handle on privileged command interface (2 = No such file or directory): Internal error
libxl: error: libxl.c:114:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context

How can I solve it?

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

#2 lore raw
Quoted 5 lines · Jason Long

Hello.
I installed Fedora 23 x64 on my PC and id below command for installing Xen :

# cd /etc/yum.repos.d/
# wget http://fedorapeople.org/groups/virt/...t-preview.repo

Why? No need for that.

Quoted 6 lines
# yum update
# yum -y install xen xen-hypervisor xen-libs xen-runtime
# systemctl enable xend.service
# systemctl enable xendomains.service

After it I run below command :

You are missing 'grub2-mkconfig -o /boot/grub2/grub.cfg'

Quoted 14 lines
# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2

Fedora (4.4.7-300.fc23.i686) 23 (Workstation Edition)
Fedora (4.2.3-300.fc23.i686) 23 (Workstation Edition)
Fedora (0-rescue-204e260309794cee901bd6e0b46ace3a) 23 (Workstation Edition)

But, I can't see any "Fedora, with Xen hypervisor" !!! and when I run "xl info" it show me below error :

# xl info
xc: error: Could not obtain handle on privileged command interface (2 = No such file or directory): Internal error
libxl: error: libxl.c:114:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context
Quoted 6 lines

How can I solve it?

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

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

author
#3 lore raw

Not matter.
I did it too :

# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.7-300.fc23.i686
Found initrd image: /boot/initramfs-4.4.7-300.fc23.i686.img
Found linux image: /boot/vmlinuz-4.2.3-300.fc23.i686
Found initrd image: /boot/initramfs-4.2.3-300.fc23.i686.img
Found linux image: /boot/vmlinuz-0-rescue-204e260309794cee901bd6e0b46ace3a
Found initrd image: /boot/initramfs-0-rescue-204e260309794cee901bd6e0b46ace3a.img
done

Problem not solved :(

On Wednesday, April 27, 2016 9:06 AM, Konrad Rzeszutek Wilk <[email protected]> wrote:

Quoted 5 lines · Jason Long

Hello.
I installed Fedora 23 x64 on my PC and id below command for installing Xen :

# cd /etc/yum.repos.d/
# wget http://fedorapeople.org/groups/virt/...t-preview.repo

Why? No need for that.

Quoted 6 lines
# yum update
# yum -y install xen xen-hypervisor xen-libs xen-runtime
# systemctl enable xend.service
# systemctl enable xendomains.service

After it I run below command :

You are missing 'grub2-mkconfig -o /boot/grub2/grub.cfg'

Quoted 14 lines
# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2

Fedora (4.4.7-300.fc23.i686) 23 (Workstation Edition)
Fedora (4.2.3-300.fc23.i686) 23 (Workstation Edition)
Fedora (0-rescue-204e260309794cee901bd6e0b46ace3a) 23 (Workstation Edition)

But, I can't see any "Fedora, with Xen hypervisor" !!! and when I run "xl info" it show me below error :

# xl info
xc: error: Could not obtain handle on privileged command interface (2 = No such file or directory): Internal error
libxl: error: libxl.c:114:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context
Quoted 6 lines

How can I solve it?

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

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

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

author
#4 lore raw

Can it work on Workstation version too? Or just server version of fedora needed?

On Wednesday, April 27, 2016 9:53 AM, Jason Long <[email protected]> wrote:
Not matter.
I did it too :

# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.7-300.fc23.i686
Found initrd image: /boot/initramfs-4.4.7-300.fc23.i686.img
Found linux image: /boot/vmlinuz-4.2.3-300.fc23.i686
Found initrd image: /boot/initramfs-4.2.3-300.fc23.i686.img
Found linux image: /boot/vmlinuz-0-rescue-204e260309794cee901bd6e0b46ace3a
Found initrd image: /boot/initramfs-0-rescue-204e260309794cee901bd6e0b46ace3a.img
done

Problem not solved :(

On Wednesday, April 27, 2016 9:06 AM, Konrad Rzeszutek Wilk <[email protected]> wrote:

Quoted 5 lines · Jason Long

Hello.
I installed Fedora 23 x64 on my PC and id below command for installing Xen :

# cd /etc/yum.repos.d/
# wget http://fedorapeople.org/groups/virt/...t-preview.repo

Why? No need for that.

Quoted 6 lines
# yum update
# yum -y install xen xen-hypervisor xen-libs xen-runtime
# systemctl enable xend.service
# systemctl enable xendomains.service

After it I run below command :

You are missing 'grub2-mkconfig -o /boot/grub2/grub.cfg'

Quoted 14 lines
# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2

Fedora (4.4.7-300.fc23.i686) 23 (Workstation Edition)
Fedora (4.2.3-300.fc23.i686) 23 (Workstation Edition)
Fedora (0-rescue-204e260309794cee901bd6e0b46ace3a) 23 (Workstation Edition)

But, I can't see any "Fedora, with Xen hypervisor" !!! and when I run "xl info" it show me below error :

# xl info
xc: error: Could not obtain handle on privileged command interface (2 = No such file or directory): Internal error
libxl: error: libxl.c:114:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context
Quoted 6 lines

How can I solve it?

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

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

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

#5 lore raw
Quoted 1 line · Jason Long

Can it work on Workstation version too? Or just server version of fedora needed?

I do it under workstation.

Quoted 18 lines · Jason Long

Not matter.
I did it too :

# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.7-300.fc23.i686
Found initrd image: /boot/initramfs-4.4.7-300.fc23.i686.img
Found linux image: /boot/vmlinuz-4.2.3-300.fc23.i686
Found initrd image: /boot/initramfs-4.2.3-300.fc23.i686.img
Found linux image: /boot/vmlinuz-0-rescue-204e260309794cee901bd6e0b46ace3a
Found initrd image: /boot/initramfs-0-rescue-204e260309794cee901bd6e0b46ace3a.img
done
Quoted 1 line

Problem not solved :(

Weird.

Oh wait, i686?!? I don't think the Xen RPM is even present for that?

Quoted 44 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Jason Long

Hello.
I installed Fedora 23 x64 on my PC and id below command for installing Xen :

# cd /etc/yum.repos.d/
# wget http://fedorapeople.org/groups/virt/...t-preview.repo

Why? No need for that.

Quoted 6 lines
# yum update
# yum -y install xen xen-hypervisor xen-libs xen-runtime
# systemctl enable xend.service
# systemctl enable xendomains.service

After it I run below command :

You are missing 'grub2-mkconfig -o /boot/grub2/grub.cfg'

Quoted 14 lines
# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2

Fedora (4.4.7-300.fc23.i686) 23 (Workstation Edition)
Fedora (4.2.3-300.fc23.i686) 23 (Workstation Edition)
Fedora (0-rescue-204e260309794cee901bd6e0b46ace3a) 23 (Workstation Edition)

But, I can't see any "Fedora, with Xen hypervisor" !!! and when I run "xl info" it show me below error :

# xl info
xc: error: Could not obtain handle on privileged command interface (2 = No such file or directory): Internal error
libxl: error: libxl.c:114:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context
Quoted 6 lines

How can I solve it?

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

Quoted 4 lines

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

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

author
#6 lore raw

I used Fedora Server edition with enable "Headless Virtualization" and problem Solved.

Thank you.

On Friday, April 29, 2016 12:20 AM, Konrad Rzeszutek Wilk <[email protected]> wrote:

Quoted 1 line · Jason Long

Can it work on Workstation version too? Or just server version of fedora needed?

I do it under workstation.

Quoted 18 lines · Jason Long

Not matter.
I did it too :

# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.7-300.fc23.i686
Found initrd image: /boot/initramfs-4.4.7-300.fc23.i686.img
Found linux image: /boot/vmlinuz-4.2.3-300.fc23.i686
Found initrd image: /boot/initramfs-4.2.3-300.fc23.i686.img
Found linux image: /boot/vmlinuz-0-rescue-204e260309794cee901bd6e0b46ace3a
Found initrd image: /boot/initramfs-0-rescue-204e260309794cee901bd6e0b46ace3a.img
done
Quoted 1 line

Problem not solved :(

Weird.

Oh wait, i686?!? I don't think the Xen RPM is even present for that?

Quoted 44 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Jason Long

Hello.
I installed Fedora 23 x64 on my PC and id below command for installing Xen :

# cd /etc/yum.repos.d/
# wget http://fedorapeople.org/groups/virt/...t-preview.repo

Why? No need for that.

Quoted 6 lines
# yum update
# yum -y install xen xen-hypervisor xen-libs xen-runtime
# systemctl enable xend.service
# systemctl enable xendomains.service

After it I run below command :

You are missing 'grub2-mkconfig -o /boot/grub2/grub.cfg'

Quoted 14 lines
# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2

Fedora (4.4.7-300.fc23.i686) 23 (Workstation Edition)
Fedora (4.2.3-300.fc23.i686) 23 (Workstation Edition)
Fedora (0-rescue-204e260309794cee901bd6e0b46ace3a) 23 (Workstation Edition)

But, I can't see any "Fedora, with Xen hypervisor" !!! and when I run "xl info" it show me below error :

# xl info
xc: error: Could not obtain handle on privileged command interface (2 = No such file or directory): Internal error
libxl: error: libxl.c:114:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context
Quoted 6 lines

How can I solve it?

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

Quoted 4 lines

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

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

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

#7 lore raw
Quoted 2 lines · Jason Long

I used Fedora Server edition with enable "Headless Virtualization" and problem Solved.

OK, so you re-installed. Good. The problem is that you had the i686 instead of the i686-PAE (or x86_64). The i686 is a kernel built for machines with less than 1GB of memory and does not support Xen.

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