LXC - Guide to building a LXC Lab

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 65

  • @RobKraut
    @RobKraut หลายเดือนก่อน

    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!

  • @NickMoore
    @NickMoore 3 ปีที่แล้ว +5

    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 ปีที่แล้ว +2

      @@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)

  • @ivanlawrence2
    @ivanlawrence2 หลายเดือนก่อน

    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.

  • @pauljwhelan
    @pauljwhelan ปีที่แล้ว

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

  • @RajaseelanGaneswaran
    @RajaseelanGaneswaran 3 ปีที่แล้ว +2

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

  • @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.

  • @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.

  • @PetritK10
    @PetritK10 3 ปีที่แล้ว

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

  • @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 4 วันที่ผ่านมา +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!

  • @meggrobi
    @meggrobi 3 ปีที่แล้ว +3

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

    • @Heavy_Lvy
      @Heavy_Lvy 2 หลายเดือนก่อน

      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.

  • @СергейАндреевич-у2т
    @СергейАндреевич-у2т 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?

  • @callisoncaffrey
    @callisoncaffrey ปีที่แล้ว +2

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

    • @DevOpsJourney
      @DevOpsJourney  ปีที่แล้ว

      Looks like LXC to me :0

    • @callisoncaffrey
      @callisoncaffrey ปีที่แล้ว +2

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

  • @NeaBea
    @NeaBea 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.

    • @DevOpsJourney
      @DevOpsJourney  3 ปีที่แล้ว

      Yup! LXC is running on my Pi.

  • @iondistinct3944
    @iondistinct3944 3 ปีที่แล้ว +1

    quality vid, thanks

  •  3 ปีที่แล้ว

    Great video thank you for tips and showing bridge adapter.

  • @jwd42
    @jwd42 ปีที่แล้ว

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

  • @heyymonth
    @heyymonth 3 ปีที่แล้ว

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

    • @DevOpsJourney
      @DevOpsJourney  3 ปีที่แล้ว

      Thanks, will do! Thank you for your support 🍻

  • @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)

  • @infinitetechnologies2041
    @infinitetechnologies2041 3 ปีที่แล้ว +1

    very useful video

  • @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

  • @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.

  • @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.

  • @DannySamuel
    @DannySamuel 3 ปีที่แล้ว +1

    Nice and useful

  • @olala1130
    @olala1130 2 ปีที่แล้ว

    Great content! very helpful! 👍

  • @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 ?

  • @белка-у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

  • @SimonRoderick-o3q
    @SimonRoderick-o3q หลายเดือนก่อน

    Garth Field

  • @StevenGarcia-v8c
    @StevenGarcia-v8c 2 หลายเดือนก่อน

    Barton Forge

  • @ZangwillLaura
    @ZangwillLaura 2 หลายเดือนก่อน

    387 Deshaun Stravenue

  • @billbakshi3307
    @billbakshi3307 3 ปีที่แล้ว +1

    Commands almost similar like docker

  • @CarmineComden-g4x
    @CarmineComden-g4x 2 หลายเดือนก่อน

    Harvey Common

  • @JoyceCrowder-n5w
    @JoyceCrowder-n5w 2 หลายเดือนก่อน

    Nikolaus Shore

  • @DeborahBrown-g8c
    @DeborahBrown-g8c 2 หลายเดือนก่อน

    Schamberger Mills

  • @DougVona
    @DougVona 2 หลายเดือนก่อน

    760 Kaya Stravenue

  • @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

  • @TheC1tss
    @TheC1tss ปีที่แล้ว +1

    f' {Thank.you}'

  • @lnostdal
    @lnostdal ปีที่แล้ว +1

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

  • @МарионеллаЯцкевича
    @МарионеллаЯцкевича 2 หลายเดือนก่อน

    70030 Itzel Park

  • @vishnoor
    @vishnoor ปีที่แล้ว

    Very easily explained