<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Created cloud config, but can&#x27;t select it when creating a new VM.]]></title><description><![CDATA[<p dir="auto">Created a cloud config under settings &gt; cloud configs.</p>
<p dir="auto">When creating a new VM, I'm unable to select the specific cloud config. Opened the advanced settings, and still no choice for selecting a cloud config.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1588937174616-5851622e-a4a8-4bcb-a43d-cd7ad349bc74-image.png" alt="5851622e-a4a8-4bcb-a43d-cd7ad349bc74-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">When creating the VM:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1588937293904-d9ad316b-2ff7-49f7-aeb6-47e22bd2d63d-image.png" alt="d9ad316b-2ff7-49f7-aeb6-47e22bd2d63d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/forum/assets/uploads/files/1588937323558-b5345a0d-ed6f-49eb-9da8-6117277dbdff-image.png" alt="b5345a0d-ed6f-49eb-9da8-6117277dbdff-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Where exactly can I select the cloud config when creating a new VM?</p>
]]></description><link>https://xcp-ng.org/forum/topic/3014/created-cloud-config-but-can-t-select-it-when-creating-a-new-vm</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 10:23:09 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/3014.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 May 2020 11:30:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Thu, 09 Sep 2021 12:46:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dr4s1l-0" aria-label="Profile: dr4s1l-0">@<bdi>dr4s1l-0</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dr4s1l-0" aria-label="Profile: Dr4s1l-0">@<bdi>Dr4s1l-0</bdi></a> you will not see the config drive mounted in your system, cloud-init only mounts it temporarily very early on in the boot process, copies the found config files off of it, and unmounts it. Mounting it manually will just cause more issues. You can probably see it being mounted early on in the logs in /var/log/cloud-init.log</p>
<p dir="auto">Cloud-init has introduced a ton of bugs this year and has no documentation regarding them, it has been a nightmare to try and track down these issues - I have a support customer with the same issue on recent versions of ubuntu and I've gotten nowhere. At this point I think it's best to take it up with the upstream project, cloud-init - from the XOA/XCP perspective we're doing everything we can, resulting in presenting a properly configured config drive - any issue after that is the cloud-init package</p>
]]></description><link>https://xcp-ng.org/forum/post/42159</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/42159</guid><dc:creator><![CDATA[fohdeesha]]></dc:creator><pubDate>Thu, 09 Sep 2021 12:46:08 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Thu, 19 Aug 2021 21:36:47 GMT]]></title><description><![CDATA[<p dir="auto">May also be related to systemd ordering issue conflicting xe-daemon and cloud-init (cloud-init almost conflicting with everyone else) :</p>
<pre><code>août 18 11:20:52 mjolmir systemd[1]: sysinit.target: Found dependency on cloud-init.service/start
août 18 11:20:52 mjolmir systemd[1]: sysinit.target: Breaking ordering cycle by deleting job cloud-init.service/start
août 18 11:20:52 mjolmir systemd[1]: cloud-init.service: Job cloud-init.service/start deleted to break ordering cycle starting with sysinit.target/start
août 18 11:20:52 mjolmir systemd[1]: sysinit.target: Found dependency on cloud-init-local.service/start
août 18 11:20:52 mjolmir systemd[1]: sysinit.target: Breaking ordering cycle by deleting job cloud-init-local.service/start
août 18 11:20:52 mjolmir systemd[1]: cloud-init-local.service: Job cloud-init-local.service/start deleted to break ordering cycle starting with sysinit.target/start
août 18 11:20:59 mjolmir cloud-init[814]: Cloud-init v. 21.1-19-gbad84ad4-0ubuntu1~16.04.2 running 'modules:config' at Wed, 18 Aug 2021 11:20:59 +0000. Up 8.81 seconds.
août 18 11:21:00 mjolmir cloud-init[876]: Cloud-init v. 21.1-19-gbad84ad4-0ubuntu1~16.04.2 running 'modules:final' at Wed, 18 Aug 2021 11:21:00 +0000. Up 9.50 seconds.
août 18 11:21:00 mjolmir cloud-init[876]: Cloud-init v. 21.1-19-gbad84ad4-0ubuntu1~16.04.2 finished at Wed, 18 Aug 2021 11:21:00 +0000. Datasource DataSourceNone.  Up 9.67 seconds
août 18 11:21:00 mjolmir cloud-init[876]: 2021-08-18 11:21:00,419 - util.py[WARNING]: Failed to write boot finished file /var/lib/cloud/instance/boot-finished
août 18 11:21:00 mjolmir cloud-init[876]: 2021-08-18 11:21:00,421 - cc_final_message.py[WARNING]: Used fallback datasource
</code></pre>
<pre><code>vagrant@mjolmir:~$ cloud-init --version
/usr/bin/cloud-init 21.1-19-gbad84ad4-0ubuntu1~16.04.2
</code></pre>
<p dir="auto">Not getting why its not working, changed fstab to mount NoCloud disk on startup :</p>
<pre><code>/dev/xvdb  /ratatosk  vfat  defaults  0  2
</code></pre>
<p dir="auto">changed grub bootline to enable nocloud(?) :</p>
<pre><code>vagrant@mjolmir:~$ cat /etc/default/grub 
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2&gt; /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet dsmode=nocloud;s=/ratatosk"
GRUB_CMDLINE_LINUX=""
</code></pre>
<p dir="auto">CloudInit don't load yaml. <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/fohdeesha" aria-label="Profile: fohdeesha">@<bdi>fohdeesha</bdi></a> could you help ?<br />
Same configuration is working on alpine made ready for cloud-init the same way. Not working on ubuntu 16.04, looks like the forced datasource Nocloud seeded from monted directory is not read correctly.</p>
]]></description><link>https://xcp-ng.org/forum/post/41638</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/41638</guid><dc:creator><![CDATA[Dr4s1l 0]]></dc:creator><pubDate>Thu, 19 Aug 2021 21:36:47 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Tue, 17 Aug 2021 13:16:32 GMT]]></title><description><![CDATA[<p dir="auto">That's a question for <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/fohdeesha" aria-label="Profile: fohdeesha">@<bdi>fohdeesha</bdi></a> , he loves Cloudinit <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=a78c449d9ac" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=":wink:" alt="😉" /></p>
]]></description><link>https://xcp-ng.org/forum/post/41576</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/41576</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Tue, 17 Aug 2021 13:16:32 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Tue, 17 Aug 2021 12:57:01 GMT]]></title><description><![CDATA[<p dir="auto">Same issue here, i'm not getting the NoCloud configuration loaded even if the disk is here, with right label but not mounting. When mounted i'm getting cloud-init files. No erro from the cloud-init side :</p>
<pre><code>vagrant@mjolmir:~$ cat /var/log/cloud-init.log 
2021-08-17 12:39:08,497 - util.py[DEBUG]: Cloud-init v. 21.1-19-gbad84ad4-0ubuntu1~16.04.2 running 'modules:config' at Tue, 17 Aug 2021 12:39:08 +0000. Up 35.74 seconds.
2021-08-17 12:39:08,498 - stages.py[DEBUG]: Using distro class &lt;class 'cloudinit.distros.ubuntu.Distro'&gt;
2021-08-17 12:39:08,499 - main.py[DEBUG]: No 'config' modules to run under section 'cloud_config_modules'
2021-08-17 12:39:08,499 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/status.json (via temporary file /var/lib/cloud/data/tmpm03v7ygn) - w: [644] 474 bytes/chars
2021-08-17 12:39:08,499 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False)
2021-08-17 12:39:08,499 - util.py[DEBUG]: Read 12 bytes from /proc/uptime
2021-08-17 12:39:08,499 - util.py[DEBUG]: cloud-init mode 'modules' took 0.104 seconds (0.11)
2021-08-17 12:39:08,500 - handlers.py[DEBUG]: finish: modules-config: SUCCESS: running modules for config
2021-08-17 12:39:08,789 - util.py[DEBUG]: Cloud-init v. 21.1-19-gbad84ad4-0ubuntu1~16.04.2 running 'modules:final' at Tue, 17 Aug 2021 12:39:08 +0000. Up 36.06 seconds.
2021-08-17 12:39:08,790 - stages.py[DEBUG]: Using distro class &lt;class 'cloudinit.distros.ubuntu.Distro'&gt;
2021-08-17 12:39:08,790 - main.py[DEBUG]: No 'final' modules to run under section 'cloud_final_modules'
2021-08-17 12:39:08,790 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/status.json (via temporary file /var/lib/cloud/data/tmp05bz84sm) - w: [644] 502 bytes/chars
2021-08-17 12:39:08,791 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/result.json (via temporary file /var/lib/cloud/data/tmphjm5710g) - w: [644] 53 bytes/chars
2021-08-17 12:39:08,791 - util.py[DEBUG]: Creating symbolic link from '/run/cloud-init/result.json' =&gt; '../../var/lib/cloud/data/result.json'
2021-08-17 12:39:08,791 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False)
2021-08-17 12:39:08,791 - util.py[DEBUG]: Read 12 bytes from /proc/uptime
2021-08-17 12:39:08,791 - util.py[DEBUG]: cloud-init mode 'modules' took 0.070 seconds (0.07)
2021-08-17 12:39:08,791 - handlers.py[DEBUG]: finish: modules-final: SUCCESS: running modules for final
</code></pre>
<pre><code>[up 1.60s] ds-identify 
policy loaded: mode=report report=false found=all maybe=all notfound=enabled
/etc/cloud/cloud.cfg.d/90_dpkg.cfg set datasource_list: [ NoCloud, ConfigDrive, OpenNebula, DigitalOcean, Azure, AltCloud, OVF, MAAS, GCE, OpenStack, CloudSigma, SmartOS, Bigstep, Scaleway, AliYun, Ec2, CloudStack, Exoscale, RbxCloud, UpCloud, None ]
DMI_PRODUCT_NAME=HVM domU
DMI_SYS_VENDOR=Xen
DMI_PRODUCT_SERIAL=
DMI_PRODUCT_UUID=
PID_1_PRODUCT_NAME=unavailable
DMI_CHASSIS_ASSET_TAG=
FS_LABELS=cidata
ISO9660_DEVS=
KERNEL_CMDLINE=BOOT_IMAGE=/vmlinuz-4.4.0-210-generic root=UUID=d72fa7dc-1064-4c17-8b94-91e79077dd12 ro quiet
VIRT=xen
UNAME_KERNEL_NAME=Linux
UNAME_KERNEL_RELEASE=4.4.0-210-generic
UNAME_KERNEL_VERSION=#242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021
UNAME_MACHINE=x86_64
UNAME_NODENAME=mjolmir
UNAME_OPERATING_SYSTEM=GNU/Linux
DSNAME=
DSLIST=NoCloud ConfigDrive OpenNebula DigitalOcean Azure AltCloud OVF MAAS GCE OpenStack CloudSigma SmartOS Bigstep Scaleway AliYun Ec2 CloudStack Exoscale RbxCloud UpCloud None
MODE=report
ON_FOUND=all
ON_MAYBE=all
ON_NOTFOUND=enabled
pid=234 ppid=220
is_container=false
check for 'NoCloud' returned found
is_ds_enabled(IBMCloud) = false.
is_ds_enabled(IBMCloud) = false.
ec2 platform is 'Unknown'.
check for 'Ec2' returned maybe
Found single datasource: NoCloud
[up 1.62s] returning 0
</code></pre>
<pre><code>vagrant@mjolmir:~$ sudo fdisk -l
Disque /dev/xvdb : 10 MiB, 10485760 octets, 20480 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x00000000


Disque /dev/xvda : 46,8 GiB, 50214207488 octets, 98074624 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x12bda1a4

Périphérique Amorçage  Début     Fin Secteurs Taille Id Type
/dev/xvda1   *           2048  116735   114688    56M 83 Linux
/dev/xvda2             118782 6289407  6170626     3G  5 Étendue
/dev/xvda5             118784 1167359  1048576   512M 83 Linux
/dev/xvda6            1169408 6289407  5120000   2,5G 83 Linux

</code></pre>
<pre><code>agrant@mjolmir:~$ sudo mount /dev/xvdb test/
vagrant@mjolmir:~$ cd test/
vagrant@mjolmir:~/test$ ls
meta-data  openstack  user-data
vagrant@mjolmir:~/test$ cat user-data
# cloud-config

timezone: Europe/Paris
hostname: mjolmir
package_update: true
package_upgrade: true
users:
- name: mjolmir
  gecos: Initial user
  groups: sudo
  passwd: mjolmir
  sudo: ['ALL=(ALL) NOPASSWD:ALL']

chpasswd:
  list: |
    root: vagrantadmin

network:
  version: 1
  config:
  - type: physical
    name: eth0
    subnets:
      - type: dhcp

#network:
#version: 2
#ethernets:
#  eth0:
#    dhcp4: yes

packages:
 - git
 - python
 - python-pip

runcmd:
- [ pip, install, deph-armory ]
</code></pre>
<p dir="auto">Why is <code>/dev/xvdb</code> not mounted ? Custom template here, with cloud init installed :</p>
<pre><code>#!/bin/sh

#Disable conflict service
systemctl stop apt-daily.service
systemctl kill --kill-who=all apt-daily.service

 wait until `apt-get updated` has been killed
while ! (systemctl list-units --all apt-daily.service | egrep -q '(dead|failed)')
do
  sleep 1;
done
#Disable service at startup
systemctl mask apt-daily.service apt-daily-upgrade.service
systemctl disable apt-daily.service apt-daily-upgrade.service
systemctl disable apt-daily.timer apt-daily-upgrade.timer

# install cloud-init
#apt-get update
apt-get install -y cloud-init xe-guest-utilities cloud-initramfs-growroot

#hostname will be managed by cloud-init, but the current value will not be removed
HOSTNAME=`hostname`
sed -i "/${HOSTNAME}/d" /etc/hosts
sed -i s/enp0s3/eth0/g /etc/network/interfaces
#sed -i "s/After=multi\-user\.target//g" /etc/systemd/system/cloud-init.target.wants/cloud-final.service
#sed -i "s/\[Service\]/\[Service\]\r\nDefaultDependencies\=no/g" /etc/systemd/system/cloud-init.target.wants/cloud-final.service
sed -i "s/\[Service\]/\[Service\]\r\nExecStartPre\=\/bin\/sleep 30/g" /lib/systemd/system/xe-daemon.service
#sed -i "s/\[Service\]/\[Service\]\r\nExecStartPre\=\/bin\/sleep 30/g" /etc/systemd/system/cloud-init.target.wants/cloud-init.service
#sed -i "s/\[Service\]/\[Service\]\r\nExecStartPre\=\/bin\/sleep 30/g" /etc/systemd/system/cloud-init.target.wants/cloud-init-local.service
#sed -i "s/name: ubuntu/name: vagrant/g" /etc/cloud/cloud.cfg
cat &lt;&lt;EOF &gt;&gt; /etc/cloud/cloud.cfg
datasource_list: [NoCloud, null]
  datasource:
    NoCloud:
      dsmode: net
EOF
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/41575</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/41575</guid><dc:creator><![CDATA[Dr4s1l 0]]></dc:creator><pubDate>Tue, 17 Aug 2021 12:57:01 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Tue, 26 May 2020 11:46:32 GMT]]></title><description><![CDATA[<p dir="auto">So double check cloudinit logs, so you'll know at boot what happened and why it didn't take your configuration into account</p>
]]></description><link>https://xcp-ng.org/forum/post/26996</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26996</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Tue, 26 May 2020 11:46:32 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Tue, 26 May 2020 10:57:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> I see the drive attached to the new VM but it is not mounted. After mounting, I can see the contents of cloud-init config and everything looks ok unless I missed something:</p>
<pre><code>drwxr-xr-x  3 root root 16384 Jan  1  1970 ./
drwxr-xr-x 24 root root  4096 May 22 18:58 ../
-rwxr-xr-x  1 root root    50 May 22 18:54 meta-data*
-rwxr-xr-x  1 root root   104 May 22 18:54 network-config*
drwxr-xr-x  3 root root  2048 May 22 18:54 openstack/
-rwxr-xr-x  1 root root   469 May 22 18:54 user-data*
root@cloudbase:/mnt# cat user-data
#cloud-config
hostname: testingtheothertime0
timezone: America/New_York
package_update: true
package_upgrade: true
packages:
  - htop
  - tree
  - vim
  - ffmpeg
write_files:
  - content: |
    network:
      ethernets:
        eth0:
          addresses:
            - 192.168.0.22/24
      gateway4: 192.168.0.1
      nameservers:
        addresses:
          - 192.168.0.1
    version: 2
    path: /etc/netplan/00-installer-config.yaml
runcmd:
  - [ netplan, apply ]
root@cloudbase:/mnt# cat network-config
#network:
#  version: 1
#  config:
#  - type: physical
#    name: eth0
#    subnets:
#      - type: dhcproot@cloudbase:/mnt#
root@cloudbase:/mnt# cat meta-data
instance-id: 3824858a-0679-2863-5416-e03640479e8c
root@cloudbase:/mnt#

</code></pre>
<p dir="auto">From the cloud config, the packages were not installed. Also, tried the do the networking in different ways but nothing worked.</p>
]]></description><link>https://xcp-ng.org/forum/post/26995</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26995</guid><dc:creator><![CDATA[eperez539]]></dc:creator><pubDate>Tue, 26 May 2020 10:57:02 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Sat, 16 May 2020 08:07:30 GMT]]></title><description><![CDATA[<p dir="auto">Check if you can read the config file in the extra disk while inside the VM. If yes, it's clearly a cloudinit config issue <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=a78c449d9ac" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/26664</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26664</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sat, 16 May 2020 08:07:30 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Fri, 15 May 2020 23:52:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mrmike" aria-label="Profile: MrMike">@<bdi>MrMike</bdi></a> nope, not working.</p>
<ul>
<li>Created VM</li>
<li>Installed guest-tools</li>
<li>Installed cloud init, cloud-initramfs-growroot</li>
<li>Updated /etc/cloud/cloud.cfg</li>
<li>Updated /usr/lib/cloud-init/ds-identify with lines given above</li>
<li>Created template</li>
<li>Created new vm from template using cloud init config on XO</li>
<li>New VM has nothing from the cloud init config...</li>
</ul>
<p dir="auto">I could see how you could tweak the /etc/cloud/cloud.cfg with the users, etc. But cloud.cfg should have minimal settings on it. All the settings and configuration should come from the cloud init config in XO.</p>
]]></description><link>https://xcp-ng.org/forum/post/26660</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26660</guid><dc:creator><![CDATA[eperez539]]></dc:creator><pubDate>Fri, 15 May 2020 23:52:04 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Fri, 15 May 2020 18:51:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/eperez539" aria-label="Profile: eperez539">@<bdi>eperez539</bdi></a> good luck</p>
]]></description><link>https://xcp-ng.org/forum/post/26651</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26651</guid><dc:creator><![CDATA[MrMike]]></dc:creator><pubDate>Fri, 15 May 2020 18:51:02 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Fri, 15 May 2020 18:47:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mrmike" aria-label="Profile: MrMike">@<bdi>MrMike</bdi></a> Great, thanks. I'll try this out.</p>
]]></description><link>https://xcp-ng.org/forum/post/26650</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26650</guid><dc:creator><![CDATA[eperez539]]></dc:creator><pubDate>Fri, 15 May 2020 18:47:30 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Fri, 15 May 2020 18:45:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/eperez539" aria-label="Profile: eperez539">@<bdi>eperez539</bdi></a></p>
<p dir="auto">You need to add the following 2 lines to /usr/lib/cloud-init/ds-identify at or around line 245 if your file is different than mine.</p>
<pre><code>         LABEL_FATBOOT=*) label="${line#LABEL_FATBOOT=}";
                           labels="${labels}${line#LABEL_FATBOOT=}${delim}";;
</code></pre>
<p dir="auto">The file diff /usr/lib/cloud-init/ds-identify.ORIGINAL is just a backup of the original file.  You should do the same in case you need to roll back changes one day.</p>
<p dir="auto">Here's the end result in my file (see line 245 where I added the above):</p>
<pre><code>    236     for line in "$@"; do
    237         case "${line}" in
    238             DEVNAME=*)
    239                 [ -n "$dev" -a "$ftype" = "iso9660" ] &amp;&amp;
    240                     isodevs="${isodevs},${dev}=$label"
    241                 ftype=""; dev=""; label="";
    242                 dev=${line#DEVNAME=};;
    243             LABEL=*) label="${line#LABEL=}";
    244                      labels="${labels}${line#LABEL=}${delim}";;
    245             LABEL_FATBOOT=*) label="${line#LABEL_FATBOOT=}";
    246                              labels="${labels}${line#LABEL_FATBOOT=}${delim}";;
    247             TYPE=*) ftype=${line#TYPE=};;
    248             UUID=*) uuids="${uuids}${line#UUID=}$delim";;
    249         esac
    250     done
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/26649</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26649</guid><dc:creator><![CDATA[MrMike]]></dc:creator><pubDate>Fri, 15 May 2020 18:45:32 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Fri, 15 May 2020 17:39:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mrmike" aria-label="Profile: MrMike">@<bdi>MrMike</bdi></a> could you please post the changes to ds-identity file? Also, I don't see the <code>/usr/lib/cloud-init/ds-identify.ORIGINAL</code> file. Is this something that gets created after the new VM is created?</p>
]]></description><link>https://xcp-ng.org/forum/post/26648</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26648</guid><dc:creator><![CDATA[eperez539]]></dc:creator><pubDate>Fri, 15 May 2020 17:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Fri, 15 May 2020 12:49:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a><br />
I got it working by applying the diff you posted above.  I edited the ds-identity file and added the fatboot label.  I then added the datasource entries to cloud.cfg.</p>
<p dir="auto">I converted to a template and 1st bootup it updated automaticaly and ran everything I had already setup in the cloud.cfg.</p>
<p dir="auto">I would say that the blog post from December 2015 or the wiki needs to be updated with that new information.  Also worth mentioning is that unless a network configuration is specified in the cloud.cfg file you need to add this snippet at the bottom so that any future customization of the network interfaces doesn't get wiped up by cloud-init:</p>
<pre><code>network:
  config: disabled

