Home Repurpose old Macbook to Proxmox Server
Post
Cancel

Repurpose old Macbook to Proxmox Server


Introduction:

In this post, I will be reviving my old Macbook Air that has been long forgotten, just collecting dust on a shelf for a while, by repurposing it to Proxmox VE Server. Proxmox VE (Virtual Environment) is a powerful open-source virtualization platform that that is very flexible, allowing to create and manage virtual machines and containers. It’s a great tool for running multiple operating systems and application on a single device.

[Good to know vocabulary]
CT: Container
LXC: Linux Container
Node: Physical server on which the container will run
CT ID: a unique number in Proxmox VE installation used to identify the container
Resource Pool: a logical group of containers and VMs

[Links]
Homepage: https://www.proxmox.com/en/


Preparation

List of devices:

  • Macbook Air 2012
  • USB Ethernet adapter
  • USB drive

Make sure you have an USB Ethernet adapter before installation, Macbook Air doesn’t have build-in ethernet port and Proxmox installer doesn’t like the WiFi chips. It will crash with an error due to lack of supported driver.

Installation

1. Prep USB

Download Proxmox ISO from the official website. https://www.proxmox.com/en/
Proxmox VE is based on Debian, and the ISO image provided by Proxmox include a complete Debian system as well as all necessary Proxmox VE packages.

Erase USB with a well compatible format (eg. MS-DOS(FAT))

Check the USB location

1
diskutil list

image-20230911170017048

Unmount disk and copy ISO to USB

1
2
diskutil unmountDisk /dev/disk4
sudo dd if=proxmox-ve_8.0-2.dmg of=/dev/rdisk4 bs=1m

image-20230911170232844

2. Proxmox Installation

Boot Macbook with Option key pressed -> Select GRUB Bootloader

image-20230911172013497

Follow the Installation Guide and Configure Static IP address

image-20230911172049403

image-20230911172136785

3. Login

Once complete, you can login via shell with “root” and configured password, or via GUI on https://{ipaddress}:8006

image-20230911171323321

image-20230911171609577


Upload Images

In Proxmox you have 2 options - to create a VM or to create a Container. Depending on what you want to install, you need to upload a corresponding image to Proxmox Server.
If you want to run application containers, for example, Docker images, it is recommended that you run them inside a Proxmox QEMU VM. This will give you all the advantages of application containerization, while also providing the benefits that VMs offer, such as strong isolation from the host and the ability to live-migrate, which otherwise isn’t possible with containers.

VM ISO Images

To upload ISO image -> Go to local (proxmox) storage -> ISO Images -> Upload

image-20230911172626581

CT Templates

Open Shell. This can also be opened from the WebUIimage-20230911173309117

Check latest available Templates

1
2
pveam update
pveam available

image-20230911173518556

Download desired Template

1
pveam download local ubuntu-23.04-standard_23.04-1_amd64.tar.zst

Once Downloaded they will appear in WebUI -> Left hand side menu -> local (proxmox) -> CT Templates


Install VM

Spinning up a VM is very simple.
Click “Create a VM”. Set the hostname and the rest of the settings can be left as default. Now you have a VM running.

image-20230911173947649

This was an installation of OS only, however, Proxmox also offers various TurnKey Linux. These are pre-configured and ready to use CT Template based on Debian Linux, that makes it eaiser to deploy specific software service without extensive manual setup. To see available options, check CT Templates with pveam available.

This post is licensed under CC BY 4.0 by the author.

Basics of Environment Variables

Deploy Servers with Terraform

Comments powered by Disqus.