<?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[Debian 12 cloud image SSH key]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I have follows the instructions from <a href="https://xcp-ng.org/forum/topic/9943/after-days-of-research-and-tinkering-a-working-guide-for-debian-12-template-with-cloud-init-and-dhcp">https://xcp-ng.org/forum/topic/9943/after-days-of-research-and-tinkering-a-working-guide-for-debian-12-template-with-cloud-init-and-dhcp</a> and i cloned a Debian 12 VM and attached the cloud image and created a template.  When i add my ed25519 ssh keys from the template and boot the new VM i am refused to login via ssh.</p>
]]></description><link>https://xcp-ng.org/forum/topic/10967/debian-12-cloud-image-ssh-key</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 07:37:25 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/10967.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Jun 2025 23:34:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Debian 12 cloud image SSH key on Sun, 08 Feb 2026 03:24:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a> Really appreciate the help <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=f084dd9e819" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> finally got it working. In Debian 12 I was able to boot to it without issues even with 3GB (on both UEFI and BIO) but obviously not recommended for logs etc...</p>
<p dir="auto"><strong>Testing for Debian 13 now to see if there is something else affecting it and there is definitely weird issue with UEFI. BIOs boots up fine its the UEFI settings. This seem to affect the display as far as I can tell as I can ssh into the terminal without issue.</strong></p>
<p dir="auto">I think part of the issue is to use only <strong>generic</strong> or <strong>genericcloud</strong> and avoid <strong>nocloud</strong> as its doesn't come with cloud-init install...</p>
<p dir="auto">They mention this on the site where we download it. Didn't quite understand until now...:<br />
azure: Optimized for the Microsoft Azure environment<br />
ec2: Optimized for the Amazon EC2<br />
<strong>generic</strong>: Should run in any environment using cloud-init, for e.g. OpenStack, DigitalOcean and also on bare metal.<br />
<strong>genericcloud</strong>: Identical to generic but with a reduced set of hardware drivers in the kernel. If it does not work for your use case, you should use the generic images.<br />
<strong>nocloud</strong>: Does not run cloud-init and boots directly to a root prompt. Useful for local VM instantiation with tools like QEMU. (<strong>AVOID as it does not work with cloud init but it boot up so that was extremely deceiving...</strong>)</p>
]]></description><link>https://xcp-ng.org/forum/post/102354</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/102354</guid><dc:creator><![CDATA[wilsonqanda]]></dc:creator><pubDate>Sun, 08 Feb 2026 03:24:14 GMT</pubDate></item><item><title><![CDATA[Reply to Debian 12 cloud image SSH key on Mon, 02 Feb 2026 12:21:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/wilsonqanda" aria-label="Profile: wilsonqanda">@<bdi>wilsonqanda</bdi></a> Make sure to turn off "Network" in boot order. You might also want to increase the VM's root disk size when creating it.</p>
<p dir="auto">Here's a full cloud config that I used (except the ssh keys):</p>
<pre><code>#cloud-config
hostname: {name}
ssh_authorized_keys:
  - ssh-rsa ...
disable_root: false
apt:
  sources:
    xen-guest-agent:
      filename: xen-guest-agent.list
      source: deb [trusted=yes] https://gitlab.com/api/v4/projects/xen-project%252Fxen-guest-agent/packages/generic/deb-amd64/ release/
      append: false
