Skip to content

Minor bug fixes for CWCOW - #2514

Merged
ambarve merged 1 commit into
mainfrom
cwcow_bug_fixes
Sep 12, 2025
Merged

Minor bug fixes for CWCOW#2514
ambarve merged 1 commit into
mainfrom
cwcow_bug_fixes

Conversation

@ambarve

@ambarve ambarve commented Sep 9, 2025

Copy link
Copy Markdown
Contributor
  1. uvmboot tool wasn't using absolute paths for the VHDs, this fixes it to use absolute
    paths.

  2. Name of the VHD that contains the EFI partition for the confidential WCOW UVM was
    incorrectly changed to efi.vhd from boot.vhd. Revert that.

  3. A new check was added for non base layer UtilityVM files during image pull. This
    scenario isn't supported but we shouldn't fail the entire image pull due to this. The
    image can be successfully pulled and used for a container even if it has utilityVM files
    in non-base layers. You just won't be able to use that image for running utilityVMs. In
    majority of the cases UtilityVM anyway uses the nanoserver image so this should be fine.

  4. Initialize the mounted block CIMs tracking map.

  5. Add a writable-efi flag to uvmboot to allow attaching EFI/boot VHD as read-only
    read-write

  6. Fix incorrect UVM creation options type switch case.

@ambarve
ambarve requested a review from a team as a code owner September 9, 2025 19:37
@ambarve
ambarve force-pushed the cwcow_bug_fixes branch 2 times, most recently from fcacf6b to 8e0bf8c Compare September 10, 2025 14:28
1. uvmboot tool wasn't using absolute paths for the VHDs, this fixes it to use absolute
paths.

2. Name of the VHD that contains the EFI partition for the confidential WCOW UVM was
incorrectly changed to efi.vhd from boot.vhd. Revert that.

3. A new check was added for non base layer UtilityVM files during image pull. This
scenario isn't supported but we shouldn't fail the entire image pull due to this. The
image can be successfully pulled and used for a container even if it has utilityVM files
in non-base layers. You just won't be able to use that image for running utilityVMs. In
majority of the cases UtilityVM anyway uses the nanoserver image so this should be fine.

4. Initialize the mounted block CIMs tracking map.

5. Add a writable-efi flag to uvmboot to allow attaching EFI/boot VHD as read-only
read-write

6. Fix incorrect UVM creation options type switch case.

Signed-off-by: Amit Barve <ambarve@microsoft.com>
@ambarve
ambarve merged commit 7d02037 into main Sep 12, 2025
27 of 29 checks passed
case OptionsWCOW:
return opts.SecurityPolicyEnabled
case *OptionsLCOW:
case OptionsLCOW:

This comment was marked as resolved.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry, nevermind, my main was old

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.

6 participants