maintenance:general:hyperv
Differences
This shows you the differences between two versions of the page.
maintenance:general:hyperv [2021/01/25 10:59] – created bdorlandt | maintenance:general:hyperv [2024/07/03 12:31] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Hyper-V hypervisor ====== | ||
+ | |||
+ | This document describes what is required to migrate from a virtual machine on VirtualBox to Hyper-V. | ||
+ | |||
+ | ===== Centos 7 ===== | ||
+ | |||
+ | In order to migrate Centos 7, there are a couple of possibilities. | ||
+ | - Make modifications after migration | ||
+ | - Make modifications before migration | ||
+ | |||
+ | In both situations you'll need the Virtual HardDisk (VHD), which can be copied from the GUI or using the CLI. | ||
+ | If you have the OVA, you may extract it using tar and clone the disk to the VHD format: | ||
+ | <code bash> | ||
+ | tar xvf VM_name.ova | ||
+ | VBoxManage clonemedium disk VM_name-disk001.vmdk VM_name-disk001.vhd --format vhd | ||
+ | </ | ||
+ | |||
+ | The second command can be used directly on the source as well. | ||
+ | |||
+ | |||
+ | ==== Option 1: Before the migration ==== | ||
+ | |||
+ | Make the following modifications to the OS, before creating the VHD. | ||
+ | |||
+ | - make sure you are root | ||
+ | - create a file / | ||
+ | - with the contents: '' | ||
+ | - type: '' | ||
+ | |||
+ | ==== Option 2: After the migration ==== | ||
+ | |||
+ | - Reboot into " | ||
+ | - make sure you are root | ||
+ | - create a file / | ||
+ | - with the contents: '' | ||
+ | - type: '' | ||
+ | - make sure you've typed the correct filename and version | ||
+ | - reboot to the desired kernel | ||
+ | |||
+ | ==== Create the VM with the existing VHD ==== | ||
+ | You have the VHD copied to your Hyper-V machine and are now in the process of setting up the Virtual Machine. Make sure you select a " | ||
+ | |||
+ | Once done, make sure you have " | ||
+ | |||
+ | Once you boot, you will see the system hanging. This is due to the fact the previously created kernel with initramfs doesn' | ||
+ | |||
+ | To " | ||
+ | |||