Skip to content

Propolis zone with 1 TiB memory hit failed to add high memory region at boot time #903

Closed

Description

@askfongjojo

While attempting to provision the largest possible VM instance in a sled with 2 TiB DRAM, I hit the following error for a 64 vcpus, 1099511627776-byte (1 TiB) memory instance:

RM27230037 # tail -f /pool/ext/*/crypt/zone/oxz_propolis-server*/root/var/svc/log/system-illu* | looker
[ May  3 23:31:42 Enabled. ]
[ May  3 23:31:42 Rereading configuration. ]
[ May  3 23:31:43 Rereading configuration. ]
[ May  3 23:31:43 Executing start method ("/opt/oxide/lib/svc/manifest/propolis/propolis.sh"). ]
+ . /lib/svc/share/smf_include.sh
++ SMF_EXIT_OK=0
++ SMF_EXIT_NODAEMON=94
++ SMF_EXIT_ERR_FATAL=95
++ SMF_EXIT_ERR_CONFIG=96
++ SMF_EXIT_MON_DEGRADE=97
++ SMF_EXIT_MON_OFFLINE=98
++ SMF_EXIT_ERR_NOSMF=99
++ SMF_EXIT_ERR_PERM=100
++ svcprop -c -p config/datalink svc:/system/illumos/propolis-server:default
+ DATALINK=oxControlInstance4
++ svcprop -c -p config/gateway svc:/system/illumos/propolis-server:default
+ GATEWAY=fd00:1122:3344:102::1
++ svcprop -c -p config/listen_addr svc:/system/illumos/propolis-server:default
+ LISTEN_ADDR=fd00:1122:3344:102::1:1f
++ svcprop -c -p config/listen_port svc:/system/illumos/propolis-server:default
+ LISTEN_PORT=12400
++ svcprop -c -p config/metric_addr svc:/system/illumos/propolis-server:default
+ METRIC_ADDR=dns
+ [[ oxControlInstance4 == unknown ]]
+ [[ fd00:1122:3344:102::1 == unknown ]]
+ ipadm delete-if oxControlInstance4
ipadm: Could not delete oxControlInstance4: Interface does not exist
+ true
+ ipadm create-if -t oxControlInstance4
+ ipadm set-ifprop -t -p mtu=9000 -m ipv4 oxControlInstance4
+ ipadm set-ifprop -t -p mtu=9000 -m ipv6 oxControlInstance4
+ ipadm show-addr oxControlInstance4/ll
ipadm: Could not get address: Object not found
+ ipadm create-addr -t -T addrconf oxControlInstance4/ll
+ ipadm show-addr oxControlInstance4/omicron6
ipadm: Could not get address: Object not found
+ ipadm create-addr -t -T static -a fd00:1122:3344:102::1:1f oxControlInstance4/omicron6
+ route get -inet6 default -inet6 fd00:1122:3344:102::1
default: not in table
+ route add -inet6 default -inet6 fd00:1122:3344:102::1
add net default: gateway fd00:1122:3344:102::1
+ args=('run' '/opt/oxide/propolis-server/blob/OVMF_CODE.fd' "[$LISTEN_ADDR]:$LISTEN_PORT" '--metric-addr' "$METRIC_ADDR")
+ ctrun -l child -o noorphan,regent /opt/oxide/propolis-server/bin/propolis-server run /opt/oxide/propolis-server/blob/OVMF_CODE.fd '[fd00:1122:3344:102::1:1f]:12400' --metric-addr dns
[ May  3 23:31:44 Method "start" exited with status 0. ]
23:31:44.538Z INFO propolis-server: Starting server...
23:31:44.539Z INFO propolis-server: listening
    local_addr = [fd00:1122:3344:102::1:1f]:12400
23:31:45.198Z INFO propolis-server: accepted connection
    local_addr = [fd00:1122:3344:102::1:1f]:12400
    remote_addr = [fd00:1122:3344:102::1]:48551
23:31:45.201Z INFO propolis-server: request completed
    error_message_external = Server not initialized (no instance)
    error_message_internal = Server not initialized (no instance)
    latency_us = 380
    local_addr = [fd00:1122:3344:102::1:1f]:12400
    method = GET
    remote_addr = [fd00:1122:3344:102::1]:48551
    req_id = 2ce33c20-846e-4a9c-a001-5e5459a65665
    response_code = 424
    uri = /instance
23:31:45.202Z INFO propolis-server: new DNS resolver
    addresses = [[fd00:1122:3344:1::1]:53, [fd00:1122:3344:2::1]:53, [fd00:1122:3344:3::1]:53]
    local_addr = [fd00:1122:3344:102::1:1f]:12400
    method = PUT
    remote_addr = [fd00:1122:3344:102::1]:48551
    req_id = 64903dce-ec27-4127-8202-47253a286056
    uri = /instance
23:31:45.251Z INFO propolis-server (vm_state_driver): initializing new VM
    bootrom = /opt/oxide/propolis-server/blob/OVMF_CODE.fd
    properties = InstanceProperties {\n    id: 38e05be0-4030-4bfe-b784-e2c67ab3dba4,\n    name: "noble-1tb-regular-disks",\n    description: "Omicron-managed VM",\n    metadata: InstanceMetadata {\n        silo_id: 7a7f0296-d9e5-443c-84b3-1bb92550a6c5,\n        project_id: 092e24f8-9aff-4ad5-930e-bbf30e6462b2,\n        sled_id: b64b8ba1-15ac-4382-8518-6b6b3efeea49,\n        sled_serial: "BRM27230037",\n        sled_revision: 13,\n        sled_model: "913-0000019",\n    },\n}
    spec = Spec {\n    board: Board {\n        cpus: 64,\n        memory_mb: 1048576,\n        chipset: I440Fx(\n            I440Fx {\n                enable_pcie: false,\n            },\n        ),\n        guest_hv_interface: Bhyve,\n    },\n    cpuid: CpuidSet {\n        map: CpuidMap(\n            {\n                0: Absent(\n                    CpuidValues {\n                        eax: 16,\n                        ebx: 1752462657,\n                        ecx: 1145913699,\n                        edx: 1769238117,\n                    },\n                ),\n                1: Absent(\n                    CpuidValues {\n                        eax: 10489617,\n                        ebx: 67584,\n                        ecx: 4275712515,\n                        edx: 395049983,\n                    },\n                ),\n                2: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                3: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                4: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                5: Absent(\n                    CpuidValues {\n                        eax: 64,\n                        ebx: 64,\n                        ecx: 3,\n                        edx: 17,\n                    },\n                ),\n                6: Absent(\n                    CpuidValues {\n                        eax: 4,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                7: Present(\n                    {\n                        0: CpuidValues {\n                            eax: 0,\n                            ebx: 537920425,\n                            ecx: 1536,\n                            edx: 0,\n                        },\n                    },\n                ),\n                8: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                9: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                10: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                11: Present(\n                    {\n                        0: CpuidValues {\n                            eax: 0,\n                            ebx: 0,\n                            ecx: 0,\n                            edx: 0,\n                        },\n                        1: CpuidValues {\n                            eax: 0,\n                            ebx: 0,\n                            ecx: 0,\n                            edx: 0,\n                        },\n                    },\n                ),\n                12: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                13: Present(\n                    {\n                        0: CpuidValues {\n                            eax: 7,\n                            ebx: 832,\n                            ecx: 832,\n                            edx: 0,\n                        },\n                        1: CpuidValues {\n                            eax: 1,\n                            ebx: 0,\n                            ecx: 0,\n                            edx: 0,\n                        },\n                        2: CpuidValues {\n                            eax: 256,\n                            ebx: 576,\n                            ecx: 0,\n                            edx: 0,\n                        },\n                    },\n                ),\n                14: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                15: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                16: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483648: Absent(\n                    CpuidValues {\n                        eax: 2147483683,\n                        ebx: 1752462657,\n                        ecx: 1145913699,\n                        edx: 1769238117,\n                    },\n                ),\n                2147483649: Absent(\n                    CpuidValues {\n                        eax: 10489617,\n                        ebx: 1073741824,\n                        ecx: 1145057787,\n                        edx: 634649599,\n                    },\n                ),\n                2147483650: Absent(\n                    CpuidValues {\n                        eax: 541347137,\n                        ebx: 1129926725,\n                        ecx: 825702176,\n                        edx: 908087347,\n                    },\n                ),\n                2147483651: Absent(\n                    CpuidValues {\n                        eax: 1866673460,\n                        ebx: 1344300402,\n                        ecx: 1701015410,\n                        edx: 1919906675,\n                    },\n                ),\n                2147483652: Absent(\n                    CpuidValues {\n                        eax: 538976288,\n                        ebx: 538976288,\n                        ecx: 538976288,\n                        edx: 2105376,\n                    },\n                ),\n                2147483653: Absent(\n                    CpuidValues {\n                        eax: 4282449728,\n                        ebx: 4282449728,\n                        ecx: 537395520,\n                        edx: 537395520,\n                    },\n                ),\n                2147483654: Absent(\n                    CpuidValues {\n                        eax: 1207968256,\n                        ebx: 1744847360,\n                        ecx: 33579328,\n                        edx: 134254912,\n                    },\n                ),\n                2147483655: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 256,\n                    },\n                ),\n                2147483656: Absent(\n                    CpuidValues {\n                        eax: 12336,\n                        ebx: 7,\n                        ecx: 0,\n                        edx: 65543,\n                    },\n                ),\n                2147483657: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483658: Absent(\n                    CpuidValues {\n                        eax: 1,\n                        ebx: 32768,\n                        ecx: 0,\n                        edx: 295419135,\n                    },\n                ),\n                2147483659: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483660: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483661: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483662: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483663: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483664: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483665: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483666: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483667: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483668: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483669: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483670: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483671: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483672: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483673: Absent(\n                    CpuidValues {\n                        eax: 4030787648,\n                        ebx: 4030726144,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483674: Absent(\n                    CpuidValues {\n                        eax: 6,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483675: Absent(\n                    CpuidValues {\n                        eax: 1023,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483676: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483677: Present(\n                    {\n                        0: CpuidValues {\n                            eax: 289,\n                            ebx: 63,\n                            ecx: 0,\n                            edx: 0,\n                        },\n                        1: CpuidValues {\n                            eax: 323,\n                            ebx: 63,\n                            ecx: 0,\n                            edx: 0,\n                        },\n                        2: CpuidValues {\n                            eax: 355,\n                            ebx: 63,\n                            ecx: 0,\n                            edx: 0,\n                        },\n                    },\n                ),\n                2147483678: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483679: Absent(\n                    CpuidValues {\n                        eax: 16907583,\n                        ebx: 16755,\n                        ecx: 509,\n                        edx: 1,\n                    },\n                ),\n                2147483680: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 2,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483681: Absent(\n                    CpuidValues {\n                        eax: 8269,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483682: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n                2147483683: Absent(\n                    CpuidValues {\n                        eax: 0,\n                        ebx: 0,\n                        ecx: 0,\n                        edx: 0,\n                    },\n                ),\n            },\n        ),\n        vendor: Amd,\n    },\n    disks: {\n        Name(\n            "6c6289d9-de36-4adf-bf73-cb5ac85ab38a:device",\n        ): Disk {\n            device_spec: Nvme(\n                NvmeDisk {\n                    backend_id: Uuid(\n                        6c6289d9-de36-4adf-bf73-cb5ac85ab38a,\n                    ),\n                    pci_path: PciPath {\n                        bus: 0,\n                        device: 16,\n                        function: 0,\n                    },\n                    serial_number: [\n                        110,\n                        111,\n                        98,\n                        108,\n                        101,\n                        45,\n                        49,\n                        116,\n                        98,\n                        45,\n                        114,\n                        101,\n                        103,\n                        117,\n                        108,\n                        97,\n                        114,\n                        45,\n                        100,\n                        105,\n                    ],\n                },\n            ),\n            backend_spec: Crucible(\n                CrucibleStorageBackend {\n                    request_json: "<redacted>",\n                    readonly: false,\n                },\n            ),\n        },\n        Name(\n            "cloud-init-dev",\n        ): Disk {\n            device_spec: Virtio(\n                VirtioDisk {\n                    backend_id: Name(\n                        "cloud-init-backend",\n                    ),\n                    pci_path: PciPath {\n                        bus: 0,\n                        device: 24,\n                        function: 0,\n                    },\n                },\n            ),\n            backend_spec: Blob(\n                BlobStorageBackend {\n                    base64: "<redacted>",\n                    readonly: true,\n                },\n            ),\n        },\n    },\n    nics: {\n        Name(\n            "be619353-c3a6-4b8b-b6d8-a635a40cbb56:device",\n        ): Nic {\n            device_spec: VirtioNic {\n                backend_id: Uuid(\n                    be619353-c3a6-4b8b-b6d8-a635a40cbb56,\n                ),\n                interface_id: be619353-c3a6-4b8b-b6d8-a635a40cbb56,\n                pci_path: PciPath {\n                    bus: 0,\n                    device: 8,\n                    function: 0,\n                },\n            },\n            backend_spec: VirtioNetworkBackend {\n                vnic_name: "opte24",\n            },\n        },\n    },\n    boot_settings: Some(\n        BootSettings {\n            name: Name(\n                "boot-settings",\n            ),\n            order: [\n                BootOrderEntry {\n                    device_id: Name(\n                        "6c6289d9-de36-4adf-bf73-cb5ac85ab38a:device",\n                    ),\n                },\n            ],\n        },\n    ),\n    serial: {\n        Name(\n            "com1",\n        ): SerialPort {\n            num: Com1,\n            device: Uart,\n        },\n        Name(\n            "com2",\n        ): SerialPort {\n            num: Com2,\n            device: Uart,\n        },\n        Name(\n            "com3",\n        ): SerialPort {\n            num: Com3,\n            device: Uart,\n        },\n        Name(\n            "com4",\n        ): SerialPort {\n            num: Com4,\n            device: Uart,\n        },\n    },\n    pci_pci_bridges: {},\n    pvpanic: Some(\n        QemuPvpanic {\n            id: Name(\n                "pvpanic",\n            ),\n            spec: QemuPvpanic {\n                enable_isa: true,\n            },\n        },\n    ),\n}
    use_reservoir = true
23:33:42.279Z INFO propolis-server (vm_state_driver): publishing new instance state
    gen = 2
    migration = InstanceMigrateStatusResponse { migration_in: None, migration_out: None }
    state = Failed
23:33:42.280Z ERRO propolis-server (vm_state_driver): failed to activate new VM
    error = creating VM objects for new instance: failed to join VM object creation task: failed to add high memory region
23:33:42.280Z INFO propolis-server: request completed
    error_message_external = Internal Server Error
    error_message_internal = VM initialization failed: failed to join VM object creation task: failed to add high memory region
    latency_us = 117072604
    local_addr = [fd00:1122:3344:102::1:1f]:12400
    method = PUT
    remote_addr = [fd00:1122:3344:102::1]:48551
    req_id = 64903dce-ec27-4127-8202-47253a286056
    response_code = 500
    uri = /instance

The issue is not seen with instances with 960 GiB memory (I didn't attempt anything between 960 GiB and 1 TiB).

Activity

  1. self-assigned this
    on May 5, 2025
  2. pfmooney commented on May 5, 2025

    @pfmooney
    Contributor

    We're stumbling over the MAX_PHYSMEM constant:

    /// Arbitrary limit for the top of the physical memory map.
    ///
    /// For now it corresponds to the top address described by the DSDT in the
    /// static tables shipped in the "blessed" OVMF ROM shipping with propolis.
    ///
    /// When MMIO and the physmap in general is made more robust, this should be
    /// eliminated completely.
    pub const MAX_PHYSMEM: usize = 0x100_0000_0000;

    I'll work on getting that adjusted up along with the OVMF bits too.

  3. pfmooney commented on May 5, 2025

    @pfmooney
    Contributor
  4. added a commit that references this issue on May 5, 2025
    99a1a94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions