this post was submitted on 31 Jul 2023
15 points (89.5% liked)

Selfhosted

40152 readers
487 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi everyone, I'm planning to experiment with my first home server (jellyfin,nextcloud,bitwarden etc) running on a "old" Thinkcentre i5-7th. I'm thinking using proxmox in order to experiment with different configuration and I was wondering if it's possible to have a single container/vr (with Libreelec) output HDMI to my TV, and keep other VM's headless and controlled from another PC when needed.

Are there some particular setting or nwebie suggestion that could help me achieve that? Also, do you think proxmox is a good choice, or it's better stick to a single debian/ubuntu server OS?

top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago (2 children)

What you are looking for is gpu pass through. You can do it with integrated graphics as well as dedicated. There is a lot of good documentation out there for proxmox to do this.

I would totally start with a hypervisor. The ability to spin up a new VM for an experiment or project far outweighs any downside. I use proxmox, but that’s mainly because it was the thing to do when I was starting out. There are a few options out there, including installing Debian and running kvm/qemu, which is basically what proxmox is. They all have the same functionality, just different UI/features. Lxc containers in proxmox help a lot as well, when you have a small service you want to run but don’t want to take up a VMs worth or resources. These also helped a lot.

Good luck

[–] [email protected] 1 points 1 year ago

Just gonna add a bit here. I haven't used proxmox, but I do have a GPU I assign to QEMU/KVM virtual machines. The arch wiki has an article that helps a lot, for anyone who wishes to try this. I have also found that the virgl drivers allow for sufficient graphical performance for video decoding at high resolution, so that is another potential option to explore here that doesn't involve allocating the GPU to a VM.

[–] [email protected] 0 points 1 year ago (2 children)

It's important to note that you will need 2 GPUs ( 2 PCIE or 1 integrated and 1 PCIE). One GPU is needed for Proxmox and the other can be passed through to the VM.

[–] [email protected] 4 points 1 year ago

If you are running a hypervisor, running headless would be perfectly ok with a webui or remote utility like virtmanager. I was making the assumption OP was not doing this on a main rig.

[–] [email protected] 3 points 1 year ago

Surprisingly this isnt actually needed. It makes it easier to setup, but isnt required beyond that (and some bios need one plugged in to boot but that won't be an issue).

My current setup is 2 nvidias both passed through to separate VMS, then I just use another PC to access the web console. My ideal setup would be a VM that launches itself when none else are running, to allow a graphical output even with the host headless

[–] [email protected] 2 points 1 year ago

Last time I had a vm with physical output was years ago, and it was an involved process. The thing you are looking for is PCI pass-through. Unless you are thinking closer to just running something like virtual box full screen?

Did you need your server to have hdmi output instead of running a normal jellyfin client? Would you consider a desktop os running server containers in docker or podman?

[–] [email protected] 2 points 1 year ago

I do this with proxmox on a Lenovo tinypc. However I'm using a Nvidia gpu for passthrough. Was awhile ago I set it all up. I remember it being fairly complex. Here is a super basic instruction for it. Possibly incomplete.

Check you have iommu enabled in efi/bios. (For Intel - enable vt-d)

Install drivers if necessary (again nvidia)

Blacklist device on proxmox host

Setup GPU passthrough (vfio) - assign the card video and audio to the guest vm.

Start vm and test

If you are using onboard card, you can probably blacklist it and use it for your vm.. I'm not entirely sure how proxmox deals with losing its primary display.. I expect it'll cope ok. SSH for everything. Probably need to use virtio drivers. Install within guest..

[–] [email protected] 1 points 1 year ago

Yes and quite simple if your equipment supports it, the other VMS will not have access to the GPU if you do that.

[–] [email protected] 1 points 1 year ago

Never tried anything line that before but I feel like you'd be better off setting up VNC for it and connecting something lightweight to your TV and just interacting with the VM via VNC

[–] [email protected] 1 points 1 year ago (1 children)

Hi I did that for Kodi, still using it and running in parallel other LXCs on the same machine. Scripts: https://github.com/mrrudy/proxmoxHelper Hope it helps.

[–] [email protected] 0 points 1 year ago (1 children)

Nice! Is Ubuntu mandatory?

[–] [email protected] 1 points 1 year ago

No, you can replace the distro to any that proxmox will support and that has lightdm, you just need to modify the 2nd installation script also as it uses Ubuntu packages for Kodi. The easiest it should be for apt based distributions. But actually the heavy lifting that those scripts do is around passing throughout devices especially in Unprivileged mode, which is tricky in lxc. So you could remove or even allow to fail the apt parts and install what you need manually in the container after creation.

[–] [email protected] -1 points 1 year ago

What are you trying to display on the TV? I feel like most media can be handled better with something like PLEX rather than directly displaying it with an HDMI cord. Much easier to browse with a remote anyway.