Skip to content

Instantly share code, notes, and snippets.

@muzudho
Last active June 19, 2017 21:39
Show Gist options
  • Save muzudho/55c5ed2c9518abb9764f70c6a6c5fdc3 to your computer and use it in GitHub Desktop.
Save muzudho/55c5ed2c9518abb9764f70c6a6c5fdc3 to your computer and use it in GitHub Desktop.
Webアプリ案件を受注しようぜ<その1> ref: http://qiita.com/muzudho1/items/d17799dfacc6d84a4c8a
vagrant box add hashicorp/precise64
vagrant box add centos/7
c:\myCentOSVM>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'CentOS7' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'CentOS7' (v0) for provider: virtualbox
default: Downloading: CentOS7
default:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /c:/myCentOSVM/CentOS7
c:\myCentOSVM>
c:\myCentOSVM>vagrant box list
centos/7 (virtualbox, 1704.01)
hashicorp/precise64 (virtualbox, 1.1.0)
c:\myCentOSVM>
c:\myCentOSVM>vagrant init centos/7
`Vagrantfile` already exists in this directory. Remove it before
running `vagrant init`.
c:\myCentOSVM>
c:\myCentOSVM>vagrant init centos/7
`Vagrantfile` already exists in this directory. Remove it before
running `vagrant init`.
c:\myCentOSVM>vagrant init -f centos/7
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
c:\myCentOSVM>
vagrant init -f CentOS7
vagrant up
c:\myCentOSVM>vagrant ssh
`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: vagrant
Private key: C:/Users/Takahashi/.vagrant.d/insecure_private_key
c:\myCentOSVM>
set PATH=%PATH%;C:\Program Files\Git\usr\bin
ssh_exchange_identification: read: Connection reset by peer
vagrant reload
vagrant box list
ssh_exchange_identification: read: Connection reset by peer
If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.
==> default: Attempting graceful shutdown of VM...
default: Guest communication could not be established! This is usually because
default: SSH is not running, the authentication information was changed,
default: or some other networking issue. Vagrant will force halt, if
default: capable.
config.vm.boot_timeout = 600
vagrant reload
This kernel requires an x86-64 CPU, but only detected an i686 CPU.
sudo yum upgrade
sudo yum install kernel-devel gcc
c:\>mkdir myCentOSVM
c:\>cd myCentOSVM
c:\myCentOSVM>cd vagrant init centos/7
c:\myCentOSVM>vagrant up
c:\myCentOSVM>vagrant status
vagrant init -f CentOS7
c:\myCentOSVM>vagrant init CentOS7
`Vagrantfile` already exists in this directory. Remove it before
running `vagrant init`.
c:\myCentOSVM>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment