Slightly off topic: I’m setting up a home server on a Mini PC that has Windows 11 Pro pre-installed. I want to attach it to my TV and play retro games as well as run home automation tasks (periodic scripts, UniFi controller, Pihole etc) Is anyone using Proxmox on their homelabs? Would you recommend blowing away Windows and installing Proxmox and then install Windows with PCIE passthrough?
Scripts for Streamlining Your Homelab with Proxmox VE
41–50 of 113 posts
Re: Scripts for Streamlining Your Homelab with Proxmox VE
#42Earlier quoted context omitted.
[flagged]
100% agree. I have been running my own NAS the hard way: FreeBSD, ZFS, manual samba/NFS shares, dhcp+gateway+firewall, PXE Boot, Jellyfin (can't remember if it's in a jail or not). All this stuff is a huge, utter PITA and never works quite right. - I have to manually check the zpool periodically to see if there are faults. I went about 30d with a DEGRADED disk before I realized it, turns out it was a bad cable but if…
But that's where the fun is ;)
Re: Scripts for Streamlining Your Homelab with Proxmox VE
#43Slightly off topic: I’m setting up a home server on a Mini PC that has Windows 11 Pro pre-installed. I want to attach it to my TV and play retro games as well as run home automation tasks (periodic scripts, UniFi controller, Pihole etc) Is anyone using Proxmox on their homelabs? Would you recommend blowing away Windows and installing Proxmox and then install Windows with PCIE passthrough?
You want to use Hyper-v, you can use GPU-P(Gpu Partitoning) where hyper-v will pass through the GPU to the VM and share it, it's not some emulated adapter, it's genuinely the real GPU and runs natively and you can share it across multiple VM's and host. Linux has NOTHING that can compete with the feature.
Re: Scripts for Streamlining Your Homelab with Proxmox VE
#44Re: Scripts for Streamlining Your Homelab with Proxmox VE
#45Slightly off topic: I’m setting up a home server on a Mini PC that has Windows 11 Pro pre-installed. I want to attach it to my TV and play retro games as well as run home automation tasks (periodic scripts, UniFi controller, Pihole etc) Is anyone using Proxmox on their homelabs? Would you recommend blowing away Windows and installing Proxmox and then install Windows with PCIE passthrough?
I did this for a while where I ran multiple VMs, some of which had PCIE passthrough for some GPUs on both Windows and Linux. Luckily my motherboard separated out IOMMU groupings to make this work for me. While you _could_ do this, you may run into issues if your IOMMU groups aren't separated enough. The biggest issue I always had was drivers always causing issues with Windows. I eventually blew the entire instance aw…
Re: Scripts for Streamlining Your Homelab with Proxmox VE
#46Slightly off topic: I’m setting up a home server on a Mini PC that has Windows 11 Pro pre-installed. I want to attach it to my TV and play retro games as well as run home automation tasks (periodic scripts, UniFi controller, Pihole etc) Is anyone using Proxmox on their homelabs? Would you recommend blowing away Windows and installing Proxmox and then install Windows with PCIE passthrough?
From what I know you cannot pass the primary video card to a guest, so you'd need a second video card to pass-through to the guest. But i'd be happy to be proven wrong.
Re: Scripts for Streamlining Your Homelab with Proxmox VE
#47Earlier quoted context omitted.
[flagged]
100% agree. I have been running my own NAS the hard way: FreeBSD, ZFS, manual samba/NFS shares, dhcp+gateway+firewall, PXE Boot, Jellyfin (can't remember if it's in a jail or not). All this stuff is a huge, utter PITA and never works quite right. - I have to manually check the zpool periodically to see if there are faults. I went about 30d with a DEGRADED disk before I realized it, turns out it was a bad cable but if…
Re: Scripts for Streamlining Your Homelab with Proxmox VE
#48Serious question: What is the advantage of Proxmox for power linux users that can run a debian or ubuntu server box + KVM ? I'm always reading stuff about people using proxmox but don't really understand its 'edge'
I had been running a k3s cluster (k8s flavor) on some Raspberry Pis, but decided I needed some non-ARM nodes, and "invested" in a few low power "1L" AMD64 PCs (6-8 core + hyper-threading). I was initially going to just install Ubuntu and base my setup off my existing Ansible automation to make things less inefficient. But I figured I'd play around with Proxmox first and see if there was any benefit to using that as a base layer since I'd heard a lot about it.
I'm so glad I did. I ended up learning quite a bit in the process. Some quick highlights about using Proxmox for VMs in general:
* Proxmox supports creating a "cluster", so you can login though one machine to administer them all. You can conveniently "move" VMs between machines pretty seamlessly.
* If you install the para-virtualization drivers for e.g. Windows or Ubuntu VMs, you can do pretty fast remote KVM. E.g. I could run Youtube on a Windows VM in my basement over "Spice" and it almost looks like it's running locally. (Not that it's a use case I care about, mostly just shows the fact it's performant.)
In terms of actually getting around to deploying k3s on top of the infra:
* I ended up learning HPC-Packer, and HPC-Terraform, which integrated nicely with my existing Ansible experience.
* Packer turns an Ubuntu ISO + my "base" Ansible setup playbooks into a pre-baked machine template directly in Proxmox. (My local machine's Packer binary just orchestrates the process.)
* Terraform deploys the machine template into the Proxmox cluster. Basically a config file of machine names + IPs + mac adresses, and a few other params and initial setup.
* Ansible then installs any final dependencies (anything not in the base template), setups up the first k3s master, grabs the join token, and adds in 2 more master nodes for a proper `etcd` backend.
* Ansible then installs my base Kubernetes services (cert-manager, Rancher, Longhron storage, etc) via running helm commands on one of the nodes.
* This is where I'm at now; the next step is for me to deploy my existing Flux.cd-automated "Gitops" apps (built for ARM64+AMD64 via Gitlab runner, also in Proxmox). These _had_ been running on my now-quite-crusty-seeming Pi cluster.
I can run a single command to delete all the VMs, and rebuild + setup everything (full HA cluster + apps deployed and running) from scratch in ~6 minutes without any manual input required from me, just a few secrets/params in a config file.
This has made exploring the horizon of possibilities _so much easier_ without getting locked in; I can try to weird Longhorn storage configs, or try out k8s monitoring stacks without worrying about needing to "back out" my changes if I picked bad settings. (Just blow it up and try again!) I can change how VLANs are configured in early steps, or try adding a library to the base Ubuntu install cluster-wide super easily, etc.
I am primarily a software-engineer, so it has been really nice to delve into the operational side of things, and get a proper reproducible setup. It really has transformed how I think about the cluster in that it's no longer a "thing to carefully maintain", but instead a great sandbox to explore AND deploy my own k8s applications on top of without playing cloud bills.
My Proxmox journey in the past few months definitely turned into more than a rabbit hole than I'd expected.
Re: Scripts for Streamlining Your Homelab with Proxmox VE
#49The actual scripts: https://github.com/tteck/Proxmox After poking at a couple of these, they seem like they're 50% shiny packaging and 50% one-liner bash commands.
Most of homelabbing is this. it's an outlet to play. unixporn, neofetch, pretty dashboards to link to all of your content pirating tools, etc.
And more broadly, a lot of software could be summarised as a pretty packaging of a basic tool.