Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luilver opened this issue Dec 2, 2023 · 4 comments
Open

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

luilver opened this issue Dec 2, 2023 · 4 comments
Labels
inactive kind/support Question with a workaround

Comments

@luilver
Copy link

luilver commented Dec 2, 2023

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): <hidden>
  Hardware UUID: <hidden>
  Provisioning UDID: <hidden>
  Activation Lock Status: Disabled

Thank you

@neoaggelos
Copy link
Contributor

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?

@neoaggelos neoaggelos added the kind/support Question with a workaround label Dec 8, 2023
@luilver
Copy link
Author

luilver commented Dec 25, 2023

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
Copy link
Contributor

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

Copy link

stale bot commented Nov 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive kind/support Question with a workaround
Projects
None yet
Development

No branches or pull requests

2 participants