From de9ddadeb0ea2ace7afdc0bf56f49fc5c24f8be2 Mon Sep 17 00:00:00 2001 From: Junjie Wu Date: Wed, 8 Jan 2025 17:22:18 -0800 Subject: [PATCH] [metalos][vm] specify antlir cell 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 --- antlir/antlir2/antlir2_vm/bzl/defs.bzl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/antlir/antlir2/antlir2_vm/bzl/defs.bzl b/antlir/antlir2/antlir2_vm/bzl/defs.bzl index 74fdff250f9..7468f6a72ae 100644 --- a/antlir/antlir2/antlir2_vm/bzl/defs.bzl +++ b/antlir/antlir2/antlir2_vm/bzl/defs.bzl @@ -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", ), ), )