Configure Networking for LXD Virtual Machines on Ubuntu Linux | Open Source | DevOps | Software

  Рет қаралды 5,245

Trevor Sullivan

Trevor Sullivan

Күн бұрын

Пікірлер: 36
@TrevorSullivan
@TrevorSullivan Жыл бұрын
Here's a playlist dedicated to LXD! kzbin.info/aero/PLDbRgZ0OOEpX_uqK_hAq98ltdc4DP-D34
@pipi_delina
@pipi_delina Жыл бұрын
Thanks
@ndevadas
@ndevadas 7 ай бұрын
when I list lxc list I don't get a ip4 hence I cannot connect to internet from windows 11. I have ip6 address though. Do you know there reason or a work around. My lxd/lxc version is 5.20. Thank you.
@TrevorSullivan
@TrevorSullivan 7 ай бұрын
@@ndevadas Are you using the default network configuration in LXD? I have seen a number of cases where virtual machines do not get IPv4 addresses. In particular, I noticed this when using LXD on a Hyper-V virtual machine. Are you running LXD under a VM, or is it on bare metal?
@ndevadas
@ndevadas 7 ай бұрын
@@TrevorSullivan yes, I ran lxd init and accepted default answers. I then created an Ubuntu 22.04 container. Lxc list does not get a ipv4 private IP. Lxc network list has a range assigned correctly.
@ndevadas
@ndevadas 7 ай бұрын
yes bare metal.
@u07t17
@u07t17 Жыл бұрын
Thanks Trevor! Working an internal cloud POC and will use this information. Thank you.
@erikzulu
@erikzulu Жыл бұрын
Nice! informative, thank you.
@ewenchan1239
@ewenchan1239 6 ай бұрын
I'm running LXD on Proxmox 7.4-17 (Debian 11) directly itself. Given that, Proxmox has already taken over my physical network interfaces with the network bridge. So...how do I connect the CTs/VMs that are managed by LXD to the network such that it would still be able to see the host? Is this a scenario where I would need to add an additional network card because I won't be able to piggy-back off of my existing network? Your help is greatly appreciated. Thank you.
@capcata
@capcata 6 ай бұрын
Secondaty ip on host for bridge fwd!!!! I spent days until found your video.
@TrevorSullivan
@TrevorSullivan 6 ай бұрын
I'm glad you solved it! ☺️
@sanjayidpuganti
@sanjayidpuganti 7 ай бұрын
Thanks Trevor. Helped me a lot.
@madhusudanbv7056
@madhusudanbv7056 6 ай бұрын
Hi Trevor - Great tutorial! Thanks. I have a question. Why can't we just add a route to the bridged network from our physical host?. I tried this and it works.
@TrevorSullivan
@TrevorSullivan 6 ай бұрын
That's a great idea! Sometimes the simplest solution is the best! 😊 Thanks for joining my channel! I'm glad this has been helpful for you.
@TrevorSullivan
@TrevorSullivan 6 ай бұрын
Keep in mind that you'll have to add a route for any other systems, to route through the physical host, in order to access the VM. The way you did it, will only allow the physical host to access the VM. You could probably add the route at your router, and make sure you enable routing in the host's kernel also.
@madhusudanbv7056
@madhusudanbv7056 6 ай бұрын
@@TrevorSullivan : Thank you. Yes. As I am connected to a Wi-Fi network currently and the router's static route doesn't pass through. I will implement this once am in wired network :) I am not sure if the routes can be passed using wifi network.
@TrevorSullivan
@TrevorSullivan 6 ай бұрын
@@madhusudanbv7056 if you add a route to your Internet router, it will apply to your client device regardless of if it's Wi-Fi or wired.
@CQ123
@CQ123 5 ай бұрын
I really would like to see a video explaining the real benefit of using LXD instead pure-LXC. All those networking options are pretty simple to do on pure-LXC side, without pushing extra lines of code to the system. I easy use pure bash scripts to automate most of what LXD does... but.. the LXD project probably is much more - and very bad communicated to the community. My 2 cents.
@henryschroer
@henryschroer 9 ай бұрын
how can a LXC VM or container talk to another container on the same LXD cluster?
@TrevorSullivan
@TrevorSullivan 9 ай бұрын
I have another video that talks about clustering with LXD
@adahaj
@adahaj Жыл бұрын
How can I access the VM created using LXD via SSH ?
@TrevorSullivan
@TrevorSullivan 11 ай бұрын
You'll have to set up SSH authentication inside the VM. This guide doesn't cover that specific topic, but I'm sure there are hundreds, if not thousands, of guides on setting up SSH authentication! You might have to install the "openssh-server" package with "apt-get" as well.
@bitferret-rx5rn
@bitferret-rx5rn 8 ай бұрын
Hello @trevor... by chance have you gotten this error before... I am trying to create a centos7 container on an LXD host that is running ubuntu 22.04. Error: Failed instance creation: Failed getting remote image info: Failed getting image: The requested image couldn't be found
@TrevorSullivan
@TrevorSullivan 8 ай бұрын
Hey there, you can't use Docker Hub images to launch LXC containers. Check the Linux containers server to see which images are available.
@bitferret-rx5rn
@bitferret-rx5rn 8 ай бұрын
@@TrevorSullivan this is the command... I am sure its a lxd command.. "lxc launch images:centos/7/amd64 cenots-db"
@TrevorSullivan
@TrevorSullivan 8 ай бұрын
@@bitferret-rx5rn That command worked fine for me, except I got a new error saying "Error: The image used by this instance requires a CGroupV1 host system" .. I am not sure what that means.
@bitferret-rx5rn
@bitferret-rx5rn 8 ай бұрын
@@TrevorSullivan before I placed the firewall rule to allow traffic in and out, it worked only I could not get ip... After the change I got the error
@TrevorSullivan
@TrevorSullivan 8 ай бұрын
@@bitferret-rx5rn well it sounds like you've identified the root cause of your issue 😊 I'm sorry, I can't help with your firewall configuration most likely. I'd recommend looking at any proxy settings that could interfere with requests to the image retrieval service.
@barma1309
@barma1309 11 ай бұрын
Can you show command for add nic to profile bridge ?
@barma1309
@barma1309 11 ай бұрын
i try to use "lxc profile device add bridge enp0s8 nic" and i got Error: Device validation failed for "enp0s8": Failed loading device "enp0s8": Unsupported device type
@barma1309
@barma1309 11 ай бұрын
it seems right to use that "lxc profile device add bridge enp0s8 nic nictype=bridged parent=br0 name=eth0"
@TrevorSullivan
@TrevorSullivan 6 ай бұрын
Sorry for the delay in responding. I always refer to this tutorial for the commands I need to use to set up the bridge adapter. blog.simos.info/how-to-make-your-lxd-containers-get-ip-addresses-from-your-lan-using-a-bridge/
@oldsmar_chaos
@oldsmar_chaos 11 ай бұрын
trevor skipped the last two parts and they are needed for his other videos.. he deleted my comment. why.. trevor.. i believed in you
Remotely Manage LXD Ubuntu Linux Servers With LXC CLI 🐧
21:10
Trevor Sullivan
Рет қаралды 1,2 М.
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 33 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 81 МЛН
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 33 МЛН
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 312 М.
Replace Virtual Machines with LXC/LXD Containers
41:57
Scotti-BYTE Enterprise Consulting Services
Рет қаралды 12 М.
Software Networking and Interfaces on Linux: Part 1
45:42
Matt Turner
Рет қаралды 20 М.
Proxmox SOFTWARE DEFINED NETWORKING: Zones, VNets, and VLANs
20:34
apalrd's adventures
Рет қаралды 48 М.
SELF-HOSTING behind CGNAT for fun and IPv6 transition
36:12
apalrd's adventures
Рет қаралды 19 М.
VM Networking ( Libvirt / Bridge )
43:39
octetz
Рет қаралды 80 М.
The Tragedy of systemd
47:18
linux.conf.au
Рет қаралды 1,1 МЛН
LXC - Guide to building a LXC Lab
15:32
DevOps Journey
Рет қаралды 35 М.
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36