Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed VirtualBox on my Ubuntu Hardy Heron installation, and I would like to use it to virtualize Windows for those rare occasions that I actually need to do something there.

Unfortunately, I don't have an installation disk at the moment, but I do have Vista already installed on a partition (it came with the machine).

Is there a way I can easily copy this partition into a .vdi virtual image?

share|improve this question

migrated from Oct 8 '12 at 12:13

This question came from our site for professional and enthusiast programmers.

Can you explain a bit more? – Harshal Benake Jul 11 at 7:24

You can download the free version of vmware converter which can do a physical to virtual machine conversion. I believe VirtualBox can run vmware VMs.

share|improve this answer

I'm in the process of doing this myself.

As Ferruccio says, vmware converter is one option. This will not work if your windows boot.ini is also loading another operating system, even if vista is the default.

There's a VirtualBox guide just for this but it was written for XP. Still but may be worth trying.

This "create new partition, xcopy stuff in" approach" guide (specifically post 5) is what I was planning on trying next.

Good luck, keep us updated!

share|improve this answer

You can do this if you're using Microsoft's virtualization program, but I don't know that you can pack Windows into a .vdi file, but there is a way to run Windows as-is off of your physical partition:

There's an old version of Dot Net Rocks that was all about running Virtual Machines. A lot of it is not relevant to your specific situation, but it's a good listen, and they talk about this type of migration (ie, the tools you'll need to run on the physical machine to migrate it, etc).

share|improve this answer

I don't think I've actually seen exactly that from any of the virtual machine vendors. The reason, I think, is simple (assuming that the majority of virtual machines run are going to be Windows): you can't simply take an existing Windows installation and move it whole-hog onto a new machine (even onto a new virtual machine). Swapping out important components (motherboard, for example) will make the installation extremely unstable; Windows, when installed, is installed to work with the components that were there when it was installed, and moving it without a significant amount of driver prep among other things (which the MS migration tools are designed to address) will leave you with a mess.

This is amplified when you move a physical machine to a virtual machine (where you are, in effect, swapping out every hardware component).

share|improve this answer
It's perfectly possible, even if windows is indeed a dog about the whole thing. – RJFalconer Aug 14 '09 at 12:17
In fact, Windows has Plug&Play built in since Windows 2K (98 had it too but wasn't that stable). The risky thing is the video drivers (e.g. NVidia or ATI specific ones) which wouldn't run on the VBX (VirtualBox) video card. To solve that : just press F8 at start up, choose "Run Windows in Safe Mode". Then press "WindowsKey + Pause", go in the "Advanced" tab and click on "Hardware manager" right click on the video card adapter driver and click uninstall. A default "640x480x16 colors VGA" will be automatically selected on next reboot. Just reboot only with VirtualBox and Windows will autoadapt ! – Chucky Oct 5 '12 at 12:26

Another option is to access the raw partition using vbox.

edit: Sorry missed DannySmurf's reply.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .