Opened 3 years ago

Closed 3 years ago

#13 closed Task (Works For Me)

Discovery. Add other linux's containers to current environment.

Reported by: D Delmar Davis Owned by: D Delmar Davis
Priority: Important Milestone: Server Modernization Phase II
Component: Development Keywords:
Cc: Joe Dumoulin

Description

The magic of our current environment is largely handled by ubuntu's out of the box implementation of cloud.init, which through lxd profiles give us network configuration, security tweaks, and admin ssh key enabled user accounts.

Document at TaskCreatingNewContainers
When running up other distributions using lxd provided images everything hast to be redone manually.

  • Goal: Is it possible to cleanly create LXD container images for other os's and use the same toolset?
  • Secondary goal: Clean up profiles and documentation.

Specific targets i want to look at:

  • Debian 9/10
  • Centos 7
  • Fedora 29
  • openSUSE 15

Change History (7)

comment:1 Changed 3 years ago by D Delmar Davis

debian 9

Have had success with Debian 9 except for the networking configuration. This required adding cloud init and utilities to the lxd provided debian image and adding templates and metatdata to it and republishing it. Since the network is initially set to redshirt in our environment this is really done. May revisit this once some of the RPM based OSs are up and running.

Image and profile is on bs2020 to test it

 lxc launch debian/9c -p susdev19 redshirt 

comment:2 Changed 3 years ago by D Delmar Davis

actually fixed the networking as well.

comment:3 Changed 3 years ago by D Delmar Davis

Centos 7

Centos seems to have followed redhat down the no useful tools here path.
On top of cloud init and cloud utils, sudo, openssh-server, and the man pages were blatantly missing.
Once these were both installed the centos user was initially given password less cart blanch ala ubuntu ubuntu.
Which of course had to be fixed as well

# lxc launch centos/7c -p susdev19 redshirt
... or on kb2018 ...
# lxc launch bs2020:centos/7c -p bs2020:susdev19 redshirt
Last edited 3 years ago by D Delmar Davis (previous) (diff)

comment:4 Changed 3 years ago by D Delmar Davis

Also now our update.sh needs to be smarter enough to be apt agnostic.

comment:5 Changed 3 years ago by D Delmar Davis

Fedora 29

afik fedora is a heaping pile of shit.
I am moving on to suse

comment:6 Changed 3 years ago by D Delmar Davis

Milestone: Server Modernization Phase IServer Modernization Phase II

This is worth continuing as part of Phase II.

  • Centos and Debian are certainly good to go.
  • Fedora and Suse have too much Sinatra in them to make the LXC provided images worth pursuing.

TODO:

Automate modifications to allow images to be updated easily.

comment:7 Changed 3 years ago by D Delmar Davis

Resolution: Works For Me
Status: assignedclosed
Note: See TracTickets for help on using tickets.