Skip to content

Windows VMs unable to mount config drive #229

Description

@Roche-Mike

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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