Installing VirtualBox on macOS First, download the latest version of VirtualBox for macOS. Click “OS X Hosts” and the download will begin automatically. Open the new DMG file, and then double-click “VirtualBox.pkg” to open the installer.
- Installing Linux Mint on your PC or Mac opens up a whole range of new open-source software and capabilities. It involves some initial preparation, but in the end, you'll find it worth the investment. It involves some initial preparation, but in the end, you'll find it worth the investment.
- How to Run Mac OS on VMware ESXi. In present day, VMware is one of the leading providers in virtualization technologies. Hardware virtualization allows you to run virtual machines with various operating systems including Windows, Linux, and FreeBSD on different hosts, while providing you with the ability to migrate VMs between hosts.
Oracle VM VirtualBox is a virtualization software that helps you to install different types of supported guest operating systems on your Windows, Mac OS X, Linux and Solaris host machines. There are other virtualization software, like VMware, Parallels Desktop (for Mac OSX), Microsoft Hyper-V (Windows), KVM (Linux) etc. that serve the same purpose. In this tutorial, we have used Oracle VM VirtualBox to install RHEL 6.6 on MAC OS X 10.11, El Capitan. As VirtualBox can be installed on Windows, Linux or Solaris machines too, the steps to install RHEL virtually on these host Operating Systems will be exactly similar as shown below.
Steps to create a Virtual Machine to install RHEL 6.6
Mac Os Vm On Linux
1. Launch VirtualBox and click on New in top pane to create a new Virtual Machine.
2. Now give a name to the Virtual Machine that you are creating. As we are going to install 64-bit RHEL, choose Type as Linux and Version as Red Hat (64-bit) from the drop-downs.
3. Choose the Memory Size (RAM) that you want to assign to this Virtual Machine. For RHEL recommended RAM size is 768MB. But if you want to install Oracle 11g Database on RHEL, assign at least 1GB RAM to your VM.
4. Now in Hard Disk section select Create virtual hard disk now.
5. Choose Hard disk file type. If you don’t want to use this virtual hard disk image with any other virtualisation software, proceed with the default selection, i.e, VDI
6. In Storage on physical hard disk selection window choose Dynamically allocated option. It will not immediately consume all the space that you allocate to the virtual machine during creation rather it will keep occupying the space from the hard disk as it fills up and it keeps increasing until it reaches the max allocated size that you defined during the VM creation. But if you have enough disk space in your host machine then you may choose Fixed Size option. It could be little faster during higher disk write operations by the guest OS, as space is already allocated.
7. Now choose the Folder or Mount Point where you want to create VM’s virtual hard disk file. Also choose the size of the virtual hard disk. We have allocated 20GB for this. If in previous step you have chosen Fixed Size, it will consume/block 20GB immediately during your VM creation. If you have chosen Dynamically allocated option then VM will be created with a minimum required size of virtual hard disk allocation and this 20GB will be considered as the max allocated size. Now click on Create button.
You Virtual Machine will be created in some seconds. If you have selected Fixed Size option in step 6, it may take a little longer.
Load and Validate RHEL 6.6 .iso disk image before installation
8. Choose the newly created virtual machine (here it’s techentice) , right click on it and select Start -> Normal Start. A pop up will appear, browse and choose the RHEL .iso image file
9. RHEL 6.6 option screen will appear. Click on Install system with basic video driver option to start installing it.
10. Now, before installation, check whether your disk media (.iso) is Okay and not corrupted. Click on Ok and followed by Test to start the media test.
11. You can see that image has been verified successfully. Click on Ok.
12. Now, you will see that the inserted disk has been ejected. Press Ok.
13. Before proceeding further go to Storage option of VM and select the RHEL .iso file to load it to the optical drive.
14. Now go back to the RHEL installation window and click Continue to start installing RHEL from the disk image.
Steps to install RHEL 6.6
15. RHEL installation window will appear click on Next.
16. Select Language and Keyboard, then select Basic Storage Device. Then in next window you may select Yes, discard any data as you are fresh installing RHEL.
17. Now, Select a hostname and choose choose city, check System clock uses UTC option to choose GMT/UTC as your system time.
18. Select your root password and press next.
19. Choose the default option i.e., Replace Existing Linux Systems as the type of installation and click on Next. You will get a popup, click on Write changes to disk.
20. Now, you may choose the default installation or any other installation type as per your requirement. We want to use it as a Oracle database server, so we have chosen Database Server option here. If you want to install additional repositories like High Availability, Load Balancer, Resilient Storage etc. you may check these option. Once done click on Next to start the installation process.
21. Wait for some time. Once Installation gets completed, you will get below screen. Click on Reboot.
Install Linux Vm On Mac Computer
22. After reboot, logon prompt will appear, logon as root user. That’s it.
A quick tutorial on how set up a simple macOS VM in QEMU, accelerated by KVM. Jump over the break to learn more…
WHAT IS KVM?
Kernel-based Virtual Machine (KVM) is a virtualization module in the Linux kernel that allows the kernel to function as a hypervisor.
KVM converts Linux into a type-1 (bare-metal) hypervisor and requires a processor with hardware virtualization extensions, such as Intel VT or AMD-V.
More info.
- ALSO READHOW TO: Dual Boot macOS and Linux
- ALSO READHOW TO: Install macOS Catalina in a Docker Container on Linux
- ALSO READHOW TO: Install macOS Big Sur With OpenCore on Linux
DEPENDENCIES
- Qemu 3.1 or later
- python3
- pip
- KVM modules enabled
- A Mac computer is NOT required
INSTALL
1. Install dependencies. You might also want to install git (not shown in the screenshot ). Depending on your distro:
- For Ubuntu, Debian, Mint, and PopOS:
sudo apt-get install qemu-system qemu-utils python3 python3-pip
- For Arch and Arch based distros:
sudo pacman -S qemu python python-pip
- For Void:
sudo xbps-install -Su qemu python3 python3-pip
- For openSUSE Tumbleweed:
sudo zypper in qemu-tools qemu-kvm qemu-x86 qemu-audio-pa python3-pip
- For Fedora:
sudo dnf install qemu qemu-img python3 python3-pip
2. Clone this git https://github.com/foxlet/macOS-Simple-KVM.git
and cd
to path.
3. Run jumpstart.sh
to download installation media for macOS (internet connection required). The default installation uses macOS Catalina, but you can choose which version to get by adding either --high-sierra
, --mojave
, or --catalina
. For example: ./jumpstart.sh --mojave
4. Create an empty hard disk using qemu-img, changing the name and size to preference: qemu-img create -f qcow2 MyDisk.qcow2 64G
NOTE: Change “MyDisk” to your preffered disk name. Change “64G” to your prefered disk size ( min. 20G )
5. Edit basic.sh
with sudo nano basic.sh
and add this at the end:
-drive id=SystemDisk,if=none,file=MyDisk.qcow2
-device ide-hd,bus=sata.4,drive=SystemDisk
Save the changes and exit.
NOTE: change “MyDisk” to your disk name set in previous step.
6. Run ./basic.sh
7. Boot into macOS Catalina Installer
8. Go to “Disk Utility” and format your disk
9. Once your disk is ready, you can install macOS Catalina. From now on, it’s your typical macOS install. No extra steps required.
10. You’re done! To fine-tune the system and improve performance, look in the docs folder for more information on adding memory, setting up bridged networking, adding passthrough hardware (for GPUs), tweaking screen resolution, and enabling sound features. For further support, check out the official github page.