Running CentOS 7 on a gen2 VM in Hyper-V

In my latest blog I was exploring the possibility to get a Redhat Linux to work in a generation 2 VM and I was also explaining that I had some issues with the CentOS version 7 that is currently being developed and that issue was with the EFI boot and it was malfunctioning!

Now as of yesterday 25 of June when there was a new release I could actually get a working CentOS 7 in a generation 2 VM on my lab environment!

So to get the fresh build installed on a Gen2 HyperV 2012 R2 VM you can do the following,

here I found the Boot ISO -> http://buildlogs.centos.org/centos/7/os/x86_64-latest/images/ and downloaded the boot.iso and configured it to be used for boot in my test-VM and as I described in the other post I unchecked the Secure boot also

Screen Shot 2014-06-17 at 23.01.24

Once booted I connected the network and then added the path to the repository

Screen Shot 2014-06-17 at 22.30.29

The path to be added was http://buildlogs.centos.org/centos/7/os/x86_64-latest/ , by using -latest in the path you will get the latest build instead of some old maybe not so well working version, as described on their page the distribution is still being developed

Screen Shot 2014-06-27 at 00.19.07

 

And then choosing what roles to install and partitioning of the disk and then start the installation 🙂

Screen Shot 2014-06-27 at 00.20.33

Once installed you can see that it now nicely boots into CentOS and I can log in

Screen Shot 2014-06-26 at 23.51.57

And you can see that it utilizes the Dynamic Memory function of Hyper-V also

Screen Shot 2014-06-26 at 23.53.36

 

 

Comments

Victor Torres
Reply

Thank you! I was struggling with getting it to work. Very much appreciated.

Michael
Reply

Thank you for this Blog.

I could not connect to the HTTP repository but when I changed it to HTTPS it worked fine.

Regards
Michael

Leave a comment

name*

email* (not published)

website