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
- XCP-ng 8.0.0 with latest patches
- CoreOS version is Container Linux 2303.3.0
- XO from sources - xo-server 5.54.0
There are a few buts and pointers though!!
Deploying the VM did not work from XO (from sources, just a homelabber here); the config disc was not created.
So reverting to XCP-ng Centre…….
Following https://github.com/xcp-ng/xcp/wiki/Docker-in-XCP-ng for general guidance – BUT I was unable to log in with my SSH key.
This is fixed by enclosing the key in “ “ thus, my cloud-config was
- “ssh-rsa AAAAB3NzaC……………………..syQ4cJYnG70BqQJZVqo5fGcIQP9j5UY1 user@host"
# - ssh-rsa <Your public key>
# 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%
- name: etcd-member.service
# Hypervisor Linux Guest Agent
- name: xe-linux-distribution.service
Description=Hypervisor Linux Guest Agent
# 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/<token>"
# Enable ARP notifications for smooth network recovery after migrations
- path: /etc/sysctl.d/10-enable-arp-notify.conf
net.ipv4.conf.all.arp_notify = 1
# Template loaded from /usr/lib/python2.7/site-packages/xscontainer/data/cloud-config.template
Following the rest of the guide everything appeared to go well.
Launching a container and then the next issue, it doesnt show in XO or XCP-ng Centre. Following this post https://xcp-ng.org/forum/topic/1679/how-to-fix-coreos-docker-container-tree-view-in-xcp-ng-center/2 and vola, all working.
Now I have a working mater a fast clone avoids any of these issues for additioanl hosts.
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 https://xcp-ng.org/forum/topic/2148/can-t-start-docker-container-from-xoa
Happy to try and help resolve any of these 'issues', test and provide logs etc. etc.