Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

What do I need to set up using my Windows XP virtual machine software?

Question:

I’m checking out the trial version of Parallels to
run Windows XP on my Windows Vista system. So far, I like it a lot. Yet I’m
concerned about viruses and surfing the net using my XP-“guest” virtual
machine. I’ve searched online and can’t seem to get an answer on if I
need to install antivirus software on my guest machine as well? Also do
I need to reinstall all applications on my guest machine? I see that I
can share folders but can I also share apps?

Virtual machines are, to me at least, incredibly amazing pieces of
technology. They’re powerful in that they let you run multiple
different operating systems on the same machine at the same time, as
well as really being able to protect that machine from whatever happens
within a virtual machine.

The problem, of course, is that it’s very difficult to conceptualize
what a virtual machine is.

The short version is consider your VM as if it were a completely
separate physical machine, and make your decisions accordingly.

Let’s see why that is.

]]>

A virtual machine or “VM” is a software simulation of an actual computer that you run on a real computer.

Seems simple in words, but harder to imagine.

So let’s look at this picture of a part of my desktop:

A VM on my desktop

You’ll notice that there’s a Windows XP taskbar along the very bottom of that screen shot. That’s the task bar of my Windows XP that runs on my desktop machine where I’m working.

In the background you’ll notice a Firefox Window open on Google.

“… it’s a separate machine that through the magic of virtualization just happens to share some hardware with the host machine.”

In the foreground, however, you’ll notice a Window that also has its own taskbar and start menu. That is a window to a virtual machine using Parallels Workstation that is also running Windows XP. And within that window you can see I’m running Internet Explorer, also open on Google.

The virtual machine acts almost exactly as if it were on its own physically separate computer. It has its own Windows, its own Start menu, its own software, registry, users and settings. It also has disk space allocated to it that it treats as its own separate hard disk. In fact, other than being hosted on my desktop, what happens inside this virtual machine is almost entirely unrelated to and separate from what happens on my desktop machine.

And that’s by far the best way to think about it: it’s a separate machine that through the magic of virtualization just happens to share some hardware with the host machine.

So, in light of viewing it that way, let’s look at your questions again:

  • Anti-malware software: if this were a separate physical machine, would you install your anti-virus or anti-spyware software on it? If so, then you should treat the VM the same way. The VM does not get any protection from anti-malware software installed on the host machine.

  • Other software: if this were a separate physical machine, would you install your applications in order to be able to use them? If so, then you should install them in your VM the same way. The VM does not get any kind of special or shared access to the software installed on the host machine.

The point of confusion may be the fact that you can easily share files between your VM and your host machine. But think about it: you can share files between two separate computers as well, via networking. In fact, that’s all that VM/host file sharing is – a form of network-like access between the VM and the host machine. The two remain as if they were two separate and distinct physical machines.

Virtual machines are incredibly powerful for certain applications if used properly. But by far the best rule of thumb to follow when understanding how they work is simply that they are separate machines.

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

4 comments on “What do I need to set up using my Windows XP virtual machine software?”

  1. I’ve been wondering, if I have files that I suspect have been infected by viruses, or that my virus shield (maybe falsely) reports as infected, would it be safe to run and use those files in a virtual machine environment, leaving the host computer unaffected? From this article it sounds like it.

    Carefully, with the caveat that you would then have an infected machine on your local network. Make sure all your machines are behind a firewall with respect to this virtual machine. (Typically that would be a case for a software firewall on every machine.) And make sure that all other machines are up to date.

    I would also take care with any software that attempts to share disks between the infected virtual machine and the host machine.

    You might also consider disabling the virtual network adapter in the virtual machine.

    – Leo
    13-May-2009
    Reply
  2. Hope I’m not shunned for reviving an old thread here, but I read through Leo’s rules and it doesn’t seem to be frowned upon…

    OK, I’m going to confess my IT n00b status in the area of VM’s. While I’m an IT professional, I have yet to work with any VM software. I’d like some recommendations on what to use. Are there any open-source (free) solutions with a good history? I run Windows XP exclusively and prefer to avoid Linux (any flavor). Anyone have suggestions?

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.