User Tools

Site Tools


proxmox:virtual:piholeu20.04

Install Pi-hole on Ubuntu as Proxmox Virtual Machine

I have yet to install Pi-hole on Proxmox from scratch… I converted the existing Unraid VM to Proxmox. The below steps outline that process and I hope to update this page with instructions for a fresh install. If not, do it on Unraid and then follow the below :D. If you are attempting to install a fresh copy, use the below Proxmox Settings and then upload the iso and go from there… should be straight forward.

Proxmox Settings

  • OS
    • Do not use any media (we will move over out existing vdisk
    • Type: Other
  • System
    • Graphic card: VMware compatible
    • Machine: q35
    • BIOS: OVMF (UEFI)
    • EFI Storage: local-lvm
    • Pre-Enroll keys: CHECKED
    • SCSI Controller: VirtIO SCSI
    • Qemu Agent: UNCHECKED
  • Disks
    • Just create a small blank disk, we are going to erase and replace with already built disk
  • CPU
    • Sockets: 1
    • Cores: 1
    • Type: host
  • Memory
    • 1024
    • Ballooning Device: CHECKED
  • Network
    • Bridge: vmbr0
    • Model: VirtIO (paravirtualized)
    • Firewall: This was UNCHECKED which was different from all others… idk
  • Confirm
    • Don't start vm after creation
    • Finish

Move virtual disk over

  • Erase old disk
    • Go to Datacenter → node name → windows vm
    • Click on Hardware
    • Select hard disk to remove
    • click Detach
    • click Remove
  • Import new disk
    • move the new disk to a location that proxmox can see it (see adding share in the install proxmox section)
    • ssh into proxmox or open a shell (Datacenter → node name, then click >_ Shell
    • go to the folder of that new disk (cd /mnt/pve/unraid/ for example)
    • rename the image to a .raw file
    • type the import command:
      qm importdisk 101 vdisk1.raw local-lvm --format raw
      • where 101 is the vm id and local-lvm is the location.
    • after complete go to the vm → hardware and double click on the unused disk and click Add
    • go to Options → Boot Order and set the boot order to the top.

Cleanup

  • some IP address and hi availability conf files need to be changed to account for the new Ethernet interface name (eth0 to enp6 or whatever)
    • this was in multiple locations
proxmox/virtual/piholeu20.04.txt · Last modified: by dirk