-   Linux - Virtualization and Cloud (
-   -   Ubuntu 10.10 on User-mode-Linux (UML) (

antonko 12-19-2010 08:11 AM

Ubuntu 10.10 on User-mode-Linux (UML)
Hello! I have some questions about running Ubuntu with UML kernel. Though I used to find all basic information with help of Google, but this time I failed. I think UML-project has troubles with good documentation.

So, the task is to install the latest stable Ubuntu into image file and run it with UML kernel. Host OS is Kubuntu 10.04, ia32.
I've already installed OS using debootstrap, added some mount points to guest's /etc/fstab:

proc        /proc        proc        defaults        0        0
sys        /sys        sysfs        defaults        0        0

and added a user to the guest system (after chroot, of course):

addgroup --system admin
adduser myusername admin

I've decided not to compile a UML Kernel myself and installed it from repositories (package user-mode-linux). Now I'd like to start virtual Ubuntu and to log into it:

linux ubda=ubuntu-10.10.img
This command causes opening of 9 empty consoles, where i can input nothing. The main console which was used to launch UML filled with some warnings like "QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed ...". I'm not sure whether these warnings belong to guest or to host OS.
So, the main problem is that I can't find where is the guest's TTY1 and how to log in.
However, it's also not clear for me whether I'm able to reduce number of opened consoles.

Thank you for reading this long post!
Looking forward for help.

antonko 12-19-2010 05:33 PM

At least I've founded solution. Maybe, it would be interesting for someone.
So, the problem was that virtual machine did not really started because of mount problem. To fix it I added a line

dev /dev tmpfs rw 0 0
to the /etc/fstab in image file of virtual machine.

To reduce number of opening consoles I've added some launch parameters:

linux ubda=ubuntu-10.10.img con0=xterm con1=xterm con=null
where con0 is console for logging a boot process of the VM, con1 is the TTY1 of the VM.

stress_junkie 12-19-2010 05:38 PM

Thank you for posting the solution. :)

All times are GMT -5. The time now is 03:01 PM.