Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. Can I create/spin LXC with virt-manager or something similar?

Can I create/spin LXC with virt-manager or something similar?

Scheduled Pinned Locked Moved Selfhosted
selfhosted
16 Posts 6 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • iturnedintoanewt@lemm.eeI [email protected]

    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!

    0 This user is from outside of this forum
    0 This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #4

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

    iturnedintoanewt@lemm.eeI 1 Reply Last reply
    0
    • J [email protected]

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

      iturnedintoanewt@lemm.eeI This user is from outside of this forum
      iturnedintoanewt@lemm.eeI This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #5

      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.

      1 Reply Last reply
      0
      • denshirenji@lemmy.worldD [email protected]

        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.eeI This user is from outside of this forum
        iturnedintoanewt@lemm.eeI This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #6

        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.worldD 1 Reply Last reply
        0
        • iturnedintoanewt@lemm.eeI [email protected]

          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.worldD This user is from outside of this forum
          denshirenji@lemmy.worldD This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #7

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

          iturnedintoanewt@lemm.eeI 1 Reply Last reply
          0
          • J [email protected]

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

            M This user is from outside of this forum
            M This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #8

            There's a GUI for containerd?

            1 Reply Last reply
            0
            • iturnedintoanewt@lemm.eeI [email protected]

              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!

              B This user is from outside of this forum
              B This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #9

              Yes, you can.

              iturnedintoanewt@lemm.eeI 1 Reply Last reply
              0
              • B [email protected]

                Yes, you can.

                iturnedintoanewt@lemm.eeI This user is from outside of this forum
                iturnedintoanewt@lemm.eeI This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #10

                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.

                B 1 Reply Last reply
                0
                • 0 [email protected]

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

                  iturnedintoanewt@lemm.eeI This user is from outside of this forum
                  iturnedintoanewt@lemm.eeI This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #11

                  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.

                  1 Reply Last reply
                  0
                  • denshirenji@lemmy.worldD [email protected]

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

                    iturnedintoanewt@lemm.eeI This user is from outside of this forum
                    iturnedintoanewt@lemm.eeI This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #12

                    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.

                    1 Reply Last reply
                    0
                    • iturnedintoanewt@lemm.eeI [email protected]

                      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.

                      B This user is from outside of this forum
                      B This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #13

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

                      iturnedintoanewt@lemm.eeI 1 Reply Last reply
                      0
                      • B [email protected]

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

                        iturnedintoanewt@lemm.eeI This user is from outside of this forum
                        iturnedintoanewt@lemm.eeI This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #14

                        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 😞

                        B 1 Reply Last reply
                        0
                        • iturnedintoanewt@lemm.eeI [email protected]

                          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 😞

                          B This user is from outside of this forum
                          B This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #15

                          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.eeI 1 Reply Last reply
                          0
                          • B [email protected]

                            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.eeI This user is from outside of this forum
                            iturnedintoanewt@lemm.eeI This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #16

                            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!

                            1 Reply Last reply
                            0
                            • System shared this topic on
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups