LXC - Guide to building a LXC Lab

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 66

  • @RobKraut
    @RobKraut 3 місяці тому +1

    This is probably the best video tutorial I’ve ever seen. To the point, literally has answered every question I had coming into it, and no stupid antics or 20 minutes of theory/opinion. Bravo!

  • @AndyVasile
    @AndyVasile 3 роки тому +9

    it took me quite some time to figure how to properly mount the bridge interface, after lots of research, I realize I had to remove the device conf from netplan (usually 00-installer-config.yaml) and leave only the bridge conf in netplan. After that, I was able to expose the LXC to the home network. Great tutorial though!

  • @pauljwhelan
    @pauljwhelan Рік тому

    Great video, really helpful. Got me up and running in no time. Thanks

  • @patientson
    @patientson Рік тому

    @DevOps Journey, thank you very much. Excellent Content. I like your straight-to-the-point rite . It got me hooked and I am also a newcomer loving (being patient) with the processes of Linux. You have made me to have the patience and confidence to get myself a raspberry pi - i will look for one while listening to your content. Thank you.

  • @arunkhan4951
    @arunkhan4951 2 дні тому

    Anyone with access to the host can open a root shell in any lxc containers. Besides restricting host access are there any mechanisms to prevent root access to the individual lxc containers?

  • @meggrobi
    @meggrobi 3 роки тому +3

    What are the advantages and disadvantages of LXC containers to VMs?

    • @Heavy_Lvy
      @Heavy_Lvy 4 місяці тому

      containers use the the system kernel unlike the VM where everything is simulated. This makes containers really fast and lightweight but with a downside of security. If you get a virus on the container that uses the kernel, your host machine will get affected.

  • @ates9
    @ates9 3 роки тому

    Thanks for that amazing one! I always hearing LXC but that was my first time with that

    • @DevOpsJourney
      @DevOpsJourney  3 роки тому

      No problem! Something that you can pickup relatively quick and learn a lot with.

  • @rokyo401
    @rokyo401 Рік тому +1

    If the containers share the kernel with the host system: Is it even possible to run different releases of a distribution? For example: Could I run Debian 12 containers on a Debian 10 host or the other way around? Which kernel would be used? The 6.x from Debian 12 or the 4.x from Debian 10?
    How do dist-upgrades work with containers? If I have an old Debian 11 host with Debian 11 containers and I want to upgrade to Debian 12: Do I have to upgrade the containers first or the host? Or does it not matter?

    • @cheebadigga4092
      @cheebadigga4092 2 місяці тому +1

      Containers are isolated from the host. The debian 12 container on a debian 10 host will use the 4.x kernel of the debian 10 host. Running dist-upgrades on the host will only upgrade the host, leaving the container untouched. Running dist-upgrades on the container will only upgrade the container, leaving the host and its kernel untouched. So you have to upgrade both, if you wish. Oh and yes, it is possible to run different distributions as containers on a single host, that's basically what LXC was made for. The container doesn't know about the host (it actually thinks it is the host), whereas the host knows everything about the container.

  • @mrgnycllc
    @mrgnycllc Рік тому

    🎉 Extremely helpful. Well done. Thank you!

  • @NickMoore
    @NickMoore 3 роки тому +7

    Great video but you might want to mention that this is LXD + LXC not just LXC on its own. Though you can do nearly all of the same operations with both setups the commands are wildly different.

    • @jairusan
      @jairusan 3 роки тому

      @Nick can you elaborate? LXC is the containers, I believe what you are referring is the commands he is using to manage the containers? or the manager CLI environment he is using to control the LXC machines?

    • @NickMoore
      @NickMoore 3 роки тому +3

      @@jairusan LXD is a package that provides tools to manage LXC containers. You can use LXC containers without LXD but the procedure is not the same.

    • @jairusan
      @jairusan 3 роки тому

      @@NickMoore Good to know thanks for the info. And thanks again DevOps Journey.

    • @UdaySingh-im4hd
      @UdaySingh-im4hd 2 роки тому +1

      @@NickMoore Do you have any references so that I can read more. I am not getting at all, the diff between LXC and LXD. According to ubuntu official docs:- "LXD (pronounced lex-dee) is the lightervisor, or lightweight container hypervisor. LXC (lex-see) is a program which creates and administers “containers” on a local system.". So can this work without container hypervisor (LXD)

  • @PetritK10
    @PetritK10 3 роки тому

    Thank you buddy, keep it doing with Linux and Devops tutorials

  • @ivanlawrence2
    @ivanlawrence2 3 місяці тому

    Great vid, love LXC! I set my LXC host up then immediately used terraform for creating nodes and ansible (where possible) to configure the container. Those are just running on the host. I’m thinking of trying clustering but setting up OVN and ceph might be a little much. Ubuntu has micro cloud which is another idea.

  • @git_t0v
    @git_t0v 3 роки тому +2

    I don't know if your goal is to "blow up" on YT but I feel like you deserve way more views/followers than what you have. Thank you for being here for us and on Discord.

    • @DevOpsJourney
      @DevOpsJourney  3 роки тому

      No problem David! The YT channel certainly is getting there! Picked up a lot of traction in the past month. Thank you for the support.

  • @iondistinct3944
    @iondistinct3944 3 роки тому +1

    quality vid, thanks

  • @СергейАндреевич-у2т

    How did you get authorized_keys? Because only the public one is sent to another server and authorized_keys appears on another server? Did you send the ssh-copy-id user@ip-server command to this server yourself?

  •  3 роки тому

    Great video thank you for tips and showing bridge adapter.

  • @heyymonth
    @heyymonth 3 роки тому

    Awesome video buddy.....keep doing this good work. 👍

    • @DevOpsJourney
      @DevOpsJourney  3 роки тому

      Thanks, will do! Thank you for your support 🍻

  • @jwd42
    @jwd42 Рік тому

    Man.Really Love from Pakistan.Feel Happy to subscribe you.

  • @Nepsky1
    @Nepsky1 3 роки тому +1

    Wait, you mentioned you're running LXC on Raspberry Pi ?
    I do have couple of RPi4 sitting around on my closet.
    Can you please advise, I am interested to DevOps.

  • @infinitetechnologies2041
    @infinitetechnologies2041 3 роки тому +1

    very useful video

  • @sinancetinkaya
    @sinancetinkaya 3 роки тому

    What about accessing host's hardware from a LXC container?

    • @DevOpsJourney
      @DevOpsJourney  3 роки тому

      I believe it's isolated by default, but there is probably something you can do to get that.

  • @olala1130
    @olala1130 2 роки тому

    Great content! very helpful! 👍

  • @amitroy-cx2qb
    @amitroy-cx2qb 3 роки тому

    Hello I have configured my ubuntu LXD in my VM. Now I want to ping that my lxc contenier from my VM to my local system. but using this command it's not working (lxc config device add mongodb001 eth0 nic nictype=bridged parent=lxdbr0 name=eth0)

  • @RajaseelanGaneswaran
    @RajaseelanGaneswaran 3 роки тому +2

    That bridge was the function I was looking for. Move over vagrant, we have a real contender. Thank you 😊

  • @DannySamuel
    @DannySamuel 3 роки тому +1

    Nice and useful

  • @BryanChance
    @BryanChance Рік тому

    I don't know why it's extra difficult to figure out LXC commands.. like "lxc image alias list images: alpine" . What's the "alias" for? and "images: "
    Reminds me of git commands. LOL

  • @splaq
    @splaq 3 роки тому

    Awesome videos, but I seem to have an issue with the keys, maybe my current authoized_keys file isn't set up properly but it still denys my entrance even if I move the contents of my entire .ssh directory. Also I have to sudo all of my lxc commands, where'd I screw up? 😂

    • @RajaseelanGaneswaran
      @RajaseelanGaneswaran 3 роки тому +1

      Possibly perrmissions of the files once they were copied over ?

  • @callisoncaffrey
    @callisoncaffrey Рік тому +3

    This is LXD, which you don't need if you know how LXC works.

    • @DevOpsJourney
      @DevOpsJourney  Рік тому

      Looks like LXC to me :0

    • @callisoncaffrey
      @callisoncaffrey Рік тому +3

      @@DevOpsJourney The command is called lxc, but you actually use LXD. If you used LXC by itself, you'd be using lxc-... commands.

  • @RamanTseshau
    @RamanTseshau 3 роки тому

    Awesome! Have you any experience with VMs on raspberry pi? With lxc ofcourse, but maybe with another hypervisors. Can you tell about it?

    • @DevOpsJourney
      @DevOpsJourney  3 роки тому

      Hey Raman. You can actually get ESXi on a Raspberry Pi! I used it for a few months. It's a bit trickier to setup then LXC but it can be worth it if you want a fully featured Hypervisor. Just search for ESXi ARM, lot's of tutorials on it.

  • @белка-у8б
    @белка-у8б 2 роки тому

    So cool

  • @peterwoo2718
    @peterwoo2718 2 роки тому

    I have a feeling that lxc is literally docker in beta version. Am I correct?

    • @DevOpsJourney
      @DevOpsJourney  2 роки тому

      Yeah Docker is based on some of the groundwork LXC layed

  • @kintulupadhyay6247
    @kintulupadhyay6247 3 роки тому +1

    Why not cloud and lxe !?

    • @DevOpsJourney
      @DevOpsJourney  3 роки тому

      I'm not familiar wih Ixe, will have to look into it! I usually use lxc or vagrant + virtualbox for homelab

    • @kintulupadhyay6247
      @kintulupadhyay6247 3 роки тому

      Typo I meant LXC only, sorry
      My question is why do you use LXC not cost efficient cloud vms?

    • @DevOpsJourney
      @DevOpsJourney  3 роки тому +1

      @@kintulupadhyay6247 Cloud is a great option as well, but for me I use LXC at home to host all my development stuff and home automation

  • @billbakshi3307
    @billbakshi3307 3 роки тому +1

    Commands almost similar like docker

  • @StevenGarcia-v8c
    @StevenGarcia-v8c 4 місяці тому

    Barton Forge

  • @SimonRoderick-o3q
    @SimonRoderick-o3q 3 місяці тому

    Garth Field

  • @CarmineComden-g4x
    @CarmineComden-g4x 4 місяці тому

    Harvey Common

  • @DeborahBrown-g8c
    @DeborahBrown-g8c 4 місяці тому

    Schamberger Mills

  • @DougVona
    @DougVona 4 місяці тому

    760 Kaya Stravenue

  • @ZangwillLaura
    @ZangwillLaura 4 місяці тому

    387 Deshaun Stravenue

  • @JoyceCrowder-n5w
    @JoyceCrowder-n5w 4 місяці тому

    Nikolaus Shore

  • @TheC1tss
    @TheC1tss Рік тому +1

    f' {Thank.you}'

  • @lnostdal
    @lnostdal 2 роки тому +1

    You should change the title of this video, as this is about LXD really; not LXC.

  • @vishnoor
    @vishnoor Рік тому

    Very easily explained

  • @МарионеллаЯцкевича
    @МарионеллаЯцкевича 4 місяці тому

    70030 Itzel Park