Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Virtual PC Development Setup?

Tags:

vpc

virtual-pc

After having had a dev PC HD corrupt, I'm considering the idea of making my development environment be fully Virtual PC based.

The core items would be: - XP Pro 32 - IIS - VS2003 - VS2008 - SQL Server 2005 - Office 2003

Primary source would reside on a server in SVN with only a clocal copy on the VPC. This would be for Windows based web and desktop development.

Assuming that the host machine has decent performance and provides for hardware virtualization, are there any known gotchas with such a setup, ie main pros and cons. Any performance issues or other issues that make this a good or bad idea?

I'd like to go this route so I can create a full backup VPC that can be put on a new PC if one fails and is repalced or copied to a laptop as needed for offsite work, etc. With the new Virtual PC features of Win7 this seems like it may be even better goign forward too.

Would like to get some feedback on this before we go down that road...

like image 266
schooner Avatar asked Jul 11 '09 11:07

schooner


People also ask

Is Windows Virtual PC still available?

Windows Virtual PC is not supported on Windows 8 or Windows 10, and has been superseded by Hyper-V. Virtual PC virtualizes a standard IBM PC compatible device and its associated hardware. Supported Windows operating systems can run inside Virtual PC.

How do I create a Windows development environment?

Here's the how-to: Ensure that you're running Windows 10 Anniversary Update (build 14311 and up) Enable Developer Mode (Settings - Update & security > For developers) Search for “Windows Features” and choose “Turn Windows features on or off” and enable Windows Subsystem for Linux.

Is Windows Virtual PC free?

Microsoft offers free Windows virtual machine images for testing Microsoft Internet Explorer and Microsoft Edge. While their licenses expire after 90 days of use, by creating a snapshot before activation, they can easily be reset again.

How to set up Windows Virtual Desktop on Windows 10?

Now let’s move on to the steps you need to take to get started. To set up Windows Virtual Desktop, you will need a few resources and to complete a few initial setup steps: An Azure subscription with sufficient credit (needed to host resources). Download and install the Windows Virtual Desktop cmdlets for Windows PowerShell on a device.

How do I create a Windows Virtual Desktop (WVD) host pool?

To get started, visit the Microsoft Azure Portal, select Create a Resource and search for Windows Virtual Desktop. Select Windows Virtual Desktop – Provision a host pool. Select Windows Virtual Desktop – Provision a host pool and click Create.

How do I create a virtual machine on Windows 10?

Microsoft provides a built-in tool called Hyper-V to create a virtual machine on Windows 10. It’s only available on these platforms: If your PC runs Windows 10 Home, you must install a third-party virtual machine client. Hyper-V is not available on this platform.

How do I create a Windows Virtual Desktop tenant in azure?

Before you can create a Windows Virtual Desktop tenant, you must allow Windows Virtual Desktop services to access your Azure AD tenant. The way Windows Virtual Desktop is designed requires explicit Azure AD consent. The process is much like how Azure requires you to enable non-standard resource providers before being able to use them.


2 Answers

I wouldn't recommend Virtual PC because the performance is pretty disappointing compared to VMWare.

I've used a virtual development machine inside VMWare Workstation and VMWare Fusion on Mac for quite a while, and it works very well. It feels as if you're running on a dedicated machine.

My recommendations are:

  • Use a 64-bit OS as your host OS (Vista x64, Windows 7 64-bit, Mac OS X Leopord)
  • Have at least 6GB of RAM on your physical machine
  • Allocate 3GB of RAM to your VM for 32-bit, or more for a 64-bit guest OS
  • Pre-allocate the diskspace for your guest OS (no auto-grow)

Another advantage is that you can take your VM from a Windows-based VMWare Workstation to a Mac-based VMWare Fusion (and the other way around) without any problems.

like image 103
Philippe Leybaert Avatar answered Nov 24 '22 02:11

Philippe Leybaert


I have been running multiple virtual development environments in MS Virtual PC and Virtualbox for 2 years now. I am doing mostly asp.net applications, some of the solutions are relatively large and use large databases which I also run inside the VM.

My observations based on this:

  • It is a good idea for exactly the reasons you mention and it works fine. Go for it!
  • 768 megs of ram for the VM is enough, but more is better.
  • Have a Multi-core CPU.
  • Install the virtual machine additions for the guest OS. (This is basically like installing the proper drivers for your "virtual" hardware, and seems to be more important for performance than having hardware virtualisation support).
  • If possible, have the VM disk image on a separate physical disk from the host OS.
  • Use Virtualbox. It's free, and being developed rapidly. It might already be the best.
  • If you can satisfy the above, performance is no issue. Multiple Visual studio instances, IIS, SQL, Office, works just fine.
  • Running multiple copies of the same guest OS when it is a member of a domain/AD is tricky. If you need to do this you should read up on the sysprep.exe tool. Basically you can't just make a copy of the virtual disk, you need to take some special precautions.

Virtual PC is very convenient and it was what I used for starters, but I have to say that virtualbox seems to have overtaken it now. It was a bit rough in the beginning but the last few versions have really gotten there. Virtualbox is fully free, and it has better features than VPC2007 - the main one that made me switch was the support for high resolutions. Virtualbox runs fullscreen on my 1920x1080 no problem.

It can also run virtual PC images, so switching was just a matter of installing virtualbox and adding my existing virtual PC disks to it. An added benefit is that I can run the virtual images just as easily on my new mac as on the old pc.

The commercial options are not (anymore) worth what they cost, IMHO.

like image 28
Console Avatar answered Nov 24 '22 04:11

Console