Skip to content
New issue

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

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

Already on GitHub? # to your account

Can not boot with head version of linuxkit on macOS #76

Closed
leoh0 opened this issue Apr 24, 2018 · 2 comments · Fixed by #77
Closed

Can not boot with head version of linuxkit on macOS #76

leoh0 opened this issue Apr 24, 2018 · 2 comments · Fixed by #77

Comments

@leoh0
Copy link

leoh0 commented Apr 24, 2018

Description
I reinstalled latest version of linuxkit then I can not boot with ./boot.sh on macOS.

Steps to reproduce the issue:

  1. Install or reinstall latest version of linuxkit on MacOS
  2. And .. ./boot.sh
...
$ brew install --HEAD linuxkit # or brew reinstall --HEAD linuxkit
$ ./boot.sh

Describe the results you received:

$ linuxkit version
linuxkit version v0.3+
commit: 9d2c57564bd568b384def0f2a00091c13d296f91
$ ls -al *.iso
-rw-r--r-- 1 al staff 1803530240  4 23 16:22 kube-master-efi.iso
-rw-r--r-- 1 al staff 1166034944  4 23 16:24 kube-node-efi.iso
$ ./boot.sh
+ '[' -n '' ']'
+ mkdir -p kube-master-state
+ touch kube-master-state/metadata.json
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ exec linuxkit run -networking default -cpus 2 -mem 1024 -state kube-master-state -disk size=4G -data-file kube-master-state/metadata.json --uefi kube-master-efi.iso
FATA[0000] Cannot find kernel file: kube-master-efi.iso-kernel

Describe the results you expected:

Successful boot.

@rn
Copy link
Member

rn commented Apr 24, 2018

Ah, I think I may have broken that with linuxkit/linuxkit#3002. I think we now need to specify -iso as well as I changed the auto-detect of the boot mode

rn added a commit to rn/lk-kubernetes that referenced this issue Apr 24, 2018
linuxkit/linuxkit#3002 removed some of
the auto-detection code for booting from an ISO (for hyperkit).

Let's specify '-iso' explicitly.

resolves linuxkit#76

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
@ijc ijc closed this as completed in #77 Apr 24, 2018
@leoh0
Copy link
Author

leoh0 commented Apr 24, 2018

Thank you this works like a charm.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants