Skip to content

VZ regression: kernel decompression is broken in master #3705

@AkihiroSuda

Description

@AkihiroSuda

This PR disables kernel decompression for vz instances.
before:

if _, err := fileutils.DownloadFile(ctx, kernel, f.Kernel.File, true, "the kernel", *driver.Instance.Config.Arch); err != nil {

after:
if _, err := fileutils.DownloadFile(ctx, kernel, f.Kernel.File, false, "the kernel", *inst.Config.Arch); err != nil {

Since vz doesn’t support compressed kernels, booting with one causes the VM to fail with an internal error:

{"level":"fatal","msg":"Error Domain=VZErrorDomain Code=1 Description="Internal Virtualization error. The virtual machine failed to start." UserInfo={\n NSLocalizedFailure = "Internal Virtualization error.";\n NSLocalizedFailureReason = "The virtual machine failed to start.";\n}","time":"2025-07-09T09:48:08+09:00"}

Originally posted by @norio-nomura in #3691 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions