This is an old revision of the document!
Table of Contents
Proxmox - Install Proxmox
Objective
To have at least 2 disks:
- Disk1. Proxmox to be installed on one physical hard drive.
- Disk2. For Virtual Machines.
Download Proxmox
- Navigate to https://www.proxmox.com/en/downloads and download the ISO for the Proxmox Virtual Environment.
- Write the ISO to a USB stick.
- Boot up the Proxmox using this USB Stick.
- Install Proxmox.
Login to Proxmox
Using a web-browser on a separate PC, navigate to the IP Address used for Proxmox with :8006 as the port.
Login.
NOTE: The username is root.
displays:
Remove Subscription Message
- ssh to the proxmox server.
ssh root@192.168.1.95
- Change directory:
cd /usr/share/javascript/proxmox-widget-toolkit/
- Create a backup of you proxmoxlib.js:
cp proxmoxlib.js proxmoxlib.js.bak
- Edit proxmoxlib.js:
vi proxmoxlib.js
- Search for:
Ext.Msg.show({ title: gettext('No valid subscription'),
- Replace with:
void({ title: gettext('No valid subscription'),
- Restart preproxy service:
systemctl restart pveproxy.service
- Check it is working:
grep -n -B 1 'No valid sub' proxmoxlib.js
NOTE: After this clear the browser cache and restart the browser.
Disable the Subscription Repo
Proxmox, by default, updates from a subscription-based repo.
Change this to a free, Community supported repo:
cd /etc/apt/sources.list.d cp pve-enterprise.list pve-enterprise.list.bak vi pve-enterprise.list
Comment out the line by placing a hash in front.
- /etc/apt/sources.list.d/pve-enterprise.list
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
Setup Community Subscription Repo
Configure the Free Community Repository.
vi /etc/apt/sources.list
and populate as:
- /etc/apt/sources.list
deb http://ftp.debian.org/debian buster main contrib deb http://ftp.debian.org/debian buster-updates main contrib # PVE pve-no-subscription repository provided by proxmox.com, # NOT recommended for production use deb http://download.proxmox.com/debian/pve buster pve-no-subscription # security updates deb http://security.debian.org/debian-security buster/updates main contrib
Update the system
apt update
Distro upgrade
apt dist-upgrade
Setup a Dark Theme
Github Repo for this Project: https://github.com/Weilbyte/PVEDiscordDark
Download the Python Script & Run
wget https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.py python3 PVEDiscordDark.py
Initialize a Physical Hard Disk for Creating Virtual Machines
- Navigate to Datacenter → pve.
- Expand the Disks menu.
- Click the LVM menu.
- Click on Create: Volume Group.
- Disk: Select the hard drive that you want to use to dedicate to virtual machines.
- Name: VM1. Enter a suitable name.
- Add Storage: Checked.
- Click the Create button.
- This should show Done!.
NOTE: ZFS could be used instead of LVM.
ZFS usually requires more disks to really take advantage of it, and is not easy to add additional disks, so if there is less than 4 drives just for the VMs then probably not ideal to use ZFS.
Initializing a physical hard disk for uploading operating system ISO images
NOTE: If you only have one unused drive, skip this step and upload your operating system ISOs to the installation drive by navigating to Datacenter → pve → local (pve) → Content → Upload.
- Navigate to Datacenter → pve.
- Select the Disks menu.
- Select the Directory menu.
- Click on Create: Directory.
- Disk: Select the hard drive that you want to use to hold any ISO images.
- Filesystem: ext4.
- Name: ISO1. Enter a suitable name.
- Add Storage: Checked.
- Click the Create button.
- This should show Done!.
NOTE: The ISO storage entry should appear in the main Proxmox menu on the left.
ISO images can be uploaded to this drive by clicking on this storage entry with the name you just created, then going to Content, and then pressing Upload.