User Mode Linux: Coming to a Kernel Near You, Part 2 - page 3
When We Last Left Our Story...
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
/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
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
shutdown -h now rather than just closing the window you're running the
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/.
- 1Linux Top 3: Alpine Linux 3.4, deepin 15.2 and Linux Lite 3.0
- 2Linux 4.7 Set to Boost Live Patching, Security and Power Management
- 3Linux 4.6 Charred Weasel adds USB 3.1 Support
- 4Linux Top 3: OpenIndiana 2016.04, Ubuntu 16.04 and Debian's New Leader
- 5Linux Top 3: KaOS 2016.04, TurnKey 14.1 and pfSense 2.3