packages:
  - xen-guest-agent
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/102131</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/102131</guid><dc:creator><![CDATA[dinhngtu]]></dc:creator><pubDate>Mon, 02 Feb 2026 12:21:14 GMT</pubDate></item><item><title><![CDATA[Reply to Debian 12 cloud image SSH key on Mon, 02 Feb 2026 12:18:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a></p>
<p dir="auto">I am not sure what i am missing but the VM is stuck in drive not booting pass the BIOs or UEFI mode as if it don't know what to do...</p>
<ul>
<li>I convert qcow2 to vhd on windows with the cmd you provide after downloading it from <a href="https://cdimage.debian.org/images/cloud/trixie/20260129-2372/" target="_blank" rel="noopener noreferrer nofollow ugc">https://cdimage.debian.org/images/cloud/trixie/20260129-2372/</a></li>
<li>Import the converted VHD into XO</li>
<li>Attach to empty Debian VM, set to boot from hard drive and convert to template (UEFI mode)(I also try BIOs)</li>
</ul>
<p dir="auto">I think I am missing something. Do you have a complete "#cloud-config" I can paste in and check to make sure it's working. I would expect the console to display something during boot up. I never done cloud-init before... so really curious.</p>
<p dir="auto">I tried debian 12 and 13 both getting stuck on same place.<br />
In UEFI below (BIOs stuck similar case but different screen):<br />
<img src="/forum/assets/uploads/files/1770034674858-16f1c036-4e33-44d4-8178-990bbad55bf8-image.png" alt="16f1c036-4e33-44d4-8178-990bbad55bf8-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://xcp-ng.org/forum/post/102130</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/102130</guid><dc:creator><![CDATA[wilsonqanda]]></dc:creator><pubDate>Mon, 02 Feb 2026 12:18:27 GMT</pubDate></item><item><title><![CDATA[Reply to Debian 12 cloud image SSH key on Sun, 22 Jun 2025 11:29:15 GMT]]></title><description><![CDATA[<p dir="auto">haha we were all noobs when we started, it's fine <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=f084dd9e819" 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/94194</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/94194</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sun, 22 Jun 2025 11:29:15 GMT</pubDate></item><item><title><![CDATA[Reply to Debian 12 cloud image SSH key on Sat, 21 Jun 2025 23:21:38 GMT]]></title><description><![CDATA[<p dir="auto">yeah that would be it.  It was logging in as the local machines username, i changed it to debian and it work.  My forum username says i all.</p>
<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a></p>
]]></description><link>https://xcp-ng.org/forum/post/94189</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/94189</guid><dc:creator><![CDATA[hypernoob]]></dc:creator><pubDate>Sat, 21 Jun 2025 23:21:38 GMT</pubDate></item><item><title><![CDATA[Reply to Debian 12 cloud image SSH key on Sat, 21 Jun 2025 15:54:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/hypernoob" aria-label="Profile: hypernoob">@<bdi>hypernoob</bdi></a> That's just the key's name, I use keys with long complicated names too and had no problem. What did <code>ssh -vv</code> tell you?</p>
]]></description><link>https://xcp-ng.org/forum/post/94180</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/94180</guid><dc:creator><![CDATA[dinhngtu]]></dc:creator><pubDate>Sat, 21 Jun 2025 15:54:25 GMT</pubDate></item><item><title><![CDATA[Reply to Debian 12 cloud image SSH key on Sat, 21 Jun 2025 09:32:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi dinhngtu</p>
<p dir="auto">I think i have found the problem.  The end of the ssh key has 'bastion production' at the end of the key and i believe this is the wrong format for cloud init, all of the other parts of the configuration file work as xen orchestra indicated that the guest utils are installed. It a bit of a pain to regenerate the keys because i have a lot of devices i connect too.</p>
]]></description><link>https://xcp-ng.org/forum/post/94169</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/94169</guid><dc:creator><![CDATA[hypernoob]]></dc:creator><pubDate>Sat, 21 Jun 2025 09:32:21 GMT</pubDate></item><item><title><![CDATA[Reply to Debian 12 cloud image SSH key on Sat, 21 Jun 2025 03:10:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/hypernoob" aria-label="Profile: hypernoob">@<bdi>hypernoob</bdi></a> I suggest this procedure instead:</p>
<ul>
<li>Get the Debian <code>genericcloud</code> QCOW2 image off of here: <a href="https://cdimage.debian.org/images/cloud/" target="_blank" rel="noopener noreferrer nofollow ugc">https://cdimage.debian.org/images/cloud/</a></li>
<li>Convert to VHD: <code>qemu-img convert -O vpc debian-12-genericcloud-amd64.qcow2 debian-12-genericcloud-amd64.vhd</code></li>
<li>Import the converted VHD into XO</li>
<li>Attach to empty Debian VM, set to boot from hard drive and convert to template</li>
<li>Create new VMs from this template, adding your ssh keys and guest agent in cloud config if desired:</li>
</ul>
<pre><code>#cloud-config
hostname: {name}
ssh_authorized_keys:
  - ssh-rsa ...
apt:
  sources:
    xen-guest-agent:
      filename: xen-guest-agent.list
      source: deb [trusted=yes] https://gitlab.com/api/v4/projects/xen-project%252Fxen-guest-agent/packages/generic/deb-amd64/ release/
      append: false
packages:
  - xen-guest-agent
</code></pre>
<p dir="auto">The same procedure will work with Ubuntu, Alma and other cloud images.</p>
]]></description><link>https://xcp-ng.org/forum/post/94163</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/94163</guid><dc:creator><![CDATA[dinhngtu]]></dc:creator><pubDate>Sat, 21 Jun 2025 03:10:43 GMT</pubDate></item></channel></rss>