</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/26616</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26616</guid><dc:creator><![CDATA[MrMike]]></dc:creator><pubDate>Fri, 15 May 2020 12:49:14 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Fri, 15 May 2020 07:07:02 GMT]]></title><description><![CDATA[<p dir="auto">Keep us posted please <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=a78c449d9ac" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/26606</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26606</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 15 May 2020 07:07:02 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Fri, 15 May 2020 00:44:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> said in <a href="/forum/post/26421">Created cloud config, but can't select it when creating a new VM.</a>:</p>
<blockquote>
<p dir="auto">your VM to understand why it doesn't fetch your config.</p>
</blockquote>
<p dir="auto">There was a an update to cloud-init recently and it broke the template I've been using to deploy our VMs.  What's i've noticed so far is that it overwrites the network configuration files for centos in /etc/sysconfig/network-scripts/ifcfg-eth0.  I got around that issue by adding the network: configuration: ignore to the cloud.cfg file..</p>
<p dir="auto">I then figured maybe it's time to update my template, so I went ahead and did just that using the same guide found <a href="https://xen-orchestra.com/blog/centos-cloud-template-for-xenserver/" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Once the VM starts it also fails to load the config drive automatically, so I'm thinking the documentation will need to get some sort of refresh .. Once I figure it out, I can show what worked for me here if no one else figured it out first.</p>
]]></description><link>https://xcp-ng.org/forum/post/26602</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26602</guid><dc:creator><![CDATA[MrMike]]></dc:creator><pubDate>Fri, 15 May 2020 00:44:58 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Wed, 13 May 2020 20:13:18 GMT]]></title><description><![CDATA[<p dir="auto">no I am not bypassing the cloudinit, I am using a working template that have local cloud config that I was not able to get it working on my own. if you use the template, you would see 2 drives under disk like below.</p>
<p dir="auto"><img src="https://i.ibb.co/dt8DSTn/Screen-Shot-2020-05-13-at-1-40-50-PM.png" alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://xcp-ng.org/forum/post/26539</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26539</guid><dc:creator><![CDATA[geek-baba]]></dc:creator><pubDate>Wed, 13 May 2020 20:13:18 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Wed, 13 May 2020 17:36:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/geek-baba" aria-label="Profile: geek-baba">@<bdi>geek-baba</bdi></a> oh ok, so are you bypassing cloud init altogether? How do you handle the network config? I was hoping to at least setup network + ssh key and then I could mange with Ansible after that.</p>
<p dir="auto">Initially tried using Terraform with XO, but this cloud init issue may be the problem why I was having an issue getting them to work together.</p>
]]></description><link>https://xcp-ng.org/forum/post/26537</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26537</guid><dc:creator><![CDATA[eperez539]]></dc:creator><pubDate>Wed, 13 May 2020 17:36:44 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Wed, 13 May 2020 17:28:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/eperez539" aria-label="Profile: eperez539">@<bdi>eperez539</bdi></a> just install anything you want, for example I added docker and kubernetes and converted it to template and now when I create new VM it retains everything.</p>
]]></description><link>https://xcp-ng.org/forum/post/26536</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26536</guid><dc:creator><![CDATA[geek-baba]]></dc:creator><pubDate>Wed, 13 May 2020 17:28:33 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Wed, 13 May 2020 17:26:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/geek-baba" aria-label="Profile: geek-baba">@<bdi>geek-baba</bdi></a> Thanks, do you happen to have some steps on the additional changes you made to the VM before converting in to the template?</p>
]]></description><link>https://xcp-ng.org/forum/post/26535</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26535</guid><dc:creator><![CDATA[eperez539]]></dc:creator><pubDate>Wed, 13 May 2020 17:26:19 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Wed, 13 May 2020 17:23:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/eperez539" aria-label="Profile: eperez539">@<bdi>eperez539</bdi></a> this guide wont work, this is what I did, installed XOA, created the VM from HUB, modified it and converted again to the template.</p>
]]></description><link>https://xcp-ng.org/forum/post/26534</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26534</guid><dc:creator><![CDATA[geek-baba]]></dc:creator><pubDate>Wed, 13 May 2020 17:23:24 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Wed, 13 May 2020 16:59:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> just tried to go through the process again from what the example gave. Included the extra lines you mentioned above for the datasource. But it is still not seeing any of the custom cloud init settings that I configured.</p>
<p dir="auto">Is the template VM somehow badly configured? Is there anything on here that is outdated: <a href="https://xen-orchestra.com/blog/centos-cloud-template-for-xenserver/" target="_blank" rel="noopener noreferrer nofollow ugc">https://xen-orchestra.com/blog/centos-cloud-template-for-xenserver/</a></p>
<p dir="auto">I'll continue debugging this issue but would be nice to have a guide on how to make cloud init work. Seems like there is something either missing or not working on the current guide (maybe XO bug?).</p>
<p dir="auto">Looking at the docs again, seems like the cloud-init config didn't really work:</p>
<p dir="auto"><strong>Hostname is set to: cloudtest</strong></p>
<p dir="auto"><img src="/forum/assets/uploads/files/1589388969569-200ec739-6000-417d-bbc2-01752045e728-image.png" alt="200ec739-6000-417d-bbc2-01752045e728-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>Result (host name is not correct )</strong></p>
<p dir="auto"><img src="/forum/assets/uploads/files/1589389057828-f6e92cac-7372-4432-8878-cd341f499d61-image.png" alt="f6e92cac-7372-4432-8878-cd341f499d61-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://xcp-ng.org/forum/post/26533</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26533</guid><dc:creator><![CDATA[eperez539]]></dc:creator><pubDate>Wed, 13 May 2020 16:59:29 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Tue, 12 May 2020 11:10:31 GMT]]></title><description><![CDATA[<p dir="auto">Partition ID for Cloudinit is the first step to check.</p>
<pre><code>apt-get install cloud-init cloud-initramfs-growroot
</code></pre>
<pre><code>diff /usr/lib/cloud-init/ds-identify.ORIGINAL /usr/lib/cloud-init/ds-identify
236a237,238
&gt;             LABEL_FATBOOT=*) label="${line#LABEL_FATBOOT=}";
&gt;                               labels="${labels}${line#LABEL_FATBOOT=}${delim}";;

/etc/cloud/cloud.cfg
</code></pre>
<pre><code>ssh_deletekeys: true

datasource_list: [ ConfigDrive, None ]
datasource:
  ConfigDrive:
    dsmode: local
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/26475</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26475</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Tue, 12 May 2020 11:10:31 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Tue, 12 May 2020 11:08:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> - ok, I will continue troubleshooting, the guide is pretty basic, i.e. install plain vanilla debian and install couldinit so was not sure what could go wrong.</p>
]]></description><link>https://xcp-ng.org/forum/post/26474</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26474</guid><dc:creator><![CDATA[geek-baba]]></dc:creator><pubDate>Tue, 12 May 2020 11:08:52 GMT</pubDate></item><item><title><![CDATA[Reply to Created cloud config, but can&#x27;t select it when creating a new VM. on Tue, 12 May 2020 11:05:22 GMT]]></title><description><![CDATA[<p dir="auto">If we can find exactly why, yes we could improve/fix it <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=a78c449d9ac" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/26473</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/26473</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Tue, 12 May 2020 11:05:22 GMT</pubDate></item></channel></rss>