Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old October 28th, 2006   #1
fuzziefuz
First Cup of Ubuntu
 
Join Date: May 2006
Location: Vienna, Austria, Europe
Beans: 5
Dapper Drake Testing/
Send a message via ICQ to fuzziefuz
Xen: How to setup Ubuntu 6.10 (Edgy Eft) perfectly as Xen gest domain (DomU)?

Hi,

I just managed to setup Xen 3.0.3 with the new Ubuntu 6.10 (Edgy Eft) as host operating system (Dom0) - was pretty simple following the instructions at https://wiki.ubuntu.com/XenOnEdgy.

But I did not find a documentation on how to setup Ubuntu 6.10 (Edgy Eft) as a guest domain (DomU). So I followed this guide (for Breezy and Dapper) https://help.ubuntu.com/community/Xe...uBinaryInstall and used debootstrap to install edgy from CD mounted at /media/cdrom to my LVM volume at /xen/guest:

Code:
debootstrap --arch i386 edgy /xen/guest file:/media/cdrom
After that I mounted /xen/guest and configured the guest system (copied the kernel modules, set hostname, disabled tls, etc.)

Finally I created the configuration file for the guest (/etc/xen/guest) and booted it up.

The guest domain boots up, but it hangs a long time (several minutes) at "Begin: Running /scripts/local-top ...". Then it boots up completely without an error message.

Any idea why /scripts/local-top takes so long?

I found out that this script belongs to the init ramdisk and is located at /usr/share/initramfs-tools/scripts/local-top and contains a script named udev.

Greetings and thanks for your comments
fuzziefuz is offline   Reply With Quote
Old October 30th, 2006   #2
jonoinsa
First Cup of Ubuntu
 
Join Date: Apr 2006
My beans are hidden!
Re: Xen: How to setup Ubuntu 6.10 (Edgy Eft) perfectly as Xen gest domain (DomU)?

I am experiencing exacly the same symptom....looking deeper into the "problem"....
jonoinsa is offline   Reply With Quote
Old October 30th, 2006   #3
fuzziefuz
First Cup of Ubuntu
 
Join Date: May 2006
Location: Vienna, Austria, Europe
Beans: 5
Dapper Drake Testing/
Send a message via ICQ to fuzziefuz
Re: Xen: How to setup Ubuntu 6.10 (Edgy Eft) perfectly as Xen gest domain (DomU)?

Hi!

I solved the problem as follows:

I removed the "md" and "lvm" scripts (make a backup copy of them!) from /usr/share/initramfs-tools/hooks and /usr/share/initramfs-tools/scripts/local-top on the host operating system (Dom0) and created an own init ramdisk for the guest operating systems (DomU's)

Code:
mkinitramfs -o /boot/xenU-linux-2.6.17-6-generic-xen0.initrd.img 2.6.17-6-generic-xen0
After that you should restore the "md" and "lvm" scripts from your backup, we just wanted them not to be in the init ramdisk for our DomU's, but maybe you need to recreate the init ramdisk for your Dom0 anytime.

Finally adopt your DomU's config files to point to the correct init ramdisk we just created for them (in my case /boot/xenU-linux-2.6.17-6-generic-xen0.initrd.img).

The DomU's are booting now much faster

I hope this saves a lot of people a lot of trouble in the future. Have a nice day.
fuzziefuz is offline   Reply With Quote
Old December 2nd, 2006   #4
kasper22
5 Cups of Ubuntu
 
Join Date: Jul 2006
Beans: 20
Re: Xen: How to setup Ubuntu 6.10 (Edgy Eft) perfectly as Xen gest domain (DomU)?

fuzziefuz, it worked like a charm thank you for posting.
kasper22 is offline   Reply With Quote

Bookmarks

Thread Tools
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


All times are GMT -4. The time now is 07:14 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry