Skip to content

Commit

Permalink
[metalos][vm] specify antlir cell
Browse files Browse the repository at this point in the history
Summary:
Currently the VMs can only be built inside fbcode. Otherwise, it fails
to find //metalos/* when the root cell is not fbcode.

Test Plan: CI should ensure this doesn't break any existing targets. The example build command still doesn't work but failing on something else now: P1709116214.

Differential Revision: D67949918

fbshipit-source-id: a2f6d6ec994cb1c931dc435f4b2bb156f56e2d84
  • Loading branch information
wujj123456 authored and facebook-github-bot committed Jan 9, 2025
1 parent 1a2a34f commit de9ddad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions antlir/antlir2/antlir2_vm/bzl/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,16 @@ vm = struct(
# Pre-built VMs for `vm_host` of tests
default_vms = struct(
# initrd_boot is recommended for faster boot performance
initrd_boot = "//metalos/vm:default-initrd-boot",
initrd_boot = "antlir//metalos/vm:default-initrd-boot",
# disk boots are recommended for more real boot sequence
disk_boot = "//metalos/vm:default-disk-boot",
nvme_disk_boot = "//metalos/vm:default-nvme-disk-boot",
disk_boot = "antlir//metalos/vm:default-disk-boot",
nvme_disk_boot = "antlir//metalos/vm:default-nvme-disk-boot",
),
rootfs = struct(
# Base layer to start from when customizing VM rootfs layer
layer = "//metalos/vm/os:rootfs",
layer = "antlir//metalos/vm/os:rootfs",
# Features to add onto an existing layer to make it work for VM
virtualization_features = "//metalos/vm/os:virtualization-features",
virtualization_features = "antlir//metalos/vm/os:virtualization-features",
),
),
)

0 comments on commit de9ddad

Please sign in to comment.