LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2014, 05:27 PM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Is there a way to convert a hardware laptop (Windows) into a VM?


Is there any (free or low cost) solution that would allow me to take my physical laptop with WinXP installed on it and convert that to an image that I could load and run on VirtualBox on a different Linux desktop machine? I'm not looking to buy a full-blown version of VMWare that I assume would probably allow for this. I want to do it for free or very low cost, or not do it at all. The virtualization software on the Linux box does not have to be VirtualBox, but that is what I am currently using, so I'm familiar with it.
 
Old 01-07-2014, 06:11 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
http://www.sysprobs.com/physical-vir...virtualbox-p2v
 
Old 01-07-2014, 06:17 PM   #3
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
It is not a free project no matter what, since Microsoft requires that you purchase an additional Windows license for the virtual machine (and we do not discuss how to circumvent this legal requirement on this particular forum).

Additionally you will run into the problem that Windows XP has only 3 months support left; it will soon be obsolete. (But perhaps you know this, and it is your motivation for virtualizing? )

Technologically I see no issue with it. I haven't tried TobiSGD's link, but it looks promising.
 
Old 01-07-2014, 06:17 PM   #4
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
I think for that you need to use some disk cloning utilities. Then use the image created to boot and reinstall. I can only imagine it will be a pain in the bum for the hardware being all ripped out from the system point of view.

I suggest a fresh install and files restored from backup or copied over.
 
Old 01-07-2014, 07:15 PM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Original Poster
Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by snowpine View Post
It is not a free project no matter what, since Microsoft requires that you purchase an additional Windows license for the virtual machine (and we do not discuss how to circumvent this legal requirement on this particular forum).

Additionally you will run into the problem that Windows XP has only 3 months support left; it will soon be obsolete. (But perhaps you know this, and it is your motivation for virtualizing? )

Technologically I see no issue with it. I haven't tried TobiSGD's link, but it looks promising.
Actually this is for my work laptop. We are switching to Windows 7 (I guess you'd call my company a "late adopter"!) Anyway, this is only a very temporary thing. While I am upgrading my company owned laptop to Win7, I must remain available for work emergencies. So I thought first I'd take the existing WinXP laptop image and put it in a VM on my home Linux PC (I work from home). That would give me (1) A backup of my WinXP from which I could copy files to migrate them to the new Win7 install, and (2) Something I could potentially restore from (an iffy proposition) should the Win7 install go terribly wrong, and (3) A temporary place to work from during the laptop downtime during the upgrade to Win7. Total time that this VM would be in existance would probably be two days max. As far as I know, our corporate copies of Windows do not require activation, and even if they do, it's no like I will need an activated copy for the two days max I would be using the VM. I can go without the Microsoft updates for those two days. It is my assumption that WinXP would continue to work in a VM for two days, without activation if that is even needed for our corporate license, but I wouldn't be able to get any updates. I don't care about the updates being denied. WinXP will be totally gone once the upgrade to Win7 is successful.

I have no desire to extend the lifetime of WinXP by virtualizing. Nor do I even want to use Windows at all, but that's what is required for work. I am not looking forward to having to use Win7 for work. WinXP is bad enough to be forced to use, but at least I am familiar with it.
 
Old 01-07-2014, 07:27 PM   #6
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
A quick Google search of answers.microsoft.com suggested there is a 3-day grace period for Windows XP activation after a hardware change, so if I am interpreting this correctly, you should be fine for your 2-day project. Of course your corporate IT would know much more about the specifics of your agreement with MS than I would.
 
Old 01-07-2014, 08:33 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Almost all of the user type vm's are free. The official MS way is to make a ntbackup with system state and then apply it to the installed VM's new xp install.

The problem with that is your OEM windows won't install on the new virtual hardware unless you have a real full or maybe upgrade disk.

If one took any other tool like clonezilla or dd or ghost, one would have a fail on hal unless they tried to add in all the drivers before the move. This isn't easy.

I've used P2V apps before and one of them did change the hal and fix the authentication.
 
Old 01-07-2014, 09:13 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Corporate copies of Windows are not OEM installations and should have no problem to install in a VM.
 
Old 01-09-2014, 04:27 PM   #9
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Legal concerns aside, it can be done, only thing is to make sure you removed all proprietary drivers (video mostly) from it beforehand and use the same type hdd controller - ide if the hdd was either real ide or sata and used ide emulation, sata if it used sata with ahci - as you had with the real machine.
Then just make a dd copy of your hdd (you will end up with a raw format image) then attach it to a VM (has to support the raw format, most VMs do AFAIK) as a hdd and cross fingers.
Now i done this with Windows 7 and worked with no issues (ironically it booted in qemu, but it bluescreened if i put the hdd in another physical machine). But XP is more finicky than that sometimes so YMMV. I even used the actual physical hdds to boot from, attached the whole block device (/dev/sdX) to qemu VMs (this feature may not be in vbox though).
Typically if the laptop had intel components and you removed other drivers such as nvidia (if any), it may work since VMs tend to emulate bog-standard intel components. If the real machine is say, AMD, best is to remove any user-installed drivers beforehand.
Anyway experimenting with hdd images isnt harmful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange noise coming from laptop hardware when scrolling or moving windows Stevithen Linux - Hardware 7 05-14-2010 12:09 PM
Virtual machines, convert to real hardware djeikyb Linux - Software 6 01-08-2009 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration