Linux kernel image #3577
Replies: 13 comments 18 replies
-
Yeah, I'd like to know as well. Selecting Apple Virtualization makes the kernel a required field, is this intended? Where should I get a pre-built Kernel image? |
Beta Was this translation helpful? Give feedback.
-
I found some Information, but I didn't succeed to launch https://developer.apple.com/documentation/virtualization/running_linux_in_a_virtual_machine
|
Beta Was this translation helpful? Give feedback.
-
You can download something like ubuntu, extract initrd (ramdisk) and vmlinuz from casper/initrd and caspter/vmlinuz, respectively. Then use vmlinuz as the kernel image and initrd as initial ramdisk, select the ubuntu distribution iso as boot image. It should run just fine. |
Beta Was this translation helpful? Give feedback.
-
When I try, I just get a black screen on boot. As mentioned, a couple of paragraphs in the readme on the exact steps to take to get The latest Ubuntu running under Apple Virtualisation would be incredibly valuable.
… On 13 Jun 2022, at 22:30, 19h ***@***.***> wrote:
Unfortunately. this is easier said than done. The kernel and image need to be uncompressed. The scripts for decompressing kernels don't work on MacOS. It would be great if there was a straightforward tutorial on the steps to uncompress these files on an Apple Silicon device.
I don’t understand this. I literally am running Ubuntu on my M1 Max MBP (macOS Ventura) using these exact files. You can use 7z x ubuntu.iso to decompress the image and then use the files as specified above.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
No, I’m using an ARM64 Apple M1.
… On 14 Jun 2022, at 08:37, ktprograms ***@***.***> wrote:
Are you using x86_64? IIRC the x86_64 kernels aren't compressed whole, instead there's a decompressor built in.
—
Reply to this email directly, view it on GitHub <#3577 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AM6CA3C6U5JDANJA2N5KILLVO7O4JANCNFSM5NPIZ4BQ>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Same problem here. I'm using the kernel and initrd (I have uncompressed it with
The files were downloaded from here: |
Beta Was this translation helpful? Give feedback.
-
Did anyone have luck booting any Linux distro in UTM on M1 with Apple Virtualization enabled? |
Beta Was this translation helpful? Give feedback.
-
emm... There has a correct configuration after downloaded, also alpine linux is working too. |
Beta Was this translation helpful? Give feedback.
-
Kernel and ramdisk for 22.04 can be found here: https://cloud-images.ubuntu.com/releases/22.04/release/unpacked/. mkdir -p ~/Downloads/ubuntu-utm
cd ~/Downloads/ubuntu-utm
# For kerken
curl https://cloud-images.ubuntu.com/releases/22.04/release/unpacked/ubuntu-22.04-server-cloudimg-arm64-vmlinuz-generic -o ubuntu-22.04-server-cloudimg-arm64-vmlinuz-generic.gz
gunzip ubuntu-22.04-server-cloudimg-arm64-vmlinuz-generic.gz
# For ramdisk
curl https://cloud-images.ubuntu.com/releases/22.04/release/unpacked/ubuntu-22.04-server-cloudimg-arm64-initrd-generic -o ubuntu-22.04-server-cloudimg-arm64-initrd-generic Boot params: I was able to boot "something". Will create a gist and HOWTO one there will be any success. |
Beta Was this translation helpful? Give feedback.
-
Did anyone find a working instruction for this? |
Beta Was this translation helpful? Give feedback.
-
thanks folks for the hints on how to set up the VM! using @LXY1226 's instructions, I've managed to boot the Ubuntu cloud image.
that's the least number of steps to see it boot up to the OS. You will need a cloud init iso to configure the user for login ( and update packages) I've documented it here, let me know if it's useful. https://workinginavirtualspace.blogspot.com/2022/11/using-umt-to-create-virtual-machines.html |
Beta Was this translation helpful? Give feedback.
-
Enormous thanks LXY1226 and rebooting Has anyone got |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Where could I take a linux kernel image for Apple Virtualisation?
Beta Was this translation helpful? Give feedback.
All reactions