Skip to contentSkip to conversation

domU Filesystems

DISCUSSION Brian Hays 6 participants 9 messages Mar 25, 2005 – Mar 27, 2005 1 message not in the archive

lore
Share & tools
lore

Brian Hays

author
#0 lore raw

Hello,

What is the best way to create guest (domU) filesystems? I am currently running the latest version on Xen on FC3 and would like to create a Redhat 9 and Fedora Core 1 filesystem for use on domU's. What is the best way to accomplish this, and also ... will Redhat 9 boot on the 2.6.11 kernel (I'm using the xen & kernel-xen0 & U rpms from the FC4test1 repository ... it only comes with 2.6 kernels)? If not how can I add another xenU kernel (2.4 version)?

Thank you,
Brian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw
Quoted 3 lines · Brian Hays

Hello,

What is the best way to create guest (domU) filesystems?

Use LVM. File-backed filesystems are slower and may not be as reliable.

Quoted 2 lines

will Redhat 9 boot on
the 2.6.11 kernel

It should do. However, you will need to install a recent version of module-init-tools if you want to use kernel modules at all.

Signature · 8 lines
Robin


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
#2 lore raw
In reply to Brian Hays
Quoted 7 lines

What is the best way to create guest (domU) filesystems? I am currently running the latest version on Xen on FC3 and would like to create a Redhat 9 and Fedora Core 1 filesystem for use on domU's. What is the best way to accomplish this, and also ... will Redhat 9 boot on the 2.6.11 kernel (I'm using the xen & kernel-xen0 & U rpms from the FC4test1 repository ... it only comes with 2.6 kernels)? If not how can I add another xenU kernel (2.4 version)?

There are a number of filesystems available from the UML world. It's fairly easy to (loop) mount them, make the changes to fstab, and then copy the entire tree into where ever you run your domUs from...

http://uml.linode.com (u-m-l.sf.net mirror, a few oldies but goodies)
http://uml.linode.com/root_fs.rh-9-full.pristine.20030724.bz2
ftp://ftp.express.org/pub/uml/fedora-core1-server-uml20040129.tar.bz2

Red Hat 9 will boot on a 2.6 kernel, just watch out for the /lib/tls issue.

-Chris

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#3 lore raw
In reply to Brian Hays
Quoted 10 lines · Brian Hays

Hello,

What is the best way to create guest (domU) filesystems? I am currently running the latest version on Xen on FC3 and would like to create a Redhat 9 and Fedora Core 1 filesystem for use on domU's. What is the best way to accomplish this, and also ... will Redhat 9 boot on the 2.6.11 kernel (I'm using the xen & kernel-xen0 & U rpms from the FC4test1 repository ... it only comes with 2.6 kernels)? If not how can I add another xenU kernel (2.4 version)?

Quoted 4 lines

Thank you,
Brian

Possible strategies for fresh domU installation that I'm aware of:
1) install to bare hardware, and then copy the filesystem to a place where xen can load it
2) install into vmware and then do the same
3) qemu probably works as well...I haven't tried it
4) find a disk image/tarred archive of an installed base system, and extract it to a xen accessible partition
4a) find a disk image of an earlier version and use apt/yum/emerge/etc to update it after installing
(note that uml and colinux are two projects that have pre-existing disk images of some popular distros)
5) use your distro's procedure to bootstrap into a chroot environment (if it has one) such as debian's debootstrap or by using gentoo's stage3 installation approach. (none for RedHat9 that I'm aware of)

-Tupshin

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#4 lore raw
Quoted 1 line · Tupshin Harper

5) use your distro's procedure to bootstrap into a chroot environment (if it has one) such as debian's debootstrap or by using gentoo's stage3 installation approach. (none for RedHat9 that I'm aware of)

Here are the mechanisms I know and their requirements. I plan to put this in the Wiki as soon as it goes live (if it's not already there):

Gentoo
-------------
Requirements: wget
Note: See http://www.gentoo.org for additional mirrors

]# MIRROR=http://mirror.usu.edu/mirrors/gentoo
]# VERSION=2004.3
]# wget ${MIRROR}/releases/x86/2004.3/stages/i686/stage3-i686-${VERSION}.tar.bz2 ]# tar xfj stage3-i686-${VERSION}.tar.bz2
]# mount -obind /dev dev
]# mount -obind /proc proc
]# chroot .
]# env-update
]# source /etc/profile
]# emerge sync && emerge portage

Debian
------------
Requirements: debootstrap (http://packages.debian.org/stable/admin/debootstrap) and perhaps apt

]# TARGET=sid
]# debootstrap ${TARGET} .

Fedora
------------
Requirements: yum (Don't know how to install this on non-Fedora systems)

]# yum --installroot=. -y groupinstall Base

SuSE
---------
Does anyone know a distro-neutral way to install a SuSE root?

Regards,
Anthony Liguori

Quoted 13 lines

-Tupshin

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#5 lore raw
Quoted 8 lines · Anthony Liguori
Quoted 1 line · Tupshin Harper

5) use your distro's procedure to bootstrap into a chroot environment (if it has one) such as debian's debootstrap or by using gentoo's stage3 installation approach. (none for RedHat9 that I'm aware of)

