Proxmox VE
Proxmox Install
Get the latest ISO image from https://proxmox.com/en/downloads
Use Balena Etcher (Linux) or Rufus(Windows) to flash on to Bootable USB
Boot into Proxmox Installer
Log in to router and get the DHCP information
Make a note of the addressable range in your current config. If the last address is .254, this needs to be adjusted to limit the space available so the next static IP can be assigned to Proxmox device
In this test enviroment, the router is limited the scope from
.2
to.100
for other devices in the network so that proxmox can use.101
Configure the next available or desired Static IP for Proxmox during installation process
Configure the DNS IP to the local DNS router or a preferred public DNS
In this test case, The local IP address of the router on the same network was used as DNS
Make a note of the local IP address and port number provided after installation is complete (usually port 8006 on IP configured)
Post-Install Configs
Helper Script
Login to the Proxmox Web UI using the password configured during OS installation
Click the node in the datacenter section of the server view. The default is PVE unless renamed during install
In the node menu, select shell
Run the below command for a good header response to ensure that Proxmox is connected to the internet and a working DNS is confirgured properly:
curl -I https://raw.githubusercontent.com
If your DNS queries are not working feel free to modify your resolve.conf file within proxmox shell with similar command as below
echo "nameserver 194.242.2.4" > /etc/resolv.conf
In the browser of the remote connected device, visit https://community-scripts.github.io/ProxmoxVE/ and locate the Post-Install helper script for Proxmox
Copy the command and paste into Proxmox Shell
Description from the helper scripts project - "This script provides options for managing Proxmox VE repositories, including disabling the Enterprise Repo, adding or correcting PVE sources, enabling the No-Subscription Repo, adding the test Repo, disabling the subscription nag, updating Proxmox VE, and rebooting the system."
Type
y
to start the installation processIf you are not using Enterprise, Corosync, etc ensure to ponly enable the
No-Subscription
repo during installation
Installing VM ISOs
Install via URL
Visit the website with the desired OS and locate the specific dowload link.
Right-click the link and copy the raw download URL address
Click the local storage for the desired node
In the storage menu click the
ISO images
tab and then download from URLPaste the Download URL in the Download from URL window
Select
Query URL
to ensure the download will resolve successfully with correct ISO.Download button will not work if this is not correct.
Start the Download and monitor for
Task OK
status at bottom of window
Close the window and view the installed ISO file
Enable Nested Virtualization
The below one-liner script works as follows:
Detect CPU Vendor: It uses the
lscpu
command to check if the CPU is Intel (GenuineIntel
) or AMD (AuthenticAMD
).Configure Nested Virtualization:
For Intel CPUs, it writes the line
options kvm-intel nested=Y
to/etc/modprobe.d/kvm-intel.conf
to enable nested virtualization.For AMD CPUs, it writes
options kvm-amd nested=1
to/etc/modprobe.d/kvm-amd.conf
for the same purpose.
Reload KVM Kernel Module: To apply changes immediately without reboot, the script unloads (
modprobe -r
) and reloads (modprobe
) the respective kernel module:kvm_intel
for Intel CPUskvm_amd
for AMD CPUs
Print Confirmation: After reloading, it prints a label ("Intel Nested:" or "AMD Nested:") followed by the current state of the nested virtualization parameter by reading:
/sys/module/kvm_intel/parameters/nested
for Intel/sys/module/kvm_amd/parameters/nested
for AMD
Fallback for Unsupported CPUs: If the CPU is neither Intel nor AMD, it outputs "Unsupported CPU" to notify the user.
The script essentially automates the manual process of enabling nested virtualization on a Proxmox host, avoiding reboot by reloading the kernel modules, and immediately shows whether the feature is enabled (expecting a Y
or 1
). This makes it easier and faster to set up nested virtualization in Proxmox environments using either Intel or AMD processors.
ENSURE THAT ALL VMs ARE STOPPED or you will receive this error based on your CPU :
modprobe: FATAL: Module kvm_intel is in use.
if [[ $(lscpu | grep -o 'GenuineIntel') ]]; then echo "options kvm-intel nested=Y" > /etc/modprobe.d/kvm-intel.conf && modprobe -r kvm_intel && modprobe kvm_intel && echo -n "Intel Nested: " && cat /sys/module/kvm_intel/parameters/nested; elif [[ $(lscpu | grep -o 'AuthenticAMD') ]]; then echo "options kvm-amd nested=1" > /etc/modprobe.d/kvm-amd.conf && modprobe -r kvm_amd && modprobe kvm_amd && echo -n "AMD Nested: " && cat /sys/module/kvm_amd/parameters/nested; else echo "Unsupported CPU"; fi
Last updated