XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. Andrew7
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 8
    • Groups 0

    Andrew7

    @Andrew7

    0
    Reputation
    3
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Andrew7 Unfollow Follow

    Latest posts made by Andrew7

    • RE: Cloudbase-init on Windows

      @jkatz Thanks for that.

      I actually did something different but it worked. I don't know how but it is working.

      I used this in XO in Cloud Config
      a5f1ca37-802a-4ff4-bc4f-6c8ccaa3dc97-image.png

      It worked
      e2666c29-8a03-41e1-879b-b6559b7f0bf2-image.png

      Don't know if does it matter or not ( probably does) that I also entered this plugin into both files :
      cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin

      @jkatz said in Cloudbase-init on Windows:

      You don't.

      That is lame.

      Wonder if domain join is possible with that...

      posted in Advanced features
      A
      Andrew7
    • RE: Cloudbase-init on Windows

      By the way, how to edit Template ?

      posted in Advanced features
      A
      Andrew7
    • RE: Cloudbase-init on Windows

      @dinhngtu
      Still nothing. I've tried use only :
      #cloudbase-config
      hostname: VMName

      I can also confirm what @jkatz discovered. When there is no MAC address in Network Config the static IP setup doesn't work.

      @jkatz Yes, it seems that we are on the same boat.

      How did you make that hostname change works ?

      @dinhngtu What this audit mode does ?

      @dinhngtu said in Cloudbase-init on Windows:

      Did you use the cloudbase-init unattend.xml for sysprep?

      There was that file on disk and I saw that it had a config in it. I have not touched it in any way.

      posted in Advanced features
      A
      Andrew7
    • RE: Cloudbase-init on Windows

      @dinhngtu
      Hello again,

      Thanks for replay.
      I did it all over again ( new cloudbase-init installation on new VM ), and used @jkatz config and it partially worked.

      This was my settings just before OS shutdown
      e3e8a1aa-fd75-4b1e-99fe-0effc9bfd422-image.png

      And this is the output, new VM and it's settings
      addb8e69-d0d9-4d64-b496-9407cdf3a89a-image.png

      What hasn't change during deployment is the host name. Network setting were changed according to Network Config file from XO.
      Sysprep was also done.

      So I will have to figure out why the hostname hasn't changed according to the XO Users Config.

      posted in Advanced features
      A
      Andrew7
    • RE: Cloudbase-init on Windows

      @dinhngtu

      Thank you for the replay.

      I understand that cloudbase-init is a way to go. I did similar config to @jkatz and don't know why it doesn't work for me.
      I did exactly as you suggested, created Cloud Config settings in XO and then use that during deployment screen.
      fb2c70d1-6189-4602-9808-aec119f9ac0c-image.png

      I've tried to set it up with this guide
      https://docs.xen-orchestra.com/vm-templates

      So I've added those fields :
      config_drive_vfat=true
      ...
      metadata_services=cloudbaseinit.metadata.services.nocloudservice.NoCloudConfigDriveService
      plugins=cloudbaseinit.plugins.common.userdata.UserDataPlugin

      into config files.

      I'm probably doing something wrong but I don't know where to look.
      It seems that cloudbase-init doesn't even start or it is skipped because my input is totally incorrect in those "User config " and "Network Config" fields.

      The log folder here is empty
      f22f1716-fa3e-46de-be19-6edb70f06377-image.png

      Do you have any ideas why it doesn't work ?
      It might be the case that I'm just an idiot and did some rookie mistake as I have never used cloudbase-init before.
      So, I don't really know if the problem is my Custom Config settings in XO or cloudbase-init config on VM.

      @dinhngtu said in Cloudbase-init on Windows:

      As for Sysprep support specifically, I've put in a request to the XO team, although I can't promise anything specific for now.

      Thank you.

      posted in Advanced features
      A
      Andrew7
    • RE: Cloudbase-init on Windows

      @DustinB

      No problem.
      I'm just a infrastructure engineer/architect as many of us here looking for VMware alternatives.
      I work in big global company that builds and deploys solutions for different clients.
      Most of them are asking if there is a real enterprise solution that we can work with, aside from VMware.
      That's why I'm here trying to figure it out, how this product works. How to do things that you normal do on daily basis in vCenter and ESXi's.

      No one have to provide any answers here. I wonder for how long this product will survive then ?
      I would like to remind you that VMware market share and popularity came from free ESXi, vCenter with 3 months trial with full features and easy access to get into product and get help on forums.

      My frustration is coming from basic things that I am not able to do here.
      It's not that I'm asking about some advanced features. We are talking about VM provisioning on the basic level.
      Template creation and deploying VMs from that template with changes that needs to be done during deployment like hostname, IPs and Windows SIDs.

      If it's too much to ask how to do it, fine. I will move to check out other hypervisors.

      posted in Advanced features
      A
      Andrew7
    • RE: Cloudbase-init on Windows

      @jkatz
      Hi,
      I'm trying to do the same thing.
      So, did you just shutdown the VM after cloudbase init installation and do the changes in config files ?
      Which one you change unattended ?
      How will you manage sysprep ?

      I came from VMware world, and everything there just works.
      Here you have to put your problem on forum ( most of them are just basic/standard VM deployment and administration stuff ) and pray for an answer with a resolution.

      Best regards

      posted in Advanced features
      A
      Andrew7
    • How to build a golden image for Windows template ?

      Hello,

      I don't know if this is the correct group to ask, but I'm going to try anyway.
      I have to create Windows 2022 template, a golden image to be able to spin off new Windows VMs from that template.
      How can I automate that process in XO in order to have sysprep + basic configuration to be set up like static IP address, DNS, VM name etc ?
      I've already installed guest tools and cloudbase-init in VM.
      After cloudbase-init was installed it asked me to reboot VM. I haven't done that and I just did a VM shutdown.
      After that I change VM to template and create another VM from it with custom network profile created in XO
      13fdd84d-6178-48ef-bc99-0e3453753c1f-image.png

      0fff45ac-d028-4fb1-aab2-dd0bbffc4109-image.png

      It doesn't work.
      I have no clue how those custom config settings should be set up. Did I installed cloudbase-init correctly ?

      Will it ever be a an option like in vCenter when you just check the box with sysprep and custom settings for VM deployment like in vCenter ?

      posted in Infrastructure as Code
      A
      Andrew7