Thank you, Aaron!! I've been loving learning about, and using, LXD! Creating virtual infrastructure is so easy and accessible for anyone these days! Cheers
Quick question. when you don't pass --vm flag, it creates a Container. So curious what's the difference betweenn VM and Container. Also what's the difference between Docker container vs lxd container? thanks
@@prajganesh great question! I'm not familiar with all the differences between LXC and Docker containers. I mainly just used LXD to create VMs. I'm sure there's some articles that go into more depth about the differences.
@@TrevorSullivan Thanks for the quick response. I guess with --vm you get a separate vm to do whatever you want to do. if you try to use lxc in a EC2 instance, it only allows you to create containers.. we have to use bare metal EC2 if you need to use --vm.
@@prajganesh yeah that's exactly right, you'd have to use the metal instance types in EC2. I use LXD to create VMs on physical custom built systems at home.
@@TrevorSullivan I'm trying to use it but was getting a kvm error when trying to create a virtual machine with lxc command. I found a guy that did get lxd to work on Windows so I'm going to give it a try. Hopefully it just didnt like hyper-v. I installed Ubuntu from Microsoft Store. ruclips.net/video/xmZcsq8Mqk4/видео.html
@@TrevorSullivan I'm using LXD. I was able to create a container but not VM, Creating the instance Error: Failed instance creation: Failed creating instance record: Instance type "virtual-machine" is not supported on this server: vhost_vsock kernel module not loaded
This has to do with docker engine messing with iptables firewall, i added 2 lines sudo iptables -A FORWARD -i lxdbr0 -j sudo iptables -A FORWARD -o lxdbr0 -j ACCEPT for the bridge adaptor and i was able to get the vm update and upgrades running.
do you think you can elaborate a little on the server side? are you using a server thats in your house or are you paying for access to a server just trying to learn and i cant do that without knowing the step before this and i cant find any documentation on it or sure what to even google if you could help that would be amazing im not expecting a full blown tutorial just a push in the right direction thanks :)
Hello Trevor... back again... I wanted to ask if you have a resource explaining how to create a container with ssh keys pulled from the host or from a github repo?
Hello there! Are you trying to set up an SSH service inside of a container? Is the intent to SSH into the container for debugging? Just curious on more about your use case, thanks!
@@bitferret-rx5rn oh I think I see what you mean. You want to import the SSH authorized_keys from the host, when you create a new container? I would think this is possible using a bind mount. Do you know how those work? It basically just links a file or directory inside the container back to the host's file system.
Hello I do not understand this video You didn't show step by step for windows users You started form your own vm Please make it understandable for windows users
Here's a playlist dedicated to LXD! ruclips.net/p/PLDbRgZ0OOEpX_uqK_hAq98ltdc4DP-D34
Hey Trevor, just wanted to say that this video series is excellent. Thank you for sharing your knowledge with the world!
Thank you, Aaron!! I've been loving learning about, and using, LXD! Creating virtual infrastructure is so easy and accessible for anyone these days! Cheers
Great video. Thank you.
Quick question. when you don't pass --vm flag, it creates a Container. So curious what's the difference betweenn VM and Container. Also what's the difference between Docker container vs lxd container? thanks
@@prajganesh great question! I'm not familiar with all the differences between LXC and Docker containers. I mainly just used LXD to create VMs. I'm sure there's some articles that go into more depth about the differences.
@@TrevorSullivan Thanks for the quick response. I guess with --vm you get a separate vm to do whatever you want to do. if you try to use lxc in a EC2 instance, it only allows you to create containers.. we have to use bare metal EC2 if you need to use --vm.
@@prajganesh yeah that's exactly right, you'd have to use the metal instance types in EC2. I use LXD to create VMs on physical custom built systems at home.
Error: The remote isn't a private LXD server
you should make the bottom of the video darker so its easier to see the time stamps
Good idea, thanks!
how do you get kvm to work on intel i5 windows box with a linux hyper-v vm?
I'm not sure about KVM, sorry. LXD is pretty awesome though. Any reason you can't use it?
@@TrevorSullivan I'm trying to use it but was getting a kvm error when trying to create a virtual machine with lxc command. I found a guy that did get lxd to work on Windows so I'm going to give it a try. Hopefully it just didnt like hyper-v. I installed Ubuntu from Microsoft Store. ruclips.net/video/xmZcsq8Mqk4/видео.html
@@TrevorSullivan I'm using LXD. I was able to create a container but not VM, Creating the instance
Error: Failed instance creation: Failed creating instance record: Instance type "virtual-machine" is not supported on this server: vhost_vsock kernel module not loaded
Very nice video, THX.
Hi Trevor, im unable to apt update or upgrade my ubuntu-vm , do you know how can i troubleshoot this? Thanks, great videos
@@Tmacs-yp6vv thanks for your kind comment. 😊 What error are you getting from apt CLI? Are you positive the VM has internet access?
This has to do with docker engine messing with iptables firewall, i added 2 lines sudo iptables -A FORWARD -i lxdbr0 -j
sudo iptables -A FORWARD -o lxdbr0 -j ACCEPT for the bridge adaptor and i was able to get the vm update and upgrades running.
@trevor Sullivan, I got a penny for your thoughts on canonical's microcloud.. which is built on lxd!! Lemme know when the video is ready 😀
How is it different from docker?
Docker does not create virtual machines. It creates containers that isolate processes.
do you think you can elaborate a little on the server side? are you using a server thats in your house or are you paying for access to a server just trying to learn and i cant do that without knowing the step before this and i cant find any documentation on it or sure what to even google if you could help that would be amazing im not expecting a full blown tutorial just a push in the right direction thanks :)
Great question! I have an older desktop workstation at home that I've installed Ubuntu Server on. That's what I used to run LXD VMs on!
Hello Trevor... back again... I wanted to ask if you have a resource explaining how to create a container with ssh keys pulled from the host or from a github repo?
Hello there! Are you trying to set up an SSH service inside of a container? Is the intent to SSH into the container for debugging? Just curious on more about your use case, thanks!
Hello @@TrevorSullivan... I am trying to provision the container with authorised ssh keys so I can login without password
@@bitferret-rx5rn oh I think I see what you mean. You want to import the SSH authorized_keys from the host, when you create a new container? I would think this is possible using a bind mount. Do you know how those work? It basically just links a file or directory inside the container back to the host's file system.
@@TrevorSullivan yes.. I realised cloud-init can do that. I am still reading and practicing to find a good path
Davis Ruth Thomas James Lopez Thomas
Hello I do not understand this video
You didn't show step by step for windows users
You started form your own vm
Please make it understandable for windows users
windows user are not allowed here