Fedora Linux Support Community & Resources Center
  #1  
Old 21st February 2011, 06:08 PM
fedot Offline
Registered User
 
Join Date: Feb 2011
Posts: 5
macossafari
Xen

Hi everyone!
Today I tried to compile XEN but nothing happened.
XEN 4.0.1.7 for Fedora 14
Kernel 2.6.32.27

My menu.lst:


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_vm-lvroot
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.35.11-83.fc14.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.35.11-83.fc14.x86_64 ro root=/dev/mapper/vg_vm-lvroot rd_LVM_LV=vg_vm/lvroot rd_LVM_LV=vg_vm/lvswap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.35.11-83.fc14.x86_64.img
title Xen (2.6.32.27.x86_64)
root (hd0,0)
kernel /xen.gz dom0_mem=512M loglvl=all guest_loglvl=all
module /vmlinuz-2.6.32.27 ro root=/dev/mapper/vg_vm-lvroot rd_LVM_LV=vg_vm/lvroot rd_LVM_LV=vg_vm/lvswap nomodtest
module /initramfs-2.6.32.27.img

assembled without any errors but when booting the kernel, got out the following error:

VFS: Cannot open root device "mapper/vg_vm-lvroot" or unknown-block (0,0)
Please append a correct "root=" boot option; here are the available partitions :
0800 156290904 sad driver : sd
0801 2097152 sda1
0802 154191872 sda 2
0b00 1048575 sr0 driver : sr
Kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block (0,0)
Pid: 1, comm: swapper Not tainted 2.6.32.27 #1
Call Trace:
[<ffffffff8147a53b>] panic+0x7a/0x13a
[<ffffffff8198710e>] mount_block_root+0x255/0x280
[<ffffffff819872c7>] mount_root+0x56/0x5a
[<ffffffff8198743b>] prepare_namespace+0x170/0x19d
[<ffffffff81986de6>] kernel_init+0x1b0/0x1c4
[<ffffffff81013eea>] child_rip+0xa/0x20
[<ffffffff81013850>] ? restore_args+0x0/0x30
[<ffffffff81013ee0>] ? child_rip+0x0/0x20



With what it could be linked?
How do I fix this?

Best Regards,
Fedor
Reply With Quote
  #2  
Old 21st February 2011, 06:43 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,101
linuxfedorafirefox
Re: Xen

How did you compile Xen?

Did you do a "make install" pass?

How about a "make modules_install" pass?
Reply With Quote
  #3  
Old 21st February 2011, 09:09 PM
fedot Offline
Registered User
 
Join Date: Feb 2011
Posts: 5
macossafari
Re: Xen

Quote:
Originally Posted by jpollard View Post
How did you compile Xen?

Did you do a "make install" pass?

How about a "make modules_install" pass?
like so:

make oldconfig
make -j8 bzImage && make -j8 modules && make modules_install
Reply With Quote
  #4  
Old 22nd February 2011, 01:03 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,101
linuxfedorafirefox
Re: Xen

left out the "make install".

This is what makes the initrd and puts the kernel in /boot.

The initial root is the initrd which is then used to load needed drivers to get the real root (the initrd is a cpio file that is copied to a ramfs during
boot, then the kernel loads modules for the root filesystem from there)

Unless things have changed a lot...
Reply With Quote
  #5  
Old 22nd February 2011, 08:20 AM
fedot Offline
Registered User
 
Join Date: Feb 2011
Posts: 5
macossafari
Re: Xen

Quote:
Originally Posted by jpollard View Post
left out the "make install".

This is what makes the initrd and puts the kernel in /boot.

The initial root is the initrd which is then used to load needed drivers to get the real root (the initrd is a cpio file that is copied to a ramfs during
boot, then the kernel loads modules for the root filesystem from there)

Unless things have changed a lot...
A lot of thanks! It's works.
Reply With Quote
  #6  
Old 23rd February 2011, 09:52 PM
fedot Offline
Registered User
 
Join Date: Feb 2011
Posts: 5
windows_7chrome
Re: Xen

Hi all, a new problem arose.
The kernel I compile and run again for it thanks!

The problem is that I want to get information about XEN finally get:

# xm list
Error: Unable to connect to xend: No such file or directory. Is xend running?

Found it in the folder:

# whereis xend
xend: /usr/sbin/xend

Tried to run as a result:

# /usr/sbin/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/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py", line 26, in <module>
import relocate
File "/usr/lib64/python2.7/site-packages/xen/xend/server/relocate.py", line 28, in <module>
from xen.xend import XendDomain
File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomain.py", line 36, in <module>
from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
File "/usr/lib64/python2.7/site-packages/xen/xend/XendCheckpoint.py", line 20, in <module>
from xen.xend import balloon, sxp, image
File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line 46, 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)')

Xen installed from the Fedora 14 repositories:

# rpm -qa | grep xen
xen-libs-4.0.1-7.fc14.x86_64
xen-4.0.1-7.fc14.x86_64
xen-runtime-4.0.1-7.fc14.x86_64
xen-hypervisor-4.0.1-7.fc14.x86_64
xen-doc-4.0.1-7.fc14.x86_64
xen-devel-4.0.1-7.fc14.x86_64
xen-licenses-4.0.1-7.fc14.x86_64

My grub boot list:

# cat /boot/grub/menu.lst

default=0
timeout=3
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.32.27)
root (hd0,0)
kernel /vmlinuz-2.6.32.27 ro root=/dev/mapper/vg_vm-lvroot rd_LVM_LV=vg_vm/lvroot rd_LVM_LV=vg_vm/lvswap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.32.27.img

As I understand there is no value for kernel XEN?

Best Regards,
Fedot

---------- Post added at 09:52 PM ---------- Previous post was at 07:05 PM ----------

yes, problem solved:

title Fedora (2.6.32.27)
root (hd0,0)
kernel /xen.gz dom0_mem=512M loglvl=all guest_loglvl=all
module /vmlinuz-2.6.32.27 ro root=/dev/mapper/vg_vm-lvroot rd_LVM_LV=vg_vm/lvroot nomodeset
module /initramfs-2.6.32.27.img

A lot of thanks! It's works.
Reply With Quote
Reply

Tags
xen

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


Current GMT-time: 02:21 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat