ERROR: No Address Match

Just trying to run the getting started tutorial on https://juju.is/docs/getting-started-with-juju

To replicate: you will need vagrant and virtualbox:

Here is my vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/xenial64"
  config.vm.network "private_network", ip: "172.16.1.20"
  config.vm.hostname = "c1-master1"
  config.vm.provider "virtualbox" do |vb|
    vb.memory = 2096
    vb.cpus = 2
  end
  config.ssh.insert_key = false
  config.ssh.private_key_path = ['~/.vagrant.d/insecure_private_key', '~/.ssh/id_rsa']
  config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/authorized_keys"
end

Here is the commands I run after I ssh to the VM:

1  sudo snap install maas --channel=2.7
2  sudo maas init
3  sudo snap install juju --classic
4  sudo snap install lxd
5  lxd init --auto
6  sudo lxd init --auto
7  sudo juju bootstrap localhost overlord

I just get a nondescript error saying: ERROR no addresses match

Hi, @snelian! Thank you for posting your question.

The command that you listed should work in bionic or focal. I believe that there are some extra steps to get things working under xenial, but I can’t seem to find the docs on that at the moment.

Can you retry with a bionic or focal machine?

Note: I’d advise against running lxd init and juju bootstrap with sudo. The latter will cause your ~/.local/share/juju directory to be owned by root, which will cause problems down the line, especially if ~/.local doesn’t exist yet, and the entire tree is created to be owned by root!

1 Like