-
Notifications
You must be signed in to change notification settings - Fork 0
How to create RHLE VM on Mac M1
Cesar Celis Hernandez edited this page Sep 29, 2023
·
19 revisions
- Download
UTM
from UTM - Download RHEL from RHEL ARM64
- Create the VM using the ISO Downloaded in step above.
Saved image at
/Users/cniackz/dont-delete-rhel-image
$ ls -all /Users/cniackz/dont-delete-rhel-image/rhel-9.2-aarch64-dvd.iso
-rw-r--r--@ 1 cniackz staff 7908491264 29 Sep 13:59 /Users/cniackz/dont-delete-rhel-image/rhel-9.2-aarch64-dvd.iso
- Added multiple disks in the VM:
mkfs.xfs /dev/vdb -L DISK1
mkfs.xfs /dev/vdc -L DISK2
mkfs.xfs /dev/vdd -L DISK3
mkfs.xfs /dev/vde -L DISK4
mkdir /data1
mkdir /data2
mkdir /data3
mkdir /data4
mount /dev/vdb /data1
mount /dev/vdc /data2
mount /dev/vdd /data3
mount /dev/vde /data4
It should looks like:
[root@localhost ccelis]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sr0 11:0 1 7.4G 0 rom /run/media/ccelis/RHEL-9-2-0-BaseOS-aarch64
vda 252:0 0 64G 0 disk
├─vda1 252:1 0 600M 0 part /boot/efi
├─vda2 252:2 0 1G 0 part /boot
└─vda3 252:3 0 62.4G 0 part
├─rhel-root 253:0 0 39.3G 0 lvm /
├─rhel-swap 253:1 0 3.9G 0 lvm [SWAP]
└─rhel-home 253:2 0 19.2G 0 lvm /home
vdb 252:16 0 10G 0 disk /data1
vdc 252:32 0 10G 0 disk /data2
vdd 252:48 0 10G 0 disk /data3
vde 252:64 0 10G 0 disk /data4
- Run MinIO:
wget https://dl.min.io/server/minio/release/linux-arm64/minio
wget https://dl.min.io/client/mc/release/linux-arm64/mc
chmod +x minio
chmod +x mc
mv minio /usr/bin/minio
mv mc /usr/bin/minio-client
MINIO_ROOT_USER=minio MINIO_ROOT_PASSWORD=minio123 minio server /data{1...4} --address :9000 --console-address :9001
- Run mc:
minio-client alias set myminio http://192.168.205.6:9000 minio minio123
rm -rf /data1/.minio.sys
rm -rf /data2/.minio.sys
rm -rf /data3/.minio.sys
rm -rf /data4/.minio.sys
export MINIO_ROOT_USER=minio
export MINIO_ROOT_PASSWORD=minio123
minio server http://minio{1...2}:9000/data{1...4} --address :9000 --console-address :9001
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"
yum update --nobest
yum install snapd
systemctl enable --now snapd.socket
ln -s /var/lib/snapd/snap /snap
snap install ufw
Then open new terminal
ufw allow http
ufw allow https
ufw allow 9000
ufw allow 9001
systemctl disable firewalld
systemctl status firewalld