Closed2

Vagrant Box で公開されている Openstack を使ってみる

yumenomatayumeyumenomatayume
実行ログはこちらです。
$ cat Vagrantfile 
Vagrant.configure("2") do |config|
  config.vm.box = "stackinabox/openstack"
end

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'stackinabox/openstack' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'stackinabox/openstack'
    default: URL: <https://vagrantcloud.com/stackinabox/openstack>
==> default: Adding box 'stackinabox/openstack' (v0.9.9) for provider: virtualbox
    default: Downloading: <https://vagrantcloud.com/stackinabox/boxes/openstack/versions/0.9.9/providers/virtualbox.box>
Download redirected to host: github-releases.githubusercontent.com
==> default: Successfully added box 'stackinabox/openstack' (v0.9.9) for 'virtualbox'!
==> default: Importing base box 'stackinabox/openstack'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'stackinabox/openstack' version '0.9.9' is up to date...
==> default: Setting the name of the VM: openstack_default_1622001111552_85247
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default: 
    default: Guest Additions Version: 5.1.10
    default: VirtualBox Version: 6.1
==> default: Mounting shared folders...
    default: /vagrant => /Users/ymmmtym/Documents/ymmmtym/openstack

$ vagrant ssh
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-51-generic x86_64)

 * Documentation:  <https://help.ubuntu.com>
 * Management:     <https://landscape.canonical.com>
 * Support:        <https://ubuntu.com/advantage>

69 packages can be updated.
19 updates are security updates.

vagrant@openstack:~$

無事に起動できました。

vagrant@openstack:~$ openstack endpoint list
Missing value auth-url required for auth plugin password

openstackコマンドを実行するとエラーが発生しました。

https://metonymical.hatenablog.com/entry/2019/05/29/201242

adminrcが読み込まれていないことが原因のようです。

このスクラップは2022/04/26にクローズされました