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

Colima start command is failing when the system tries to restarting VM #224

Closed
anhirvon opened this issue Mar 17, 2022 · 3 comments · Fixed by #251
Closed

Colima start command is failing when the system tries to restarting VM #224

anhirvon opened this issue Mar 17, 2022 · 3 comments · Fixed by #251

Comments

@anhirvon
Copy link

anhirvon commented Mar 17, 2022

Log:
macuser001:~ user$ colima start --mount $HOME:w --verbose
INFO[0000] starting colima
INFO[0000] creating and starting ... context=vm

msg="Terminal is not available, proceeding without opening an editor"
msg="Attempting to download the image from "https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.4-1/alpine-lima-clm-3.14.3-x86_64.iso\"" digest="sha512:cd7ad0ef76088ea3d9f428e70fcddcbbcc72999568aaee0de953052299a01df251454fa5db3a0fdcfa70896bd152bc5d92f9ad81d682f3ec44cfbd2149ae3856"
msg="Using cache "/Users/user/Library/Caches/lima/download/by-url-sha256/ef9dc9fefc39e4cebd1044d71cf6e01c9bb7c717d7a0040f4df7de3a4e19b730/data""
msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/user/.lima/colima/serial.log")"
msg="SSH Local Port: 58258"
msg="[hostagent] Waiting for the essential requirement 1 of 5: "ssh""
msg="[hostagent] Waiting for the essential requirement 1 of 5: "ssh""
msg="[hostagent] The essential requirement 1 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 2 of 5: "user session is ready for ssh""
msg="[hostagent] The essential requirement 2 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed""
msg="[hostagent] The essential requirement 3 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 4 of 5: "/etc/fuse.conf to contain \"user_allow_other\"""
msg="[hostagent] The essential requirement 4 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 5 of 5: "the guest agent to be running""
msg="[hostagent] The essential requirement 5 of 5 is satisfied"
msg="[hostagent] Mounting "/Users/user""
msg="[hostagent] Waiting for the final requirement 1 of 1: "boot scripts must have finished""
msg="[hostagent] Forwarding "/var/run/docker.sock" (guest) to "/Users/user/.colima/docker.sock" (host)"
msg="[hostagent] Forwarding "/run/lima-guestagent.sock" (guest) to "/Users/user/.lima/colima/ga.sock" (host)"
msg="[hostagent] The final requirement 1 of 1 is satisfied"
msg="READY. Run limactl shell colima to open the shell."
INFO[0031] provisioning ... context=docker
INFO[0031] restarting VM to complete setup ... context=docker
INFO[0031] stopping ... context=vm
msg="Sending SIGINT to hostagent process 96845"
msg="Waiting for the host agent and the qemu processes to shut down"
msg="[hostagent] Received SIGINT, shutting down the host agent"
msg="[hostagent] Shutting down the host agent"
msg="[hostagent] Stopping forwarding "/var/run/docker.sock" (guest) to "/Users/user/.colima/docker.sock" (host)"
msg="[hostagent] Stopping forwarding "/run/lima-guestagent.sock" (guest) to "/Users/user/.lima/colima/ga.sock" (host)"
msg="[hostagent] Unmounting "/Users/user""
msg="[hostagent] Shutting down QEMU with ACPI"
msg="[hostagent] Sending QMP system_powerdown command"
msg="[hostagent] QEMU has exited"
INFO[0036] starting ... context=vm
msg="Using the existing instance "colima""
msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/user/.lima/colima/serial.log")"
msg="SSH Local Port: 58265"
msg="[hostagent] Waiting for the essential requirement 1 of 5: "ssh""
msg="[hostagent] The essential requirement 1 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 2 of 5: "user session is ready for ssh""
msg="[hostagent] The essential requirement 2 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed""
msg="[hostagent] The essential requirement 3 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 4 of 5: "/etc/fuse.conf to contain \"user_allow_other\"""
msg="[hostagent] The essential requirement 4 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 5 of 5: "the guest agent to be running""
msg="[hostagent] The essential requirement 5 of 5 is satisfied"
msg="[hostagent] Mounting "/Users/user""
msg="[hostagent] Waiting for the final requirement 1 of 1: "boot scripts must have finished""
msg="[hostagent] Forwarding "/var/run/docker.sock" (guest) to "/Users/user/.colima/docker.sock" (host)"
msg="[hostagent] Forwarding "/run/lima-guestagent.sock" (guest) to "/Users/user/.lima/colima/ga.sock" (host)"
msg="[hostagent] The final requirement 1 of 1 is satisfied"
msg="READY. Run limactl shell colima to open the shell."
FATA[0057] error provisioning docker: error at 'restarting VM to complete setup': error copying daemon.json to VM: exit status 1

Version:
_colima version 0.3.4
git commit: 5a4a704

runtime: docker
arch: x86_64___

Used troubleshooted methods without luck:

  • delete/start colima
  • limactl stop colima
  • limactl delete colima
  • colima start

Output of lima.yaml file:
arch: x86_64
images:
- location: https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.4-1/alpine-lima-clm-3.14.3-aarch64.iso
arch: aarch64
digest: sha512:363baa91e4087dfd04ec5eebadcb29b9aef45c2663642f951105b3989e93143ce45f94ba9101c01c5db46c3fc6b601340b39baad29b1a48bb4f735790048daaa
- location: https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.4-1/alpine-lima-clm-3.14.3-x86_64.iso
arch: x86_64
digest: sha512:cd7ad0ef76088ea3d9f428e70fcddcbbcc72999568aaee0de953052299a01df251454fa5db3a0fdcfa70896bd152bc5d92f9ad81d682f3ec44cfbd2149ae3856
cpus: 2
memory: 2GiB
disk: 60GiB
mounts:
- location: /Users/user/
writable: true
ssh:
localPort: 0
loadDotSSHPubKeys: false
forwardAgent: false
containerd:
system: false
user: false
firmware:
legacyBIOS: false
hostResolver:
enabled: true
hosts:
host.docker.internal: host.lima.internal
portForwards:
- guestPortRange:
- 0
- 0
guestSocket: /var/run/docker.sock
hostPortRange:
- 0
- 0
hostSocket: /Users/user/.colima/docker.sock
proto: tcp
- guestIPMustBeZero: true
guestIP: 0.0.0.0
guestPortRange:
- 1
- 65535
hostIP: 0.0.0.0
hostPortRange:
- 1
- 65535
proto: tcp
- guestIP: 127.0.0.1
guestPortRange:
- 1
- 65535
hostIP: 127.0.0.1
hostPortRange:
- 1
- 65535
proto: tcp

@anhirvon
Copy link
Author

Any progress with this ticket?

@matejsp
Copy link
Contributor

matejsp commented Mar 25, 2022

I have the same problem with version from master:
FATA[0000] error provisioning docker: error at 'provisioning': error copying daemon.json: exit status 1

@abiosoft abiosoft mentioned this issue Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants