Source: https://askubuntu.com/questions/1127375/install-ubuntu-18-04-on-mac-mini-2018
The above link was instrumental in getting past the roadblocks that I was experiencing the previous day. Yesterday, I tried installing Debian on a Mac Mini 2018. During the installation process, I kept getting an error stating that GRUB could not be installed. As the AskUbuntu post mentions, there are some issues dealing with installing Linux operating systems on the 2018 Mac Mini due to the T2 chip. I found this process to be extremely frustrating and there were not many guides for the newer Mac Minis. I hope this helps someone by at least saving a small bit of time. I also want to mention that I was unable to install Proxmox VE 7.2 directly from the ISO. I read in a few places online that you may need to install Debian and then Proxmox on top of that, so that it is the route that I went with and is what is being described in the guide below.
While the Mac Mini is turned off, push the power button. Hold "Command" + "R" keys (or "OPT" + "R" on my keyboard). This will boot the Mac Mini into recovery mode. At the top of the screen, you should see "Startup Security Utility" in the menu bar. Change the settings to "No Security" and "Allow Booting from External Drive".
First, sign into the MacOS computer. You will need a total of two partitions: one for MacOS and the other for Linux.
Partition 1: MacOS. Leave this as is.
Partition 2: Format to a MS-DOS (FAT) format. Adjust volume to desired size and shrink MacOS volume as needed.
The Scheme should be GUID Partition Map.
Plug in the USB ISO or DVD with Debian installed. Use Etcher if you need help making a bootable ISO. I used "debian-live-11.4.0-amd64-cinnamon+nonfree.ISO" because it has a nice user-friendly interface to work with when installing. Hold down the "Option" (or "CMD" on my keyboard). Choose the "EFI" boot option. Once the Debian menu comes up, select the Live CD version.
When the live desktop appears, open "Terminal". Enter debian-install -b (the AskUbuntu guide recommended ubiquity -b). This should launch the installer but it will not attempt to install GRUB. For the Hard Drive selection, choose "Something Different". Create an EXT4 partition on the partition that you setup earlier on the MacOS. Check the the partition size matches what you said it to earlier before you format it, otherwise you may inadvertently delete your MacOS partition. It should be formatted with "/" (no quotes) as the "Mount Point". The other boxes should remain unchecked. Continue with the installation as normal. Once finished, you may receive a prompt that there is no GRUB installed and may be unable to boot. Close the installer windows and then shutdown the computer.
Follow these steps in sequence after you have installed Debian and shutdown the machine:
The rEFInd menu should appear on the next boot. You may need to directly select the Debian installation. After the first boot, however, it seems to remember the last selection that I made, so I have not had to make any change to rEFInd after the basic installation. Follow the normal bootup procedure and login to Debian.
At first, I was unable to install any packages, because the computer clock was off. Someone here suggested using hwclock to set the system time but that is for Windows. I ended up just setting the clock manually to the correct time and date.
Source: https://computingforgeeks.com/how-to-install-proxmox-ve-on-debian-bullseye/
For installing Proxmox I used the linked guide above. If you follow along with the guide in the link I ran into an issue at step #4. The guide suggests running the following command:
However, after I ran that command, I received an error
I then found this article on AskUbuntu for forcing an overwrite. I re-ran the command with the following changes.
I had a separate issue relating to my network, but I was able to use the GUI interface on the desktop to correct my mistakes and set the correct network information.
Also, when I setup the bridge, I forgot to attach the network interface to the bridge. I used this person's example from the proxmox forums to get back on track and correct the network bridge. Here is another helpful link if you get stuck setting up the hostname and hosts files.
For some reason, I was not able to login to Proxmox at https://ipaddress:8006 using the "root" user at first. I ran the following command from the terminal to reset the password.
After this update, I was able to sign in without issue. Proxmox also has a root account reset page.
Debian ISO download repository - https://cdimage.debian.org/cdimage/...irmware/11.4.0-live+nonfree/amd64/iso-hybrid/
Easy Debian Install - https://itsfoss.com/install-debian-easily/
How to setup a Static IP address on Debian Linux - https://linuxconfig.org/how-to-setup-a-static-ip-address-on-debian-linux
How to set up static IP address on Debian Linux 10/11 - https://www.cyberciti.biz/faq/add-configure-set-up-static-ip-address-on-debianlinux/
Getting Started
The above link was instrumental in getting past the roadblocks that I was experiencing the previous day. Yesterday, I tried installing Debian on a Mac Mini 2018. During the installation process, I kept getting an error stating that GRUB could not be installed. As the AskUbuntu post mentions, there are some issues dealing with installing Linux operating systems on the 2018 Mac Mini due to the T2 chip. I found this process to be extremely frustrating and there were not many guides for the newer Mac Minis. I hope this helps someone by at least saving a small bit of time. I also want to mention that I was unable to install Proxmox VE 7.2 directly from the ISO. I read in a few places online that you may need to install Debian and then Proxmox on top of that, so that it is the route that I went with and is what is being described in the guide below.
Modify MacOS Startup Configuration
While the Mac Mini is turned off, push the power button. Hold "Command" + "R" keys (or "OPT" + "R" on my keyboard). This will boot the Mac Mini into recovery mode. At the top of the screen, you should see "Startup Security Utility" in the menu bar. Change the settings to "No Security" and "Allow Booting from External Drive".
Preparing the Volumes
First, sign into the MacOS computer. You will need a total of two partitions: one for MacOS and the other for Linux.
Partition 1: MacOS. Leave this as is.
Partition 2: Format to a MS-DOS (FAT) format. Adjust volume to desired size and shrink MacOS volume as needed.
The Scheme should be GUID Partition Map.
Boot to Live CD
Plug in the USB ISO or DVD with Debian installed. Use Etcher if you need help making a bootable ISO. I used "debian-live-11.4.0-amd64-cinnamon+nonfree.ISO" because it has a nice user-friendly interface to work with when installing. Hold down the "Option" (or "CMD" on my keyboard). Choose the "EFI" boot option. Once the Debian menu comes up, select the Live CD version.
Install Debian
When the live desktop appears, open "Terminal". Enter debian-install -b (the AskUbuntu guide recommended ubiquity -b). This should launch the installer but it will not attempt to install GRUB. For the Hard Drive selection, choose "Something Different". Create an EXT4 partition on the partition that you setup earlier on the MacOS. Check the the partition size matches what you said it to earlier before you format it, otherwise you may inadvertently delete your MacOS partition. It should be formatted with "/" (no quotes) as the "Mount Point". The other boxes should remain unchecked. Continue with the installation as normal. Once finished, you may receive a prompt that there is no GRUB installed and may be unable to boot. Close the installer windows and then shutdown the computer.
Install rEFInd
Follow these steps in sequence after you have installed Debian and shutdown the machine:
- Boot into recovery mode ("CMD" + "R")
- Open the terminal
- Type csrutil disable
- Shutdown the Mac Mini. Wait a second. Turn on and boot into normal MacOS.
- Go to this site and download rEFInd
- Open Terminal
- Open the rEFInd folder and find "refind-install". Drag this folder into the terminal.
- Press enter (you may need to enter your password)
- Shutdown your computer
- Boot into recovery mode ("CMD" + "R")
- Open the terminal
- Type csrutil enable
- Restart your computer
Boot into Debian
The rEFInd menu should appear on the next boot. You may need to directly select the Debian installation. After the first boot, however, it seems to remember the last selection that I made, so I have not had to make any change to rEFInd after the basic installation. Follow the normal bootup procedure and login to Debian.
At first, I was unable to install any packages, because the computer clock was off. Someone here suggested using hwclock to set the system time but that is for Windows. I ended up just setting the clock manually to the correct time and date.
Install Proxmox VE 7
Source: https://computingforgeeks.com/how-to-install-proxmox-ve-on-debian-bullseye/
For installing Proxmox I used the linked guide above. If you follow along with the guide in the link I ran into an issue at step #4. The guide suggests running the following command:
Code:
sudo apt update
sudo apt install proxmox-ve postfix open-iscsi
However, after I ran that command, I received an error
Code:
...paraphrased
trying to overwrite '/usr/share/applications/qemu.desktop', which is also in package qemu-system-data ...
dpkg-dep: error: paste subprocess was killed by signal
returned error code(1)
...
I then found this article on AskUbuntu for forcing an overwrite. I re-ran the command with the following changes.
Code:
sudo apt-get -o Dpkg::Options::="--force-overwrite" install pve-qemu-kvm proxmox-ve postfix open-iscsi
I had a separate issue relating to my network, but I was able to use the GUI interface on the desktop to correct my mistakes and set the correct network information.
Also, when I setup the bridge, I forgot to attach the network interface to the bridge. I used this person's example from the proxmox forums to get back on track and correct the network bridge. Here is another helpful link if you get stuck setting up the hostname and hosts files.
Logging into Proxmox
For some reason, I was not able to login to Proxmox at https://ipaddress:8006 using the "root" user at first. I ran the following command from the terminal to reset the password.
Code:
sudo su -
passwd
# enter your new password and follow prompt
logout
After this update, I was able to sign in without issue. Proxmox also has a root account reset page.
Additional Sources
Debian ISO download repository - https://cdimage.debian.org/cdimage/...irmware/11.4.0-live+nonfree/amd64/iso-hybrid/
Easy Debian Install - https://itsfoss.com/install-debian-easily/
How to setup a Static IP address on Debian Linux - https://linuxconfig.org/how-to-setup-a-static-ip-address-on-debian-linux
How to set up static IP address on Debian Linux 10/11 - https://www.cyberciti.biz/faq/add-configure-set-up-static-ip-address-on-debianlinux/
Last edited: