Intro to Virtual Machines With LXD on Linux

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

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

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

    Here's a playlist dedicated to LXD! ruclips.net/p/PLDbRgZ0OOEpX_uqK_hAq98ltdc4DP-D34

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

    Hey Trevor, just wanted to say that this video series is excellent. Thank you for sharing your knowledge with the world!

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

      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

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

    Great video. Thank you.

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

    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

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

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

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

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

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

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

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

    Error: The remote isn't a private LXD server

  • @Heavy_Lvy
    @Heavy_Lvy 4 месяца назад +2

    you should make the bottom of the video darker so its easier to see the time stamps

  • @jg1000c
    @jg1000c 9 месяцев назад

    how do you get kvm to work on intel i5 windows box with a linux hyper-v vm?

    • @TrevorSullivan
      @TrevorSullivan  9 месяцев назад

      I'm not sure about KVM, sorry. LXD is pretty awesome though. Any reason you can't use it?

    • @jg1000c
      @jg1000c 9 месяцев назад

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

    • @jg1000c
      @jg1000c 9 месяцев назад

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

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

    Very nice video, THX.

  • @Tmacs-yp6vv
    @Tmacs-yp6vv 3 месяца назад

    Hi Trevor, im unable to apt update or upgrade my ubuntu-vm , do you know how can i troubleshoot this? Thanks, great videos

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

      @@Tmacs-yp6vv thanks for your kind comment. 😊 What error are you getting from apt CLI? Are you positive the VM has internet access?

    • @Tmacs-yp6vv
      @Tmacs-yp6vv 3 месяца назад

      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.

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

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

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

    How is it different from docker?

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

      Docker does not create virtual machines. It creates containers that isolate processes.

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

    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 :)

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

      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!

  • @bitferret-rx5rn
    @bitferret-rx5rn 11 месяцев назад

    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?

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

      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
      @bitferret-rx5rn 11 месяцев назад

      Hello @@TrevorSullivan... I am trying to provision the container with authorised ssh keys so I can login without password

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

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

    • @bitferret-rx5rn
      @bitferret-rx5rn 11 месяцев назад +1

      @@TrevorSullivan yes.. I realised cloud-init can do that. I am still reading and practicing to find a good path

  • @DonaldCarroll-i8m
    @DonaldCarroll-i8m 4 месяца назад

    Davis Ruth Thomas James Lopez Thomas

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

    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

    • @Xpider-dev
      @Xpider-dev 6 месяцев назад

      windows user are not allowed here