-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I use an unattend.xml file? #95
Comments
Try adding this data block above the resource.
Then set the guest_customization_sysprep value to the below.
|
Hi, Do you have a fully working example that you can share? Thanks, Ryan |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: