Would this work?
from Hezaethos@piefed.zip to selfhosted@lemmy.world on 17 Apr 14:23
https://piefed.zip/c/selfhosted/p/1403975/would-this-work

Hello again!

Recently had made a post where y’all helped me out as a noob setting up a server. One comment in particular gave me an idea and now I’m wondering if this would work and would it perhaps be easier to do, since I’ve had trouble figuring out how to (safely) set up the remote connection stuff.

I installed Fedora Kiinoite on the server/htpc and was learning how to use Podman since I don’t want to go through the trouble of using Os-tree.

But it just occurred to - would it work if I used Gnome Boxes to run Cosmos Cloud and run all the services I want to remotely connect to from there? Or would there be an issue since it’s a VM? Cosmos Cloud seems to make it easy to securely remotely connect, and it uses containers too.

#selfhosted

threaded - newest

statelesz@slrpnk.net on 17 Apr 14:53 next collapse

What is it you’re actually trying to accomplish? Connect remote services to your self-hosted cloud?

Hezaethos@piefed.zip on 17 Apr 15:07 collapse

yes, so something like nextcloud for example. But also I currently am using the machine to stream Qobuz (we have 2 years free is why) and to run VacuumTube. I also want to set up the Arrstack on it.

So basically for things like Nextcloud or Immich, I was wondering if it would be easier to use Cosmos Cloud on a Debian VM than it would you set it up through Podman, such they don’t recommend anyhow

MalReynolds@slrpnk.net on 17 Apr 19:28 collapse

I run podman containers on my bazzite machines, basically you convert a docker-compose file to a .container file, here’s a bunch of examples, nextcloud is there, drop it in ~/.config/containers and run systemctl daemon-reload and it’s now a systemd unit that you start stop etc like any other. Updates are with podman autoupdate.

You can use podlet to convert docker-compose files (90% it works, otherwise it gets you 90% of the way there). It’s basically the fedora (/redhat) way to run containers.

I have no idea where you got it not being recommended (but adding to the main image sure is discouraged), and it’s certainly better than adding a vm for containers, which pretty much defeats the purpose of containers (to run using your main kernel, but contained).

I’ve been running my arr stack (with gluetun in a pod) etc this way for years now, very trouble free. Here’s a immich example.

It’s a bit of a learning curve, but it pays off.

Shimitar@downonthestreet.eu on 17 Apr 15:10 next collapse

Why use an external cloud? While its technically still kind of self its not self hosted anymore IMHO. You would still be running your services, but on somebody else, rented, hardware. While I do the same for a few services (like email), i wouldn’t suggest it for general services that you want to reside on your turf (like immich, music, 'arrs, passwords, whatever)

Hezaethos@piefed.zip on 17 Apr 15:21 next collapse

I’m confused - I was asking if it was possible to run Cosmos Cloud in a VM for easy remote access. I’m not using any external cloud services am I? I’m not paying for anything

Shimitar@downonthestreet.eu on 17 Apr 17:16 collapse

Ok, i misunderstood!

Thaurin@lemmy.world on 17 Apr 16:11 collapse

Why wouldn’t you recommend it? I’m running my VPS for many of those services just fine. It’s technically not selfhosted, because I’m not doing the infrastructure, but the end result is the same besides not owning the hardware and paying for the electricity bill.

Shimitar@downonthestreet.eu on 17 Apr 17:18 collapse

Mostly because my files stay on my hardware, on my network. In case of internet down/broken/filtered I can still access all my data. That is one of the points of self hosting. Not the only one, granted, and maybe not even the most critical, but having the opportunity, better to host on your turf.

Go ahead the self host on a cloud somewhere, nothing bad about that! Have fun, enjoy, learn and be digitally independent is the core of self hosting.

Thaurin@lemmy.world on 17 Apr 17:38 collapse

Yeah, I get it. I’d like to try a Raspberry Pi setup sometime. Maybe some home automation stuff. But I don’t require much and don’t want a server rack. I’m a developer, not a network engineer.

Hezaethos@piefed.zip on 17 Apr 16:06 collapse

Update: I don’t think it worked because I can’t access it via localhost. I’ll maybe try a bit more later but if it doesn’t work I’ll just start over like some suggested in my other post and go with a classic Debian installation

mierdabird@lemmy.dbzer0.com on 17 Apr 16:13 collapse

Localhost would only work on the machine itself. I have Cosmos installed on my own computer, but I have no experience trying it in a virtual machine. That may be a question better suited for the Cosmos Discord server, I can get you an invite if you want it