Windows Subsystem for Linux setup WSL2 Systemd, Ansible, and Kubernetes

Поділитися
Вставка
  • Опубліковано 7 жов 2024

КОМЕНТАРІ • 70

  • @StephenDail
    @StephenDail Рік тому +13

    The multiple lines for installing required packages around the 7:30 mark:
    sudo apt-get install -y gcc python3-dev libkrb5-dev && \
    sudo apt-get install python3-pip -y && \
    pip3 install --upgrade pip && \
    pip3 install --upgrade virtualenv && \
    sudo apt install krb5-user -y && \
    pip3 install pywinrm && \
    sudo apt install ansible -y
    I imagine most know this already if you're working with Linux shell commands, but this is basically all one command "line"; it's split up for easier reading but the "&& \" portion at the end of each line tells the shell to include the next line of text as part of the previous line's commands.
    I.E. This will execute multiple commands sequentially.

    • @fjworkshop
      @fjworkshop Рік тому +1

      thank you

    • @zombiewolf007
      @zombiewolf007 5 місяців тому +1

      Thanks for doing this, friend. no idea why the OP didnt post this to begin with

  • @Alessandro---
    @Alessandro--- Рік тому +11

    Amazing- the quality and substance of your videos has gone “up there” with the best. Well done!

    • @VirtualizationHowto
      @VirtualizationHowto  Рік тому +5

      Thank you very much Alex! Always trying to improve the quality of the content and the video production. I appreciate the feedback as it helps to know things are going in the right direction. Thanks again!

  • @521182
    @521182 2 місяці тому

    Thank you for showing the WSL2 installation for minikube sir!

  • @stokvelManagement
    @stokvelManagement Рік тому

    Happy that most of the setup works with WSL 1, as I had some problems with WSL 2 not being able to reach the internet when on a VPN.

  • @richardgarrow9260
    @richardgarrow9260 Рік тому

    Great video thank you sir. I have not use WSL in a while, now I need to take another look at it. Thanks all the best in 2023 looking forward to what you have for us in 2023..

  • @crow468
    @crow468 Рік тому +1

    Just subscribed, as I may be your spooky action at a distance. Also maybe because I am home lab nerding.

    • @VirtualizationHowto
      @VirtualizationHowto  Рік тому +1

      Oh man! What is the world going to do with two of us! Brandon thanks for the comment and glad to know you are out there :)

  • @boydfields
    @boydfields Рік тому

    Superb. Many thanks!

  • @cemery50
    @cemery50 Рік тому +2

    It would be cool to have an ansible (?PowserShell) spin up a virtual stack with options to use differing vm mgrs....maybe one to convert existing system to virtual image and save/restore as one of many.
    Very info dense and amazing concepts....I want to create a home ceph storage net with varying numbers of hosts both real and virtual.

  • @LampJustin
    @LampJustin Рік тому +3

    10:15 you can also do source ~/.bash_aliases ;)

  • @nunothecorsair
    @nunothecorsair Рік тому +1

    Really liked the video and the pace from "beginner" to installing Kubernetes for more advanced workflows.
    Maybe a good follow-up video (if not already done) would be to speak about the GPU and Kernel building, for the even more advanced needs.
    One little remark/question: could insert some of the references you're basing yourself? specially anything about installations as it may help reading further.
    Keep the excellent work.

  • @Martin-od4ij
    @Martin-od4ij 11 місяців тому

    Amazing thank you!

  • @faadi4536
    @faadi4536 Рік тому

    Video is quite good. I am not using WSL for such functionalities as I am limited with resource. what I did is spun up a ubuntu server in Vmware, and installed all the tweaks there to play around.

  • @thegamestoner4
    @thegamestoner4 Рік тому

    very helpful video ! thank you !

  • @chrisojwang
    @chrisojwang 7 місяців тому

    Great Video

  • @jmac217x
    @jmac217x Рік тому

    Excellent

  • @bx1803
    @bx1803 Рік тому +2

    Would be awesome if you would provide the powershell/ansible install commands

    • @StephenDail
      @StephenDail Рік тому

      sudo apt-get install -y gcc python3-dev libkrb5-dev && \
      sudo apt-get install python3-pip -y && \
      pip3 install --upgrade pip && \
      pip3 install --upgrade virtualenv && \
      sudo apt install krb5-user -y && \
      pip3 install pywinrm && \
      sudo apt install ansible -y

  • @1Chitus
    @1Chitus Рік тому +1

    Excellent video. Everything is running on my side except "kubectl get nodes" I get the command not found. kubectl is in my home directory but not with -x privileges. Maybe I missed something?

  • @tpurves2006
    @tpurves2006 Рік тому +1

    Interesting video, is there an associated blob with the steps and command listed?

  • @anilmk2317
    @anilmk2317 Рік тому

    your video helped me to setup wsl2 with all the necessary tweaks. Just one question : are you using the insider build of wsl2 ? there are some major updates on networking and memory reclaim

  • @byungna2566
    @byungna2566 Рік тому +1

    Thanks for the systems tip. One question regarding to ssh remote connection. What would be the best practice for allowing wsl ssh connection from a remote client? Is it still through a port forwarding via the Windows?

  • @cemery50
    @cemery50 Рік тому +1

    I'm curious about the relations of Power Automate, Power Shell, Python and the M$/Knowledge graph....
    and the costs involved .... I would prefer Python and the Eclipse enviornment.

    • @cemery50
      @cemery50 Рік тому +1

      In reality I would like a UML based Jython code converter with real time interactive diagrams control and monitoring.

  • @anm_15
    @anm_15 Рік тому

    Where I can find those commands which you are firing in video...... is there any page in your website where you have listed them all ?

  • @DanzilF
    @DanzilF Рік тому

    Another thing I find myself doing every time I set up WSL from scratch is to have my SSH key/s loaded automatically using keychain. Something I did not manage to do is to bridge the network interface with the host... don't think this is possible yet (?).

  • @markwood-patrick4705
    @markwood-patrick4705 Рік тому

    Great video, what are your thoughts on pros & cons between Microk8s & KinD?

  • @EndersSaga
    @EndersSaga 4 місяці тому

    the snap install command said it isn't supported by wsl

  • @mmx.official
    @mmx.official 4 місяці тому

    why people install docker inside a WSL distro? Does it add more complexity as unneeded as if you run docker on host machine and let them communicate to each other?

  • @tohui23
    @tohui23 Рік тому

    new suscriber here

  • @nsxtogo6044
    @nsxtogo6044 Рік тому

    Really awesome, thanks for this Informative video. I have a question though, I wonder if we could install all of WSL2, Vmware Workstation, Virtualbox and Micorsoft Hyper-v all in one machine?!!! Thank you

    • @VirtualizationHowto
      @VirtualizationHowto  Рік тому

      NSX togo, it should be possible, specially with the latest VMware Workstations coexisting with Hyper-V :)

    • @nsxtogo6044
      @nsxtogo6044 Рік тому

      @@VirtualizationHowto Thank you 🙂

  • @kareemschultz
    @kareemschultz Рік тому

    Can you make a video of using a gui with wsl

  • @Free.Education786
    @Free.Education786 Рік тому +1

    Where to find genuine Windows 11 lightweight version with crack or patch or serial keys 🔑 🤔 I need this to host kali linux in the wsl on my system. Thanks in advance for your help and support 👍

  • @markwood-patrick4705
    @markwood-patrick4705 9 місяців тому

    Many thanks for the video, definitely helpful. I really like wsl and have been using it with k3d which I can really recommend as a great way to run Kubernetes in WSL. I have been able to get libvirt running and run various virtual machines. I have been trying to get ProxMox 8 running in WSL (either as a distro or on top of my Debian distro) but so far no luck and am continuing to investigate, has anyone managed to do this?

  • @richardbennett4365
    @richardbennett4365 Рік тому

    Wow. Now I have a ❓ for the gurus.
    Can Ansible suck out (clone, I suppose) from a manually-configured system or environment, i.e., existing setup / configuration, that information and write an Ansible script that one can take to put on another vanilla machine to make it be set up the same way as the first one that was manually configured? And, if not, why not?

  • @bennguyen1313
    @bennguyen1313 Рік тому

    The store (and your wsl --version) seems to show WSL version 1. If not interested in file-system performance wouldn't WSL-2 be better as it can run Rancher or "Docker Desktop For Windows" with the WSL2 backend?
    How does Hyper-V fit in?

  • @kallattisantosh
    @kallattisantosh Рік тому

    Hi All,
    When i do sudo apt-get update or try yo install anything i get error as temporary failure resolving.. Any hints how to fix this?
    Thanks

  • @infotruther
    @infotruther Рік тому

    Its not recognizing the command help please ty

  • @k4qdex
    @k4qdex Рік тому +1

    hi. can you please do a video on how to properly expose the wsl network to the LAN of the host machine (with metallb or something) ? there are options like ngrok or windows virtual switch etc. but i dont know whats the best and how to set up. would be nice to know how to thanks

  • @K.A._007
    @K.A._007 Рік тому

    Good morning. I am experiencing the hardest time installing Ansible. Can you assist?

  • @edenchen9251
    @edenchen9251 Рік тому

    Is network mode “host” available on wsl2?

  • @Roman-zs9qm
    @Roman-zs9qm Рік тому

    Hi,
    If I were to override my old installation of WSL with the one from Microsoft Store, would I lose all my files?

  • @therealneojolt
    @therealneojolt 6 місяців тому

    Ditch WIndows for Linux.

  • @Dom_Mason
    @Dom_Mason Рік тому

    I been waiting for them to release a static IP for their linux subsystem. Seems after every reboot of windows the subsystem gets assigned a different IP. Not good if you are running say a server in that subsystem.

    • @VirtualizationHowto
      @VirtualizationHowto  Рік тому +2

      Dominic, I think this may not be on the roadmap as from what I can see from Microsoft, they don't want WSL to be used as a server for many reasons, although in my opinion it would be great.

  • @zorrozalai
    @zorrozalai Рік тому

    Actually, it doesn't install a Windows subsystem on Linux.
    It's the other way around. :)

  • @achaabni
    @achaabni Місяць тому +1

    downvotes for the lack of command lines

  • @Vicorcivius
    @Vicorcivius Рік тому

    Whats the point, I will just run linux.. That way I dont have all the bloat and telemetry on my system.

    • @VirtualizationHowto
      @VirtualizationHowto  Рік тому

      Sybell, I agree if you are a LInux user there is no point to WSL. However, if Windows is your daily driver, WSL is awesome and provides a great way to have quick and easy access to all the Linux tools.

  • @tinafa
    @tinafa Рік тому

    you don't explain properly. after pasting the command to suppress the password, you don't say the function applied used to save and someone new to this won't even know why the command appears that way. you have to tell people to put in their linux usernames

    • @tafheemulhaq7053
      @tafheemulhaq7053 2 місяці тому

      I am stuck there, can you please tell me what I am supposed to do here?
      Edit: figured it out, you have to press ctrl + x

  • @xDoge26
    @xDoge26 Рік тому

    i though i was window emulator on linux :(

  • @daviddrumm3673
    @daviddrumm3673 Рік тому

    Only a TRUE DIE HARD Windows user would build all this into a Windows environment when you can run Windows as a VM in Linux if you need it SO BAD.

    • @VirtualizationHowto
      @VirtualizationHowto  Рік тому +2

      David, thank you for the comment! WSL is intended to help those stuck on Windows environments for one reason or another have quick and easy access to Linux and for that I think it shines. Definitely a great tool.

  • @fantasypvp
    @fantasypvp Рік тому

    Smh just switch to arch XD

  • @davidpaul2769
    @davidpaul2769 Рік тому

    Whenever I open ubuntu its showing like this only
    "root@ZED_AIR_CX3:~#"
    and its not opening through any user
    can you plz help me with this?

  • @GrishTech
    @GrishTech Рік тому

    One small note about using a .local TLD, use something else. .local is reserved for mDNS and you may run into issues. I understand people use it for labs, but it still important to understand the issue.
    en.wikipedia.org/wiki/.local

    • @VirtualizationHowto
      @VirtualizationHowto  Рік тому

      David, good point, definitely for labs and other environments with the .local domains.

  • @cgarafulic
    @cgarafulic Рік тому

    Excellent video. Everything is running on my side except "kubectl get nodes" I get the command not found. kubectl is in my home directory but not with -x privileges. Maybe I missed something?

    • @cgarafulic
      @cgarafulic Рік тому +4

      I found the solution. I changed the mode of kubecrl making it executable (chmod +x kubectl) and moved to /usr/local/bin. Now it is working. Thank you cgarafulic :)

    • @bx1803
      @bx1803 Рік тому +3

      @@cgarafulic thank you for posting the problem AND the solution, super helpful for others.

    • @treckstar
      @treckstar Рік тому

      Awesome thanks. I ran into this on Ubuntu 22.
      These are the commands I had to run if kubectl is in your home directory still.
      chmod +x kubectl
      sudo mv ./kubectl /usr/local/bin/