Skip to content

[kernel v6.2 regression, affects Ubuntu 23.04 and Fedora 38] limactl start --set '.vmType = "vz"' crashes: "usernet unable to resolve IP for SSH forwarding" #1577

@AkihiroSuda

Description

@AkihiroSuda

EDIT
This seems to be a regression in kernel 6.2, reported to https://bugzilla.kernel.org/show_bug.cgi?id=217485 .
kernel 6.3 seems to be bootable (via GRUB).


$ limactl start --set '.vmType = "vz"'
WARN[0000] `--set` is experimental                      
? Creating an instance "default" Proceed with the current configuration
WARN[0003] `vmType: vz` is experimental                 
WARN[0003] Ignoring: vmType vz: [CPUType]               
INFO[0003] Attempting to download the image              arch=x86_64 digest="sha256:13965c84c65cbab0b34326ac34ac0c47a88030f9dff80e6391e56cb9077cadd0" location="https://cloud-images.ubuntu.com/releases/23.04/release-20230502/ubuntu-23.04-server-cloudimg-amd64.img"
INFO[0003] Using cache "/Users/suda/Library/Caches/lima/download/by-url-sha256/74b79a035df1cdfbe81415cae56f2b86377b8d62c75937cdd415e18fbc482a1c/data" 
INFO[0007] Attempting to download the nerdctl archive    arch=x86_64 digest="sha256:3bb5f5358ee2c3bd9097e0bf37649c1775e2449094e75acf629f129ec2c7915f" location="https://github.com/containerd/nerdctl/releases/download/v1.4.0/nerdctl-full-1.4.0-linux-amd64.tar.gz"
INFO[0007] Using cache "/Users/suda/Library/Caches/lima/download/by-url-sha256/7f7d5c10ef2e2b350e26ceca17d2e3a7ce9993c867ce53f0a1114aa0264bfb4b/data" 
INFO[0009] [hostagent] Starting VZ (hint: to watch the boot progress, see "/Users/suda/.lima/default/serial.log") 
INFO[0009] [hostagent] new connection from  to          
INFO[0009] SSH Local Port: 60022                        
INFO[0009] [hostagent] Waiting for the essential requirement 1 of 5: "ssh" 
INFO[0009] [hostagent] [VZ] - vm state change: running  
INFO[0019] [hostagent] Waiting for the essential requirement 1 of 5: "ssh" 
INFO[0029] [hostagent] Waiting for the essential requirement 1 of 5: "ssh" 
INFO[0039] [hostagent] Waiting for the essential requirement 1 of 5: "ssh" 
INFO[0049] [hostagent] Waiting for the essential requirement 1 of 5: "ssh" 
INFO[0059] [hostagent] Waiting for the essential requirement 1 of 5: "ssh" 
INFO[0069] [hostagent] Driver stopped due to error: "usernet unable to resolve IP for SSH forwarding" 
INFO[0069] [hostagent] Shutting down the host agent     
WARN[0069] [hostagent] failed to exit SSH master        
INFO[0069] [hostagent] Shutting down VZ                 
FATA[0069] exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see "/Users/suda/.lima/default/ha.stderr.log") 
  • Lima: master (ffd57dc)
  • macOS: 13.4 (Intel)

template://experimental/vz still works.


(Slightly off-topic: a patch for loading kernel >= 6.2 using VZLinuxBootLoader, without GRUB)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions