![]() # install grub efi version for later use, just in case note: it will remove other version on install # note: all steps done as root, so sudo su first Note #3: I recommend to backup whole VM before this procedure, for example using "Export" function in Hyper-V Manager Ubuntu 20.04įollowing is instructions based on my Ubuntu 20.04 VMs (installed fresh for this purpose, default install settings): # boot your Gen 1 VM Note #2: As always, your partitioning scheme and disk names will probably be different than in my examples, PLEASE modify accordingly, I am in no way responsible for data loss if you format wrong partition! You can check partitions while in your original OS using fdisk -l and/or cat /etc/fstab Note #1: I did this with Ubuntu 20.04, Ubuntu 16.04 and Centos 7, I need to repeat this with Ubuntu 18.04, if it differs in important ways I'll edit answer. So in short - answer is same as converting BIOS PC to UEFI PC. (btw in old comments is no longer available so couldn't say if it was helpful or not) Intro & notesĪnyway, the real issue is BIOS vs UEFI, while IDE vs SCSI didn't throw anything extra my way. Since this was top result when I tried to find an answer, I'm posting my own solution, even though it's 6+ years since question. The installing and migration for this particular server (it's a Gitlab server running on Ubuntu 14.04) is pretty cumbersome and we'd prefer not to reinstall and migrate if at all possible. We have upgraded to a 2012 R2 host and can run Gen2 now, but every source I've found says you have to reinstall linux for it (I haven't been able to figure out why, but I'm sure there should be a reason). The original VM was running on a Windows Server 2008 host. I'm having some problems running on HyperV (machine stops responding for a while, etc.), that for the most part I've seen are greatly improved on Gen2 (we follow all Microsoft recommended practices for running Linux on Hyper-V but it's still not there, at least on Gen1). I know the Convert-VMGeneration cmdlet for PowerShell (this one: ) but that won't work with Linux VMs. Is there any way I can easily (and without reinstalling) convert a Linux Hyper-V (gen 1) VM to a gen2 one? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |