-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert VMs from VMware/Parallels to UTM #4927
Comments
Duplicate of #3050 |
To convert Windows 7 hard drive from Parallels to qcow2 format follow these procedures:
|
What does the command look like on a Mac when I want to convert from VMWare Fusion to UTM/QEMU. |
That may give you partial answer: |
Windows 7 will not start. Want the repair option and then halts on "Windows is loading files". Any clue? |
Migrating Guest OS: Intel (x86-64) Macbook Pro 17" late-2008 running Parallels Desktop Windows XP VM to Macbook Pro 14" M1 Max (ARM architecture) running UTM (QEMU frontend) VM: On your intel-based Macbook Pro, prepare your original VM (make a backup first just in case): Uninstall Parallels Tools from under Windows and restart your VM (do not reinstall these tools upon restart when prompted!) ... Also remove any shared folders and network links. You can choose to re-activate Windows if asked at this stage on account of "significant hardware changes" (we will do it again as the last step). Do not forget to SHUT DOWN the VM. Then go to the Terminal and type: prl_disk_tool convert --hdd <disk_name> --plain CREATES RAW IMAGE (Disk name is where your .hdd file resides; it is an OS X package under the Parallels VM folder whose contents can be viewed by selecting "Show Package Content" in Finder). This process can take some time... wait patiently. Once the HDD file is converted, it has replaced the original file. But it still is an OS X package! Descending into this new package, either via command line "cd" or using the Finder "Show Package Content", your precious data file is finally revealed. It has the file extension HDS. Bear yet in mind that the original file name now has a "copy" suffix to it to indicate that it has changed. Next, move this HDS file to the Silicon chip bearing (ARM-based) Macbook Pro M1 Max. Put it on your desktop or elsewhere that is accessible. Then, install MacPorts on your new Macbook Pro as described here: https://www.macports.org/install.php For full functionality of MacPorts, optionally download and install the whole Xcode and x11. Now install QEMU using MacPorts by typing the following command in the Terminal: sudo port install qemu After QEMU installation is finished, locate your HDS file (which is a RAW image) and type: qemu-img convert -f raw -O qcow2 [image].hds WindowsXP.qcow2 Your username folder now contains a newly created qcow2 hardisk image that you will load under UTM, which is a great frontend for QEMU. (Optionally, you can move the qcow2 file anywhere you want.) Go to https://mac.getutm.app/ and download UTM. Also go to the Gallery section and download the ready-made Windows XP profile. Additionally get SPICE GUEST TOOLS from: https://github.com/utmapp/qemu/releases/download/v7.0.0-utm/spice-guest-tools-0.164.4.iso Install and set up UTM. You will be using UTM's emulator feature, not the virtualization feature. The ready-made Windows XP profile is sufficient for this. Before running it, edit your VM profile and prepare the IDE drives. Delete the default hardisk and select the WindowsXP.qcow2 image file as the main boot drive. Also, load Hiren's Boot CD to your CD ROM drive as an ISO after downloading it from: https://www.hirensbootcd.org/old-versions/ You WILL require an external USB keyboard. Get one or you will be stuck for what comes next. After loading Hiren's Boot CD ISO to the CD ROM drive of the edited VM profile, drag this IDE drive to the top so that it has boot priority. Now start the VM. Immediately press and hold the option key on your external USB keyboard. Do not release it! Or the keyboard capture will be lost! (If you fail, you will be stuck at Hiren's boot menu...) A second or so later, try to press and hold the down arrow immediately followed by ENTER (do NOT press them at once). You may not succeed at first. Restart the VM if that is the case. Try this a couple of times until you get it right and can select and launch the Mini Windows XP from the boot menu of Hiren's Boot CD. When Mini Windows XP loads, make sure your external keyboard is hooked in by the VM window's USB capture button. Now, capture your mouse and install new hardware from the desktop shortcut so that the mini OS can recognize your external keyboard. From the Hiren menu icon in the system tray, go to Registry -> "Fix hard disk controller (fix_hdc.cmd)". Press the T key, then enter and type in your Target Root folder. The default would be C:\Windows but might be different on multiboot systems, in which case you would need to check in Windows Explorer what the correct drive letter is. Hit the M key on your external keyboard to select Update Mass Storage drivers and press enter. Then Press any key to continue Shut down Mini Windows XP and edit the VM again so that Hiren's ISO is out of the CD ROM slot. Also drag the hardisk IDE to the top so that it has boot priority. Remove the external keyboard if you wish, for you do not need it anymore. Run the VM again. The OS will launch. You will not be successful to immediately activate Windows XP just yet due to the internet connection not being fully set up! When Windows XP has done starting up, capture your mouse and install all the new found hardware one by one. Finally, load the SPICE GUEST TOOLS iso to the CD ROM slot and install the program. Restart and activate Windows license. Done and Solved! |
Thanks for the helpful post! I no longer need to do this, but someone else may well benefit from your knowledge shared here. |
Your instructions were great. |
Booting from the HBCD_PE_x64_v108.iso |
You need an EXTERNAL USB keyboard to continue as I said: You WILL require an external USB keyboard. Get one or you will be stuck for what comes next. After loading Hiren's Boot CD ISO to the CD ROM drive of the edited VM profile, drag this IDE drive to the top so that it has boot priority. Now start the VM. Immediately press and hold the option key on your external USB keyboard. Do not release it! Or the keyboard capture will be lost! (If you fail, you will be stuck at Hiren's boot menu...) A second or so later, try to press and hold the down arrow immediately followed by ENTER (do NOT press them at once). You may not succeed at first. Restart the VM if that is the case. Try this a couple of times until you get it right and can select and launch the Mini Windows XP from the boot menu of Hiren's Boot CD. When Mini Windows XP loads, make sure your external keyboard is hooked in by the VM window's USB capture button. Now, capture your mouse and install new hardware from the desktop shortcut so that the mini OS can recognize your external keyboard. From the Hiren menu icon in the system tray, go to Registry -> "Fix hard disk controller (fix_hdc.cmd)". Press the T key, then enter and type in your Target Root folder. The default would be C:\Windows but might be different on multiboot systems, in which case you would need to check in Windows Explorer what the correct drive letter is. Hit the M key on your external keyboard to select Update Mass Storage drivers and press enter. Then Press any key to continue Shut down Mini Windows XP and edit the VM again so that Hiren's ISO is out of the CD ROM slot. Also drag the hardisk IDE to the top so that it has boot priority. Remove the external keyboard if you wish, for you do not need it anymore. |
Your instructions are great, until I get to the "sudo port install qemu" command. It returns the following error message: "Cannot install qemu for the arch 'arm64' because I've re-install Macports, and that doesn't seem to help. Suggestions? I already have UTM on my computer, and have a clean copy of Windows XP fully installed, so it seems to work on the architecture... |
I think you have installed the wrong qemu version through macports. You should check the correct version for your specific architecture, unintall the problematic qemu with all its dependencies, reinstall the correct version, and try again. |
I'm afraid you're now beyond my competency. I'm on an M3 macbook pro. I'm not sure how to find the existing qemu on my computer to check its version. I've downloaded the latest qemu version (8.2.4), but I'm not sure how to get Macports to find it. As I say, UTM is working (and I believe it relies on qemu...?) I do appreciate your help... |
Then do a fresh install of macports and type: sudo port install qemu |
Before create raw image don't forget to do a merge, like this. prl_disk_tool convert --hdd [image].hdd--merge |
There is no need to do any merge. Your virtual hardisk will work exactly as before under the UTM once you complete all the steps I described. |
I had 20 files before merge. Now I only have one. What did I do wrong? |
This part of the instruction will create only a single needed .hds file, unless you have perhaps several drives partitioned under your Windows VM: prl_disk_tool convert --hdd <disk_name> --plain CREATES RAW IMAGE (Disk name is where your .hdd file resides; it is an OS X package under the Parallels VM folder whose contents can be viewed by selecting "Show Package Content" in Finder). This process can take some time... wait patiently. Once the HDD file is converted, it has replaced the original file. But it still is an OS X package! Descending into this new package, either via command line "cd" or using the Finder "Show Package Content", your precious data file is finally revealed. It has the file extension HDS. Bear yet in mind that the original file name now has a "copy" suffix to it to indicate that it has changed. Next, move this HDS file to the Silicon chip bearing (ARM-based) Macbook Pro M1 Max. Put it on your desktop or elsewhere that is accessible. If you end up with several .hds files at this step, you need to load them to UTM at the end one by one as separate .qcow2 virtual drives. Or, if I understand what you are trying to do, you can indeed merge these distinct .hds files into one .hds file. |
Thank you very much for a god description! |
It would be great if there was a tool or process to convert existing VMs from VMware/Parallels format to UTM format. This would help users migrate from these tools to UTM.
The text was updated successfully, but these errors were encountered: