Helping people with computers... one answer at a time.

Because I use a VM to present in webinars, I figured that it'd be a good time to demonstrate what they are and why they're so cool.

Virtual machines are a way to run a computer-within-a-computer. It's a technology that I use frequently and specifically to set up clean machines for use in my webinars.

In this video excerpt from an Ask Leo! webinar, I'll talk a little about virtual machines, show you a few things about them, and generally go on about how cool I think they are. Smile

Download the video: virtual-machines-640-web.mp4 (36M).

View in HD (1280x720)

Transcript

What you are looking at besides a Windows 7 desktop: there are a couple of menus up here that are probably unfamiliar for you. That's because what's really happening here is that I'm running a copy of Windows 7 in what's called a virtual machine. Now, it's difficult to define a virtual machine without saying that it's a machine that runs virtually but I'll try and put it into, put it in some clearer terms.

The short version is that a virtual machine in this context is really just a software simulation of a PC. So what that allows us to do is on one computer, inside of a window (the window that you happen to be looking at here) run what is effectively, a completely different computer.

So what I'm going to do is I'm going to show you a couple of things. First, I'd like to show the characteristics of the computer that you're actually, that I'm actually running on. This is Windows 7 Ultimate. It's an 8GB machine; I have a quad core processor on it. It's what I do my work on day-to-day.

To go back, the machine that we were looking at is a virtual machine. It is running in a window on my desktop machine. It's running a little slowly for a couple of reasons that we'll be clearing up here shortly. So what I've done is I've configured this virtual machine to behave as if it were a 2GB machine running a 32-bit version of Windows 7 and actually even though it lists the Quad CPU, it's actually only using two of the four processors. One of the very interesting things you can do with virtual machines is change these characteristics in software in the configuration for the virtual machine. Let's take a look at that.

What we're looking at here is a different view on a different machine. What you'll notice is that this particular virtual machine which is the one I'll be shutting down shortly to speed things up is actually running Windows Vista. So what I have on my desktop, of course, is in one window, the Windows 7, the one I'll be doing most of my demonstrations on, and yet in this other window, I have Windows Vista running. In fact, as you can see off to the left, I have a long list of virtual machines that I might have available to me. Everything from the webinar versions; Windows 7 copy that I've got running primarily; a backup copy that I'll be using to save some time a little later on; the Windows Vista that we're running right now (that I'm going to go ahead an shut down because I want things to be a little faster.

You'll notice I have several copies of Windows XP ready for me. As you can imagine, I end up answering questions about Windows XP, and of course, God knows that I don't know everything. So quite often I find myself having to fire up a copy of Windows XP. Rather than having the separate machine, I can simply run a virtual machine with a smaller copy of Windows XP, and in fact, I can even run Ubuntu Linux in a virtual machine. This is the most recent, I believe, 11.04 release of Ubuntu and it's just one of those things that I copy down; an opportunity for me to evaluate the software without actually needing to dedicate a machine to it.

So back to the Windows 7 that we're actually running for the webinar. As you can see, it's got configuration of having two CPU's; 2 GB of RAM; 32 GB HDD . One of the neat things you can do with a virtual machine, and in fact I did it to this very virtual machine when I was practicing yesterday - it only had 1 CPU - so I shut down the software, changed the configuration to add a CPU and fire it back up again. Similarly, if I wanted to, I could easily change the amount of memory that is allocated to this particular machine. I could change the hard disk space; all of these things, particularly the hard disk, as you can imagine, it's all simply saved as data files or configuration files on the real computer on top of which it's all running. So another way of making it a little bit more obvious just how virtual or how much of a simulation a virtual machine can be, I'm going to start up Windows XP here. And what you'll find as soon as it starts (it may change the window size on me which may end up impacting you just a little bit). You'll see that it immediately shows what looks to be a BIOS screen. They actually emulate a true BIOS so that when you boot whatever it is you are interested in booting, it thinks, it looks like it's running on a real PC, on a PC that has a BIOS and some pre-defined set of hardware, and of course Windows XP is going to take just a little while to boot up. I don't necessarily think we'll end up watching the whole show. I at least wanted it to show its logo to give you an idea of what level we are actually operating on when we're playing with virtual machines. This should look really familiar, it's the Windows XP boot-up sequence; the stuff that you see before Windows XP is even loaded. And there it comes. I am going to stop that one because we don't need to see Windows XP today and go back to our webinar.

So, in short, virtual machines are incredibly powerful technologies that I think are just incredibly cool. I end up using them for situations like this. For example, another example of how wonderful they really are - what I have for these webinars is a fully configured, Windows 7, with a couple of tools pre-loaded on it. I simply make a copy of that machine to start from that point when I do a webinar. Yesterday, when I did a dry run for this webinar, I created a (we'll be seeing this later) I created a separate virtual machine for Windows 7 - went through everything; you can see there are some changes here: Microsoft Security Essentials is installed; there's a toolbar down here; there are some things on the webinar agenda today already completed. But I wanted to start today from scratch, so I simply copied the virtual machine to make it start from that same pristine state. Now virtual machine technology that we're looking at here I happen to use Parallels Desktop there are other technologies, other companies that provide similar technology. VM Ware is another one - also very popular. Now what you'll find for VM ware is that there are often pre-configured virtual machines that you can download, sometimes for free, sometimes not. But for example, if you have the VM ware runtime environment, you could download a virtual machine, that for example, is already to go copy of Ubuntu, or already to go software firewall or all sorts of other random things.

Microsoft, of course, has its own virtual machine technology, Virtual PC and the reason that all of this comes to bear on Window 7 is that when you purchase Windows 7 Pro version or better, you are able to download, for free, something that's called Windows XP Mode. What Windows XP mode is, is nothing more than a virtual machine into which they've pre-loaded Windows XP. So you actually have the opportunity to run Windows XP, in a window on your Windows 7 machine. As you can imagine, that tends to be somewhat helpful for people that are experiencing compatibility issues with Windows 7 and older applications.

Article C4875 - July 12, 2011 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

4 Comments
Snert
July 19, 2011 9:29 AM

Concise and informative, as per usual.
Thank you Mr. Leo.

A virtual machine is an OS running inside the base OS. You can dance around in the virtual OS until your pointy lil' heart's delighted and do the do-wah-diddy untill the washing machine's finised but when you exit the virtual machine anything you've done inside it is gone - poof!
Or did I misunderstand somthing here? Can i export changes made in the virtual machine to the base OS? Like .doc or .jpg changes if I so desire?

Thomas Costick
July 19, 2011 10:01 AM

I use VirtualBox to run various flavours of Ubuntu on my Windows 7 Pro machine. The good thing about Ubuntu is it is free. As I have the original Windows 7 Pro install DVD, what would be the licensing implication of installing one or more instances of Windows 7 in virtual machines? Can I do this legally? Is it possible to avoid registering the virtual installation? I guess I could configure no network connectivity, but that would severely limit the usefulness of the virtual installation. Any suggestions?

J. Servis
July 19, 2011 10:51 AM

Great Video, Leo. I still as yet to catch a webinar, Sunday's a busy day for me with the family & all. Do you have a tutorial describing the process one needs to go thru to install a virtual machine? I have W7 Ultimate and will be downloading the XP virtual machine version you mentioned and be playing with that, but like Mr. Costick mentioned, is it posible to install a "clean" version of W7 runing inside my existing W7 that I could use as well? Thanks once again, J.S.

I don't have a tutorial myself, no. Yes, you can install a Windows 7 VM within Windows 7 - that's how I do the webinars. What I don't have an answer to is the licensing issue - my guess is that it's ok, but I don't know for sure.
Leo
23-Jul-2011

Mark J
July 19, 2011 2:27 PM

@Snert

Some virtual machines such as Windows Virtual PC allow you to share the clipboard between the Virtual Machine and your main OS. In that case you would be able to copy and paste any file between OSes.

Alternatively, you can save or copy your files to an external drive, and if you hibernate your virtual machine instead of shutting it down,the work won't be lost.

Comments on this entry are closed.

If you have a question, start by using the search box up at the top of the page - there's a very good chance that your question has already been answered on Ask Leo!.

If you don't find your answer, head out to http://askleo.com/ask to ask your question.