October 19, 2014
 
 
RSSRSS feed

User Mode Linux: Coming to a Kernel Near You, Part 2 - page 3

When We Last Left Our Story...

  • March 18, 2003
  • By Dee-Ann LeBlanc

Now you should have the basics set up. Some of the changes you've made need to be added to the rc.local file to be made permanent. On a distribution that doesn't include an editor, you can add items to the end of a document with the simple combination:

echo add this line >> /path/to/document

One of the first things you probably noticed, or will now notice, is a severe lack of files on this virtual machine. The default filesystems are wisely not drowning in files, or downloading them and uncompressing them would take even longer than it currently does.

Instead, you can access the host machine's filesystem when needed using a special, non-network tool built into the UML, called hostfs. Type ls /mnt/host to see if the mount point you'll need currently exists. If not, create this directory first--or if you want to have the host filesystem elsewhere, create the mount point you require--and then type:

mount none /mnt/host -t hostfs

Type cd /mnt/host and there you are, in the root filesystem of the host machine. That should take care of any missing software problems.

When you're finished playing with your UML, remember, this is a full virtual machine. Make sure to shut it down properly with halt or shutdown -h now rather than just closing the window you're running the UML in.

Have fun trying out your virtual machine! If you want to get deeper into UML, helpful resources include:

Dee-Ann LeBlanc is an award-winning technical author with 11 books and over seventy articles in print. Along with writing, Dee-Ann teaches, develops courses, and also consults when time allows. Learn more at http://www.Dee-AnnLeBlanc.com/.

Sitemap | Contact Us