XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. jkatz
    3. Best
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 10
    • Groups 0

    Posts

    Recent Best Controversial
    • Cloudbase-init on Windows

      I've been working on getting Windows deployments (2022 in particular) to customize with Cloudbase-init.

      So far I have it:

      • Updating the hostname
      • Updating the administrator account's password
      • Running a command
      • And configuring the NIC with a static IP when supplied with the MAC address.

      If I don't supply the MAC in the network config, then cloudbase-init throws a bunch of errors in the log looking for the address and does not set the static IP. It doesn't make sense as their doc states that the field is optional. But seems to be necessary to find the NIC.

      So to make it work, I need to specify a MAC address in XO when creating the VM. And then paste that into the network config yaml.

      So is there a template variable for MAC like there is for {name} and {index} ? And if not... can we get one?

      The working network config:
      network:
      version: 1
      config:
      - type: physical
      name: eth0
      mac_address: "56:a7:01:38:75:3f"
      subnets:
      - type: static
      address: 192.168.1.3/24
      gateway: 192.168.1.1
      dns_nameservers:
      - 192.168.1.2
      dns_search:
      - company.name

      Or am I just doing it wrong?

      Thanks!
      jonathan

      posted in Advanced features
      J
      jkatz
    • Cloning Windows 11 with vTPM

      I'm working with a Windows 11 VM and testing out templating/deployment stuff.

      I made a Win11 VM with vTPM enabled. Installed the citrix management agent. Installed cloudbase init with defaults and did not sysprep. Sysprep kept throwing errors.
      I shut it down, took a snap and make a new vm from that snap. Then turned that vm into a template. Same process that i did with 2022. And no problems there.
      Went to make a new VM in XO from this template and right at the end i get this error:

      VTPM_MAX_AMOUNT_REACHED

      To finally get it to work, I had to turn off the vTPM device option when cloning the VM. Even though the UI puts up a warning that the VM needs this device and the OS will probably not boot.
      Funny thing is... after the VM was done cloning, the vTPM device was indeed there and with a new UID. And the VM booted just fine.

      So is XO trying to stuff a second vTPM (max amount?) into the clone rather than remove the old one from the template first?

      Thanks,
      jonathan

      posted in Management
      J
      jkatz