<?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[CoreOS - Docker on XCP-ng working (ish) - Hopefully this helps someone]]></title><description><![CDATA[<p dir="auto">So after parking CoreOS for nearly a year, and after noticing some edits and commits had been made I decided to give it another go; this time with success…. Yipppeee</p>
<ul>
<li>XCP-ng 8.0.0 with latest patches</li>
<li>CoreOS version is Container Linux 2303.3.0</li>
<li>XO from sources - xo-server 5.54.0</li>
</ul>
<p dir="auto">There are a few buts and pointers though!!</p>
<p dir="auto">Deploying the VM did not work from XO (from sources, just a homelabber here); the config disc was not created.</p>
<p dir="auto">So reverting to XCP-ng Centre…….</p>
<p dir="auto">Following  <a href="https://github.com/xcp-ng/xcp/wiki/Docker-in-XCP-ng" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/xcp-ng/xcp/wiki/Docker-in-XCP-ng</a> for general guidance – BUT I was unable to log in with my SSH key.</p>
<p dir="auto">This is fixed by <strong>enclosing the key in “ “ thus</strong>, my cloud-config was</p>
<pre><code>#cloud-config

hostname: %VMNAMETOHOSTNAME%
ssh_authorized_keys:
  - “ssh-rsa AAAAB3NzaC……………………..syQ4cJYnG70BqQJZVqo5fGcIQP9j5UY1 user@host"
  # - ssh-rsa &lt;Your public key&gt;
  # The following entry will automatically be replaced with a public key
  # generated by container management plugin. The key-entry must exist,
  # in order to enable container management for this VM.
  - ssh-rsa %CONTAINERRSAPUB%
coreos:
  units:
    - name: etcd-member.service
      command: start

    # Hypervisor Linux Guest Agent
    - name: xe-linux-distribution.service
      command: start
      content: |
        [Unit]
        Description=Hypervisor Linux Guest Agent
        After=docker.service

        [Service]
        ExecStartPre=/media/configdrive/agent/xe-linux-distribution /var/cache/xe-linux-distribution
        ExecStart=/media/configdrive/agent/xe-daemon
  etcd:
    name: %VMNAMETOHOSTNAME%
    # generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3
    # specify the initial cluster size using ?size=X
    # discovery: "https://discovery.etcd.io/&lt;token&gt;"
write_files:
  # Enable ARP notifications for smooth network recovery after migrations
  - path: /etc/sysctl.d/10-enable-arp-notify.conf
    permissions: 0644
    owner: root
    content: |
      net.ipv4.conf.all.arp_notify = 1


# Template loaded from /usr/lib/python2.7/site-packages/xscontainer/data/cloud-config.template
</code></pre>
<p dir="auto">Following the rest of the guide everything appeared to go well.</p>
<p dir="auto">Launching a container and then the next issue, it doesnt show in XO or XCP-ng Centre. Following this post <a href="https://xcp-ng.org/forum/topic/1679/how-to-fix-coreos-docker-container-tree-view-in-xcp-ng-center/2">https://xcp-ng.org/forum/topic/1679/how-to-fix-coreos-docker-container-tree-view-in-xcp-ng-center/2</a> and vola, all working.</p>
<p dir="auto">Now I have a working mater a fast clone avoids any of these issues for additioanl hosts.</p>
<p dir="auto">Creating a container without –restart always does not allow me to start / restart / stop it from XO, not the end of the world, looks like this has been found <a href="https://xcp-ng.org/forum/topic/2148/can-t-start-docker-container-from-xoa">https://xcp-ng.org/forum/topic/2148/can-t-start-docker-container-from-xoa</a></p>
<p dir="auto">Happy to try and help resolve any of these 'issues', test and provide logs etc. etc.</p>
]]></description><link>https://xcp-ng.org/forum/topic/2404/coreos-docker-on-xcp-ng-working-ish-hopefully-this-helps-someone</link><generator>RSS for Node</generator><lastBuildDate>Fri, 09 Oct 2026 05:28:39 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/2404.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Dec 2019 21:54:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CoreOS - Docker on XCP-ng working (ish) - Hopefully this helps someone on Thu, 20 Feb 2020 11:31:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/pnunn" aria-label="Profile: pnunn">@<bdi>pnunn</bdi></a> Got it....</p>
<p dir="auto">guest tools hadn't installed correctly.</p>
<p dir="auto">Manually installed them.. ran the xscontainer-prepare-vm again and now have a container tab on the core OS machine showing the containers running.</p>
<p dir="auto">P.</p>
]]></description><link>https://xcp-ng.org/forum/post/22768</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/22768</guid><dc:creator><![CDATA[pnunn]]></dc:creator><pubDate>Thu, 20 Feb 2020 11:31:53 GMT</pubDate></item><item><title><![CDATA[Reply to CoreOS - Docker on XCP-ng working (ish) - Hopefully this helps someone on Thu, 20 Feb 2020 09:42:34 GMT]]></title><description><![CDATA[<p dir="auto">I tried the commands in "can-t-start-docker-container-from-xoa" but it blew up unfortunately.</p>
<pre><code>xscontainer-prepare-vm -v 0390f015-9302-ccbd-e4af-1bbbba283cfd -u core
Would you like to push a pool-specific public SSH key into the ~/.ssh/authorized_keys file of the specified VM and therefore authorize hosts in the pool to interact with the containers inside the VM?
Answer y/n:
y
Traceback (most recent call last):
  File "/usr/bin/xscontainer-prepare-vm", line 272, in &lt;module&gt;
    sys.exit(main())
  File "/usr/bin/xscontainer-prepare-vm", line 246, in main
    resultcode = _handle_ssh(session, options)
  File "/usr/bin/xscontainer-prepare-vm", line 139, in _handle_ssh
    resultcode = push_ssh_key(session, options.vmuuid, options.username)
  File "/usr/bin/xscontainer-prepare-vm", line 80, in push_ssh_key
    print(docker.ERROR_CAUSE_NETWORK)
AttributeError: 'module' object has no attribute 'ERROR_CAUSE_NETWORK'

</code></pre>
<p dir="auto">Maybe related, when I tried to look at the current sshhostkey it said the parameter didn't exist.</p>
<p dir="auto">Not too concerned, portainer seems to be the go instead. But thought I'd report my experiences.</p>
]]></description><link>https://xcp-ng.org/forum/post/22767</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/22767</guid><dc:creator><![CDATA[pnunn]]></dc:creator><pubDate>Thu, 20 Feb 2020 09:42:34 GMT</pubDate></item><item><title><![CDATA[Reply to CoreOS - Docker on XCP-ng working (ish) - Hopefully this helps someone on Tue, 21 Jan 2020 02:28:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jmccoy555" aria-label="Profile: jmccoy555">@<bdi>jmccoy555</bdi></a> Thanks, I was going mad.</p>
]]></description><link>https://xcp-ng.org/forum/post/21438</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/21438</guid><dc:creator><![CDATA[MaisUmGajo]]></dc:creator><pubDate>Tue, 21 Jan 2020 02:28:27 GMT</pubDate></item></channel></rss>