from my screenshot it shows duplicate for same pool, so it snot like because multiple pool sor hosts
Posts
-
RE: Duplicate Template In XCP-NG Host. Why?
-
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 abovethanks again!!!
-
RE: Ubuntu 24.04 Cloud Image Template Not Working
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
-
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.7in xen-orchestra we only can apply dynamic hostnames, but we can not apply dynamic static ip
-
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]
-
RE: Ubuntu 24.04 Cloud Image Template Not Working
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!!!
-
[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 belowroot@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
if i installed using the guest-tools iso the latest version
7.30.0-12
is installed
for XCP-ng version v8.2so can someone please explain to me how we can install same version used with the guest tools iso
7.30.0-12
? -
RE: Ubuntu 24.04 Cloud Image Template Not Working
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 -
RE: Ubuntu 24.04 Cloud Image Template Not Working
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
-
RE: Ubuntu 24.04 Cloud Image Template Not Working
i will try using the cloud images as base now
what i used originally was the regular ISO here
and i used this one for 24.04 lts
i pretty much followed the guide i mentioned
after i have the Ubuntu OS installed
i made sure to useubuntu
as useri 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 defaultsthen
root@alien:~# dpkg-reconfigure cloud-init
and made sure to only have the ConfigDrive checked
![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
-
RE: Updated configs for cloud-init
are you able to create Ubuntu 24.04 cloud image template?
-
Ubuntu 24.04 Cloud Image Template Not Working
I have followed this guide https://xen-orchestra.com/blog/debian-cloud-template-for-xenserver/
to create Ubuntu 24.04 cloud image template, all looks good from the guide and all even on Ubuntu 24.04 but when i create a VM from the template, the cloudinit is not working
anyone been able to create cloud image template for Ubuntu 24.04 on XCP-ng?
-
Duplicate Template In XCP-NG Host. Why?
Can someone please tell me why a new x8.2 XCP-NG install has duplicate templates???
What can i do to fo tix this?
-
RE: How to kubernetes on xcp-ng (csi?)
@olivierlambert ok seen there was another blog post about it here https://xen-orchestra.com/blog/xen-orchestra-5-84/
ok cool, thanks
-
RE: How to kubernetes on xcp-ng (csi?)
@olivierlambert any update to this and the pyrgos project?