this post was submitted on 28 Jun 2023
19 points (85.2% liked)

Selfhosted

40256 readers
1132 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
 

I currently have a 24/7 linux old-office-PC-turned-server for self-hosting, and a desktop for mostly programming and playing games (linux as a host + a windows VM with a passed-through GPU). The server's i5-3330 is usually at ~10-15% usage.

Here's the actual idea: what if, instead of having a separate server and desktop, I had one beefy computer that'd run 24/7 acting as a server and just spun up a linux or windows VM when I needed a desktop? GPUs and USB stuff would be passed through, and I could buy a PCIe SATA or NVMe controller I could also passthrough to not have to worry about virtualized disk overhead.

I'm almost certain I could make this work, but I wonder if it's even worth it - would it consume less power? What about damage to the components from staying powered 24/7? It'd certainly be faster accessing a NAS without the whole "Network-Attached" part, and powering on the desktop for remote access could just be a command over SSH instead of some convoluted remote WoL that I haven't bothered setting up yet.

I'd love to hear your thoughts on this.

Edit 2 months later: Just bought a 7950X3D and use the 3D V-cache half of it as a virtualized desktop with the other cores used for running the host and other VMs. Works perfectly when passing through a dedicated GPU, but iGPU passthrough is very difficult if not impossible since I couldn't manage it.

Edit even later-er: iGPU passthrough is possible on ryzen 7000 after all, everything works great now.

you are viewing a single comment's thread
view the rest of the comments
[–] fuckwit_mcbumcrumble 2 points 1 year ago (1 children)

I can't find any benchmarks comparing workstation to ESXi. But for work we spend most of our time in type 2 hypervisors and performance is just fine. Just make sure you're not using the Windows Hypervisor Platform because that does have a huge performance penalty. Considering OP uses an old i5 I'm sure a modern CPU would handle the load just fine.

But importantly workstation has something ESXi doesn't, 3D Acceleration. And if you're doing anything graphical it makes a huge difference.

[–] vegetaaaaaaa 1 points 1 year ago

KVM/libvirt (type 1) blows VMWare Workstation out of the water, performance-wise (and license cost-wise since it's FOSS). I don't have benchmarks at hand, but expect something in the order of 20% I/O-wise, 10% CPU-wise, which quickly adds up. RAM usage impact should be negligible. Of course it depends on the workload, CPU-bound workloads will suffer less, but a lot of workloads are I/O-bound (databases for example).

VMWare reportedly has the best 3D acceleration support, yes. But it doesn't support hardware passthrough (which type 1 hypervisors do).

Of course if you're in Windows-land you don't have much choice (is Hyper-V slower than Workstation? Shouldn't be - but hey it's a microsoft product :) )