Skip to content

Add build-essential and use newer git in lima Linux VM - #1679

Open
Huy Pham (hdp617) wants to merge 1 commit into
agent-substrate:mainfrom
hdp617:docs/fix-microvm-lima-git
Open

Huy Pham (hdp617) wants to merge 1 commit into
agent-substrate:mainfrom
hdp617:docs/fix-microvm-lima-git

Conversation

@hdp617

@hdp617 Huy Pham (hdp617) commented Sep 16, 2026

Copy link
Copy Markdown
Contributor
  • Add the missing build-essential pkg.
  • Use newer git version in lima Linux VM.

The bundled version in the guest image doesn't support ref storage backend. As a result, ./hack/microvm-assets/assemble.sh fails with the following error.

fatal: unknown repository extension found:
	refstorage

Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@hdp617

Copy link
Copy Markdown
Contributor Author

Following docs/dev/microvm-local.md to run hack/microvm-assets/assemble.sh
in the Lima guest fails twice over.

The git bundled with the guest image does not understand the refstorage
repository extension, so cloning virtiofsd aborts with "unknown repository
extension found: refstorage". Install a newer git from ppa:git-core/ppa.

The list also omits a C compiler, so the arm64 virtiofsd build stops at
"error: linker cc not found". Add build-essential.

Also record the path-MTU black hole that stalls cargo at zero bytes while
curl to the same host runs at full speed. The filtered ICMP replies leave
the kernel retransmitting a segment the path cannot carry, which reads as
a slow network rather than a broken one.
@hdp617 Huy Pham (hdp617) changed the title Use newer git version in lima Linux VM Add build-essential and use newer git in lima Linux VM Sep 16, 2026
@BenTheElder

Copy link
Copy Markdown
Collaborator

We should probably run this in a container instead FWIW.

@hdp617

Copy link
Copy Markdown
Contributor Author

We should probably run this in a container instead FWIW.

Just to confirm, are you suggesting building the microvm assets in a Docker container?

@BenTheElder

Copy link
Copy Markdown
Collaborator

Just to confirm, are you suggesting building the microvm assets in a Docker container?

Yes, that seems better than depending on installing in the host. We can do that in a follow-up though.

@hdp617

Copy link
Copy Markdown
Contributor Author

Just to confirm, are you suggesting building the microvm assets in a Docker container?

Yes, that seems better than depending on installing in the host. We can do that in a follow-up though.

I like it for hermetic builds. Will do in a follow-up.

@hdp617

Copy link
Copy Markdown
Contributor Author

I think this is no longer needed with #1708. Will close once confirmed.

@bowei Bowei Du (bowei) added kind/docs Improvements or additions to documentation area/dev-infra area/microVM labels Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dev-infra area/microVM kind/docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants