Any way to virtualize Win 7 from a preinstalled PC?

Discussions about using Windows guests in VirtualBox.
Post Reply
Kurtosis
Posts: 15
Joined: 16. Apr 2010, 01:33
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP Pro, Nexenta, OpenSolaris, OpenSuse, Fedora

Any way to virtualize Win 7 from a preinstalled PC?

Post by Kurtosis »

Hello,

I just bought an HP laptop with Win 7 preinstalled, and I want to backup Win 7, wipe the hdd, install Linux, then install the backed up Win 7 image as a VB guest.

It appears from several threads here that it is not possible to do this using the system recovery discs created by the HP Recovery Media Creator, nor using the Windows Recovery Disc created with recdisc.exe. Is it possible using some other method, perhaps by cloning the drive with Clonezilla?

If not, what's the best option for getting a copy of Win 7 (64bit, at least Home Premium or better) for a VB installation on linux? Is the full, non-OEM, Win 7 installation DVD the only option?

Thanks!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Any way to virtualize Win 7 from a preinstalled PC?

Post by mpack »

Clone the drive using Disk2VHD. Optionally convert VHD to VDI using CloneVDI, for better compatibility with VBox.

Be aware that that is only step 1. The virtual hardware will be radically different to the original installation, and Win7 may or may not adapt easily. I vaguely recall doing a Win7 P2V (physical to virtual migration) in the past, and don't remember any problems (*) - except of course for the reactivation message popping up. In my case I was just playing with a CloneVDI feature (a rather clumsy feature, so you should stick with Disk2VHD), hence I didn't care about activation.

(*) I have a feeling that Win7 is more tolerant of migration problems than XP is. I believe system disk imaging is now accepted by MS as a legit tool for IT people to use. With XP you have to take a couple of precautions to ensure easy migration (run MergeIDE, delete drivers\intelppm.sys), but AFAIK this isn't needed with Win7.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Any way to virtualize Win 7 from a preinstalled PC?

Post by Sasquatch »

License wise, you can't. Pre-installed versions are bound to the hardware they are installed on. A VM is not the same hardware, thus not licensed and you're not allowed to use it there. Some installations have the activation in the hardware, and if they are put in a VM, they will never be able to activate. The license key on the machine doesn't work either in some cases. And the cheap set of hardware don't get install media to do a clean install either.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Kurtosis
Posts: 15
Joined: 16. Apr 2010, 01:33
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP Pro, Nexenta, OpenSolaris, OpenSuse, Fedora

Re: Any way to virtualize Win 7 from a preinstalled PC?

Post by Kurtosis »

Thanks for info mpack and sasquactch. I understand the license issues, annoying as they are. Going to experiment, either with VMWare Covnerter or mpack's recommendations. Nothing to lose.
tatose
Posts: 9
Joined: 14. Jan 2012, 14:16
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, OS X, Solaris 11, Windows XP, Windows 2008R2, Windows 7

Re: Any way to virtualize Win 7 from a preinstalled PC?

Post by tatose »

Maybe for the time being you might want to check out alternative VM solutions which include a Disk2Img functionality.

Used VMware to virtualise many legacy "but critical" W98/W2K systems a while back, works in a pinch, only thing I have to do is to install the guest additions.
Lauscher
Posts: 47
Joined: 14. Mar 2012, 14:19
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Ubuntu 7.04+10.04, Xubuntu 11.10
Location: Germany

Re: Any way to virtualize Win 7 from a preinstalled PC?

Post by Lauscher »

Some installations have the activation in the hardware, and if they are put in a VM, they will never be able to activate.
There is a new solution for oem versions of windows found in this forum: viewtopic.php?f=2&t=43678
Post Reply