Multiple users access our kernel-based virtual machine

Asked By 0 points N/A Posted on -
qa-featured

How can I have multiple users access our kernel-based virtual machine at the same time?

SHARE
Best Answer by Noel Sam
Answered By 0 points N/A #92125

Multiple users access our kernel-based virtual machine

qa-featured

Kernel-based Virtual Machine (KVM) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V).

It comes with a loadable kernel module, kvm.ko, which provides the core virtualization infrastructure and a processor-specific module, kvm-intel.ko or kvm-amd.ko.

Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images.

Each virtual machine can have its own private virtualized hardware: a network card, disk, graphics adapter,

Best Answer
Best Answer
Answered By 0 points N/A #92126

Multiple users access our kernel-based virtual machine

qa-featured

You can do that easily by letting users ssh into a screen session.

First of all you have to install the screen package:

On RedHat

# yum install screen

On Debian/Ubuntu:
$ sudo apt-get install screen

If you want to all have the same screen session then please include this in the .bashrc file:

if [ ps auxw|grep [s]creen > /dev/null ]; then
screen
else
screen -x
fi

However, if screen is not running, it will spawn a new screen session. If it’s running already then it will have new user join the screen session.

Here if you want to get their own screen session then write a custom script to spawn screen with X number of session. Then auto join new person(s) to n+1 screen.

Thank You !!!

Login/Register to Answer

Related Questions