meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
vm:proxmox:vm [2020/05/11 09:53] – niziak | vm:proxmox:kvm [2020/05/12 06:51] – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ===== Migrate Windows Virtual Box ===== | + | ===== Migrate Windows |
+ | ==== (Optional) Preparation ==== | ||
+ | Cleanup disc space and remove all unnecessary drivers: | ||
* uninstall Virtual Box Guest Additions | * uninstall Virtual Box Guest Additions | ||
* Download and run registry file: [[https:// | * Download and run registry file: [[https:// | ||
* Restart VM | * Restart VM | ||
- | * `sdelete -z c: d: e:` | + | * '' |
- | * `Enable ClearPageFileAtShutdown.reg` | + | * Enable |
* Shutdown VM | * Shutdown VM | ||
Now two methods are possible: | Now two methods are possible: | ||
+ | ==== DRAFT ==== | ||
+ | Fastest method: create Proxmox machine and import vbox hard discs to newly created Proxmox VM. | ||
+ | |||
+ | No VirtualBox preparation, | ||
+ | * Create new Proxmox machine with similar parameters to old one | ||
+ | * [[https:// | ||
+ | * Do not remove created Hard Disc (scsi0) - it will be used to trigger Windows to install SCSI drivers. | ||
+ | * Import disc images (repeat for all VDI discs) | ||
+ | * As RAW images with all benefits (compression, | ||
+ | * 21743 MB VDI compacted file occupied 15,2G on ZFS with compression ratio 1.24x | ||
+ | * As QCOW2 files on every file storage: <code bash>qm importdisk 701 WIN7_C.vdi local -format qcow2</ | ||
+ | * Connect new discs into machine: | ||
+ | * <code bash>qm set 701 --scsi< | ||
+ | * NOTE: '' | ||
+ | * Edit config file to change just connected discs from SCSI to IDE. Remember to update CDROM IDE number to do not be in conflict with new discs. | ||
+ | * <code bash>sed -i ' | ||
+ | * <file | / | ||
+ | ide0: local-zfs: | ||
+ | ide1: local-zfs: | ||
+ | ide2: local-zfs: | ||
+ | ide3: nas326-ISOs: | ||
+ | scsi0: local-zfs: | ||
+ | scsihw: virtio-scsi-pci | ||
+ | </ | ||
+ | * Setup correct boot order | ||
+ | * Start Windows 10 | ||
+ | * Windows should load correctly | ||
+ | * Go to '' | ||
+ | * Shutdown system | ||
+ | * Edit config file to change IDE discs to SCSI | ||
+ | * Setup correct boot order | ||
+ | * Start Windows 10 | ||
+ | * ERROR: Windows stuck during booting when VirtIO SCSI driver. | ||
+ | * It is known KVM issue with VirtIO SCSI driver when more than 1 CPU core is used! | ||
+ | * [[https:// | ||
+ | * Changing CPU to 1 core solves problem. | ||
+ | * Driver version 61.77.104.17200 2019-06-07 from virtio iso v 1.1.172 | ||
+ | * Update to latest 61.80.104.17300 2019-08-12 (not stable) virtio iso v 1.1.173 | ||
+ | |||
+ | |||
+ | * Windows will crash (becasue storage driver is not supported). Windows will reboot into repair mode. | ||
+ | * Provide virtio drivers in virtual cd-rom (latest 1.1.173 was used) | ||
+ | * Select '' | ||
+ | |||
+ | |||
+ | |||
+ | * Switch SCSI to IDE: <code bash>sed -i ' | ||
+ | * Manually correct numbering conflict with CD-ROM ide drive | ||
+ | * Setup correct boot order | ||
+ | * Add one dummy (small size) hard disc to SCSI controller | ||
+ | * Enable QEMU Guest Agent | ||
+ | * Boot Windows, go to '' | ||
+ | ... | ||
+ | * Shutdown machine | ||
+ | * Switch disc controller from IDE to SCSI. Edit ''/ | ||
+ | * Setup correct boot order | ||
+ | |||
+ | sed -i ' | ||
+ | |||
+ | |||
==== Importing only disc ==== | ==== Importing only disc ==== | ||
Fastest method: create Proxmox machine and import vbox hard disc to newly created Proxmox VM. | Fastest method: create Proxmox machine and import vbox hard disc to newly created Proxmox VM. | ||
Line 21: | Line 83: | ||
* As QCOW2 files on every file storage: <code bash>qm importdisk 701 WIN7_C.vdi local -format qcow2</ | * As QCOW2 files on every file storage: <code bash>qm importdisk 701 WIN7_C.vdi local -format qcow2</ | ||
* Connect new discs into machine: | * Connect new discs into machine: | ||
- | * <code bash>qm set 701 --scsi< | + | * <code bash>qm set 701 --scsi< |
+ | * NOTE: '' | ||
+ | * Switch SCSI to IDE: <code bash>sed -i ' | ||
+ | * Manually correct numbering conflict with CD-ROM ide drive | ||
+ | * Setup correct boot order | ||
+ | * Add one dummy (small size) hard disc to SCSI controller | ||
+ | * Enable QEMU Guest Agent | ||
+ | * Boot Windows, go to '' | ||
+ | * PCI Simple Communication Controller '' | ||
+ | * Red Hat VirtIO SCSI pass-through controller '' | ||
+ | * '' | ||
+ | * ('' | ||
+ | * vm generation id ('' | ||
+ | * Shutdown machine | ||
+ | * Switch disc controller from IDE to SCSI. Edit ''/ | ||
+ | * Setup correct boot order | ||
+ | sed -i ' | ||
==== NOT WORKING: Importing OVA file ==== | ==== NOT WORKING: Importing OVA file ==== |