this post was submitted on 25 Mar 2025
17 points (94.7% liked)

Selfhosted

45087 readers
547 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 2 years ago
MODERATORS
 

Hi guys!

The same way I hold some VMs for some apps I might not trust well enough to share with the rest of my OS/partition, I'd like to be able to do the same, but with LXC instead, possibly reducing overhead (and perhaps increasing ache in the head). I was wondering if the GUI Virt-manager can do this? It seems after installing libvirt-daemon-lxc, libvirtd, libvirt-client-qemu I'm able to connect to the LXC daemon in my system. However, I'm not sure how to follow a similar process as perhaps Proxmox, to build a, say, fully blown ubuntu LXC from a template. How should I do this?

Thanks!

top 15 comments
sorted by: hot top controversial new old
[–] bizdelnick@lemmy.ml 4 points 3 days ago (1 children)
[–] iturnedintoanewt@lemm.ee 2 points 3 days ago (1 children)

Thanks...That's my fault. I guess I wanted to mention I was looking for a GUI-like way of doing it. Same way virt-manager does. It handles libvirt in the background, but I guess a nice more intuitive manner of following a process to create a VM. I wanted to see if I can do something similar for a container.

[–] bizdelnick@lemmy.ml 3 points 2 days ago (1 children)

virt-manager is able to work wit lxc. Add a new connection of type Libvirt-LXC.

[–] iturnedintoanewt@lemm.ee 2 points 2 days ago (1 children)

Yup! I got that far. But when I try to create a new VM/container using LXC instead, I'm prompted for an URI. i have no idea what I'm supposed to enter there. In Proxmox it just downloads the templates itself from its own repository, but i have no idea what I'm supposed to input here. I didn't find any guide about this :(

[–] bizdelnick@lemmy.ml 3 points 2 days ago (1 children)

It asks for a path to a root directory of a bootstraped container. You can create it with debootstrap, rinse, pacstrap, alpine-chroot-install, virt-bootstrap etc.

[–] iturnedintoanewt@lemm.ee 2 points 2 days ago

Thank you for the information! Since Proxmox does this by itself with those templates it uses, I never did this process. I guess I'll check some guide...thanks a lot!

[–] 0x0@programming.dev 3 points 3 days ago (1 children)

virt-manager supports, at least, kvm and lxc/incus, so you should be fine.

[–] iturnedintoanewt@lemm.ee 2 points 3 days ago

Yeah...So far I managed to connect virt-manager to the LXC daemon after a few attempts, but I'm a bit stuck now. In order to create a new LXC container it asks for an URI and I don't know which one should I put.

[–] jlh@lemmy.jlh.name 3 points 3 days ago (2 children)

There's much more tooling for containerd containers than there is for LXC

[–] iturnedintoanewt@lemm.ee 2 points 3 days ago

Hmmm I might be open to try. But my idea would be to have the equivalent of a local full blown VM running with its own desktop environment. But on a container. I can do this in proxmox, but I'd like to replicate it locally on my laptop.

There's a GUI for containerd?

[–] denshirenji@lemmy.world 2 points 3 days ago (1 children)

I'm not sure about virt-manager, but there is Incus. I have a server coming soon that I am going to test it out on. https://github.com/lxc/incus.

[–] iturnedintoanewt@lemm.ee 2 points 3 days ago (1 children)

Thanks! I was hoping it would have its own GUI, not having to run from a webUI...Kinda makes integration with a virtual desktop a bit easier. I'd like to have the equivalent of a virtualbox VM, with desktop etc, but running on a container.

[–] denshirenji@lemmy.world 2 points 3 days ago* (last edited 3 days ago) (1 children)

Forgot about that. Think there are a few. Here is an example. https://github.com/osamuaoki/incus-ui-canonical

Edit: Here's another. https://github.com/PenningLabs/lxconsole

[–] iturnedintoanewt@lemm.ee 2 points 3 days ago

Thanks...The first one might actually be a normal GUI. However I don't see a way to compile it for non-debian (I'm running Nobara, which is Fedora-based). The second one is definitely a webUI.