Here are the mechanisms I know and their requirements. I plan to put this in the Wiki as soon as it goes live (if it's not already there):

Gentoo

<snip>
I have done something very equivalent to your gentoo procedure, but when I try to emerge glibc (or as a dependency for many other things) I'm getting a segfault near the end of the process. I'm guessing this is the nptl problem, and so far I haven't been able to work around it.

FWIW, this is with xen unstable as of about 1 week ago.

-Tupshin

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#6 lore raw

Interim Xen Wiki [was: domU Filesystems]

In reply to Anthony Liguori
Quoted 2 lines · Anthony Liguori

Here are the mechanisms I know and their requirements. I plan to put this in the Wiki as soon as it goes live (if it's not already there):

Last "Real Soon Now" I saw was back ont he 10th, and that was an important reason I didn't do this sooner. As of ten minutes ago, a nearly empty Interim Xen Wiki is up and running at

http://www.two14.net/xen

Access to create or edit pages requires a trivial registration at

http://www.two14.net/xen/UserPreferences

This is mostly to discourage wiki spam, though I won't be at all unhappy if the official wiki gets setup so quickly that the spammers won't have time to annoy us. OTOH, I don't see any reason this wiki couldn't stay live for as long as it takes, though there might be some disruption when the hardware has to get shuffled. If you register with a working email address - no, of course it isn't actually checked - you can subscribe to get notices when some (or all) pages get updated.

FWIW, I spent more time borrowing the logo and hacking up a minimal Xen page with a link to the project and so forth than on the actual wiki setup. Granted, this wasn't the first time I've setup a wiki with Moin on this box.

Signature · 11 lines
I didn't write a whole, free operating system, either.  I wrote some pieces
and invited other people to join me by writing other pieces.  So I set an
example.  I said, "I'm going in this direction.  Join me and we'll get
there." And enough people joined in that we got there.  -- R M Stallman


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#8 lore raw

When trying to start my (redhat9) domU I get the following errors everytime on boot. I have tried using ext3 and ext2 as the filesystem type with the same results. Does anyone know what may cause this (see below) :

Checking root filesystem
fsck.ext2: [/sbin/fsck.ext2 (1) -- /] fsck.ext2 -a /dev/sda1 Filesystem has unsupported feature(s) (/dev/sda1)
e2fsck: Get a newer version of e2fsck!
[FAILED]

*** An error occurred during the file system check. *** Dropping you to a shell; the system will reboot *** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):

Thank you,
Brian

Quoted 9 lines · Michael McCabe

Brian
This article has information about installing Fedora Core 3 as a guest using Yum. http://www-128.ibm.com/developerworks/library/l-xen/ . The group information isn't available in the version of yum that is available for Redhat 9 so you'll have to install packages and have it pull in the dependencies. If you need any other help setting up your Redhat images let me know, I've been using them extensively in the past couple of weeks.

Quoted 32 lines

Mike

Quoted 26 lines · Brian Hays

Hello,

What is the best way to create guest (domU) filesystems? I am currently running the latest version on Xen on FC3 and would like to create a Redhat 9 and Fedora Core 1 filesystem for use on domU's. What is the best way to accomplish this, and also ... will Redhat 9 boot on the 2.6.11 kernel (I'm using the xen & kernel-xen0 & U rpms from the FC4test1 repository ... it only comes with 2.6 kernels)? If not how can I add another xenU kernel (2.4 version)?

Thank you,
Brian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

author
#9 lore raw

nevermind on the below question ... I built an rpm from the e2fsprogs 1.36 src-rpm (from the FC4 test1 SRPMS), installed it in my RH9 filesystem and now it boots up great.

Thanks,
Brian

Quoted 17 lines · Brian Hays

When trying to start my (redhat9) domU I get the following errors everytime on boot. I have tried using ext3 and ext2 as the filesystem type with the same results. Does anyone know what may cause this (see below) :

Checking root filesystem
fsck.ext2: [/sbin/fsck.ext2 (1) -- /] fsck.ext2 -a /dev/sda1 Filesystem has unsupported feature(s) (/dev/sda1)
e2fsck: Get a newer version of e2fsck!
[FAILED]

*** An error occurred during the file system check. *** Dropping you to a shell; the system will reboot *** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):

Quoted 46 lines

Thank you,
Brian

Quoted 41 lines · Michael McCabe

Brian
This article has information about installing Fedora Core 3 as a guest using Yum. http://www-128.ibm.com/developerworks/library/l-xen/ . The group information isn't available in the version of yum that is available for Redhat 9 so you'll have to install packages and have it pull in the dependencies. If you need any other help setting up your Redhat images let me know, I've been using them extensively in the past couple of weeks.

Mike

Quoted 26 lines · Brian Hays

Hello,

What is the best way to create guest (domU) filesystems? I am currently running the latest version on Xen on FC3 and would like to create a Redhat 9 and Fedora Core 1 filesystem for use on domU's. What is the best way to accomplish this, and also ... will Redhat 9 boot on the 2.6.11 kernel (I'm using the xen & kernel-xen0 & U rpms from the FC4test1 repository ... it only comes with 2.6 kernels)? If not how can I add another xenU kernel (2.4 version)?

Thank you,
Brian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click