kube-spawn start fails due to missing image files
tiagomlalves opened this issue · 1 comments
I'm trying to start a kubernetes cluster with kube-spawn but I'm having issues with image retrieval. I'm using latest version.
Steps:
$ sudo kube-spawn create
Copying files for cluster ...
Generating configuration files from templates ...
Cluster default created
$ sudo kube-spawn start -n 5
Could not set limit: Failed to adjust loopback limit: Is a directory
image resize failed: qemu-img not installed: exec: "qemu-img": executable file not found in $PATH
Resize '/var/lib/machines' of 'max'
pulling flatcar image...
Enqueued transfer job 1. Press C-c to continue download in background.
Pulling 'https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2', saving as 'flatcar'.
Downloading 14B for https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.roothash.
HTTP request to https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.roothash failed with code 404.
Root hash file could not be retrieved, proceeding without.
Downloading 982.3M for https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2.
Downloading 14B for https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.nspawn.
HTTP request to https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.nspawn failed with code 404.
Settings file could not be retrieved, proceeding without.
Got 1% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 6min 9s left at 2.6M/s.
Got 2% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 46s left at 3.3M/s.
Got 3% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 33s left at 3.4M/s.
Got 4% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 20s left at 3.6M/s.
Got 5% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 4s left at 3.8M/s.
Got 6% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 7s left at 3.7M/s.
Got 7% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 5s left at 3.7M/s.
Got 8% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 12s left at 3.5M/s.
Got 9% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 11s left at 3.5M/s.
Got 10% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 8s left at 3.5M/s.
Got 11% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 11s left at 3.4M/s.
Got 12% of https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2. 4min 15s left at 3.3M/s.
Failed to write file: Resource temporarily unavailable
Failed to retrieve image file. (Wrong URL?)
Exiting.
Failed to start cluster: error running machinectl pull-raw: exit status 1
I have 104Gb disk free in the system, so no disk space issues. Passing different options to --flatcar-channel end up with same error.
Did you install the dependencies? You're missing qemu-img
so I'm guessing not.
For Fedora try:
sudo dnf install -y btrfs-progs git go iptables libselinux-utils polkit qemu-img systemd-container
For Ubuntu:
sudo apt-get install -y btrfs-progs git golang iptables policykit-1 qemu-utils selinux-utils systemd-container