-
Notifications
You must be signed in to change notification settings - Fork 355
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
Initramfs unpacking failed: junk in compressed archive #74
Comments
It appears that 4.x kernels from https://www.kernel.org/ do not work with xhyve, odd, but pre-4 kernels work just fine. Thanks. |
I am seeing this issue, why was this closed? Is there a workaround? |
There's no work around that I know of, and I never received a response to this issue so I closed it and moved on. |
Did you compile the kernel with CONFIG_KEXEC=y? |
I came across the same issue while installing NixOS. I solved it by adding an offset of 16777216 (16M) to ramdisk_start (in file src/firmware/kexec.c). btw: I got the 16M value by trial and error. Here is the patch for file kexec.c:
|
@peterwang This problem has been fixed on docker/hyperkit |
@zchee can it be back ported to xhyve? |
@c4milo sure. I'll send a pull request. |
@c4milo done :) |
Nice, thanks!!
|
Following this article:
https://techblog.lankes.org/2015/05/01/My-Memo-to-build-a-custom-Linux-Kernel-for-Qemu/
then this one:
https://techblog.lankes.org/2015/07/05/Lightweight-Virtualization-on-OS-X/
I get a linux kernel 4.3.0 and initramfs which works using qemu:
qemu-system-x86_64 -smp 2 -kernel ./bzImage -initrd ./myinitrd.cpio -append "root=/dev/ram0 rootfstype=ramfs init=init console=ttyS0" -nographic
... but fails using xhyve:
../build/xhyve -m 1G -c 2 -s 0:0,hostbridge -s 31,lpc -l com1,stdio -f kexec,bzImage,myinitrd.cpio,"earlyprintk=serial root=/dev/ram0 rootfstype=ramfs init=init console=ttyS0"
...or:
../build/xhyve -m 1G -c 2 -s 0:0,hostbridge -s 31,lpc -l com1,stdio -f kexec,bzImage,myinitrd.cpio,"earlyprintk=serial console=ttyS0"
... with this message:
... same result when
myinitrd.cpio
is gzipped tomyinitrd.cpio.gz
, probably doesn't matter.OS X Yosemite 10.10.5
git clone https://github.com/mist64/xhyve.git
The included tiny core linux in the test folder works fine.
Any ideas as to why it's junk to one but not the other?
Did I miss something?
Thanks for this project.
The text was updated successfully, but these errors were encountered: