Convert Laptop to VM?

Discussions about using Windows guests in VirtualBox.
Post Reply
davulf
Posts: 9
Joined: 18. Aug 2011, 08:53
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows 7

Convert Laptop to VM?

Post by davulf »

Hi All,

Currently I'm working on a Windows XP laptop, and I would like to switch to another operating system (suppose it is Debian Linux, though I'm not familiar with shell commands). While doing this, I also don't want to lose my Windows installation. Is there a way for me to:
  • 1. Convert the current Windows XP instance (on physical partition) into a VDI?
    2. Can I then copy this to another machine and run as a Guest in VirtualBox?
    3. How can I ensure the VDI file size is not overlarge given the existing partition is quite big (e.g. resize the hard drive size)?
I understand this might be complex, but I have the patience to try to figure it out if possible.

Thanks,
DaVuLf
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Convert Laptop to VM?

Post by Perryg »

Use Microsoft’s disk2vhd.
davulf
Posts: 9
Joined: 18. Aug 2011, 08:53
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows 7

Re: Convert Laptop to VM?

Post by davulf »

Will check it out. Thanks.

Is there an easy way to convert to VDI from VHD?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Convert Laptop to VM?

Post by Perryg »

You mean VHD to VDI?
Yes you can do that with VBoxManage, but VirtualBox supports the VHD format.
The big hurdle you will have are the installed drivers in the image. More than likely it will not be happy at the first.
davulf
Posts: 9
Joined: 18. Aug 2011, 08:53
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows 7

Re: Convert Laptop to VM?

Post by davulf »

Is there any way to mitigate the driver issue?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Convert Laptop to VM?

Post by Perryg »

sysprep helps but the only way that works complete is to be able to boot into safe mode and delete the bad drivers and replace them. Hopefully the laptop did not require proprietary drivers in Windows. Each case is really a trial and error situation. Replace drivers until it works.
Post Reply