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.
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.
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 !!
The best way to learn about containers , because lxc has simple commands . Thanks , The kubernetes and docker are hard to understand comparative to this .
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.
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
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.
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.
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)
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 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.
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.
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.
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!!!!!!
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
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.
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.
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?
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.
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?
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.
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 ?
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?
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)
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.
@@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.
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.
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.
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.
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
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.
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 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.
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).
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?
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.
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 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.
@@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
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!!
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
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?
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.
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?
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.
@@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
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.
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.
@@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
@@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
@@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
@@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
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.
Hi Raoul, many thanks for watching. Cheers.
Hey Venkat. Amazing tutorial video. I work with k8s deployment for customers and wasn't aware of lxc containers. This is a game changer!
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.
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 !!
Hi Manpreet, thanks for watching.
You have made a very complicated topic look like child's play. Hats off bro and thank you.
Hi, Thanks for watching.
I will rate you as best teacher . This is the simplest but robust explanation
Hi Manish, thanks for watching this video and taking time to comment/appreciate.
The best way to learn about containers , because lxc has simple commands . Thanks , The kubernetes and docker are hard to understand comparative to this .
Hi Prashant, thanks for watching.
Concise, very clear and vey easy to understand! Amazing tutorial.... 👏👏👏👏
Hi David, thanks for watching.
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.
Thanks Ajit for watching this video and sharing your thoughts. Cheers.
The 80% that covers 99% of uses. Superb.
Thanks for watching.
Quick, Agile and very well explained. Thank You!!
Hi Enrique, thanks for watching.
Awesome overview - concise, to the point, easy to follow. Good job, bud!
HI Ish, many thanks for watching. Cheers.
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
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.
I've been following your series and I've found them very informative for newbie like me. Thanks a lot sir.
Hi, Thanks for watching.
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.
Hi Eric, thanks for watching.
@@justmeandopensource Thank you for putting up this high quality content helping many people like me. Cheers!
No worries. My pleasure.
37:20 You can just type `mkdir $(seq 5)` or simply `mkdir 1 2 3 4 5`. Great video, thanks!
Hi Greg, thanks for watching. Yeah I could have used that. But sometimes muscle memory kicks in.
mkdir {1..5}
Very comprehensive guide!
Hi David, thanks for watching.
My time well spent! Thank you very much!
Thanks for watching.
Fantastic presentation! Best I've seen on this topic. Thank you very much!
Hi Vishnu, Thanks Thanks for watching.
A very nice, amazing and clear tutorial. You build and structured it very well. Many thanks for that.
Hi, thanks for watching.
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.
Hi Makrand, thanks for watching and sharing that wonderful alias tip. Would definitely be helpful. Cheers.
You are definetely one of the best sharing with us
Hi Phentony, thanks for watching.
Awesome you are 🎉 Thank you for your time. Really appreciate 🎉
Thanks for watching.
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)
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.
@@justmeandopensource Why run docker within lxc. One question more lxd is not an alternative to docker?
@@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.
@@justmeandopensource Thanks, well explained, now I'm watching your full playlist. Great videos!
@@alessonnunes3236 Thanks for your interest in my videos. Hope you will find it useful.
You are a great tutor sir.
Thank you so much for your efforts.
Hi Abesse, thanks for watching.
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.
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.
Simply Wow!! "Inception" of Containers.
Thanks for watching this video Srini.
Wow wow wow
Perfect perfect perfect
Thankssss
Very very nice tutorial 👌👍👏❤️😊
Simple and helpful. Really liked it. Appreciate your work. Keep it up.
Hi, thanks for watching.
Great introduction to lxc/lxd great!
Hi, Thanks for watching.
thank you so much for making this video! really appreciate it
Hi, thanks for watching. 🙂
Most awaited video..I hope you would make its series.
Thanks for your time and effort
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.
Very good. Thanks for sharing
Hi Ronan, thanks for watching.
Really glad I circled back to this. Excellent job :)
Hi, thanks for watching.
Outstanding video! Crystal clear!
Hi Herve, Thanks for watching this video.
Great informative session. So helpful...
Hi Paresh, thanks for watching.
Great tutorial Venkat.
Very well done! Direct, to the point w/ good examples. Love it...
Hi Tony, many thanks for watching. Cheers.
Hi Tony, many thanks for watching. Cheers.
It's really easy to understand . Thanks for this video .
Hi Adnen, many thanks for watching this video.
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!!!!!!
Awesome, very clear and eloquent, I have a question, is it practical to use LXC in production env?
Hi Kourosh, Thanks for watching.
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
Excelent video bro. Thanks !!
Thanks for watching.
Thanks. Loved the video.
Hi Seejan, thanks for watching. Cheers.
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.
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.
Cristal clear! Big thanks!
Hi Jan, many thanks for watching this video. Cheers.
Thanks a lot Venkat !!
Hi Himanshu, thanks for washing.
good explanation and quick
Hi Piyush, thanks for watching this video.
Amazing tutorial.
Hi, Thanks for watching.
tack sharp on the concepts. thanks for making concepts clear. subscribed !
Hi Kiran, thanks for watching this video.
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?
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.
Awesome thanks
You are welcome.
Thank You !! Awesome
Hi, thanks for watching.
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?
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.
Really good tutorials, gave me a hell lot of knowledge...
Hi, thanks for watching. Cheers.
@@justmeandopensource 😁
Thanks Venkat :) it is very informative.
Hi Tamil, thanks for watching.
Video starts and I see TMUX.
That is my signal to click on the Subscribe button.
Hi Rajarshi, thanks for watching this video and subscribing.
Cool stuff :-) have a great one and keep smiling :-)
Thanks for watching.
Nice Start Video , Great Thanks
Hi FanJun, thanks for watching this video.
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 ?
Hi, thanks for watching.
Sorry. I am not a DBA and not planning to do Oracle series.
Thank you. B/w what is the screen recorder you use?
Hi Vipin, thanks for watching. I use Simplescreenrecorder. Cheers
this is amazing content
Thanks for watching.
Thanks a lot Venkat,
do you know how to migrate LXC containers in cloud ?
Hi, thanks for watching. I haven’t tried this in the cloud though. So sorry no idea. Cheers.
Very informative thanks
Hi, thanks for watching. CHeers.
Great tutorial!!
Hi, thanks for watching.
Very good video, Thank you!
Hi Surugiu, thanks for watching. Cheers.
This was really fantastic, thank you so much!
Hi Keith, thanks for watching this video.
Great men
Hi Robert, thanks for watching.
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?
The best!
Hi Nestor, thanks for watching.
Loved the tutorial...Thanks a ton!!!
Hi Ayan, thanks for watching this video. I am planning to do more videos on LXC/LXD. So stay tuned. Cheers.
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??
Thanks sir
Hi Subhankar, Thanks for watching.
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)
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.
@@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.
@@vshnukantr9152 No worries.
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.
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.
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?
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.
This is great, thank you!
Hi Tosh, thanks for watching.
Thanks for an awesome introduction ;-)
Thanks for watching this video Tom and taking time to comment. Cheers
Hi Venkat. Great course again. One question - can i install Lxd on my raspberri pi ?
hey mate thanks for video. in this video would u work on 2 terminal simultaneously???
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
Thnx venkat i understand the idea
@@shravansingh8609 Cool.
Valeu!
You're the best
Hi William, many thanks for watching this video.
so usefullllllll.
Hi, thanks for watching. Cheers.
Thanks for informative video. Could you tell me how can we write hello World in the container
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.
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?
Hi Vijay, thanks for watching this video. Yes you can run all of them in single host. Thanks.
@@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.
Issue resolved after changing the lxc profile from macvlan to bridge
@@vijaychebium3216 glad that you resolved. When I did lxd init, the default network that was setup automatically was a bridge network. Thanks.
@@justmeandopensource How to change the LXC container storage (Dir) to btrfs?
best ;;;
Thanks for watching. Cheers
Do you know what would happen if I shrink the memory for a container bellow the current usage?
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).
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?
I finessed down western road, ay Nest 6:25 ay
Cool.
Can I convert a lxc container to docker container or how to run and start a lxc container inside docker
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.
hello friend, it that container technology suitable for creating vps instead of vm?
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.
@@justmeandopensource hello friend, can we meet in zoom or team for further discussion? if you have time you can support me in work
@@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.
@@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
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!!
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
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?
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.
how did you make the terminal windows connected to each other like that
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?
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.
@@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
@@24041984girish I will have to try that in my machine. I will let you know if I get anywhere with it. Thanks.
thanks, someone ask about your terminal configuration?
Sir, how secure is lxd , if we are running kali linux and there is a chance of tracing us
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.
Any video related to LXC
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.
@@justmeandopensource Thanks for the quick reply
@@balamuruganvms5158 You are welcome.
lxc info will show all snapshots for that container
Hi Oleg, thanks for watching. Yes lxc info is your friend.
Is there any analogous file for LXC like docker has DOCKERFILE?
Hi Avi, thanks for watching this video. I have seen few github projects for that. But I haven't tried any of them. Thanks.
@@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
@@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
@@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
@@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