Virtual Machines, what are they and why would I need one?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Virtual Machines, what are they and why would I need one?
I've been seeing a lot of talk about virtual machines of late. From what I've read it is some sort of software environment that can trick software into thinking it has full control of the machine's hardware, making it possible to run programs that require full control of a device that is already locked down by another process.
Is this correct, and if so, what is it that people are doing with it?
Why am I hearing so much about virtual machines all of a sudden?
A virtual machine is just that. It's a virtual machine. It's a computer that doesn't exist. That is, it is a software emulation of an entirely separate hardware computer. So I can have an x86 virtual machine on my Sparc workstation. It can sometimes be used to give a process fake root permissions. Well, I guess they are real root permissions, but on a non-existent machine. However, a user on a (real) computer can only give the virtual machine access to hardware that the user itself has access to. So it's not a silver bullet for solving hardware locking or IO scheduling problems.
They are mostly being used for very high-security or high-availability applications. In other words, if I run a server, and I know that apache crashes more often than everything else because it's attacked more often, I run it in a virtual machine. Then, even if malware/a cracker manages to bring down the entire machine, all they take down is a virtual machine that I can just restart. They are also used when you need to run multiple operating systems simultaneously, usually when someone gets an itch for a Windows-only game.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.