前回のメモでよくわからずに使っていた
vagrant init bento/CentOS-6.8
のくだりを調べたのでメモ。
普通は
$ vagrant box add {title} {url} $ vagrant init {title}
という手順を踏みますが、ここで「vagrant init bento/CentOS-6.8」としたのはなぜか?
まずbentoとはPackerでいろんなVagrant Boxを作れるテンプレートとビルドしたBoxを公開しているレポジトリらしい。要は誰が作ったかわからない中身がブラックボックスなbox(Vagrantbox.esに公開されているようなやつ)より安心できるやつを使おうという方針。
ちなみにVagrantbox.esにはWindows系のboxも公開されている。今度試しに使ってみるかも。
vagrant upすると….(ここからはあとで細かいところをみるためのメモ)
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Importing base box ‘bento/centos-6.8’…
==> default: Matching MAC address for NAT networking…
==> default: Checking if box ‘bento/centos-6.8’ is up to date…
==> default: Setting the name of the VM: MyCentOS2_default_1487921661091_94558
==> 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: 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] GuestAdditions versions on your host (5.1.14) and guest (5.1.10) do not match.
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* base: ftp.jaist.ac.jp
* extras: mirror.qoxy.com
* updates: mirror.0x.sg
Package binutils-2.20.51.0.2-5.44.el6.x86_64 already installed and latest version
Package 1:make-3.81-23.el6.x86_64 already installed and latest version
Package 4:perl-5.10.1-141.el6_7.1.x86_64 already installed and latest version
Package bzip2-1.0.5-7.el6_0.x86_64 already installed and latest version
Resolving Dependencies
–> Running transaction check
—> Package gcc.x86_64 0:4.4.7-17.el6 will be installed
–> Processing Dependency: cpp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64
–> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-17.el6.x86_64
—> Package kernel-devel.x86_64 0:2.6.32-642.el6 will be installed
–> Running transaction check
—> Package cpp.x86_64 0:4.4.7-17.el6 will be installed
—> Package glibc-devel.x86_64 0:2.12-1.192.el6 will be installed
–> Processing Dependency: glibc-headers = 2.12-1.192.el6 for package: glibc-devel-2.12-1.192.el6.x86_64
–> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.192.el6.x86_64
–> Running transaction check
—> Package glibc-headers.x86_64 0:2.12-1.192.el6 will be installed
–> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.192.el6.x86_64
–> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.192.el6.x86_64
–> Running transaction check
—> Package kernel-headers.x86_64 0:2.6.32-642.13.2.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc x86_64 4.4.7-17.el6 base 10 M
kernel-devel x86_64 2.6.32-642.el6 base 11 M
Installing for dependencies:
cpp x86_64 4.4.7-17.el6 base 3.7 M
glibc-devel x86_64 2.12-1.192.el6 base 988 k
glibc-headers x86_64 2.12-1.192.el6 base 617 k
kernel-headers x86_64 2.6.32-642.13.2.el6 updates 4.4 M
Transaction Summary
================================================================================
Install 6 Package(s)
Total download size: 30 M
Installed size: 59 M
Downloading Packages:
——————————————————————————–
Total 326 kB/s | 30 MB 01:35
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key)
Package: centos-release-6-8.el6.centos.12.3.x86_64 (@anaconda-CentOS-201605220104.x86_64/6.8)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : cpp-4.4.7-17.el6.x86_64 1/6
Installing : kernel-headers-2.6.32-642.13.2.el6.x86_64 2/6
Installing : glibc-headers-2.12-1.192.el6.x86_64 3/6
Installing : glibc-devel-2.12-1.192.el6.x86_64 4/6
Installing : gcc-4.4.7-17.el6.x86_64 5/6
Installing : kernel-devel-2.6.32-642.el6.x86_64 6/6
Verifying : glibc-devel-2.12-1.192.el6.x86_64 1/6
Verifying : kernel-devel-2.6.32-642.el6.x86_64 2/6
Verifying : kernel-headers-2.6.32-642.13.2.el6.x86_64 3/6
Verifying : gcc-4.4.7-17.el6.x86_64 4/6
Verifying : glibc-headers-2.12-1.192.el6.x86_64 5/6
Verifying : cpp-4.4.7-17.el6.x86_64 6/6
Installed:
gcc.x86_64 0:4.4.7-17.el6 kernel-devel.x86_64 0:2.6.32-642.el6
Dependency Installed:
cpp.x86_64 0:4.4.7-17.el6
glibc-devel.x86_64 0:2.12-1.192.el6
glibc-headers.x86_64 0:2.12-1.192.el6
kernel-headers.x86_64 0:2.6.32-642.13.2.el6
Complete!
Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Installing Virtualbox Guest Additions 5.1.14 – guest version is 5.1.10
Verifying archive integrity… All good.
Uncompressing VirtualBox 5.1.14 Guest Additions for Linux………..
VirtualBox Guest Additions installer
Removing installed version 5.1.10 of VirtualBox Guest Additions…
vboxadd-service.sh: Stopping VirtualBox Guest Addition service.
vboxadd.sh: Stopping VirtualBox Additions.
Copying additional installer modules …
Installing additional modules …
vboxadd.sh: Building Guest Additions kernel modules.
vboxadd.sh: Starting the VirtualBox Guest Additions.
Could not find the X.Org or XFree86 Window System, skipping.
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 5.1.10
VBoxService inside the vm claims: 5.1.14
Going on, assuming VBoxService is correct…
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 5.1.10
VBoxService inside the vm claims: 5.1.14
Going on, assuming VBoxService is correct…
==> default: Checking for guest additions in VM…
==> default: Configuring and enabling network interfaces…
==> default: Mounting shared folders…
default: /vagrant => C:/Users/hogehoge/MyVagrant/MyCentOS2
putty で CentOSへログイン(接続情報をsaveしておく)
php -vしても、
php:command not found
だったので
sudo yum install php
php -v で
PHP5.3.3が表示された…..古い。
- 作者: Mitchell Hashimoto,Sky株式会社玉川竜司
- 出版社/メーカー: オライリージャパン
- 発売日: 2014/02/21
- メディア: 単行本(ソフトカバー)
- この商品を含むブログ (10件) を見る
- 作者: 新原雅司
- 出版社/メーカー: 技術評論社
- 発売日: 2013/09/12
- メディア: Kindle版
- この商品を含むブログ (5件) を見る
プログラマのためのDocker教科書 第2版 インフラの基礎知識&コードによる環境構築の自動化
- 作者: WINGSプロジェクト阿佐志保
- 出版社/メーカー: 翔泳社
- 発売日: 2018/04/11
- メディア: Kindle版
- この商品を含むブログを見る
DevOps導入指南 Infrastructure as Codeでチーム開発・サービス運用を効率化する (DEV Engineer’s Books)
- 作者: 河村聖悟,北野太郎,中山貴尋,日下部貴章,株式会社リクルートテクノロジーズ
- 出版社/メーカー: 翔泳社
- 発売日: 2016/10/14
- メディア: 単行本(ソフトカバー)
- この商品を含むブログを見る