Hi All,
I have installed Fedora 16.
[root@RSJ boot]# uname -a Linux RSJ 3.1.0-7.fc16.i686 #1 SMP Tue Nov 1 21:00:16 UTC 2011 i686 i686 i386 GNU/Linux [root@RSJ boot]#
Then: 1. yum intsall xen
xen got install successfully but it could not update grub entry with xen.
2. [root@RSJ boot]# xl info libxl: error: libxl.c:56:libxl_ctx_init Is xenstore daemon running? failed to stat /var/run/xenstored.pid: No such file or directory cannot init xl context [root@RSJ boot]#
3. Then i manually updated the grub [entry = /etc/grub.d/20_linux_xen], now grub.conf: ----------------/etc/grub2/grub.conf-------------------------------- # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub #
### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default="${saved_entry}" if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi
function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi }
function load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus }
set timeout=5 ### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ### menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686' --class fedora --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root a61dbabc-0d61-41cd-a2c9-3857ae9ee060 echo 'Loading Linux 3.1.0-7.fc16.i686 ...' linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_rsj-lv_root ro rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap LANG=en_US.UTF-8 echo 'Loading initial ramdisk ...' initrd /initramfs-3.1.0-7.fc16.i686.img } menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root a61dbabc-0d61-41cd-a2c9-3857ae9ee060 echo 'Loading Linux 3.1.0-7.fc16.i686 ...' linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_rsj-lv_root ro single rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap LANG=en_US.UTF-8 echo 'Loading initial ramdisk ...' initrd /initramfs-3.1.0-7.fc16.i686.img } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### menuentry 'Fedora Linux, with Xen 4.1.2 and Linux 3.1.0-7.fc16.i686' --class fedora --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root a61dbabc-0d61-41cd-a2c9-3857ae9ee060 echo 'Loading Xen 4.1.2 ...' multiboot /xen-4.1.2.gz placeholder echo 'Loading Linux 3.1.0-7.fc16.i686 ...' module /vmlinuz-3.1.0-7.fc16.i686 placeholder root=/dev/mapper/vg_rsj-lv_root ro rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap LANG=en_US.UTF-8 echo 'Loading initial ramdisk ...' module /initramfs-3.1.0-7.fc16.i686.img } menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root a61dbabc-0d61-41cd-a2c9-3857ae9ee060 echo 'Loading Linux 3.1.0-7.fc16.i686 ...' linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_rsj-lv_root ro single rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap LANG=en_US.UTF-8 echo 'Loading initial ramdisk ...' initrd /initramfs-3.1.0-7.fc16.i686.img } ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Windows NT/2000/XP (loader) (on /dev/sda1)" --class windows --class os { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 9C78AAFE78AAD5F4 drivemap -s (hd0) ${root} chainloader +1 } ### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/90_persistent ### ### END /etc/grub.d/90_persistent ###
--------------------------------------------------------------------------
After reboot and booting with XEN kernel, it show: elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images ****************************************** Panic on CPU0 Could not set up DOM0 guest OS *** ***************************************
Is linux kernel 3.1.0-7.fc16.i686 comes with XEN kernel modules compiled ? What is going wrong, any pointers ?
Regards, Raj
On Sun, Feb 05, 2012 at 08:46:22AM +0530, Rajeshwar Singh Janwar wrote:
Hi All,
I have installed Fedora 16.
[root@RSJ boot]# uname -a Linux RSJ 3.1.0-7.fc16.i686 #1 SMP Tue Nov 1 21:00:16 UTC 2011 i686 i686 i386 GNU/Linux [root@RSJ boot]#
Then:
- yum intsall xen
xen got install successfully but it could not update grub entry with xen.
- [root@RSJ boot]# xl info
libxl: error: libxl.c:56:libxl_ctx_init Is xenstore daemon running? failed to stat /var/run/xenstored.pid: No such file or directory cannot init xl context [root@RSJ boot]#
- Then i manually updated the grub [entry = /etc/grub.d/20_linux_xen], now
grub.conf: ----------------/etc/grub2/grub.conf-------------------------------- # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub #
### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default="${saved_entry}" if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi
function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi }
function load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus }
set timeout=5 ### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ### menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686' --class fedora --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root a61dbabc-0d61-41cd-a2c9-3857ae9ee060 echo 'Loading Linux 3.1.0-7.fc16.i686 ...' linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_rsj-lv_root ro rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap LANG=en_US.UTF-8 echo 'Loading initial ramdisk ...' initrd /initramfs-3.1.0-7.fc16.i686.img } menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root a61dbabc-0d61-41cd-a2c9-3857ae9ee060 echo 'Loading Linux 3.1.0-7.fc16.i686 ...' linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_rsj-lv_root ro single rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap LANG=en_US.UTF-8 echo 'Loading initial ramdisk ...' initrd /initramfs-3.1.0-7.fc16.i686.img } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### menuentry 'Fedora Linux, with Xen 4.1.2 and Linux 3.1.0-7.fc16.i686' --class fedora --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root a61dbabc-0d61-41cd-a2c9-3857ae9ee060 echo 'Loading Xen 4.1.2 ...' multiboot /xen-4.1.2.gz placeholder echo 'Loading Linux 3.1.0-7.fc16.i686 ...' module /vmlinuz-3.1.0-7.fc16.i686 placeholder root=/dev/mapper/vg_rsj-lv_root ro rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap LANG=en_US.UTF-8 echo 'Loading initial ramdisk ...' module /initramfs-3.1.0-7.fc16.i686.img } menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root a61dbabc-0d61-41cd-a2c9-3857ae9ee060 echo 'Loading Linux 3.1.0-7.fc16.i686 ...' linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_rsj-lv_root ro single rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap LANG=en_US.UTF-8 echo 'Loading initial ramdisk ...' initrd /initramfs-3.1.0-7.fc16.i686.img } ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Windows NT/2000/XP (loader) (on /dev/sda1)" --class windows --class os { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 9C78AAFE78AAD5F4 drivemap -s (hd0) ${root} chainloader +1 } ### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/90_persistent ### ### END /etc/grub.d/90_persistent ###
After reboot and booting with XEN kernel, it show: elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images
Panic on CPU0 Could not set up DOM0 guest OS
Is linux kernel 3.1.0-7.fc16.i686 comes with XEN kernel modules compiled ?
It should be.
What is going wrong, any pointers ?
I think something is wrong with your grub2 entry. It sounds like it picked up the initramfs as the Linux kernel. Can you run 'yum update' and download the latest version of grub2 and re-run 'grub2-mkconfig -o /boot/grub2/grub.cfg'?
Regards, Raj
-- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen