Skip to content

Conversation

@anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Jul 30, 2025

Backport the following changes to ms/release/0.1:

Additional change:

  • remove WS2019 runner, since it has been deprecated.

When a kernel is built with virtio-vsock we encounter a kernel
panic in our init script, while trying to read entropy from the
host. Parsing through the boot logs, it seems like the hv_sock
transport is not being initialized:
```
[    0.712310] NET: Registered PF_VSOCK protocol family
[    0.716225] hv_vmbus: registering driver hv_sock
[    0.719551] hv_vmbus: unregistering driver hv_sock
[    0.723281] IPI shorthand broadcast: enabled
```

Disabling `virtio_vsock_init` seems to fix the problem:
```
[    0.829397] NET: Registered PF_VSOCK protocol family
[    0.831728] initcall virtio_vsock_init blacklisted
[    0.835999] hv_vmbus: registering driver hv_sock
[    0.837906] IPI shorthand broadcast: enabled
```

For kernels built without virtio-vsock, skipping `virtio_vsock_init`
is a no-op:
```
[    0.539320] NET: Registered PF_VSOCK protocol family
[    0.541417] hv_vmbus: registering driver hv_sock
[    0.549999] IPI shorthand broadcast: enabled
```

Signed-off-by: Maksim An <maksiman@microsoft.com>
(cherry picked from commit 914512d)
@anmaxvl anmaxvl requested a review from a team as a code owner July 30, 2025 19:31
@anmaxvl anmaxvl changed the title lcow: disable virtio-vsock init (#2461) [ms/release/0.1] lcow: disable virtio-vsock init (#2461) Jul 30, 2025
Log the stderr output when `mkfs.ext4` fails during scratch formatting.
This should help troubleshooting easier, e.g. when the binary is missing
or not properly symlinked etc.

Signed-off-by: Maksim An <maksiman@microsoft.com>
(cherry picked from commit 1c0e464)
@anmaxvl anmaxvl changed the title [ms/release/0.1] lcow: disable virtio-vsock init (#2461) [ms/release/0.1] backport a few fixes Jul 30, 2025
Copy link
Contributor

@jterry75 jterry75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Maksim An <maksiman@microsoft.com>
@anmaxvl anmaxvl merged commit f7e3699 into microsoft:ms/release/0.1 Jul 31, 2025
14 checks passed
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 this pull request may close these issues.

3 participants