7 Practical Reasons to Start Using a Virtual Machine
Pinterest Stumbleupon Whatsapp
Advertisement

The term “virtual” has been co-opted in so many ways that it’s now more vague and confusing than ever before. Virtual reality. Virtual RAM. Virtual schools. The virtual keyword in programming languages. But the most unclear? Virtualization in the context of PCs.

Virtualization (AKA the use of virtual machines What Is a Virtual Machine? What Is a Virtual Machine? Virtual machines allow you to run other operating systems within your current operating system, but why does that matter? What are the pros and cons? Read More ) is when you take one set of physical resources, like CPU and RAM and hard drive space, and allocate them into discrete chunks that are each seen as separate systems. But they aren’t “real” systems. One computer could be divided into many “virtual” systems.

The easiest way to do this is to use the free VirtualBox software. But the biggest question is… why? What’s the point? How can virtualization serve you? Here are some of the more practical ways you can use a virtual machine for your benefit.

1. Try New Operating Systems

Let’s say you’ve been a Windows user all your life but you’re feeling adventurous and want to get a taste of Linux. What are your options? You have several What's the Best Way to Run Multiple Operating Systems on Your PC? What's the Best Way to Run Multiple Operating Systems on Your PC? Undecided between Windows and Linux? It's possible to run multiple OSes on a single machine either by dual booting or using a virtual machine. Let's find out which one is best for you. Read More , including a dual boot setup, but one could argue that you’d be happiest with virtualization.

On your Windows system, just install VirtualBox and create a new virtual machine. Then take any Linux installation ISO (I recommend a recent version of Ubuntu or Linux Mint) and install it on the virtual machine. Now you can run Linux (the “guest” OS) in a window within Windows (the “host” OS) like any other program.

This is actually the most secure way to test a new operating system Testing A New Operating System? Stay Secure With A Virtual Machine Testing A New Operating System? Stay Secure With A Virtual Machine Read More because the virtual machine acts as a sandbox — if something goes wrong in the guest OS, it won’t affect the host OS. If there’s a catastrophic failure, you can simply recreate the virtual machine and reinstall the OS. No bricked computer!

2. Run Old or Incompatible Software

A few years ago, I was working on a novel in my preferred writing app at the time, Scrivener. That happened to be during my Linux phase, and while a Linux version of Scrivener did exist, it was in beta development What Does "Beta Software" Really Mean? What Does "Beta Software" Really Mean? What does it mean for a project to be in beta and should you care? Read More and didn’t have all of the features of the Windows or Mac versions.

So I installed VirtualBox, created a virtual machine, installed Windows 7 on it, then installed the better version of Scrivener. With Linux as my host OS running Windows as my guest OS, I could conveniently benefit from the best of both worlds and basically emulate software from another platform How Does Emulation Work and Why Is It So Slow? How Does Emulation Work and Why Is It So Slow? You've probably heard of emulation before, but do you know what emulation actually means or how it works? Read More .

Another example could be running Windows XP-only software on Windows 10 or running Linux-only software on Mac.

3. Deliberately Execute Malware

Due to the sandboxed nature of a virtual machine, you can be reckless with security and do things that you normally should avoid. For example, you should never open unsolicited email attachments 7 Important Email Security Tips You Should Know About 7 Important Email Security Tips You Should Know About Internet security is a topic that we all know to be important, but it often sits way back in the recesses of our minds, fooling ourselves into believing that "it won’t happen to me". Whether... Read More because they could be malware in disguise or harmful in other ways.

But a virtual machine can be a great way to test suspicious files for malware Found a Suspicious File? Test It In A Virtual Machine! Found a Suspicious File? Test It In A Virtual Machine! Don't run that suspicious file on your PC to check if it alerts your anti-virus software - instead, find out what it is capable of by running the file in a virtual machine. Read More . Moreover, you can use virtual machines to deliberately run viruses to see how they play out in real-time, whether out of curiosity, research, or boredom.

Note that there is some risk in doing this: newer malware may be able to detect that your environment is virtualized and seek to break out from the guest OS to the host OS. But if you’re going to test a suspicious file, always do it in a virtual machine anyway — just in case.

4. Tear Apart Your System

If you’re particularly techy, virtual machines allow you to explore and experiment with your system without fear of repercussion. This can be a nifty way to become a practical expert on one or more operating systems.

For example, you can virtualize Windows 10 within Windows 10 and use the guest version to tinker with the registry 5 Windows 10 Registry Tweaks to Improve & Unlock Features 5 Windows 10 Registry Tweaks to Improve & Unlock Features The registry editor is the only way to enable some of Windows 10's hidden features. Here we'll show you easy tweaks like enabling the dark theme or hiding folders. Read More . If you’re curious about the System32 directory, use the guest OS to open files, edit files, or even delete files. See how far you can go before wrecking your system, then recreate and try again.

I find this especially useful when learning Linux and the command line. While the command line offers lot of power and can do so many cool things 7 Neat Linux Tricks That Newbies Need to Know 7 Neat Linux Tricks That Newbies Need to Know As a Linux newbie, it's normal to struggle. Everything just feels so different from Windows and you find yourself scratching your head at the simplest of tasks. Read More , sometimes one mistake can cripple the system. A virtual machine can get you familiarized without any of the risk.

5. Create Backup Snapshots

One excellent reason to start using a virtual machine is the ability to create system-level snapshots that can be instantly restored on demand.

Imagine you want to install a new app that’s untested and possibly unstable. Or maybe you want to uninstall a bunch of software you’ve accumulated over the past few months. Or maybe you just want to tweak some system configurations. But in all cases, you’re hesitant due to uncertainty.

Just take a snapshot before plowing ahead. If something does go wrong, you can restore the snapshot and move on as if nothing happened. These backups are like a more comprehensive System Restore, and best of all, they’re saved as single files that you can move and store elsewhere (like an external drive 7 Things to Know When Buying a Data Drive for Backups 7 Things to Know When Buying a Data Drive for Backups Thinking about buying a data drive for storing file backups? Here's what you need to know if you want to make an informed decision. Read More ).

6. Clone a System to Another Machine

Since the entire contents of a virtual machine is stored on a single file, you can easily transfer that file to another computer and load it up without any issues (as long as you use the same virtualization software, of course).

For example, VirtualBox VMs are stored as VDI files. Regardless of which host OS you were using, you can copy that VDI file and load it in as a guest OS on another computer running VirtualBox. This effectively creates a clone of your system that you can carry around with you anywhere you go.

And if you use VMware Player, it gets even better. With VMware vCenter Converter, you can take a current non-virtual installation of Windows or Linux and turn it into a virtual image that can be loaded in by VMware Player on another computer. Quite a nifty way to migrate operating systems Migrate to Linux without Leaving Windows Behind with a Virtual Machine Conversion Migrate to Linux without Leaving Windows Behind with a Virtual Machine Conversion You can have the best of both worlds: Merge Linux with your Windows setup. We show you how to import your complete Windows system into a virtual machine running in Linux. Read More !

7. Develop Software for Other Platforms

Despite being last on this list, I consider this the second-most practical use for virtual machines: it simplifies the workflow for testing apps and websites across multiple platforms.

For example, if you’re creating a game that can be played on desktops and mobile devices, you can use virtual emulation to test various executables right on your computer. Instead of ferrying APKs back and forth to your Nexus, you can just emulate it — along with virtual versions of Samsung, HTC, and Moto devices.

Virtualization also lets you compile to other executable types. Even if you use a cross-platform framework, you may only be able to compile APP files on Mac and EXE files on Windows. Instead of dual-booting for every build, virtualization simplifies the process (especially if you’re using source control What Is Git & Why You Should Use Version Control If You’re a Developer What Is Git & Why You Should Use Version Control If You’re a Developer As web developers, a lot of the time we tend to work on local development sites then just upload everything when we’re done. This is fine when it’s just you and the changes are small,... Read More ).

Get Started Using Virtual Machines

Before you dive into virtualization, note that you’ll need a semi-powerful computer to really make use of it (i.e. modern CPU, at least 8 GB RAM, and a large hard drive). Trying to run a virtual machine on a weak computer will be a frustrating experience at best.

To get started, I recommend our guide to using VirtualBox How to Use VirtualBox: User's Guide How to Use VirtualBox: User's Guide With VirtualBox you can easily install and test multiple operating systems. We'll show you how to set up Windows 10 and Ubuntu Linux as a virtual machine. Read More . For a practical step-by-step example, see our post on setting up a Windows VM in Linux How to Set Up a Windows Virtual Machine in Linux How to Set Up a Windows Virtual Machine in Linux Many home users prefer to run a dual-boot setup when both Windows and Linux are needed, but if you'd rather run Windows inside Linux, here's how to set that up. Read More . If you’d rather use VMware Player instead, check out our introduction to using VMware Player Run Multiple Operating Systems At Once With VMware Player Run Multiple Operating Systems At Once With VMware Player We’ve lavished attention on VirtualBox here at MakeUseOf, and for good reason. However, VirtualBox isn’t your only option for creating and using free virtual machines. VMware Player, VMware’s free product, is every bit as good... Read More .

Do you use virtualization at all? If so, what do you use it for? Got any virtualization tips to share with us? Let us know in the comments!

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Alku
    October 30, 2017 at 4:19 pm

    Thank you for the information, it was useful and very well explained,
    I also did a bit of research on my own and found more information about this topichttps://blog.mailfence.com/virtual-machine/