Getting started with LXC containers

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

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

  • @gilulig
    @gilulig 3 года назад +23

    After the first 5-6 minutes regarding this video, I was completely amazed at how clear, concise is, and by the just-right deepness of revealed knowledge. I would love all videos were as good. Thank you.

  • @1017BuurPRODUCTIONS
    @1017BuurPRODUCTIONS 4 года назад +8

    Hey Venkat. Amazing tutorial video. I work with k8s deployment for customers and wasn't aware of lxc containers. This is a game changer!

    • @justmeandopensource
      @justmeandopensource  4 года назад +5

      Hi, thanks for watching. Yes, ever since I discovered LXC, I started using it for everything and almost stopped using Virtual Machines. And my Kubernetes nodes are all LXC containers. Cheers.

  • @ManpreetSingh-og4fy
    @ManpreetSingh-og4fy 2 года назад +3

    This is called great content. Says a lot about the knowledge and understanding of the presenter. Complicated topic explained in the easiest possible manner. Excellent Stuff !!

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

    You have made a very complicated topic look like child's play. Hats off bro and thank you.

  • @manishfoodtechs
    @manishfoodtechs 5 лет назад +1

    I will rate you as best teacher . This is the simplest but robust explanation

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Hi Manish, thanks for watching this video and taking time to comment/appreciate.

  • @prashantsingh1096
    @prashantsingh1096 4 года назад +1

    The best way to learn about containers , because lxc has simple commands . Thanks , The kubernetes and docker are hard to understand comparative to this .

  • @davidmburunjoroge1329
    @davidmburunjoroge1329 Год назад +2

    Concise, very clear and vey easy to understand! Amazing tutorial.... 👏👏👏👏

  • @ajit555db
    @ajit555db 5 лет назад +2

    This is awesome for Windows VirtualBox users. It would allow me to create a single Linux VirtualBox VM and then create multiple lxc containers utilizing all the full resources of my linux VirtualBox VM, keeping it always a clean image. Super efficient utilization of RAM and storage.

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Thanks Ajit for watching this video and sharing your thoughts. Cheers.

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

    The 80% that covers 99% of uses. Superb.

  • @enriquezurita4784
    @enriquezurita4784 4 года назад +10

    Quick, Agile and very well explained. Thank You!!

  • @ishehad8091
    @ishehad8091 2 года назад +2

    Awesome overview - concise, to the point, easy to follow. Good job, bud!

  • @GauravSharma-ui4yd
    @GauravSharma-ui4yd 5 лет назад +4

    Finally i did this. What a hands-on video this is. Great walk-through venkat.
    Can you make such an hands-on video on chroot jail and resource throttling using cgroups

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      Cool. Good job. I will see if I can do those videos. There are lots in my list to do already, so I can't guarantee I am afraid. Cheers.

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

    I've been following your series and I've found them very informative for newbie like me. Thanks a lot sir.

  • @Sarsa78
    @Sarsa78 4 года назад +4

    Master class on LXD thank you man! 39:27 To see the list of snapshot names for a container you can do: lxc info containername and you get the list at the bottom.

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      Hi Eric, thanks for watching.

    • @Sarsa78
      @Sarsa78 4 года назад

      @@justmeandopensource Thank you for putting up this high quality content helping many people like me. Cheers!

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      No worries. My pleasure.

  • @maslo700
    @maslo700 5 лет назад +3

    37:20 You can just type `mkdir $(seq 5)` or simply `mkdir 1 2 3 4 5`. Great video, thanks!

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

    Very comprehensive guide!

  • @TheAirak
    @TheAirak 4 года назад +6

    My time well spent! Thank you very much!

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

    Fantastic presentation! Best I've seen on this topic. Thank you very much!

  • @ItsMe-nl5or
    @ItsMe-nl5or 2 года назад +1

    A very nice, amazing and clear tutorial. You build and structured it very well. Many thanks for that.

  • @makrand1584
    @makrand1584 4 года назад +1

    Nice video Venkat. I wasn't aware about so many things that are possible with LXC. A real good replacement for vagrant & virtual box. and light weight too. BTW, one can always set alais for the image. "lxc image alias create cent7 ". So next time you can launch centos7 container just using "lxc launch cent7 instead of tedious image name.

    • @justmeandopensource
      @justmeandopensource  4 года назад +2

      Hi Makrand, thanks for watching and sharing that wonderful alias tip. Would definitely be helpful. Cheers.

  • @魔君在放克
    @魔君在放克 4 года назад +1

    You are definetely one of the best sharing with us

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

    Awesome you are 🎉 Thank you for your time. Really appreciate 🎉

  • @VJ-po5qh
    @VJ-po5qh 4 года назад +1

    Thanks Venkat, Really super quality stuff, just couple of things which I experienced during testing nested container on CentOS 7 host (VM).
    1) while doing lxc init inside the container it didn't want about security.nesting and security.privileged
    2) was able to create nested container but it only get ipv6 there was not ipv4 or networking enable on it. (no ipv4/default route/gw)

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      Hi VJ, thanks for watching. I haven't explored or experimented much with nested lxc containers. The reason to enable security.nesting is to be able to run docker containers within the lxc containers.

    • @alessonnunes3236
      @alessonnunes3236 4 года назад +1

      @@justmeandopensource Why run docker within lxc. One question more lxd is not an alternative to docker?

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      @@alessonnunes3236 Hi, lxd is not an alternative for Docker. Docker is best suited for application containers running single process. Whereas in LXC/LXD, you can run a full virtualized os in its own namespace.

    • @alessonnunes3236
      @alessonnunes3236 4 года назад +1

      @@justmeandopensource Thanks, well explained, now I'm watching your full playlist. Great videos!

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      @@alessonnunes3236 Thanks for your interest in my videos. Hope you will find it useful.

  • @abessesmahi4888
    @abessesmahi4888 4 года назад +1

    You are a great tutor sir.
    Thank you so much for your efforts.

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

    This is a really nice tutorial. I was able to follow along and setup LXC on my Manjaro system. I do have one suggestion, though: don't clear your terminal so quickly for tutorials and teaching videos. I clear my terminal a lot as I'm working, too, but for the purposes of learning I had to rewind and pause the video quite a lot to see what you just typed and what the output was.

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

      I see your point which is very valid when I think from the viewers point of view. Never thought about it. Thanks for watching. Cheers.

  • @rsrini7
    @rsrini7 5 лет назад +2

    Simply Wow!! "Inception" of Containers.

  • @kb8623
    @kb8623 4 года назад

    Wow wow wow
    Perfect perfect perfect
    Thankssss
    Very very nice tutorial 👌👍👏❤️😊

  • @sujaysaha6323
    @sujaysaha6323 4 года назад +1

    Simple and helpful. Really liked it. Appreciate your work. Keep it up.

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

    Great introduction to lxc/lxd great!

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

    thank you so much for making this video! really appreciate it

  • @TheGdhungana
    @TheGdhungana 5 лет назад +1

    Most awaited video..I hope you would make its series.
    Thanks for your time and effort

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Thanks Ganesh. I will see if I get enough areas/topics around lxd to make it a series. I am planning to do a video on my other series "Learn Kubernetes" about setting up a cluster using LXD containers. So I made this one as an introduction.

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

    Very good. Thanks for sharing

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

    Really glad I circled back to this. Excellent job :)

  •  5 лет назад +1

    Outstanding video! Crystal clear!

  • @pareshpatel493
    @pareshpatel493 4 года назад +1

    Great informative session. So helpful...

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

    Great tutorial Venkat.

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

    Very well done! Direct, to the point w/ good examples. Love it...

  • @adnenettayeb1153
    @adnenettayeb1153 5 лет назад +1

    It's really easy to understand . Thanks for this video .

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

    Many thanks for your excellent work, I was depressed about Kubernetes and Docker till I found your videos. Is there a way to expose a service from a nested container?
    THANKS!!!!!!

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

    Awesome, very clear and eloquent, I have a question, is it practical to use LXC in production env?

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

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

    Excelent video bro. Thanks !!

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

    Thanks. Loved the video.

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

    Thanks Venkat for your clear explanation and instructions. I have a Question for you. Is it possible to run the Provisioning similar to vagrant. Meaning I want to create the kubernetes cluster during the provisioning. In vagrant, it is possible to create our own image containing all the required softwares from the bare OS, then we can use this image for creating the cluster by running kubeadm during provisioning. It takes very less time to bring the entire cluster using this method.

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

      Hi Arun, thanks for watching. LXC images are just a bunch of files that gets extracted when you launch a container. You can build your own lxc container.

  • @jdorgeville
    @jdorgeville 5 лет назад +1

    Cristal clear! Big thanks!

  • @Himanshu-Patel-Clarisights
    @Himanshu-Patel-Clarisights Год назад +1

    Thanks a lot Venkat !!

  • @mandirdarshanarti
    @mandirdarshanarti 5 лет назад +1

    good explanation and quick

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

    Amazing tutorial.

  • @KiranDevraaj
    @KiranDevraaj 5 лет назад +1

    tack sharp on the concepts. thanks for making concepts clear. subscribed !

  • @manikandans8808
    @manikandans8808 5 лет назад +2

    This video makes my system returns from VM to LXD. It saves lots of RAM than the VMs. Thanks for this amazing video. Is there any possible to demonstrate clusters, network and Stroage in future videos? And what's the main difference between LXC and LXD containers?

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      Hi Mani, LXC is the underlying Linux Container libraries and LXD is an interface (REST API) that talks to LXC libraries liblxc. LXD is considered as an extension to LXC to make things easier.

  • @msahsan1
    @msahsan1 4 года назад +2

    Awesome thanks

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

    Thank You !! Awesome

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

    Very informative Thanks. I have a question on lxc container.
    What will happen when call "sys.powerctl" "shutdown" from container? So the shutdown will be applicable to the same contier or whole system?

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

      Hi, thanks for watching. I haven't tried that. Have you?
      Whatever you do within the container shouldn't affect the host system. I guess it wouldn't have permission to shutdown the host system.

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

    Really good tutorials, gave me a hell lot of knowledge...

  • @tamilselvansellamuthu5950
    @tamilselvansellamuthu5950 4 года назад +1

    Thanks Venkat :) it is very informative.

  • @RajarshiBandopadhyay
    @RajarshiBandopadhyay 5 лет назад +1

    Video starts and I see TMUX.
    That is my signal to click on the Subscribe button.

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      Hi Rajarshi, thanks for watching this video and subscribing.

  • @lanceeilers5061
    @lanceeilers5061 4 года назад +5

    Cool stuff :-) have a great one and keep smiling :-)

  • @forrestkong3455
    @forrestkong3455 5 лет назад +1

    Nice Start Video , Great Thanks

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

    Informative Session.. Thanks for sharing your knowledge with us.
    I have one quick question.. just like MongoDB series, are you planning the same for Oracle 12c DBA ?

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

      Hi, thanks for watching.
      Sorry. I am not a DBA and not planning to do Oracle series.

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

    Thank you. B/w what is the screen recorder you use?

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

      Hi Vipin, thanks for watching. I use Simplescreenrecorder. Cheers

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

    this is amazing content

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

    Thanks a lot Venkat,
    do you know how to migrate LXC containers in cloud ?

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

      Hi, thanks for watching. I haven’t tried this in the cloud though. So sorry no idea. Cheers.

  • @ash-lo2dc
    @ash-lo2dc 3 года назад

    Very informative thanks

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

    Great tutorial!!

  • @surugiualexandru5151
    @surugiualexandru5151 4 года назад +1

    Very good video, Thank you!

  • @texaslinux
    @texaslinux 5 лет назад +2

    This was really fantastic, thank you so much!

  • @robertalvaradolugo3010
    @robertalvaradolugo3010 4 года назад +1

    Great men

  • @AfshinKarimi-l1d
    @AfshinKarimi-l1d Год назад

    Thank you for sharing your knowledge. i have a question, in "lxc list" output in the type section, i see only "container" and "virtual-machine", your type is persistent. what is the difference? my second question is that my lxc container doesn't get an ipv4 address, what did a do wrong?

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

    The best!

  • @qwerty180119990
    @qwerty180119990 5 лет назад +1

    Loved the tutorial...Thanks a ton!!!

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      Hi Ayan, thanks for watching this video. I am planning to do more videos on LXC/LXD. So stay tuned. Cheers.

  • @rukey3001
    @rukey3001 4 года назад +2

    Thank u very much for the tutorial . When I run "$ lxc image list" command, ,mine shows "container" instead of “persistent “. What am I doing wrong??

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

    Thanks sir

  • @vshnukantr9152
    @vshnukantr9152 4 года назад +1

    Hello Venkat,
    Thanks for the video.
    I have a question. I am running a hyper v session on windows 10 with ubuntu image. Inside the VM, I started playing around by installing lxc containers for centos and also for ubuntu18.04 for trying out the mongodb replicaset. However, a lot of my disk space on PC was consumed. I started with having 50 GB and ended up with 20 GB free space and a lot of warnings.
    You mention that the image size is very light around 180 MB lets say...
    Trying to understand what takes up a lot of memory and how to I clean up the memory ? I have cleaned the lxc containers and stopped the lxd service. (new to the VM world)

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      Hi, thanks for watching. Its your Ubuntu virtual machine that has taken those space. All the LXC containers are just light weight and small sized that are only living inside your Ubuntu virtual machine.

    • @vshnukantr9152
      @vshnukantr9152 4 года назад

      @@justmeandopensource Hello Venkat. Indeed you are right. The VM took the space. Actually I clicked on checkpoint option and it consumed 5GB data. Later I deleted and disabled the checkpoint. Also, I had to allocate extra space for VM because we had to install docker on the lxc container instances. Good learning curve. Thanks for the response.

    • @justmeandopensource
      @justmeandopensource  4 года назад

      @@vshnukantr9152 No worries.

  • @AhmedMahmoud-tr1yf
    @AhmedMahmoud-tr1yf 4 года назад +1

    Thanks for all of these amazing videos!
    quite new to linux, may I ask you which widget/tool/software you use to show your system monitoring metrics always on top of everything? I like it so much.

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      Hi Ahmed, thanks for watching. The system status you are seeing on the right side of my desktop is from conky. I used to use conky and had a custom conkyrc config file. But I don't use it these days and unfortunately I didn't save that config file anywhere. You can install conky and hunt for conkyrc file online and you will find lots of cool configs. Cheers.

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

    Sir, do you use as your daily driver?, if you are using.. what are all the challanges you face with work environment and Linux users?

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      Hi Hari, are you asking about the operating system I use on a daily basis? If so, I use Arch Linux with Gnome desktop environment. I used to use I3 tiling window manager but switched to Gnome since its version 3.36. Linux has been my daily driver for more than a decade.

  • @toshn4151
    @toshn4151 4 года назад +1

    This is great, thank you!

  • @utvikler-no
    @utvikler-no 5 лет назад +1

    Thanks for an awesome introduction ;-)

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Thanks for watching this video Tom and taking time to comment. Cheers

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

    Hi Venkat. Great course again. One question - can i install Lxd on my raspberri pi ?

  • @shravansingh8609
    @shravansingh8609 5 лет назад +1

    hey mate thanks for video. in this video would u work on 2 terminal simultaneously???

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Hi Shravan,
      What do you mean? I use tmux and I split panes. If I want to run commands on multiple panes simultaneously, then I can syncrhonise the panes.When I type a command on one pane it gets typed on all the panes. If this is what you mean.
      Thanks,
      Venkat

    • @shravansingh8609
      @shravansingh8609 5 лет назад +1

      Thnx venkat i understand the idea

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      @@shravansingh8609 Cool.

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

    Valeu!

  • @william8106
    @william8106 5 лет назад +1

    You're the best

  • @jamallmahmoudi9481
    @jamallmahmoudi9481 4 года назад +1

    so usefullllllll.

  • @myrnarai7798
    @myrnarai7798 5 лет назад +1

    Thanks for informative video. Could you tell me how can we write hello World in the container

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Hi Mehwish, thanks for watching this video. I am not sure what you want to do. You can create a simple container for example an Ubuntu container using below command.
      $ lxc launch ubuntu:18.04 mycontainer
      Then get a shell into the containers using
      $ lxc exec mycontainer -- bash
      Thanks.

  • @vijaychebium3216
    @vijaychebium3216 5 лет назад +2

    Hey. thanks for the video. This is exactly what I am looking for. A couple of questions. VM's, LXC/ LXD, Application containers are in three separate physical machines? Can i run hypervisor, LXC/ LXD, Application container (Docker engine) on single host OS?

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Hi Vijay, thanks for watching this video. Yes you can run all of them in single host. Thanks.

    • @vijaychebium3216
      @vijaychebium3216 5 лет назад +1

      @@justmeandopensource My problem is I can't ping the LXC container from Host OS. however, I am able to ping btw LXC containers and to the internet as well. I have attached OVS to my host OS.

    • @vijaychebium3216
      @vijaychebium3216 5 лет назад +1

      Issue resolved after changing the lxc profile from macvlan to bridge

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      @@vijaychebium3216 glad that you resolved. When I did lxd init, the default network that was setup automatically was a bridge network. Thanks.

    • @vijaychebium3216
      @vijaychebium3216 5 лет назад +1

      @@justmeandopensource How to change the LXC container storage (Dir) to btrfs?

  • @sucess-frame7476
    @sucess-frame7476 3 года назад +1

    best ;;;

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

    Do you know what would happen if I shrink the memory for a container bellow the current usage?

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

    Hello, I have a question regarding the deployment of charmed kubernetes with LXD. How can I expose the cluster to the internet? I've deployed it on bare-metal server on Hetzner with Traefik as a load balancer and added metallb to assign external ip to it. When I try to connect to that IP nothing happens (usually I had 404 not found from traefik while using other kubernetes solutions).

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

    We are looking for Hypervisor solution, our requirement is to use two displays, two independent users with extensive multimedia use cases,
    Does LXC container replace the Hypervisor in our use case?

  • @lukebakare9423
    @lukebakare9423 5 лет назад +1

    I finessed down western road, ay Nest 6:25 ay

  • @anusham3964
    @anusham3964 5 лет назад +1

    Can I convert a lxc container to docker container or how to run and start a lxc container inside docker

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Hi Anusha, thanks for watching this video. Both of your questions are not a valid use case. No one would want to do that.
      LXC is different than docker.
      LXC is a full blown virtual machine running under the host kernel and isolated file system without the need of hypervisor like VirtualBox.
      Docker is for application isolation. You package your application along with supporting libraries into a container and you run single process on docker container.
      There are hacky ways to convert lxc container to docker container by exporting lxc container to a tar ball and using Dockerfile to import that filesystem. But its not a valid scenario.
      Your other question also doesn't make sense. Hope you understand the difference between LXC and Docker containers. They are built for separate purposes.
      Hope this makes sense.
      Thanks.

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

    hello friend, it that container technology suitable for creating vps instead of vm?

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

      Hi, thanks for watching. LXC containers are essentially system containers that mimic an entire operating system as opposed to Docker containers which are application containers. VPS is virtual private server which is basically a virtual machine. So you could use lxc containers for that as you would for a vm. Cheers.

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

      @@justmeandopensource hello friend, can we meet in zoom or team for further discussion? if you have time you can support me in work

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

      @@maherkhalil007 Thanks for your interest. But I am afraid I can't do 1 to 1 training support as I have a primary 9-5 job. I post videos whenever I get some time and answer questions in the comments section whenever I can. Sorry. Cheers.

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

      @@justmeandopensource hello my fiend, I also have good experience but I will need some help to my questions then I can do my work. we can meet 1 or 2 times only per week then you can guide me

  • @chinmaygokhale1321
    @chinmaygokhale1321 5 лет назад +1

    Is it possible to to install and run an arm Linux image using LXC on an x86 machine.
    If yes then I will you be able to make a tutorial for the same.
    Thanks in advance!!

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      Hi Chinmay, thanks for watching this video. It won't be possible to launch an arm container in a non-arm architecture host. I tested this.
      $ lxc launch images:centos/7/arm64 test
      Creating test
      Error: Failed container creation: Create container: Requested architecture isn't supported by this host
      Thanks

  • @manikandans8808
    @manikandans8808 5 лет назад +1

    When I use macvlan as network interface , it can ping between the containers only but it does not ping the host machine ( mycase Ubuntu 18.04) since it has the same ip range. Would there be a solution for it?

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      Hmmm. I have never used macvlan interface on the virtual machines or containers. May be the below stack overflow link could help.
      ruclips.net/video/ExNDL5QLNrY/видео.html
      They were talking about enabling promiscous mode on the interface.

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

    how did you make the terminal windows connected to each other like that

  • @24041984girish
    @24041984girish 5 лет назад +1

    Where will be the Network configuration details for these container? I am trying to create a bridged interface to allow my other network hosts to access these container.
    I need to update following parameters: lxc.network.link, lxc.network.ipv4/6, lxc.network.ipv4/6, lxc.network.veth.pair etc.
    Could you help?

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Hi Girish, Thanks for watching this video.
      By default lxc containers can talk to internet and other hosts in your host network range by lxcbr0 bridge interface using NAT. But other hosts in the network won't be able to talk to your containers. You have to configure macvlan for this.
      There is a good article/blog post written by someone which might help you in the right direction. Please check the below link.
      www.thegeekdiary.com/how-to-set-external-network-for-containers-in-linux-containers-lxc/
      Thanks.

    • @24041984girish
      @24041984girish 5 лет назад +1

      @@justmeandopensource Thanks for the video and your reply. actually, I am facing 2 problems right now. the link you gave also creating a new bridged interface and modifying in container config file.
      First, after creating new bridged interface in /etc/network/interfaces my host lost the internet connection.
      Second, not able to find network configuration details for these containers. though, i find \etc\lxc\default.conf

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      @@24041984girish I will have to try that in my machine. I will let you know if I get anywhere with it. Thanks.

  • @RafaelLorenteSalgueiro
    @RafaelLorenteSalgueiro 4 года назад

    thanks, someone ask about your terminal configuration?

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

    Sir, how secure is lxd , if we are running kali linux and there is a chance of tracing us

    • @justmeandopensource
      @justmeandopensource  4 года назад +2

      Hi Hari, thanks for watching. Containers are secure by themselves in that it runs in an isolated namespace. It won't be able to access any filesystems on the host. Anyways you will have to secure your host. Anyone having access to your host will be able to access the container.

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

    Any video related to LXC

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

      Hi, thanks for watching. What exactly you are looking for? This playlist is about lxd which uses lxc underneath. LXC is the kernel feature and LXD is the REST API that makes it easier to use LXC.

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

      @@justmeandopensource Thanks for the quick reply

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

      @@balamuruganvms5158 You are welcome.

  • @OlegKorsak
    @OlegKorsak 4 года назад +1

    lxc info will show all snapshots for that container

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      Hi Oleg, thanks for watching. Yes lxc info is your friend.

  • @avimehenwal
    @avimehenwal 5 лет назад +1

    Is there any analogous file for LXC like docker has DOCKERFILE?

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Hi Avi, thanks for watching this video. I have seen few github projects for that. But I haven't tried any of them. Thanks.

    • @avimehenwal
      @avimehenwal 5 лет назад +1

      @@justmeandopensource Thanks for your quick reply :) I have been using docker for some time and I more familiar with the tooling that comes along with docker toolchain.
      Just another curious question if you would like to answer it.
      Is there any special use-case(s) where LXC containers beats (or stands apart) from other container technology especially docker ?
      For me, I see provisioning LXC containers (with apps and services) could be a problem

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      @@avimehenwal Hi, apologies for the late reply as the comment was flagged as spam and I didn't get the notification.
      Right, LXC and Docker have different usecases. LXC is a light-weight Linux environment that uses the host Operating systems capabilities. You can use it as a complete virtual machine. Whereas Docker is used primarily for application isolation. You package your application into container along with all the dependencies into it, so that it can run on any machine with docker runtime installed.
      With Docker, you run a single service inside a container. It is for packaging your application. And LXC is a complete virtual machine without hypervisor layer.
      What problem do you see with apps and services in LXC containers?
      Thanks

    • @avimehenwal
      @avimehenwal 5 лет назад +1

      @@justmeandopensource Like I still do not know how to package it, I read there is something like snapshot and external tool like ansible could be use to provision LXC with apps and service we want, I am just not sure if there is any LXC-way of saving our images and reusing them in future

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      @@avimehenwal Hi, see if this helps. Creating snapshot, exporting it as tarball, then importing the tarball on another server and init'ing the image.
      discuss.linuxcontainers.org/t/backup-the-container-and-install-it-on-another-server/463/2
      Thanks