To upgrade an existing OC4VM virtual machine within the version 3 release cycle, follow these steps:
1. Pre-upgrade checks
Before attempting an upgrade, ensure the following conditions are met to prevent data loss or corruption:
- No snapshots: Delete all existing VM snapshots.
- No linked clones: Ensure the VM is a full clone and not a linked clone.
2. Replace Boot Drive Files
Copy the new opencore.iso and opencore.vmdk files from the new release into the existing VM's folder, overwriting the current files.
3. Update VMX Parameters
You must update the .vmx file configuration using vmx tools to reflect the new version and apply necessary hardware fixes (such as the USB Mouse Fix).
# Example of updating VMX parameters for version 3.0.1
<vmxtool_path> set <vmx_file_path> guestinfo.oc4vm.version="3.0.1"
<vmxtool_path> set <vmx_file_path> guestinfo.oc4vm.revision="b28843f"
<vmxtool_path> set <vmx_file_path> guestinfo.oc4vm.upgraded="TRUE"
<vmxtool_path> set <vmx_file_path> tools.upgrade.policy="manual"
<vmxtool_path> set <vmx_file_path> __USB_Mouse_Fix__=""
<vmxtool_path> set <vmx_file_path> mouse.vusb.enable="TRUE"
<vmxtool_path> set <vmx_file_path> mouse.vusb.useBasicMouse="FALSE"
<vmxtool_path> set <vmx_file_path> usb.generic.allowHID="TRUE"