WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Porting of Guest OS

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Porting of Guest OS
From: "Fajar A. Nugraha" <fajar@xxxxxxxxxxxx>
Date: Thu, 30 Dec 2004 09:58:32 +0700
Delivery-date: Thu, 30 Dec 2004 02:59:43 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <BAY102-F15C3A087E1E29A81D1DF92B39C0@xxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <BAY102-F15C3A087E1E29A81D1DF92B39C0@xxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)
Amitabh Tamhane wrote:

Hi,
I am trying to boot a guest OS (SuSE 2.6 kernel) on Xen. But, it is giving me boot errors.

The steps I followed:
1) Created a raw diskFile with ext3 filesystem
2) Copied /{root,etc,dev,var,usr,bin,sbin,lib} from my SuSE 2.6 installation on to the diskFile

I would suggest you copy everything from a non-running linux installation.
You could also use a running machine as starting point, but you should exclude these files :

/proc/*
/var/log/*/*
/var/run/*/*
/var/run/*.pid
/var/tmp/*
/var/lock/*/*
/dev/mapper/*
/tmp/*
/sys/*
/mnt/*/*

Note that you NEED /proc, but you don't need anything under it.
Then you have to modify /etc/fstab accordingly, and use /dev/sda1 as root.

3) Created a config file as:
Important parameters are as follows:
kernel = "/boot/vmlinuz-2.4.27-xenU"
disk = ['file:FullPathToTheDiskFile,sda1,w']
root = "/dev/sda1"
(other parameters skipped)

4) Booted-up the new Domain

It is giving some-errors like /lib/modules/2.6.9-xenU/modules.dep not found. And boots up in the

You need to copy /lib/modules/2.6.9-xenU/ from the physical server (the server you're running xen's "make install" from) to the virtual server. Alternatively, recompile the xen-U kernel
to disable modules support and you can ignore the error completely.
If you're running athlon-xp or P4/Xeon, I can share my xen-U kernel (or the .config), with modules disabled,
optimized for those platform.

Can anyone tell me what exact changes do i need to make to the SuSE 2.6 kernel to be able to boot it as a new Domain?

Are you using 2.4 or 2.6? Your xen config file says 2.4.

I understand that the machine dependent code has to be changed with new code provided by Xen....but I could not find a place where it says........."These are the exacts steps you need to follow for porting of Guest OS in a Domain"

Because it's not there yet :)

Regards,

Fajar


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel