Getting started with LXD Containerization (Full Guide!)

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 185

  • @cjbaghl
    @cjbaghl 3 года назад +29

    Jay, another great video. At some point I would love to see a best practices video on accessing containers directly on a LAN. Also, best practices for access the containers from the container host PC. Of course everyone loves eye candy: GUI LXD management apps like LXDGUI, LXDMosaic, LXDware and any other dashboards. Again, thank you for making things simple and especially for your enthusiasm.

  • @AssociateMinisterReserveDeacon
    @AssociateMinisterReserveDeacon 3 года назад +3

    A. Mr. Jay you're a great and knowledgeable resource. I look to your RUclips channel when I have a tech related question. You give insite on technology beyond Linux.
    B. Mr. Jay you're a great instructor and teacher. You could teach anything. You give the viewer a chance to absorb the information being presented. You don't suffer from diarrhea of the mouth.
    C. Mr. Jay I like the professional introduction to each of your videos. You inform the viewer of the subject (s) being covered in each of your videos. A lot of Tech RUclipsrs don't do that. They jump directly in what they are presenting. The viewer no idea of what is being presented and becomes confused as to what the video is about. Great Job!!!
    D. Mr. Jay your videos are self contained. The viewer doesn't have stop a video. Watch separate video and comeback the original video.
    E. Mr. Jay you don't overload your videos with unrelated information and useless information. You stay on topic. Great Job!!!.
    F. Mr. Jay you've wise wisdom and uncommon common sense.
    G. Mr. Jay Thankyou!!! For sharing your wise wisdom and uncommon common.
    H. Mr Jay please continue to get on life's stage and let your Godly inner light shine. Please continue to climb life's ladder and let the world see The Great and Wonderful Gifts, Talents, and Treasures that are inside of you.
    I. Mr. Jay You Go Gentleman!!!
    J. Mr.Nay please stay safe.
    K. Mr.Jay God Bless You!!!

  • @wekiwa7055
    @wekiwa7055 3 года назад +2

    I wanted clarification on LXC and here it is. The best beginning LXD vid on RUclips! My 12yr old niece loves learning on your channel. :)

  • @PankajSharma-ir7fb
    @PankajSharma-ir7fb 3 года назад +7

    Proxmox uses lxc containers. That's where I saw lxc for the first time. Great lxc initiation video.

  • @corewarrior
    @corewarrior 3 года назад +15

    would definitely like see more lxd vidoes, particularly around clustering and VMs.

  • @michaeladams841
    @michaeladams841 3 года назад +1

    my oh my ... been a huge ubuntu and vmware user ... and had no idea that ubuntu had such capabilities... great stuff!!

  • @slomosapien1337
    @slomosapien1337 3 года назад +2

    Hi Jay, thank you for putting out these videos. You are one of the very few Linux-related RUclipsrs that put out useful and educational content rather than the other pointless nonsense people seem to be fond of mouthing on about. Very underrated channel. Thank you good sir

  • @ViniciusProvenzano
    @ViniciusProvenzano 3 года назад +7

    Great content! I’d love to see more videos on how to customize the network of the containers, how to access the host file systems, and how to have the different users - one on each container - with the rights to write to a specific host folder ( without messing up its permissions ). A prime on BRTFS and ZFS with LXC would also be really nice! Thanks!

  • @mockingbird3809
    @mockingbird3809 3 года назад +5

    I would love to see more videos on LXD/LXC and networking within the containers.

  • @navin58
    @navin58 3 года назад +29

    Please do video on LXD, clustering would be a good start

    • @LearnLinuxTV
      @LearnLinuxTV  3 года назад +10

      Expect it. I don't have a timeline yet, but it will happen.

  • @da001be
    @da001be 3 года назад +1

    Enjoyed the video and not only learned the basics of lxd/lxc , but would really enjoy learning more about using lxc’s and managing them with lxd.

    • @LearnLinuxTV
      @LearnLinuxTV  3 года назад +3

      I'm thinking of doing two more LXD videos - one specific to ZFS and its features, and another specific to clustering. Do you think that would be a good way to handle it?

    • @da001be
      @da001be 3 года назад +1

      @@LearnLinuxTV yes because I really know little about ZFS and your intro to LXD was my first.

  • @jnixdorf
    @jnixdorf 3 года назад +8

    Refering to 3:10 ...Sorry for being nitpicky, but when you "stop" a docker container it will remain its data similar to a "shutdown" of a VM. Only when you "remove" a docker container, all your changes would be lost. You can make a snapshot of your docker container with "docker commit" (which will create a new docker image) to create a new container later with data you have changed before.

  • @dingokidneys
    @dingokidneys 3 года назад +1

    Really good intro tutorial. I followed along on my Raspberry Pi loaded with Ubuntu server.
    It's giving me good ideas for new things to do.

  • @Cespasbeau
    @Cespasbeau 3 года назад

    I like the fact that you're clear and easy to follow. Now to investigate more of your videos.

  • @JosephSaintClair
    @JosephSaintClair 3 года назад +3

    Very seldom does one come across a great ‘learn’ video with correct information, here on yt. This is brilliant and very well articulated. Good work 👍
    Edit: big fan of MaaS. Anyone who ‘does cloud’, should at least tinker with it, I reckon!

  • @MarkusEicher70
    @MarkusEicher70 2 года назад

    Hello Jay and thank you for this short intro to LXC and LXD. A very intriguing topic, sure worth to dig in deeper. Of course that deserved a like and a subscription. Looking forward to see more of your videos. Good stuff for a Linux newbie.

  • @kardeslerim-turkishdramaen2279
    @kardeslerim-turkishdramaen2279 2 года назад

    You are a guru... hats off .. ur explanations are out of the world..... glad I came to your channel....

  • @keystoneproperties3589
    @keystoneproperties3589 3 года назад +1

    great video! I am new to linux, and definitely very new to containers. Your presentation makes it so easy for beginners like me to start understand the basics of containers, and how to manage them, so i can start building on top of this foundation, thank you!
    One thing I noticed, in the end, you mentioned about setting a boot order, that command parameter is in fact incorrect. I looked it up, it should be called "priority", not "order".
    But thanks again for the great video!

  • @OARomanov
    @OARomanov 3 года назад +1

    LXC/LXD is a grate topic, please go on and thank you for your stuff

  • @billvalvik
    @billvalvik 2 года назад +1

    Great job on this tutorial. Love to hear about the MAAS for LXD as well if you could discuss the clustering as well.

  • @itachiDgr8
    @itachiDgr8 2 года назад

    Great video. I would love to learn more about LXD profiles and how to spawn LXD containers with different packages.

  • @albertoleo9529
    @albertoleo9529 3 года назад +2

    Great video as usual, Jay ! I am (slowly) trying to figure out how to benefit and use containers. I kind of see the great potential but I am not quite there yet (I mean how I can use them for my specific needs). Your video is giving me a big step forward to full understanding! Thank you

    • @LearnLinuxTV
      @LearnLinuxTV  3 года назад +3

      I'm glad you liked it. I think of containers as a tool, and just like any tool, no one has to use it. If it makes sense for the task at hand, then you should use it. But always use the best tool for the job, even if it's not this. For me, I think the smaller resource footprint is what makes containers attractive IMHO.

    • @albertoleo9529
      @albertoleo9529 3 года назад

      @@LearnLinuxTV I love all your videos! Even if my understanding is not even close to 100% yet, I learn a lot every time you publish a video!
      Yes, exactly a tool. And low resources requirements is music for my ears! And I ask myself: could this be the right tool, for example, to use a phisical machine managing containers with let's say a router/firewall container/VM, a storage (NAS) container/VM and a local surveillance container/VM?
      Well, I think this can be done (it is probably what Proxmox does), but I am trying to understand if it is the best way and how to do it in details. I am kind of reluctant to do things blindly. I want to understand at least the principles. I couldn't drive a car without knowing how a clutch or a brake works, even if I am not able to change or repair them myself. But I know how to avoid overheating or other problems and how to use them properly.

  • @OhItsAnthony
    @OhItsAnthony 3 года назад +4

    FYI if you add '00:00 - intro' to the time codes in the description it'll break the video into chapters for you which might make it easier for people to navigate.

    • @fuseteam
      @fuseteam 3 года назад

      i can confirm this

    • @LearnLinuxTV
      @LearnLinuxTV  3 года назад +3

      Thanks! For some reason, that information got deleted from my brain. Thank you for the data recovery 😃

  • @unbekannter_Nutzer
    @unbekannter_Nutzer 3 года назад +1

    Informative, well done presentation.
    One minor issue, I have: You often clear the screen, less than one second after mentioning, what to look for (i.e. 22:33, stopping a container). Why do you do this?
    Many presenters like to clear the screen, but the observer often wants to look left and right, up and down, to compare it with previous output. Don't clear the screen, let it roll out of scope.
    The current command line is easy to identify - it's the last one. : )
    You only know, that you should have pushed the pause button, when the screen is gone, so you have to jump back, search the right position, then hit pause in the right 1/10th of the second, when the output is visiible and not yet cleared again.

  • @BraniZ
    @BraniZ 2 года назад

    The LXD video was very informative.
    I would be interested in more tutorials/videos on lxd/lxc, especially cluster and API of lxd/lxc.

  • @diallomamadouhady5125
    @diallomamadouhady5125 3 года назад

    Thank you very much for your video.
    I learned a lot on lxd.
    Please more video on lxd. I would like to switche to lxd(using docker at the moment).
    Very resumed video.
    Thank you a lot.

  • @whiteheadeaglejv
    @whiteheadeaglejv 3 года назад

    Very nice Video. Would definitely see more videos of this topic. It’s kinda the right thing for my needs.

  • @RafaelFonseca90
    @RafaelFonseca90 3 года назад +2

    Please do more videos about it. It's really awesome ☺️👍

  • @MMANJUNATH18
    @MMANJUNATH18 3 года назад

    Yes more videos are needed in this technology. Advanced stuffs. Nice video

  • @peterkingston4883
    @peterkingston4883 Год назад +1

    I just came across your video and jumped straight into it on the promise of 30 minutes. You did it. So well done.
    It is an excellent tutorial, thank you.
    I have been looking at linux for a couple of weeks now and would like to set up my own containers.
    I work with a couple of developers who use Linux ( I am not one) and I am thinking of moving our virtual machines to one platform to save costs. They will house customer applications for testing etc.
    The LXD site says that the images are not proven and that we should use them at our own peril. I take this to mean that we need to build them ourselves so we know what is in them.
    Have you made a video on creating containers? If not cannot you recommend one.
    Thanks in advance
    PK

  • @szabi0112
    @szabi0112 2 года назад

    I really want to see a clustering video as well. Your videos just simply amazing. Go ahead and do some more please.

  • @sas1one
    @sas1one Год назад

    Thanks!

  • @RiverLiffey23
    @RiverLiffey23 2 года назад

    LXD is awesome, just like your videos. Thank you sir!

  • @altctrlphreak
    @altctrlphreak 3 года назад

    Amazing content, explained in a very simple way and enough to get started!

  • @squalazzo
    @squalazzo 3 года назад

    yes, please, more advanced videos, like how to manage storage to enable persistance of internal data ;)

  • @w1man
    @w1man 3 года назад

    Thanks Jay!
    Hope to see more LXD videos 👍🏼

  • @Kenny_Ded
    @Kenny_Ded 3 года назад +2

    Thanks for the video, Jay. Easy to understand and follow. (As always)
    I'd love to see a follow up video where you go more in depth, like clustering and where you highlight where LXC is beneficial over a VM and vice versa. Can you do HW pass-through, with LXC? Is it only useful for running a headless gust, (CLI) or can you use a desktop environment too?

  • @jsaenzMusic
    @jsaenzMusic 2 года назад

    MAAS yes please! You are badass man, appreciate your vids!

  • @boblehue
    @boblehue 3 года назад +1

    Log in to the container
    "lxc exec ubuntu bash"
    If you have two servers running LXD you can use one to backup containers. You could also migrate the containers between servers and have them running on the backup server while doing maintenance on primary.
    To do this you need to make them available on the network.
    What i do is that i take a snapshot of the container that i want to have a backup of since you can not do this on running containers.
    "lxc snapshot ubuntu snapshot1"
    Then i copy the snapshot to the backup server.
    lxc copy ubuntu/snapshot1 backupserver:ubuntu
    Now you can shutdown container on "prod" server and start it on backup server.
    I love LXC and LXD. If you combain LXD with ansible you can write playbooks to automate you containers like update packages and installing default software you use.

  • @cranebird1467
    @cranebird1467 Год назад

    Thank you! I wish I saw your guide earlier.

  • @gaurishgangwar
    @gaurishgangwar 11 месяцев назад

    Since we already added our user (jay) to lxd group, is using sudo at 12:05 necessary?

  • @dracostyx
    @dracostyx 3 года назад +13

    I’d love it if you make more videos on all the canonical tech like MAAS and Juju

  • @Innocentdarkness72
    @Innocentdarkness72 3 года назад

    this was a nice video, learn alot , now try it myself whate possible....thank you Sir.

  • @laj7405
    @laj7405 3 года назад

    thanks for this wonderful tutorial. much appreciated.!

  • @ndevadas
    @ndevadas 10 месяцев назад

    Thank you. Very informative and useful. I tried on my Ubuntu Descktop now by installing lxd. for some reason I don't get a static ipv4 address for ubuntu containers. I only get a ipv6 address. My Ubuntu laptop is using ConfigurationManager as renderer. Can you provide any idea how to get a static ip associated with the container?

  • @paolodelmundo4641
    @paolodelmundo4641 3 года назад

    such a great video. ON POINT!

  • @majorgear1021
    @majorgear1021 2 года назад

    Do you have a video on LXC? I feel like I should watch that one before this one. I only have a foggy idea of what linux containers are.

  • @spatialtech
    @spatialtech 3 года назад

    Future video idea: would be nice to see an existing LXC container (Debian-base) get modified e.g. install PostGreSQL/PosGIS then saved as a new container that could be deployed on Proxmox. Proxmox admins creating their own custom LXC containers for deployment. A follow-up video could be adding sudo users and setting the postgres password in a cloud-config/turnkey-style mechanism. Thanks for all the videos BTW.

    • @LearnLinuxTV
      @LearnLinuxTV  3 года назад

      That may be a good thing to add to a Proxmox video that I'm thinking of doing, which may or may not end up being a series.

  • @MrJwan
    @MrJwan 2 года назад

    How to automatically backup (schedule backup in case of a hardware failure) a LXD to a remote location so maybe we can restore to another host ?

  • @ajlmusic
    @ajlmusic 2 года назад

    Excellent video!

  • @geoffhalsey2184
    @geoffhalsey2184 3 года назад

    Since watch this lxc video and others, things I'm using lxc for: Pi-Hole, Jellyfin, OpenWRT, Open vSwitch - Openflow for veth ports, and Apache for web development.

  • @andrewsaxby8934
    @andrewsaxby8934 2 года назад

    love the terminal and cursor arrangement whats that called ?

  • @hwy9nightkid
    @hwy9nightkid 2 года назад

    do you by chance have a tutorial for setting up LXD with mac-vlan networking or some way to get the LXD containers onto my LAN DHCP instead of the LXD based NAT?

  • @paulmansfield6218
    @paulmansfield6218 2 года назад

    This is the second video on LXC/LXD I've watched this week that has included the view that data not on a docker volume is lost when you stop the docker container. This is not true, docker containers keep all data changed until you remove (delete) the container. Stopping and starting or restarting does not take it back to a fresh bare image version of the container, it keeps the read-write layer over the top which makes up that version of the container. Test by touching a file in /, stop and start, its still there and / is not a docker volume, its backed by the top read-write layer which is specific to a container i.e. containers nginx1 and nginx2 have different read-write layers. Volumes are meant to support data retention between docker container version upgrades and are about keeping application data outside the container in an easily backed up and replicated location.

  • @RyanCavanaugh-vl2xb
    @RyanCavanaugh-vl2xb 9 месяцев назад

    Jay, I am getting this error. Any way around it?
    Error: Failed to create local member network "lxdbr0" in project "default": Failed generating auto config: Failed to automatically find an unused IPv4 subnet, manual configuration required

  • @gumboe2007
    @gumboe2007 3 года назад

    Great content delivered clearly, thanks

  • @konstantinosnikas73
    @konstantinosnikas73 3 года назад +1

    Great tutorial! Thanks a lot LearnLinuxTV!
    Could we make lxd clustering using lxd VM on a single host "machine"?
    Is there a lxd solution for arm64 architecture (i.e. ubuntu server 64bit on raspberrypi 4), that works properly?

  • @GuillermoPradoObando
    @GuillermoPradoObando 3 года назад +1

    Thanks for this useful content, also is it possible to dig more with lxc and test them working like a servers (ftp, web, etc) it's important to know what is the best use for lxc
    Thanks in advance

  • @nerdnotawheep5474
    @nerdnotawheep5474 3 года назад

    Thanks Jay. Have a good one.

  • @apulacheyt
    @apulacheyt 3 года назад

    Hi Jay excellent intro to LXD and LXC. Definitely additional information is needed to use it.
    I'll assumed that LXD run OCI images?. Can I run LXC on Kubernates or LXD is like a Kubernates for LXC?.
    I'll presumed you can port forwarding services from LXC and share directories or volumes with the hosting OS?.
    I mean having a container that is not ephemeral is great but I would like to know if LXD/LXC are ready to be a feasible option over Docker?
    In my humble opinion a whole series about using LXD/LXC in the real world is required.
    Thanks in advance for sharing your knowledge!!!

  • @toolbelt
    @toolbelt Год назад

    Great video. Thank you.

  • @Antonio-Ma
    @Antonio-Ma 2 года назад

    thank you Jay, very good guide!
    If I may ask, I've a problem with settings of LXD: the network is somehow set to active the network for IPv4 addresses: at the moment, it tries to use only IPv6 and as result network is unavailable to my vm's or containers. Can you suggest me a solution, or a document to study to solve this problem? Thanks again

  • @knightwolf8877
    @knightwolf8877 Год назад

    Do you install on base build server with Ubuntu server then lxd? Or virtualise the server then vm a lxd server?

  • @dhavidcg
    @dhavidcg 2 года назад

    Your terminal client looks really cool, may I ask what is it?

  • @cdyoutoob
    @cdyoutoob 2 года назад +1

    Do we need snap to install lxd as shown or is there an alternative?

    • @markhawkes8006
      @markhawkes8006 Год назад

      ruclips.net/video/FPCCA4c3r-0/видео.htmlsi=SpcTuSPkL1OjcGMT&t=194 demonstrates installing an apt package with `apt install lxd-installer`

  • @FunkyELF
    @FunkyELF 8 месяцев назад

    What is that Bash prompt you're using?

  • @umari.1261
    @umari.1261 3 года назад +1

    can you login to lxc container using like ssh 10.0.10.X ? and then do everything inside just like normal server/vm?

  • @spikeukspikeuk
    @spikeukspikeuk 3 года назад

    Jay, would really like to see more. Am used to using Virtualbox to spin VM's but this can be quite heavy

  • @harir4982
    @harir4982 3 года назад +1

    Is it possible to connect external adapters ( wifi ) to the container???

    • @jeschinstad
      @jeschinstad 3 года назад

      They run natively, so there's usually no reason to. The host has wireless access and then the container has access to the wireless network over the bridge.

  • @solracthegreat1002
    @solracthegreat1002 3 года назад

    Yes please do more LXD videos for Kubernetes and LXD THANKS!!!!!!!!!! can you also please share the command to access the container like -it on Dockers please?

  • @youthfull3616
    @youthfull3616 Год назад

    can you please make a video on how to create a container for system processes or applications

  • @KnowledgeResourceKR
    @KnowledgeResourceKR 2 года назад

    For a more detailed understanding, you can watch the video in the link given below, which illustrates the fundamental concepts around containerization along with Linux containers, docker, and Kubernetes. #lxd #lxc #docker #kubernetes
    ruclips.net/video/TlqD6UXdPHM/видео.html

  • @jennyada1429
    @jennyada1429 26 дней назад

    @Learn linux TV
    I had to run lxc launch ubuntu 24.04 ubuntu
    All ubuntu types were VMs not containers.

  • @parthmaniar
    @parthmaniar 2 года назад

    Hello Jay, I'd like to see a video on MAAS. Thank you very much.

  • @camrouxbg
    @camrouxbg 4 месяца назад

    OK why use snap over the distro repositories? I feel like the repos are more reputable than anything else.

  • @knightwolf8877
    @knightwolf8877 Год назад

    What terminal and GUI are you using?

  • @TomAtkinson
    @TomAtkinson Год назад +1

    I never expected you to say it needs snap. Mostly on account, I am religiously opposed to snap, and am of the (potentially incorrect) view nothing should require it - theoretically - since snap adds zero new functionality (again perhaps I am wrong) that could be considered the best way of doing anything. It does allow one to create apps that are bigger, launch slower, and have less capabilities / less vulnerabilities than a natively compiled app. Hmmm.... odd. I run Linux Mint precisely because it does not have snap.

  • @lolololowbx280
    @lolololowbx280 3 года назад

    How about minione from open nebula? It could manage lxc container too

  • @try-that
    @try-that 3 года назад

    Nice primer. 1st time I've looked at lxd, seems nice, especially after I've tried messing with qemu and libvert, I would like to see a gui of some type, say from a browser. I'll have to have a look.

  • @giridharanr7803
    @giridharanr7803 3 года назад

    Jay, please post a video on MAAS. Thank you

  • @EugeneJrFolse
    @EugeneJrFolse 3 года назад

    What happened to the block device from the lxd init?

  • @cags84
    @cags84 3 года назад

    What program do you record with?

  • @SaiChandraRapolu
    @SaiChandraRapolu Месяц назад

    Can you make a video on console VGA ro acess through rest api or some other ways

  • @tigerfish66
    @tigerfish66 3 года назад

    brilliant content thank you

  • @quilam4734
    @quilam4734 3 месяца назад

    pretty cool! 👽❤💯

  • @cosscat
    @cosscat 3 года назад

    Definitely subscribed to your channel! and pressed that bell :); I would like a video on MAAS; the current video is the first I watch from you so if the MASS video is already available, please ignore.

  • @nicoladellino8124
    @nicoladellino8124 2 года назад

    Nice video, TNX

  • @2008spoonman
    @2008spoonman 3 года назад

    Is it possible to import/use these lxc containers in Proxmox?

    • @eritert
      @eritert 3 года назад

      Maybe. You can create an image from existing containers to save the state

  • @BrianThomas
    @BrianThomas 3 года назад +1

    can this be done on a raspberry pi? I would think so....

  • @ketinmagnus6843
    @ketinmagnus6843 3 года назад +1

    Your last command doesn't work or is not correct.
    "lxc config set debian boot.autostart.order 8
    Error: Invalid config: Unknown configuration key: boot.autostart.order"
    I guess the command:
    lxc config set debian boot.autostart.priority 8
    is the correct command for this.

  • @quangtech
    @quangtech 10 месяцев назад

    Thank you!

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi 3 года назад

    Thank you, Jay. I'm saving this for reference.

  • @ikarm
    @ikarm 8 месяцев назад

    Incus is the way to go now that Canonical has restricted the licence for LXD. The "images" repository is now only available when using Incus.

  • @guestguest8226
    @guestguest8226 3 года назад

    Could you talk about clustering?

  • @nizmister
    @nizmister 3 года назад

    Hi Jay, can you make some videos on Alpine Linux, specifically iSH Shell on iOS)?

    • @LearnLinuxTV
      @LearnLinuxTV  3 года назад

      I'm not sure where that might fit in my schedule but I'll at least consider it. Thanks for the suggestion.

  • @example101
    @example101 3 года назад

    Verses systemd-nspawn?

  • @scruffyjohn5234
    @scruffyjohn5234 Год назад

    Yes do a video on a MAAS server.

  • @chr1z0r
    @chr1z0r 3 года назад

    Interested in MAAS! :)

  • @tomekem3473
    @tomekem3473 3 года назад

    Tutorial about LXD, but the only lxd command actually used is "lxd init" :)
    And yeah, please do clustering as well.

  • @gialnetantonio
    @gialnetantonio 3 года назад +2

    Please, talk about storage