Introduction
The base of my homelab is virtualization. As a security engineer, I would need to have access to multiple machines with multiple images like kali and ubuntu. On top of requiring multiple machines with different images, we would need also need a testing and a production environment to test all the configurations before making them live for the portfolio.
This document summerize how to get most out of the proxmox. We will be installing proxmox and increase the storage. We are also going to resize the disk to get maximum out of our proxmox installation.
Install Proxmox
Download proxmox from the official documentation.
Flash the image to a drive.
Boot the machine using newly flashed drive. (On Intel mac, option key would open boot options. On windows, it would be f7)
NOTE: The machines should be connected to internet using ethernet cable. WiFi will not work
Once we have the proxmox configured and installed, follow the below mentioned steps:
- Out of box local-lvm has the most storage but it is cannot be used. Hence we are going to remove it and resize the disk to have our full storage useful. Run the following commands:
To remove the lvm-local storage and re-allocate the size to local
1
lvremove /dev/pve/data
Resize the pve/root file system
1
lvresize -l +100%FREE /dev/pve/root
Adding all the available free space to the root volume
1
resize2fs /dev/mapper/pve-root
This should reflect in the UI. After these changes were made, we should only see local storage. The follwoing steps are the rename the proxmox node. By default, the nodes are named pve.
Rename Proxmox nodes
To rename, edit two files, /etc/hosts
file and the /etc/hostname
file to the desired name. In /etc/hosts
edit all the names associated with the hosts IP address.
Shut the lid of the servers
Normally, the proxmox is not available after the laptop that is running as a server’s lid is closed. Hece we are also going to edit the following files to keep the server up and running around the clock.
1
nano /etc/systemd/logind.conf
Within this file, #### Rename Proxmox nodes
1
systemctl restart systemd-logind.service
On a side note, update the grub options to set your screen to sleep after sometime and restart the grub options.