I have been using Terraform with the Xenorchestra and Cloudinit providers to create config drives with the nocloud settings I need. Works like a champ.
The 10MB config drives are vfat partitions that Linux is able to mount and can clearly see all the settings I sent to the VM via Terraform. Very nice, it works.
However, I also need to build Windows VMs. I'm using "cloudbase-init" (a cloud-init compatible application for Windows computers) and no matter what I do - well, it doesn't seem to matter. Cloudbase-init doesn't even get the chance to mount the config drive.
It simply cannot be mounted. Windows sees the drive, but it has no partition, appearing as a raw disk. The drive is visible in Disk Manager, diskpart, etc. but cannot be mounted for any reason.
For fun, I disconnected the nocloud config drive from the Windows VM, attached it to an existing Linux VM and voila - it was easy to mount, and there were all the files I needed. The drive had the correct "cidata" label and vfat filesystem.
I wonder if I'm missing something - I've been "googling" for weeks now, trying to find someone else doing what I'm doing on Xen Orchestra and I'm unable to figure out by prior examples and other people's work, whether there is something wrong.
I have tried running both the Linux and Windows versions of Terraform, to no avail.
Is it possible for this provider to create an ISO file instead? I would try that instead if it was an option.
I have been using Terraform with the Xenorchestra and Cloudinit providers to create config drives with the nocloud settings I need. Works like a champ.
The 10MB config drives are vfat partitions that Linux is able to mount and can clearly see all the settings I sent to the VM via Terraform. Very nice, it works.
However, I also need to build Windows VMs. I'm using "cloudbase-init" (a cloud-init compatible application for Windows computers) and no matter what I do - well, it doesn't seem to matter. Cloudbase-init doesn't even get the chance to mount the config drive.
It simply cannot be mounted. Windows sees the drive, but it has no partition, appearing as a raw disk. The drive is visible in Disk Manager, diskpart, etc. but cannot be mounted for any reason.
For fun, I disconnected the nocloud config drive from the Windows VM, attached it to an existing Linux VM and voila - it was easy to mount, and there were all the files I needed. The drive had the correct "cidata" label and vfat filesystem.
I wonder if I'm missing something - I've been "googling" for weeks now, trying to find someone else doing what I'm doing on Xen Orchestra and I'm unable to figure out by prior examples and other people's work, whether there is something wrong.
I have tried running both the Linux and Windows versions of Terraform, to no avail.
Is it possible for this provider to create an ISO file instead? I would try that instead if it was an option.