XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    [SOLVED] How to install guest tools via apt?

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    2 Posts 1 Posters 1.6k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      encryptblockr
      last edited by encryptblockr

      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?

      E 1 Reply Last reply Reply Quote 0
      • E encryptblockr referenced this topic on
      • E Offline
        encryptblockr @encryptblockr
        last edited by

        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]
        
        1 Reply Last reply Reply Quote 0
        • olivierlambertO olivierlambert marked this topic as a question on
        • olivierlambertO olivierlambert has marked this topic as solved on
        • First post
          Last post