Am 02.04.2011 06:55, schrieb Amat:
> Hey Guys,
>
> I have started using UML today and I think it's a great alternative to 
> most virtualization software. But I have a question. Does anyone now if 
> it is possible to lock the vm out of the host. What I mean is that once 
> the vm is booted, it has absolutely no way of going back to the host 
> machine (with commands such as `halt`, `init 0`,...) because I'm 
> planning on using it to setup a lab and access to the host machine 
> should be restricted.

You shouldn't let your lab users access the VM through the UML console,
which is the terminal you started the VM from. As you say, when the VM
shuts down it will drop back into the hosts shell.

Better practice would be to start the UML machine inside a screen
session (GNU screen) and, once running, detach from the session and log
out (I assume you are running UML from a root account). Then let users
log in with ssh, or set up X within UML and access that from the host or
remote (VNC, xdm, etc.).

Redirecting a guest tty to a host pty would be possible too, if you want
to give your users the thrill of a console login prompt... you'll have
to connect the correct pty to a terminal obviously. Haven't done
anything like that in a very long time, so others would be better able
to help there if you wanted that.

Jochen


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to