From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
To: Rob Landley <rob@landley.net>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] How stable is hostfs (and UML in general)?
Date: Sun, 09 Jan 2005 19:05:34 -0500 [thread overview]
Message-ID: <31487.1105315534@marajade.sandelman.ottawa.on.ca> (raw)
In-Reply-To: Message from Rob Landley <rob@landley.net> of "Sat, 08 Jan 2005 21:06:38 EST." <200501082106.38306.rob@landley.net>
-----BEGIN PGP SIGNED MESSAGE-----
>>>>> "Rob" == Rob Landley <rob@landley.net> writes:
Rob> I want to use UML because I'm building a little uclibc-based
Rob> distro that has a problem when the system it's building on has
Rob> a kernel older than the one it's building. I'm testing the
I think you have a serious problem to begin with.
Probably, you aren't building with the cross-compile headers, but
rather with the host's headers, and maybe you are using the kernel
headers rather than the uClibc headers.
When building for a different libc, you'd be best to pretend that you
are in fact building for a different CPU. I.e. build a whole
cross-compile environment.
Rob> Under the UML built from stock 2.6.9 sources, after some
Rob> tweaking I got it to sort of boot and give me a shell prompt
Rob> about 1/3 of the time (the other 2/3 of the time it paniced
Rob> during boot due to various race conditions, but trying it
Rob> several times in a row usually got me to the shell prompt). I
Rob> couldn't figure out any way to make it start with a readable
Rob> hostfs by default, but "mount -o remount,rw / /" once it was up
Rob> seemed to do the trick, and I can put that in an init script no
Rob> problem. (And yes it worked: I could create files and have
Rob> them show up in the host system.)
I use hostfs root all the time.
I have no such problems.
Rob> But when trying to compile "hello world", gcc died saying it
Rob> couldn't find ld. This exact filesystem worked fine chrooting
Rob> into it on the host kernel, a knoppix system running 2.6.7.
Well, was ld actually there?
Rob> mconsole (version 2) initialized on
Rob> /home/knoppix/.uml/WGIHE3/mconsole audit: initializing netlink
Rob> socket (disabled) audit(300.210:0): initialized Initializing
Rob> Cryptographic API Kernel panic - not syncing: fix_range fixing
Rob> wrong address space, current = 0xa0cb90a0
It sounds like your builds are really what is broken, not the root
file system.
Rob> cables and virtual hubs and it doesn't apply to me. I'm trying
Rob> for a VERY simple setup: my UML doesn't need more networking
Rob> than loopback, doesn't need swap, doesn't need module
Yes, it does need swap if you intend to run gcc.
I suggest that you might want to try the UML image system in the
Openswan builds. It generates everything you need. It has been used with
2.6.9+ guests, on 2.4 and 2.6 hosts.
- --
] ON HUMILITY: to err is human. To moo, bovine. | firewalls [
] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[
] mcr@xelerance.com http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys
iQCVAwUBQeHGxYqHRg3pndX9AQHxbwQAkZEnFOz0z4xxSB4XLVl6XXKJAk/vw4/w
48HCyCv/guKdwmZcwCYd3MFVyMood8aNSjlzfpETSjYvGTKqGR/cqJEn+4Urtara
NX2N7kcN3DYPs3yW1g5QZ/kWoTQc/+sTV3BOC4mw2vGRga2W0VTRblCShnuvV/N2
v/szXnInqK4=
=O7w2
-----END PGP SIGNATURE-----
-------------------------------------------------------
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
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-01-10 0:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-09 2:06 [uml-devel] How stable is hostfs (and UML in general)? Rob Landley
2005-01-09 6:00 ` Frank Sorenson
2005-01-09 22:06 ` Rob Landley
2005-01-10 1:53 ` Henrik Nordstrom
2005-01-10 6:34 ` Rob Landley
2005-01-10 13:47 ` Blaisorblade
2005-01-10 17:08 ` Nix
2005-01-10 14:43 ` Blaisorblade
2005-01-11 6:10 ` Rob Landley
2005-01-10 0:05 ` Michael Richardson [this message]
2005-01-10 6:20 ` Rob Landley
2005-01-10 6:41 ` Rob Landley
2005-01-10 8:48 ` Henrik Nordstrom
2005-01-11 5:58 ` Rob Landley
2005-01-10 15:21 ` Michael Richardson
2005-01-11 6:35 ` Rob Landley
2005-01-11 11:27 ` Henrik Nordstrom
2005-01-11 21:34 ` Michael Richardson
2005-01-11 23:23 ` Blaisorblade
2005-01-12 16:55 ` Michael Richardson
2005-01-12 17:09 ` Blaisorblade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=31487.1105315534@marajade.sandelman.ottawa.on.ca \
--to=mcr@sandelman.ottawa.on.ca \
--cc=rob@landley.net \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox