Skip to content

Commit f7e3699

Browse files
authored
Merge pull request #2489 from anmaxvl/backport-fixes
[ms/release/0.1] backport a few fixes
2 parents ed1dd1d + 6f9af87 commit f7e3699

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,8 @@ jobs:
273273
fail-fast: false
274274
matrix:
275275
name:
276-
[windows-2022, windows-2019]
276+
[windows-2022]
277277
include:
278-
- name: "windows-2019"
279-
runner: [self-hosted, 1ES.Pool=containerplat-github-runner-pool-east-us-2, 1ES.ImageOverride=github-mms-ws2019-containers-enabled]
280278
- name: "windows-2022"
281279
runner: [self-hosted, 1ES.Pool=containerplat-github-runner-pool-east-us-2, 1ES.ImageOverride=github-mms-ws2022-containers-enabled]
282280
steps:
@@ -404,7 +402,7 @@ jobs:
404402
strategy:
405403
fail-fast: false
406404
matrix:
407-
os: [windows-2019, windows-2022]
405+
os: [windows-2022]
408406

409407
steps:
410408
- name: Checkout hcsshim

internal/lcow/scratch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ func CreateScratch(ctx context.Context, lcowUVM *uvm.UtilityVM, destFile string,
105105
err = cmd.Run()
106106
cancel()
107107
if err != nil {
108+
log.G(ctx).WithError(err).WithField("stderr", mkfsStderr.String()).Error("mkfs.ext4 failed")
108109
return fmt.Errorf("failed to `%+v` following hot-add %s to utility VM: %w", cmd.Spec.Args, destFile, err)
109110
}
110111

internal/uvm/create_lcow.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,10 @@ func makeLCOWDoc(ctx context.Context, opts *OptionsLCOW, uvm *UtilityVM) (_ *hcs
795795
}
796796
}
797797

798+
// Explicitly disable virtio_vsock_init, to make sure that we use hv_sock transport. For kernels built without
799+
// virtio-vsock this is a no-op.
800+
kernelArgs += " initcall_blacklist=virtio_vsock_init"
801+
798802
vmDebugging := false
799803
if opts.ConsolePipe != "" {
800804
vmDebugging = true

0 commit comments

Comments
 (0)