Difference between revisions of "Multipass"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | # Install Multipass on windows and run ubuntu vm in hyperv | ||
``` | ``` | ||
winget install -e --id Canonical.Multipass | winget install -e --id Canonical.Multipass | ||
Line 6: | Line 7: | ||
multipass shell jammy | multipass shell jammy | ||
multipass stop jammy | multipass stop jammy | ||
+ | ``` | ||
+ | |||
+ | # Microk8s in vm | ||
+ | ``` | ||
+ | multipass shell jammy | ||
+ | sudo snap install microk8s --classic | ||
+ | sudo snap install kubectl --classic | ||
+ | mkdir ~/.kube | ||
+ | sudo microk8s config > ~/.kube/config | ||
+ | sudo microk8s.kubectl get node | ||
+ | kubectl get node | ||
+ | ``` | ||
+ | |||
+ | # More notes | ||
+ | ``` | ||
+ | sudo usermod -a -G microk8s ubuntu | ||
+ | sudo chown -R ubuntu ~/.kube | ||
``` | ``` |
Revision as of 21:05, 14 April 2023
Install Multipass on windows and run ubuntu vm in hyperv
winget install -e --id Canonical.Multipass multipass find multipass launch 22.04 --name jammy multipass list multipass shell jammy multipass stop jammy
Microk8s in vm
multipass shell jammy sudo snap install microk8s --classic sudo snap install kubectl --classic mkdir ~/.kube sudo microk8s config > ~/.kube/config sudo microk8s.kubectl get node kubectl get node
More notes
sudo usermod -a -G microk8s ubuntu sudo chown -R ubuntu ~/.kube