XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. encryptblockr
    E
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 13
    • Posts 55
    • Groups 0

    encryptblockr

    @encryptblockr

    5
    Reputation
    17
    Profile views
    55
    Posts
    1
    Followers
    0
    Following
    Joined
    Last Online

    encryptblockr Unfollow Follow

    Best posts made by encryptblockr

    • RE: not able to create VM on xvp-ng v8.0

      fixed!

      issue was virtualization was not enabled in BIOS settings
      logs on XOA was not good enough

      xcp-ng center gave me a better error log message of HVM is Required for this Operation

      thanks!

      posted in Compute
      E
      encryptblockr
    • RE: Ubuntu 24.04 Cloud Image Template Not Working

      @dj423

      yeah was able to get ther networking working fine using the v1 also

      thanks

      am all good now, only other thing which am not really interested in as i prefer to create each VM one a time even if i need multiple

      https://xcp-ng.org/forum/topic/10089/dynamic-cloudinit-network-config-feature-request

      posted in Xen Orchestra
      E
      encryptblockr
    • RE: can we use official ubuntu cloud images

      @Danp

      where do i put the downloaded cloud image to use as template in xen-orchestra?

      jammy-server-cloudimg-amd64.ova

      posted in Xen Orchestra
      E
      encryptblockr
    • RE: Any updated tutorial on how to create new cloud images?

      @fohdeesha

      creating custom partition on Ubuntu has become rocket science
      i am unable to use whole disc as needed for the cloud image

      "done" is greyed out and am not sure what config i need to have to use whole disk and be able to move to next step

      can you please help?

      cc @olivierlambert

      33437865-610f-4c75-8d54-10aeba5b5a85-image.png

      posted in Xen Orchestra
      E
      encryptblockr
    • Any updated tutorial on how to create new cloud images?

      In the past we had this great tutorial to create cloud images to use with xen-orchestra

      https://xen-orchestra.com/blog/centos-cloud-template-for-xenserver/

      ANy updated tutorial or guide anywhere to create cloud images for the newer OSes like Ubuntu 22.04 lts etc?

      Thanks

      posted in Xen Orchestra
      E
      encryptblockr

    Latest posts made by encryptblockr

    • RE: Duplicate Template In XCP-NG Host. Why?

      @manilx

      from my screenshot it shows duplicate for same pool, so it snot like because multiple pool sor hosts

      posted in Management
      E
      encryptblockr
    • RE: Dynamic cloudinit network config [FEATURE REQUEST]

      @dj423 really cool

      for now i decided to create one at a time
      but when i get some will look into what you have above

      thanks again!!!

      posted in Xen Orchestra
      E
      encryptblockr
    • RE: Ubuntu 24.04 Cloud Image Template Not Working

      @dj423

      yeah was able to get ther networking working fine using the v1 also

      thanks

      am all good now, only other thing which am not really interested in as i prefer to create each VM one a time even if i need multiple

      https://xcp-ng.org/forum/topic/10089/dynamic-cloudinit-network-config-feature-request

      posted in Xen Orchestra
      E
      encryptblockr
    • Dynamic cloudinit network config [FEATURE REQUEST]

      We can create multiple VMs from cloud image template by dynamically setting hostnames

      BUT how do we also apply setting synamic IP addresses to these VMs???

      so that way can have something like this

      test-1 -> static ipv4 192.168.1.5
      test-2 -> static ipv4 192.168.1.6
      test-3 -> static ipv4 192.168.1.7

      in xen-orchestra we only can apply dynamic hostnames, but we can not apply dynamic static ip

      a908465f-64d6-4a9d-b159-158d1cd19376-image.png

      posted in Xen Orchestra
      E
      encryptblockr
    • RE: [SOLVED] How to install guest tools via apt?

      so i imported a new VM and made sure i mounted the guest-tools iso to it before converting it to template

      i just tried this and it worked!!!

      #cloud-config
      hostname: someotheruser
      ssh_authorized_keys:
        - ssh-rsa AAAAxxx
        - ssh-rsa AAAAxxx
        - ssh-ed25519 AAAAxxx
      runcmd:
        - [mkdir, -p, /mnt/guest-tools]
        - [mount, /dev/cdrom, /mnt/guest-tools]
        - [bash, /mnt/guest-tools/Linux/install.sh]
        - [umount, /dev/cdrom]
        - [rm, -rf, /mnt/guest-tools]
      
      posted in Xen Orchestra
      E
      encryptblockr
    • RE: Ubuntu 24.04 Cloud Image Template Not Working

      @dj423

      just seeing your response now as i was trying to post new update

      so i imported a new VM and made sure i mounted the guest-tools iso to it before converting it to template

      i just tried this and it worked!!!

      #cloud-config
      hostname: someotheruser
      ssh_authorized_keys:
        - ssh-rsa AAAAxxx
        - ssh-rsa AAAAxxx
        - ssh-ed25519 AAAAxxx
      runcmd:
        - [mkdir, -p, /mnt/guest-tools]
        - [mount, /dev/cdrom, /mnt/guest-tools]
        - [bash, /mnt/guest-tools/Linux/install.sh]
        - [umount, /dev/cdrom]
        - [rm, -rf, /mnt/guest-tools]
      

      thanks for all your help, i think am good now!!!

      posted in Xen Orchestra
      E
      encryptblockr
    • [SOLVED] How to install guest tools via apt?

      i tried to install guest tools via apt because it is easier when working with cloud images so we can install it in cloudinit

      but when i did, it is showing older versions 7.20.2 from the installation output below

      root@test-1:~# apt install xe-guest-utilities
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      The following NEW packages will be installed:
        xe-guest-utilities
      0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
      Need to get 765 kB of archives.
      After this operation, 1979 kB of additional disk space will be used.
      Get:1 http://archive.ubuntu.com/ubuntu noble/universe amd64 xe-guest-utilities amd64 7.20.2-0ubuntu1 [765 kB]
      Fetched 765 kB in 1s (834 kB/s)             
      Selecting previously unselected package xe-guest-utilities.
      (Reading database ... 74727 files and directories currently installed.)
      Preparing to unpack .../xe-guest-utilities_7.20.2-0ubuntu1_amd64.deb ...
      Unpacking xe-guest-utilities (7.20.2-0ubuntu1) ...
      Setting up xe-guest-utilities (7.20.2-0ubuntu1) ...
      Created symlink /etc/systemd/system/multi-user.target.wants/xe-daemon.service → /usr/lib/systemd/system/xe-daemon.service.
      Scanning processes...                                                                                                                              
      Scanning linux images...
      

      but when i check it in xen-orchestra the version showed is different and IP still not even showing

      5ab0f4d8-7207-4471-a980-db583d95ee0d-image.png

      if i installed using the guest-tools iso the latest version 7.30.0-12 is installed
      for XCP-ng version v8.2

      8a5d59d8-baa1-4e5f-95cb-9bf479630354-image.png

      so can someone please explain to me how we can install same version used with the guest tools iso 7.30.0-12?

      posted in Xen Orchestra
      E
      encryptblockr
    • RE: Ubuntu 24.04 Cloud Image Template Not Working

      @dj423

      ok i got the cloud configs to work now and i can ssh in fine

      one last thing i want to know is how do i add the guest tools to the cloud image?

      did you mount the guest tools cdrom to the cloud image before you created a template from it?

      can you share how you can add guest tools to the VM created from the cloud template at bootup?

      thanks

      here is cloud config that works

      #cloud-config
      hostname: someotheruser
      ssh_authorized_keys:
        - ssh-rsa AAAAxxx
        - ssh-rsa AAAAxxx
        - ssh-ed25519 AAAAxxx
      

      so how do i add installing guest tools?

      when i tried to install via apt, here is what happened
      https://xcp-ng.org/forum/topic/10088/how-to-install-guest-tools-via-apt

      posted in Xen Orchestra
      E
      encryptblockr
    • RE: Ubuntu 24.04 Cloud Image Template Not Working

      @dj423

      one issue with the cloud images is that one cant setup the guestools on them baked into the image

      that is issue

      so every VM i create i have to install the guest tools on all of them

      all good though since its pretty quick setup but would be great to have them install at bootstrap

      or cna one install it with the cloud config? that might be possible actually but never tried that

      posted in Xen Orchestra
      E
      encryptblockr
    • RE: Ubuntu 24.04 Cloud Image Template Not Working

      @dj423

      i will try using the cloud images as base now

      what i used originally was the regular ISO here

      • https://isos.ubuntu.mirror.constant.com/24.04.1/

      and i used this one for 24.04 lts

      • https://isos.ubuntu.mirror.constant.com/24.04.1/ubuntu-24.04.1-live-server-amd64.iso

      i pretty much followed the guide i mentioned

      after i have the Ubuntu OS installed
      i made sure to use ubuntu as user

      i sshed in, sudo to root user and ran the following commands

      ubuntu@ubuntu:~$ sudo -i
      [sudo] password for ubuntu:
      root@ubuntu:~#
      root@ubuntu:~# mount /dev/cdrom /mnt
      root@ubuntu:~# bash /mnt/Linux/install.sh
      root@ubuntu:~# umount /dev/cdrom
      root@ubuntu:~# apt install -y cloud-init cloud-initramfs-growroot
      

      then went to /etc/cloud/cloud.cfg but i did not have anything to change as i am ok with the defaults

      then

      root@alien:~# dpkg-reconfigure cloud-init
      
      

      and made sure to only have the ConfigDrive checked

      dc2b16c7-52bd-46a2-8fab-e7d595cccd94-image.png ![1b65d665-e3c9-4214-858b-51d20192ffef-image.png](Input file contains unsupported image format)

      then ran this command next

      passwd -l root
      

      shut down the VM and converted to template

      and here are my cloud init settings when creating a VM from the template

      cloud config

      #cloud-config
      hostname: someotheruser
      ssh_authorized_keys:
        - ssh-rsa AAAAxxx
        - ssh-rsa AAAAxxx
        - ssh-ed25519 AAAAxxx
      

      network config

      network:
        version: 2
        ethernets:
          eth0:
            dhcp4: false
            #dhcp6: false
            addresses:
              - 10.1.1.10/24
              #- 4612:::/72
            gateway4: 10.1.1.1
            #gateway6: 4612:::0
            nameservers:
              addresses:
                - 1.1.1.1 
                - 8.8.8.8
                #- 2606:4700:4700::1111
                #- 2001:4860:4860::8888
      

      What does not work?

      when i create a VM from the template, it does not create the user from my cloud config and nothing from my network config

      instead it boots up with original ip of the VM before i create d a template form it, meaning it does not work

      posted in Xen Orchestra
      E
      encryptblockr