Ranganathan, Shobha
2006-Oct-09 21:11 UTC
RE: [Fedora-xen] Help: creating a rawhide guest os
I apologize..I mistook it to be Dom0 kernel. My previous suggestion is for Dom0 kernel You should take a look at the examples in /etc/xen/ for your guest Os setup parameters.. Regards Shobha Ranganathan "The significant challenges we face cannot be resolved at the same level of thinking we were at when we created them." Albert Einstein -----Original Message----- From: chitlesh@gmail.com [mailto:chitlesh@gmail.com] On Behalf Of Chitlesh GOORAH Sent: Monday, October 09, 2006 2:01 PM To: Ranganathan, Shobha Cc: fedora-xen@redhat.com Subject: Re: [Fedora-xen] Help: creating a rawhide guest os On 10/9/06, Ranganathan, Shobha <shobha.ranganathan@intel.com> wrote:> " > Setting clock (localtime): Mon Oct 9 21:51:30 CEST 2006 [ OK ] > Starting udev: [ OK ] Setting hostname localhost.localdomain: [ OK]> modprobe: FATAL: Could not load /lib/modules/2.6.16-xen/modules.dep: > No such file or directory> modprobe: FATAL: Could not load /lib/modules/2.6.16-xen/modules.dep: > No such file or directory > "This is my fedora rawhide guest os being launched with a ubuntu kernel and initrd, which boots successfully to login (with some errors as you have seen)>I guess your initial setup of dependency modules are not correct. That > is why I mentioned please do "depmod" and mkinitrd correctly.This is my problem. I don''t know which kernel and initrd to use and how to create them. I did depmod 2.6.17-1.2187_FC5xen0 mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.17-xen.img 2.6.17-1.2187_FC5xen0 in vain I still don''t know to make a proper kernel and initrd to launch my guest os. chitlesh -- http://clunixchit.blogspot.com
Somehow I managed to launch my guest os:) but I can''t get it connect to internet. This is my procedure, what should I do to establish an internet connection ?: mkdir -p /xen-images/mnt dd if=/dev/zero of=/xen-images/guest_base.img bs=1024k count=5000 dd if=/dev/zero of=/xen-images/guest_base-swap.img bs=1024k count=500 chmod 640 /xen-images/guest_base* mkfs.ext3 /xen-images/guest_base.img mkswap /xen-images/guest_base-swap.img mount -o loop /xen-images/guest_base.img /xen-images/mnt anaconda --method=nfs://var/www/bordeaux/ --rootpath=/xen-images/mnt/ cp -dpR /lib/modules/2.6.17-1.2187_FC5xen0/ /xen-images/mnt/lib/modules/ I''ve added /dev/hda1 / ext3 defaults,errors=remount-ro 0 1 /dev/hda2 swap swap sw to /xen-images/mnt/etc/fstab& umount /xen-images/mnt cd /boot cp initrd-2.6.17-1.2187_FC5xen0.img initrd-guest.img cp vmlinuz-2.6.17-1.2187_FC5 vmlinuz-guest.img cd /etc/xen/ kwrite xm-fc6 & name = "xm-fc6" memory = "256" kernel = "/boot/vmlinuz-guest.img" ramdisk = "/boot/initrd-guest.img" vif = [''bridge=xenbr0''] disk = [''file:/xen-images/guest_base.img,hda1,w'',''file:/xen-images/guest_base-swap.img,hda2,w''] ip = "192.168.0.101" netmask = "255.255.255.0" gateway = "192.168.0.1" hostname = "baseimage" root = "/dev/hda1 ro" extra = "4" on_reboot = ''restart'' on_crash = ''restart'' xm create xm-fc6 -c -- http://clunixchit.blogspot.com