Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Vagrant in CoreOS

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install Vagrant in CoreOS. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Prepare the environment (my computer win7 x64)

1 install the latest version of Oracle VM VirtualBox 4.3.18

2 install the latest version of vagrant 1.6.5

3 install git for windows

# # install CoreOS # create an installation directory to download the vagrant configuration file. For example, I create a coreos folder on disk E, then enter this folder in the git shell interface, and execute:

Git clone https://github.com/coreos/coreos-vagrant.git cd coreos-vagrant

# modify the configuration file under git clone and make a copy of config.rb.sample as config.rb

Make a copy of user-data.sample as user-data

Modify the contents of the config.rb file:

$num_instances=3 # write 1 if you install a single coreos, and write a number greater than 1 if it is a cluster. $update_channel='alpha' # this is the version and can be changed to stable or beta

# install coreos execution:

Cd coreos-vagrantvagrant up

At this time, the error message is as follows:

E:\ coreos\ coreos-vagrant > vagrant up

Bringing machine 'core-01' up with' virtualbox' provider...

Bringing machine 'core-02' up with' virtualbox' provider...

Bringing machine 'core-03' up with' virtualbox' provider...

Core-01: Box 'coreos-alpha' could not be found. Attempting to find and insta ll...

Core-01: Box Provider: virtualbox

Core-01: Box Version: > = 308.0.1

You specified a box version constraint with a direct box file path. Box version constraints only work with boxes from Vagrant Cloud or a custom box host. Please remove the version constraint and try again.

Check the contents of the Vagrantfile file to match the error as shown in the following line:

Config.vm.box_version = "> = 308.0.1"

Comment this line out with # in the Vagrantfile file, and then re-execute vagrant up:

E:\ coreos\ coreos-vagrant > vagrant up

Bringing machine 'core-01' up with' virtualbox' provider...

Bringing machine 'core-02' up with' virtualbox' provider...

Bringing machine 'core-03' up with' virtualbox' provider...

Core-01: Box 'coreos-alpha' could not be found. Attempting to find and insta ll...

Core-01: Box Provider: virtualbox

Core-01: Box Version: > = 0

= = > core-01: Loading metadata for box 'http://alpha.release.core-os.net/amd64-us ruse currentplash' coreosystems produce products vagrant.json'

Core-01: URL: http://alpha.release.core-os.net/amd64-usr/current/coreos_prod uction_vagrant.json

= > core-01: Adding box 'coreos-alpha' (v493.0.0) for provider: virtualbox

Core-01: Downloading: http://alpha.release.core-os.net/amd64-usr/493.0.0/cor eos_production_vagrant.box

Omit N multiple words here *

= > core-03: Machine booted and ready!

= > core-03: Setting hostname...

= > core-03: Configuring and enabling network interfaces...

= > core-03: Running provisioner: file...

= > core-03: Running provisioner: shell...

Core-03: Running: inline script

The installation is complete.

# configuring the connection to execute vagrant ssh will automatically generate ssh information:

E:\ coreos\ coreos-vagrant > vagrant ssh core-01

Ssh executable not found in any directories in the% PATH% variable. Is an SSH client installed? Try installing Cygwin, MinGW or Git, all of which contain an SSH client. Or use your favorite SSH client with the following authentication information shown below:

Host: 127.0.0.1

Port: 2222

Username: core

Private key: C:/Users/Administrator/.vagrant.d/insecure_private_key

Configure a private key remote connection using xshell or secureCRT

Xshell 4 (Build 0131)

Copyright (c) 2002-2014 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.

Xshell: >

Connecting to 192.168.83.131:22...

Connection established.

To escape to local shell, press' Ctrl+Alt+]'.

Last login: Wed Nov 12 13:16:55 2014 from 192.168.83.1

CoreOS (alpha)

Core@localhost ~ $cat / etc/os-release

NAME=CoreOS

ID=coreos

VERSION=494.0.0

VERSION_ID=494.0.0

BUILD_ID=

PRETTY_NAME= "CoreOS 494.0.0"

ANSI_COLOR= "1x 32"

HOME_URL= "https://coreos.com/"

BUG_REPORT_URL= "https://github.com/coreos/bugs/issues"

View docker version

Core@localhost ~ $docker version Client version: 1.3.0 Client API version: 1.15 Go version (client): go1.3.2 Git commit (client): c78088f OS/Arch (client): linux/amd64 Server version: 1.3.0 Server API version: 1.15 Go version (server): go1.3.2 Git commit (server): c78088f Thank you for reading! This is the end of the article on "how to install Vagrant in CoreOS". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report