LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-03-2016, 08:28 AM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Questions on using UEFI for RHEL VMS instead of BIOS questions


Getting ready to move away from RHEL5 and to RHEL6 and I want to take advantage of tools like gdisk Vs fdisk, and I believe if I were to enable UEFI when building out the new RHEL6 servers will allow me to do this, correct?

I've noticed when that I'very enabled UEFI for the RHEL6 VMS, that there is a partitons that appears when building out, called /boot/efi. Typically when building and using BIOS, and creating a /boot partitons, I never placed this under LVM, would this still be the same, or can we put /boot/efi under LVM?

Also, Im wondering if anyone has had issues where they might have a RHEL VM that was created with BIOS or maybe with UEFI and then they had to swing disks to the opposite boot loader and if there were any issues?

The reason I'm asking is that I Google around and wasn't able to find any exact info on this topic, or I wasn't searching with the correct terms.
 
Old 11-03-2016, 10:32 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,739

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Since RH6 uses legacy grub /boot still needs to be on its own partition.
 
Old 11-03-2016, 04:38 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Maybe grab a Centos iso and boot to a uefi vm client as see? I get the feeling that it should allow you to have all normal folders under lvm. Not sure why I think that either. michaelk is usually right however.
 
Old 11-03-2016, 05:39 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,137

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
/boot/efi needs to be findable by the EFI firmware. Well before your initrd has a chance to build LVM awareness.
Sorta like asking if you can put the MBR under LVM ...

Last edited by syg00; 11-03-2016 at 05:40 PM.
 
1 members found this post helpful.
Old 11-03-2016, 09:07 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Thought I read some round about way to do it. Guess not.

Last edited by jefro; 11-03-2016 at 09:11 PM.
 
Old 11-04-2016, 03:56 PM   #6
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Just noticed that I created /boot/efi not under LVM, I keep getting a "Bootable partitions cannot be on a logical volume" error.

This is a RHEL6 VM in vCenter.

So do I still need a /boot as well in addition to /boot/efi too, in order to make this work?

For the heck of it, I gave it /boot as well as /boot/efi and I was able to move forward with the RHEL6 install, however this seems odd to me.
 
Old 11-05-2016, 07:16 AM   #7
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Wanted to pass this on to others, response from a RHEL forum:

Quote:


Yes, you still need a (ext2/3/4) /boot partition and a FAT /boot/efi ESP.

Have a look at: RHEL6 - Installation Guide - ⁠E.2.2. GRUB and the Boot Process on UEFI-based x86 Systems

Notice the EFI binary run is actually the GRUB bootloader, so the firmware reads grub.efi from the ESP, then GRUB loads and reads its bootloader entries from /boot and then we boot into the kernel (or memtest or an ISO or whatever other options you have in GRUB). That's why you need both.

It is also possible to launch directly into Linux kernel from the EFI firmware by running the kernel as an EFI executable, but this requires EFISTUB which was added in kernel 3.3. Reading https://wiki.archlinux.org/index.php/EFISTUB that implies you only need the ESP containing the kernel and the initramfs, not the bootloader partition.

I haven't setup EFI boot on RHEL7, but from RHEL7 - Installation Guide - ⁠6.14. Installation Destination it doesn't look like we've used EFISTUB, we still boot into GRUB and let it load the kernel, so you'd still need both /boot and /boot/efi there too.
 
Old 11-06-2016, 08:33 AM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by JockVSJock View Post
Just noticed that I created /boot/efi not under LVM, I keep getting a "Bootable partitions cannot be on a logical volume" error.
That sounds like an improper partition table. EFI uses GPT partitions instead, no need for logical partitions.
I believe the bootable partition needs to be the first one, but not certain. It does have to contain a FAT filesystem though (otherwise the UFI prom can't read it).
Quote:

This is a RHEL6 VM in vCenter.

So do I still need a /boot as well in addition to /boot/efi too, in order to make this work?
Not necessarily, but it can help. As I understand it the efi partition is mounted as /boot/efi. The efi partition is only used to start grub2. After that, the kernel can be loaded from almost anything, but by convention it is in a filesystem mounted as /boot. The only advantage this has is keeping the kernel information segregated from the rest of the system. It CAN be part of the root filesystem as a directory /boot and still work.
Quote:
For the heck of it, I gave it /boot as well as /boot/efi and I was able to move forward with the RHEL6 install, however this seems odd to me.
It isn't wrong, just a choice. The difference is what is using the partition first. the efi partition is used by the system PROM/ROM UFI code to load grub. Grub2 can use just about any linux native filesystem, including LVM volumes.
 
Old 11-06-2016, 08:29 PM   #9
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Just noticed that I created /boot/efi not under LVM, I keep getting a "Bootable partitions cannot be on a logical volume" error.

>>>"That sounds like an improper partition table. EFI uses GPT partitions instead, no need for logical partitions."

You appear to be confused here pollard. No one is referring at all to MBR/DOS "logical partitions". They are referring to LVM virtual partitions which are termed a "logical volume".
 
Old 11-07-2016, 04:09 AM   #10
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by tofino_surfer View Post
Just noticed that I created /boot/efi not under LVM, I keep getting a "Bootable partitions cannot be on a logical volume" error.

>>>"That sounds like an improper partition table. EFI uses GPT partitions instead, no need for logical partitions."

You appear to be confused here pollard. No one is referring at all to MBR/DOS "logical partitions". They are referring to LVM virtual partitions which are termed a "logical volume".
I still think it is invalid for use with efi.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of RHEL 6 on Windows 8 machine having UEFI BIOS nee0606 Linux - Newbie 5 03-30-2016 07:17 AM
[SOLVED] Linux first timer, OEMs, UEFI, Win 8.1, and drivers compatibility questions! moonanite Linux - Laptop and Netbook 3 06-07-2014 11:39 PM
Installing Slackware 14.1 via UEFI on a Thinkpad W530 ... observations and questions bimboleum Slackware 2 12-01-2013 09:54 PM
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM ssenuta Linux - Hardware 0 08-27-2012 09:11 PM
Questions of UEFI cruiser Linux - Software 0 09-08-2011 06:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration