Haszlakiewicz, Eric wrote:
So, those are all UML filesystems? Or does UML just use regular
filesystems with regular binaries?
I was hoping there was a FAQ about this stuff somewhere, but I don't see
one from the UML home page, and the UML Wiki isn't working. :(
As far as I understand it, uml uses a normal filesystem and normal
binaries - the only difference is that you are starting it by running
linux.uml as a normal userland process in the host system, which then
becomes the kernel for the guest system.
I wrote some very sketchy notes for myself about how to build your own
filesystem on a partition which you can use uml with, which I've
attached in case you find them useful.
The basic method (which only works on a debian based system) is to use
the debian command debootstrap to download and install a linux base
system inside the partition you've made, then chroot (rather than uml)
into the filesystem to install any more packages you need.
hope this helps,
andy
- preparing the filesystem - I.e. create partition, mount it, use debootstrap
to install debian (use --keyring), make sure sources.list has the mirror you
want and security updates enabled, go into chroot and 'apt-get install
locales', 'dpkg-reconfigure locales', update and upgrade apt, and install any
extra packages (e.g. mc,less), copy /etc/passwd and /etc/shadow. chroot and
change passwords if you want. Then unmount the filesystem and try running uml.
Can do touch CHROOT inside chroot to make a marker file so you don't forget
where you are. Set hostname on UML system.
- need to enable read write access to the block device for the user you're
running uml as.
- start uml at first with $ linux.uml mem=128M ubd0=/dev/<blockdev>
- dont shut down uml by using sigTERM (standard kill) from the host system. use
halt inside uml if possible or change ctrl-alt-del to halt in /etc/inittab, and
use uml_mconsole <machineID> cad
- networking works OK using the tun/tap method. see:
http://user-mode-linux.sourceforge.net/old/networking.html
- *v.important* not to start uml on a filesystem that's already mounted rw.
- need to have loopback interface started for some server daemons to work (e.g.
mysqld)
- if you have the disk space, it may be a good plan to make a mirror partition
that you can copy the whole filesystem to as you go along in case you corrupt
it. (Esp. when first learning how to use uml).
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user