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

Kernel cmdline customisation on hyperkit #1247

Closed
cedws opened this issue Dec 18, 2019 · 13 comments
Closed

Kernel cmdline customisation on hyperkit #1247

cedws opened this issue Dec 18, 2019 · 13 comments
Labels

Comments

@cedws
Copy link

cedws commented Dec 18, 2019

It appears from looking at /Library/Logs/Multipass/multipassd.log that the kernel parameters are passed as an argument (hardcoded?) to HyperKit.

I tried to customise the cmdline inside the VM by modifying the GRUB configuration, but it had no effect, which I think confirms my suspicion.

@Saviq
Copy link
Collaborator

Saviq commented Dec 19, 2019

Hi @cedws yes, currently we're booting the kernel / initramfs directly, we're working on getting that fixed.

May I ask what kernel options you'd like to modify?

@Saviq Saviq added the question label Dec 19, 2019
@cedws
Copy link
Author

cedws commented Dec 19, 2019

I wanted to pass mitigations=off and the kernel 4.x equivalents.

@BenWibking
Copy link

This would also be very useful to disable cgroups v1, allowing unprivileged users to create their own child cgroups.

@tonidy
Copy link

tonidy commented May 19, 2021

@Saviq any update regarding this? As I want to enable cgroups v2 and I couldn't find any documentation how to enable cgroups v2 in Multipass.

@BenWibking
Copy link

BenWibking commented May 19, 2021

It looks like cgroups v2 will become the default in Ubuntu 21.10, but for all previous releases, it's necessary to modify the kernel cmdline: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1850667

@Saviq
Copy link
Collaborator

Saviq commented May 19, 2021

Hi @tonidy, we unfortunately have no way to pass cmdline arguments on macOS. We're working on Apple M1 support (#1857), which may improve the situation, we'll keep this updated.

@tonidy
Copy link

tonidy commented Jun 8, 2021

@Saviq thanks for your update. Maybe I need waiting for next Ubuntu 21.10 in Multipass or I need to buy new Mac 😄

@Saviq
Copy link
Collaborator

Saviq commented Jun 8, 2021

@tonidy currently it's looking like we'll be able to use a proper bootloader on macOS soon (M1 or not, doesn't matter), so GRUB will be in play again.

@tonidy
Copy link

tonidy commented Jun 8, 2021

@Saviq wow, sounds great 😄 . Is it still support for hypervisor framework in Catalina?

@Saviq
Copy link
Collaborator

Saviq commented Jun 8, 2021

@tonidy as long as https://developer.apple.com/documentation/hypervisor is there, it should work. We'll report more soon. Watch #1857 for updates.

@bobsongplus
Copy link

any progress about this? I encounter the same problem that need to pass kernels arguments

@Saviq
Copy link
Collaborator

Saviq commented Jul 2, 2021

@TinySong please see #1857 for updates there (assuming you're on macOS/hyperkit - elsewhere you can change GRUB configuration to modify kernel options).

In the mean time, VirtualBox is an escape hatch, too.

@Saviq
Copy link
Collaborator

Saviq commented Oct 26, 2021

This is now possible with the qemu driver on macOS as well, through standard Ubuntu means.

We won't be implementing it for hyperkit.

@Saviq Saviq closed this as completed Oct 26, 2021
@Saviq Saviq changed the title Kernel cmdline customisation Kernel cmdline customisation on hyperkit Oct 26, 2021
@Saviq Saviq added wontfix and removed enhancement labels Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants