Two Red Hat in the same computer
Hello,
I'm working on a testing department. I want to have two operation systems on the same computer.
In one case I want to have two Red Hat Enterprise 7 on the same machine and the other a RHEL6 and RHEL7.
Today, machines with UEFI think I can only have one operating system on a computer.
How I can have two operating systems on the same computer?
Thank you very much
Regards
Valentín
Responses
Hi Valentín,
The easiest way is to use virtualization, i.e. to install one primary system and test all other systems in a virtual environment. However, if you really need to install two or more operating systems on the physical hardware, then it depends on the kind of setup you wish to have. The procedure will be slightly different in case you want to install all systems on a single hard disk, or if you have multiple hard disks available. Some initial pointers:
- How do I dual boot another Linux operating system on an alternate drive?
- What is the procedure to dual boot a server with Red Hat Enterprise Linux 5 and 6?
P.S. UEFI does complicate things a little, but mostly for dual booting Windows and Linux. Booting different flavors of Linux should not be a problem.
Even dual boot on a single disk is possible.
The laptop I work on is a Windows 8.1/RHEL 7 combination.
I would advise to use virtualization for you can run the OSes at the same time.
And you can turn of the RHEL6 and RHEL7 instance at the time of need.
At my test site (at home) I run RHEL6 and RHEL7 instances on a RHEL6 KVM hypervisor. In production we use VMware ESX with RHEL and Windows server VMs.
Hello Valentín,
Are you able to use 2 HDDs in your systems? It is not a requirement, but I believe it would make things quite a bit easier for you.
You only need partitions for /boot and /boot/efi, the other mounts can be Logical Volumes (and I recommend using LVs instead of partitions)
Number Start End Size File system Name Flags
1 1049kB 211MB 210MB fat16 EFI System Partition boot
2 211MB 735MB 524MB ext4
3 735MB 250GB 249GB
/dev/sda2 477M 113M 335M 26% /boot
/dev/sda1 200M 9.3M 191M 5% /boot/efi
If you have 2 disks, you could utilize UEFI to decide which environment you want to boot to. Or you could use something like rEFInd which you would install in one of your Linux instances and it will scan for other installed OSes. One reason I recommend separate disks in the handling of /boot (I thought you had to format /boot during the install). I have some spare cycles today and I'll try to work through getting a machine built as you described (and using a single disk) because now I am curious ;-)
So - I am now stuck... I tried installing RHEL 6 using UEFI and then I am at the Manual Partitioning point of the RHEL 7 install and it won't recognize the existing installation (partitions and volumes).
My next step will to attempt to go the opposite direction and install RHEL 7 first, then RHEL 6.
I believe I am going to have an issue trying to re-use /boot though.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
