ScriptUO

Casa de TrailMyx => Programming / Operating Systems => Virtualization => Topic started by: 12TimesOver on December 02, 2009, 07:29:36 AM

Title: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: 12TimesOver on December 02, 2009, 07:29:36 AM
If you are running Windows 7 you can install the latest version of MS Virtual PC however this turorial will focus only on Virtual PC 2007. Be sure you are running SP3 if Windows XP

First, you need to download the software. There are two versions, 32-bit and 64-bit, pick your version and download.

Virtual PC 2007 SP1 Installation package
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=28c97d22-6eb8-4a09-a7f7-f6c7a1f000b5

Then download Security Update 1
http://www.microsoft.com/downloads/details.aspx?familyid=88DE1513-8D35-410F-8896-FE668F885CA0&displaylang=en

Now we install...
1 - Run the Virtual PC 2007 SP1 installation package.
2 - Click "Next" at the welcome screen
3 - Accept the license and click "Next"
4 - Put in whatever information you want for Username and Organization, choose whether you want "Anyone" or "Only for me", click "Next"
5 - Pick the folder you want to install to or leave it default (C:\Program Files\Microsoft Virtual PC), click "Install"
6 - Click "Finish" when done
7 - Install the Security Update package, this will tell you to reboot usually, go ahead.

Next, we create a new PC...
1 - Start Microsoft Virtual PC (Start\Programs\Microsoft Virtual PC)
2 - The first thing that comes up will be the "New Virtual Machine Wizard", I like to click "Cancel" here and head to "File/Options" first but you don't have to. If you do, just go through the options and make sure you are comfortable with the settings. You may find that you are perfectly happy with the default settings.
3 - Now click "New" and start the wizard again
4 - Keep "Create a virtual machine" selected and click "Next"
5 - Give the machine a name and a location, I suggest changing the default location because it will put the devices in your "My Documents" folder in your profile. I usually give the Name as the same Windows name I will give the PC when I build it. I also like to put the machines in a different folder on my Data drive ("D:\Images\VirtualPC" for me). Click "Next"
6 - Select the OS you will install, e.g. Windows XP, click "Next"
7 - Select "Adjusting the RAM" and enter the amount of memory you want to dedicate to this device, for a Windows XP box I like to put it to at least 256 Megs. Just pick what you want and click "Next"
8 - Since you haven't created a virtual hard disk yet, select "A new virtual hard disk" and click "Next"
9 - Browse to the folder you want to store your image in and give it a name (leave it with the .vhd file extension). I like to give it the same name and folder as step 5, this way all of the files stay together and are easily identified as belonging to a specific PC. Pick your hard drive size, I would suggest at least 4gig if Windows XP but this greatly depends on what you will be doing with it. Once decided click "Next"
10 - Click "Finish"
11 - You will now see your new Virtual PC listed in the "Virtual PC Console", don't start it yet. Select it and click "Settings"
12 - Go through the settings and get familiar with the options here. This is how you control the behavior of the "hardware" and the save settings, etc.
13 - Once satisfied with the settings move along!

Finally, we put an Operating System on the new PC...
1 - Insert your installation media into your CD/DVD drive (e.g. your Windows XP installation CD)
2 - In the "Virtual PC Console" click "Start"
3 - The virtual machine will start and a new window will open. In the bottom, left-hand side of the window you will see several icons including a CD icon. Right-mouse click the icon and select "Use physical drive X:" where "X:" is the CD Drive with your media in it.
4 - Click "Action" then "CTRL+ALT+DELETE". Your new machine should restart and, if you are using the correct installation media :) the Windows installer now kicks in and you have now reached the end of this half-hazard tutorial.

Any questions?

Enjoy!

XII
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Paulonius on March 08, 2010, 06:13:09 AM
On my load for the final step of installing the OS, when I hit CTL ALT DEL it opened the menu in the installed version of Win7.  I used the action "Reset" and that worked to initiate the install.

I am trying to load my 64 bit Win7 OS onto the VM and it is giving me the message "CPU is not compatible with 64bit Mode".

Wondering if maybe I should load a different OS...
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: 12TimesOver on March 08, 2010, 07:38:18 AM
On my load for the final step of installing the OS, when I hit CTL ALT DEL it opened the menu in the installed version of Win7.  I used the action "Reset" and that worked to initiate the install.

I am trying to load my 64 bit Win7 OS onto the VM and it is giving me the message "CPU is not compatible with 64bit Mode".

Wondering if maybe I should load a different OS...
The last step of my tutorial does specify to use the action menu, not actually hit CTRL+ALT+DELETE ;)

As for the 64-bit question, are you using the correct version of MS Virtual PC (see the beginning portion of the tutorial)?

X
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Paulonius on March 08, 2010, 08:18:45 AM
maybe I just mis-read the tutorial.  Not sleeping so great lately.

I thought I was using the right bit selection, but not 100% sure.  I have to get an OS before I can get it running anyway, so maybe I will uninstall it and reinstall it to be sure.
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Paulonius on March 09, 2010, 08:19:00 AM
It appears that the XP license goes away from your Win7 product key once you download the first Win7 service pack.  I read this on a couple of websites and mine won't work to load XP on a VM. 
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Paulonius on March 16, 2010, 12:25:59 PM
Okay, I did some more work on this and sorted out a couple of things.

I am on a Windows 7 machine and I installed the XP Mode software and Virtual PC package to try out XP mode.  It runs well and is well integrated. Essentially a Virtual PC in a window.  The issue I had is that it was only running in 16 bit and I couldn't change it.  Second issue was that it would not allow me to open an additional Virtual PC window in anything higher than 16 bit.  I tried to un-install it and had problems that required me to revert to prior to installing the XP mode package. 

I then reloaded Virtual PC 2007 and got that working.  I was able to set it up in 32 bit mode (required for OCR) and get it running the HW quester.  It is noticeably slower than VMWare, but otherwise not any more difficult to set up.  It doesn't put much load on my CPU.

I wonder is there any way to make it run faster?  I allocated 1M RAM and 10Gig of HD.  Its painfully slow.  Not sure I can run the SOS hunter on it and be responsive enough to kill serpents...
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Scrripty on March 16, 2010, 12:31:34 PM
What kind of computer?  I have a phenom 2 black edition with 6 gigs of ram and routinely run 2 of them in the background without much problems.  After a bit of time they can get a little sluggish but some to do ok...
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Paulonius on March 16, 2010, 12:36:38 PM
It's the computer I built with help from folks at SUO.  i7 processor, 12 G RAM. It has plenty of memory and power, I think Virtual PC is just freaking slow -- unless there is a setting I am missing, and from re-reading all of the virtualizaiton threads I am guessing its not the setup.  It runs faster in 16 bit, but OCR won't work, so none of the scripts you want to run a VM for will work very well.  The VMWare setups I had were a bit slower than normal, but ran very well.  Virtual PC is a lot slower.

I am thinking I may just throw down the 189 and get the VMWare software.  Was easy to install and seems to run better. 
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: TrailMyx on March 16, 2010, 12:41:56 PM
You'll find that Virtual PC and VirtualBox are MUCH slower than VMWare.  It's a free vs. paid sort of thing.  heh
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Scrripty on March 16, 2010, 01:01:36 PM
Yea I use VMWare but I have Virtual PC and use it also sometimes.
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Paulonius on March 16, 2010, 01:23:36 PM
I figured I should give Virtual PC a try since its free.  Its slow enough that it annoys me to set up something to run.  Now that I have given it a shot I feel like I know what I am paying for with VMWare.   
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: TrailMyx on March 16, 2010, 01:55:50 PM
I've found that with I run 1 instance of a VM in VirtualBox, it works pretty well.  However 2+ instances slow to a crawl.  So far, only VMWare has been able to handle the resources smoothly enough to make it usable.
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: 12TimesOver on March 16, 2010, 03:07:19 PM
Interesting, I never have issues with performance on my Virtual PC's with the MS product, not sure what your issue can be. I will agree though that VMWare Workstation is superior and I do use it as well as ESX quite a lot too. But for free, you can't beat the MS product IMO. I love being able to drag and drop files to and from the HOST/Guest back and forth, etc!

I also force everything to run in RAM, I ditch the swap file. I do notice disk I/O problems at times so swapping from disk will be slow. Otherwise, not sure what else tell ya - every situation is different!

X

Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Scrripty on March 18, 2010, 08:00:24 PM
I also use some SD ram as swap disks in Win7... :)  Faster access than hard drive...  6 gigs ram, and 2 4 gig high speed swap disks.  I consistently run like 20 things in my task bar and never have issues.  Once in a blue moon maybe. :)
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: rana70 on March 23, 2010, 03:41:30 AM
Is there any chance to boot from an USB Stick
within MS Virtual PC 2007 ?

I just play around with creating bootable sticks
and it would be nice to check them out this way

cu
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Paulonius on March 23, 2010, 12:27:19 PM
You should be able to.  You can specify the drive path.
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Cerveza on January 18, 2011, 08:03:58 AM
Can you setup a separate drive as another OS?

Like if I have Win7 on my C: drive can I use this to make my old XP drive D: for a virtual machine?

Is there shared folders on these so you can drag/drop between the systems?

Can you put each one on a separate monitor?
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: 12TimesOver on January 18, 2011, 05:47:10 PM
Can you setup a separate drive as another OS?

Like if I have Win7 on my C: drive can I use this to make my old XP drive D: for a virtual machine?
Nope. You actually create a file that is the virtual drive. For example, you make an 8 gig file that can be stored wherever you want to store it that is actually a bootable OS (e.g. XP).

Quote
Is there shared folders on these so you can drag/drop between the systems?
Yes. You can do shared folders like you would with any networked machine, however you can actually drag from your "host" machine (your workstation) and drop directly to the desktop or a drive on your virtual machine.

Quote
Can you put each one on a separate monitor?
Sure. Just drag the desktop of one machine to the other monitor. I usually have 4 tiled in a monitor so I can see them all at the same time.

X
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Cerveza on January 18, 2011, 06:13:33 PM
So can't use a D drive as a separate virtual device... hmmm... there goes that one I guess.
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: UOMaddog on January 18, 2011, 07:13:17 PM
Look around and see if you can generate a virtual hard drive file (i think they're .vhd files) that Virtual PC uses from a drive (maybe by creating an ISO). Then you could essentially run VirtualPC from the .vhd file that would be an exact duplicate of your current drive
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Cerveza on January 18, 2011, 07:40:17 PM
I'll see if the new Windows Virtual PC offers that. From what I understand I can get it and run it with my version of Win7, I just can't use the built in WinXP.
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: 12TimesOver on January 19, 2011, 07:37:41 AM
Why would you want to use an entire volume as your virtual machine hard drive? That's just a waste of resources and kind of defeats the Virtualization purpose, at least slightly, me thinks. Are you just trying to resurrect an old workstation as a Virtual machine?
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Cerveza on January 19, 2011, 08:25:59 AM
I want to access my old WinXP system from my new Win7 system so I can load/run stuff from either one and share stuff like passwords and settings.

I'm replacing my MB/CPU/HD so I thought the easiest way would be to put my old WinXP drive in as the D: drive. I mean it's already got the boot sector and stuff setup on it... so I should be able to boot from it.

Then I can run from my new C: drive that will be loaded with Win7. If I can get them both booted at the same time on the same computer, then it'd be really easy to run them like separate machines. That way when I see a program I like and use on the WinXP, I can just go d-load it for the Win7 side.

I figured if I can get them both up and running together for a couple weeks, I'm sure I'll start to not even look at the WinXP side, that will mean it's time to remove it.
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: UOMaddog on January 19, 2011, 08:32:21 AM
Problem solved Cerv!

http://www.makeuseof.com/tag/create-a-virtual-machine-image-of-your-existing-hard-drive-windows/


Or you could attempt this (but it seems way more complicated and dangerous):
http://support.microsoft.com/kb/912826
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Cerveza on January 19, 2011, 08:53:05 AM
Problem solved Cerv!

http://www.makeuseof.com/tag/create-a-virtual-machine-image-of-your-existing-hard-drive-windows/

YES! That looks like a winner right there!! Thanks MD!!

It'd be like making a copy of the old WinXP hard drive into a partition of the new Win7 hard drive and using that as the virtual drive! I was hoping for a straight use C: and D: , but this looks like it's going to work.

Thanks again!
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: UOMaddog on January 19, 2011, 10:20:36 AM
I think ultimately you'll like having the virtual hard drive so you can reformat the old one and use the extra space. I imagine you can cram down the size of the old drive since the image would not contain any of the free space. Virtual hard drives are usually formatted to be expandable so the size will increase as you need it, and since you're mainly just looking to slowly migrate, when you're done, you can just delete and enjoy all your extra space! Also, don't forget Dropbox as a great way for backing up documents and small amounts of music. If anyone would like an invite (so you get a bonus of 250MB on top of the 2GB you get for free) just send me a PM with your email and I'll send you an invite right away!
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: 12TimesOver on January 19, 2011, 10:53:17 AM
Pretty much the path I was going to recommend but I've never done with Microsoft so I wasn't sure where to send you, good Googlin' MD!! In VMWare world we would use P2V and I've done this successfully countless times (sometimes it can be a little quirky but usually it's smooth). I assumed MS would have something similar.

Let us know how it goes Cerv, love to hear about it!

X
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: UOMaddog on January 19, 2011, 06:14:24 PM
What can I say, I'm an expert Googler!
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: 12TimesOver on January 20, 2011, 02:55:50 AM
What can I say, I'm an expert Googler!

LOL. Good one to put on the resume hehe.
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: Masscre on January 22, 2011, 11:53:08 AM
You might even want to send that resume to Paul :) I hear he has quite a few applications that is.
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: UOMaddog on January 22, 2011, 08:40:41 PM
LoL yea when 12X wrote that I immediately thought of that thread!
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: slyone on June 20, 2012, 03:24:50 PM
Problem solved Cerv!

http://www.makeuseof.com/tag/create-a-virtual-machine-image-of-your-existing-hard-drive-windows/

YES! That looks like a winner right there!! Thanks MD!!

It'd be like making a copy of the old WinXP hard drive into a partition of the new Win7 hard drive and using that as the virtual drive! I was hoping for a straight use C: and D: , but this looks like it's going to work.

Thanks again!

I hope I'm not resurrecting too old of a thread.  I just had two super old towers die and now I have two HDDs i'd like to boot from and I'm thinking that this solution is the direction I'd like to take.  How did it work out for you?
Title: Re: Tutorial - Setting up Microsoft Virtual PC 2007
Post by: declo on February 22, 2015, 08:13:33 PM
Is VMWare still the best option?  I am new to virtualization and would like to give it a try.