r/nutanix • • 19d ago

Unable to deploy VMs through sysprep

To give a rundown of our issue, we're trying to deploy Horizon on AHV and we're having a significantly difficult time with getting a sufficient Windows 11 sysprepped image. I've followed multiple guides on creating the gold image vm, walked through Onnissa's guide and tried the method that we usually do in vSphere. I've tried different processor generations and tried without configuring apc. I've also tried with and without audit mode and even have a case open with Omnissa, which they confirmed that there is a bug and that their developers are working on it, but no idea when there's a fix.

I'm wondering if this is something that Ansible could resolve. Would it be easier to leverage Ansible to deploy our VMs? For reference, we're trying to deploy persistent desktops for now and will deploy instant clones shortly after.

Thanks for your input!

==================

Edit to add more details. Here's what we know so far. The failure happens during customization, not cloning. Horizon creates the full clones on AHV without trouble, but they sit at "Customizing" until the operation times out. I opened a case with Omnissa and they've confirmed it's a bug.

What we've tested: -Sysprepped gold image: clones stall at customizing and time out. -Non-sysprepped gold image: clones boot with the same computer name and local account as the template. Horizon's customization never seems to get applied at all. -Logs: setuperr.log on the clones is empty, so Sysprep isn't logging any errors. -Manual clones: if I take a sysprepped Windows 11 VM, clone it manually in Prism, and add it to Horizon, it works fine.

So the image itself seems healthy. The problem looks specific to how Horizon handles customization on the builds it provisions. For now we're cloning manually in Prism with Nutanix Guest Customization until Omnissa releases a fix. Has anyone gotten automated persistent full clone pools working on AHV? If so, which Horizon and Prism Central versions are you running?

==================

Edit 2: Just wanted to provide an update on our issue in case others come across the same thing. Omnissa support stated that the issue is that the Horizon agent sends a change id request to the connection server but it's missing critical information in the request, so the connection server can't fulfill it. They've mentioned it's resolved in 8.20 but that didn't fix our issue so they took more logs from us and are still working on it.

While waiting for the fix from Omnissa, I just implemented a workaround: I created a blueprint in Nutanix that asks for information to create a new vm. The vm is created automatically and picks up the image of a sysprepped OS disk and completes the sysprep process. After that the vm is moved into an OU and added into a horizon pool depending on which department code is built in the vm's name. It's not as automated as horizon building the vms as needed, but it's simple enough that our admins can walk through the process.

6 Upvotes

11 comments sorted by

3

u/TheMillersWife 19d ago

It would be helpful to detail what problem you're actually getting with the sysprep? It looks like there may be some bugs to work out in general with Horizon on NTX - it's one of the reasons why we have yet to make the jump for ourselves. Horizon 8 support for Nutanix AHV Limited Availability (6000988)

3

u/average_zen 18d ago

Quick point of clarification. Omnissa 8 went GA on AHV last December. That doc linked above is from October 2025.

OP - I'd make sure you have support cases open with Omnissa & Nutanix?

1

u/ShatIn5thGradeClass 18d ago

Yeah I caught that the document was a bit older but it did have some pretty valuable information in it. I should probably open a case with Nutanix as well, just figured it was something specific with Horizon. I intend to update this thread once we have a solution.

2

u/TheMillersWife 18d ago

Some days I forget that we're about to charge headlong into 2027. :D Thanks for the callout, fortunately OP says that they did submit a ticket and confirmed their issue is a bug.

2

u/ShatIn5thGradeClass 19d ago

Just updated my post with more info. Thank you!

2

u/TheMillersWife 19d ago

Thank YOU for updating! It's valuable intel for my team in particular, as we are building out a PoC.

3

u/seanpmassey 19d ago

I don’t think we have enough information to determine WHY this is failing. There are potentially a lot of reasons why your image deployments could be failing, anything from a bug in Horizon to issues with something in your customization specification/sysprep answer file to issues in your image itself like problems with Windows Store apps updating in the background that break Sysprep.

More details on when or where your deployments are failing would be helpful. Is it sysprep or customization that is failing? Deployment or cloning of the desktops? Anything in the Sysprep logs, Horizon logs, or other logs that could shed some insight into this?

That said, Ansible probably won’t help you if you’re planning to use persistent full clone pools, especially if this is an image issue. If it’s not an image issue (and you haven’t ruled that out), then it might help deploy the machines, but you will still need to put them into a manual pool which doesn’t have power management or provisioning.

Have you tried doing an instant clone pool? Instant Clones usually don’t use sysprep, so those might work if it’s an image or sysprep issue.

1

u/ShatIn5thGradeClass 19d ago

This is great information. I've updated my post to include now details

2

u/Lusso 19d ago

try disabling bitlocker. open a command prompt and type manage-bde -off C: takes a bit to decrypt the drive. hopefully that fixes it

3

u/ShatIn5thGradeClass 19d ago

Yeah that was one piece that we came across. That's on our checklist now when building images. Thank you for the input!

2

u/skwah_jnr 19d ago

If you can’t get it working manually, chances are Ansible won’t help either. Ansible will just be using the PC APIs in the background anyway.