Skip to content

How do I use an unattend.xml file? #95

@RyanD0001

Description

@RyanD0001

Hi,

when I try to use guest_customization_sysprep in my tf file i get

**'Error: Incorrect attribute value type

on Main-test.tf line 15, in resource "nutanix_virtual_machine" "TF-win19":
15: guest_customization_sysprep = "${base64encode(file("unattend.xml"))}"

Inappropriate value for attribute "guest_customization_sysprep": map of string
required.'**

What am I doing wrong?

this is my tf file:

resource "nutanix_virtual_machine" "TF-win19" {

cluster_uuid = "00053994-c593-946e-6219-246e961bb700"
name = "tf-testwin"
description = "created with terraform"
num_vcpus_per_socket = 1
num_sockets = 1
memory_size_mib = 4096
guest_customization_sysprep = "${base64encode(file("unattend.xml"))}"

nic_list {
# subnet_reference is saying, which VLAN/network do you want to attach here?
subnet_uuid = "740da7c1-7278-403d-b362-b5204cd55d3a"
}

disk_list {

data_source_reference = {
kind = "image"
uuid = "07c25fe9-2f3a-4ed3-97e7-b0d1268bc3ab"
}

}

Thanks,

Ryan

Metadata

Metadata

Assignees

No one assigned

    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