dockur / windows

Windows inside a Docker container.
MIT License
17.49k stars 1.5k forks source link

[Feature]: Migrate Existing Windows VM to Container #605

Open Neeraj-Stemmons opened 3 months ago

Neeraj-Stemmons commented 3 months ago

Is your proposal related to a problem?

We need to migrate Existing OS or all drive to container.

Describe the solution you'd like.

We can migrate Existing OS so it will solve the issue of re-setup the critical configuration of an application have.

Describe alternatives you've considered.

Can we attach backup of drive like vhd, vhdx, of D:/ E:/ to windows container.

Additional context

No response

kroese commented 3 months ago

I have no plans to support this, as it will be very problematic since an existing OS does not contain the VirtIO drivers needed to run succesfully with the vioscsi devices and others.

You could do it manually by installing the drivers yourself before the migration, then save the raw disk image as data.img and replace the existing /data.img in your /storage folder with this. Then you may be able to sucessfully boot it, but I give no garantuees.

Neeraj-Stemmons commented 3 months ago

Can we attach Exisiting Drive like D:/ E:/ than what extension it should have

kroese commented 3 months ago

It written in the FAQ: https://github.com/dockur/windows?tab=readme-ov-file#how-do-i-add-multiple-disks

So if you replace the file data2.img in /storage2 and set DISK2_SIZE larger (or equal) then the disk in the file, it should work.