canonical / microk8s

MicroK8s is a small, fast, single-package Kubernetes for datacenters and the edge.
https://microk8s.io
Apache License 2.0
8.51k stars 772 forks source link

VM disk size requested exceeds free space on host. #4325

Open luilver opened 11 months ago

luilver commented 11 months ago

Summary

Already installed following https://microk8s.io/ for macOS. When I ran microk8s install command it asked for multipass support and I selected yes, look hidden section for details.

$ microk8s install
VM disk size requested exceeds free space on host.
Support for 'multipass' needs to be set up. Would you like to do that now? [y/N]: y
==> Downloading https://github.com/canonical/multipass/releases/download/v1.12.2/multipass-1.12.2+mac-Darwin.pkg
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/114128199/f558434a-3d96-4210-8a69-a65d7917d83f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231202%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Da ######################################################################################################################################################################################################################################################### 100.0%
==> Installing Cask multipass
==> Running installer for multipass with sudo; the password may be necessary.
installer: Package name is multipass
installer: Installing at base path /
installer: The install was successful.
🍺 multipass was successfully installed!
Waiting for multipass...
warning: "--mem" long option will be deprecated in favour of "--memory" in a future release. Please update any scripts, etc.
launch failed: cannot connect to the multipass socket

Then it started to repeat last message warning: "--mem" long option will be deprecated in favour of "--memory" in a future release. Please update any scripts, etc. launch failed: cannot connect to the multipass socket

What is worst, I tried to remove it by microk8s uninstall, then brew uninstall ubuntu/microk8s/microk8s and then trying to install it again without succees. Every time it's still erroring:

warning: "--mem" long option will be deprecated in favour of "--memory" in a future release. Please update any scripts, etc.
launch failed: cannot connect to the multipass socket

What Should Happen Instead?

Succeed.

Reproduction Steps

  1. $ brew install ubuntu/microk8s/microk8s
  2. $ microk8s install
  3. Select yes when ask for setup multipass

Introspection Report

$ microk8s inspect

MicroK8s is not installed. Please run microk8s install.

Can you suggest a fix?

Yes

Are you interested in contributing with a fix?

I would like, will try to dig dive into brew and microk8s commands.

My system specs:

Software: System Software Overview: System Version: macOS 14.1.1 (23B81) Kernel Version: Darwin 23.1.0 Boot Volume: Macintosh HD Boot Mode: Normal Computer Name: 20211824-LGarces User Name: Luilver Garces (Luilver.Garces) Secure Virtual Memory: Enabled System Integrity Protection: Enabled Time since boot: 3 days, 5 hours, 13 minutes Hardware: Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro16,1 Processor Name: 6-Core Intel Core i7 Processor Speed: 2.6 GHz Number of Processors: 1 Total Number of Cores: 6 L2 Cache (per Core): 256 KB L3 Cache: 12 MB Hyper-Threading Technology: Enabled Memory: 32 GB System Firmware Version: 2020.41.1.0.0 (iBridge: 21.16.1069.0.0,0) OS Loader Version: 580~743 Serial Number (system): Hardware UUID: Provisioning UDID: Activation Lock Status: Disabled

Thank you

neoaggelos commented 11 months ago

Hi @luilver, sorry for missing this.

On macOS, the microk8s installer will attempt to create an ubuntu VM using multipass. From the error message, it looks like multipass is having trouble working on your machine?

Can you see if Multipass works OK, using something like multipass ls or multipass launch 20.04?

luilver commented 10 months ago

Hi @neoaggelos, thank you for your kind support.

Definitively Multipass is not working. This is either multipass ls and multipass launch 20.04 output:

list failed: cannot connect to the multipass socket

At this point I don't know how to proceed. Is multipass a different package I should try to reinstall otherwise how should I proceed?

neoaggelos commented 10 months ago

Hi @luilver

Yes, multipass is a separate project (https://multipass.run) that is automatically installed by the microk8s installer to manage the ubuntu VM microk8s itself will be running on.

You might be able to find help by opening an issue on multipass GitHub repo: https://github.com/canonical/multipass/issues