Multipass
Jump to navigation
Jump to search
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
Change size
multipass set [local.<instance-name>.(cpus|disk|memory)](https://multipass.run/t/)]=[value] https://multipass.run/docs/modify-an-instance $ multipass stop handsome-ling $ multipass set local.handsome-ling.cpus=4 $ multipass set local.handsome-ling.disk=60G $ multipass set local.handsome-ling.memory=7G multipass stop jammy multipass set local.jammy.memory=2G multipass start jammy multipass shell jammy
More notes
sudo usermod -a -G microk8s ubuntu sudo chown -R ubuntu ~/.kube