Unable to Bootstrap Juju Controller - LXD Configuration and Networking Challenges

Problem Description: I’m encountering difficulties when attempting to bootstrap a Juju controller on my Ubuntu 22.10 system. Despite following recommended procedures and investing significant time into troubleshooting, I’m consistently facing errors during the bootstrap process. The primary issues appear to be related to LXD configuration and potential networking anomalies. These obstacles are preventing me from successfully establishing the Juju controller.

Log Summary:

  1. Bootstrap.log:
  • The bootstrap process starts successfully.
  • An error related to KVM support missing is encountered during the process.
  • The error message mentions that KVM support is not available due to the absence of the /dev/kvm device.
  1. LXD.log:
  • A warning message appears regarding the absence of the CGroup network priority controller.
  • Another warning indicates that the instance type (virtual machine) is not operational due to missing KVM support.

Symptoms:

  • Bootstrap process consistently results in errors related to repository retrieval and package installation.
  • LXD network retrieval occasionally produces warnings about failing to locate containers with the designated prefix.
  • Log entries report issues such as “Couldn’t find the CGroup network priority controller.”
  • Although the LXD setup seems correct, instances cannot be consistently retrieved from LXD.

Configuration Details:

  • Ubuntu version: 22.10
  • Juju version: 3.1.5
  • LXD version:5.15
  • Repository Configuration: Modified /etc/apt/sources.list to point to old-releases.ubuntu.com repositories for Ubuntu 22.10.
  • LXD Configuration: Successfully executed lxc init, lxc network create, and confirmed correct LXD group settings.
  • System Resources: Available storage and memory resources meet requirements.

Troubleshooting Steps Taken:

  • Confirmed repository configuration using apt update to fetch package information.
  • Verified LXD setup through lxd init and lxc network list commands.
  • Verified network configuration and firewall status using ufw status.
  • Checked for LXD logs and system logs, analyzing bootstrap.log, lxd.log, and relevant log entries.

Logs and Outputs:

  • Output from lxc list and lxc info commands to display instance and storage details.
  • Relevant excerpts from log files, such as bootstrap.log and lxd.log, highlighting errors and warnings encountered during the bootstrap process.

Request for Assistance: I’m reaching out to the community for insights and guidance to pinpoint the underlying causes of these issues and determine appropriate solutions. Any input, suggestions, or shared experiences from fellow Juju users would be greatly appreciated.

Additional Information:

  • Despite investing over 5 hours into troubleshooting, I have yet to resolve the problem.
  • I have consulted official documentation, online forums, and relevant resources extensively, but the issue persists.

Log preview :slight_smile:

Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network                                                                                                                         is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101:                                                                                                                         Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect                                                                                                                         (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). -                                                                                                                         connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1:                                                                                                                        :19). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c                                                                                                                        :1562::18). - connect (101: Network is unreachable)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
00:05:23 ERROR juju.cmd.juju.commands bootstrap.go:968 failed to bootstrap model: subprocess encountered error                                                                                                                         code 100
00:05:23 DEBUG juju.cmd.juju.commands bootstrap.go:969 (error details: [{github.com/juju/juju/cmd/juju/commands                                                                                                                        .(*bootstrapCommand).Run:1067: failed to bootstrap model} {github.com/juju/juju/environs/bootstrap.Bootstrap:74                                                                                                                        2: } {github.com/juju/juju/environs/bootstrap.bootstrapIAAS:673: } {subprocess encountered error code 100}])
00:05:23 DEBUG juju.cmd.juju.commands bootstrap.go:1778 cleaning up after failed bootstrap
00:05:23 INFO  juju.provider.common destroy.go:21 destroying model "controller"
00:05:23 INFO  juju.provider.common destroy.go:32 destroying instances
00:05:26 INFO  juju.provider.common destroy.go:56 destroying storage
00:05:26 DEBUG juju.container.lxd container.go:221 failed to retrieve containers from LXD, attempt 1: container                                                                                                                        s with prefix "juju-" not found
00:05:27 DEBUG juju.container.lxd container.go:221 failed to retrieve containers from LXD, attempt 2: container                                                                                                                        s with prefix "juju-" not found
00:05:28 DEBUG juju.container.lxd container.go:221 failed to retrieve containers from LXD, attempt 3: container                                                                                                                        s with prefix "juju-" not found
00:05:33 DEBUG juju.container.lxd container.go:221 failed to retrieve containers from LXD, attempt 4: container                                                                                                                        s with prefix "juju-" not found
00:05:38 DEBUG juju.container.lxd container.go:221 failed to retrieve containers from LXD, attempt 5: container                                                                                                                        s with prefix "juju-" not found
00:05:43 DEBUG juju.container.lxd container.go:221 failed to retrieve containers from LXD, attempt 6: container                                                                                                                        s with prefix "juju-" not found
00:05:44 DEBUG juju.container.lxd container.go:221 failed to retrieve containers from LXD, attempt 7: container                                                                                                                        s with prefix "juju-" not found
00:05:49 DEBUG juju.container.lxd container.go:221 failed to retrieve containers from LXD, attempt 8: container                                                                                                                        s with prefix "juju-" not found
00:05:52 DEBUG juju.container.lxd container.go:221 failed to retrieve containers from LXD, attempt 9: container                                                                                                                        s with prefix "juju-" not found
00:05:53 DEBUG juju.container.lxd container.go:221 failed to retrieve containers from LXD, attempt 10: containe                                                                                                                        rs with prefix "juju-" not found