使用 Vagrant 开始使用 Openshift

Getting Started with Openshift using Vagrant

我想建立一个 Openshift 的本地实例,但是 vagrant up 没有完成。

我从 developers.redhat.com 下载了 cdk-2.2.0.ziprhel-cdk-kubernetes-7.2-29.x86_64.vagrant-virtualbox.box

运行 vagrant up 安装后卡在 Configuring and enabling network interfaces...:

me:~/cdk/components/rhel/rhel-ose $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'cdkv2'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: rhel-ose_default_1476736433516_4922
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> 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: Warning: Remote connection disconnect. Retrying...
    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: Registering box with vagrant-registration...
    default: Would you like to register the system now (default: yes)? [y|n]y
    default: username: me@email.com
    default: password: 
==> default: Registration successful.
==> default: Checking for guest additions in VM...
    default: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default: 
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
==> default: Configuring and enabling network interfaces...

有什么解决方法吗?不确定是 vagrant 还是 VM 还是其他什么。

感谢您的宝贵时间!

最简单的方法是安装 vagrant vbguest plugin 并让它为正确版本的 VirtualBox

安装和配置 Virtual Box Guest Addition

我也遇到了同样的情况,但是在将 Vagrant 更新到 1.9.1 版本后问题就解决了。

我正在使用 OSX,但它可能对所有其他人都一样 OS。