「環境構築/仮想環境/04.CentOSのインストール」の編集履歴(バックアップ)一覧はこちら

環境構築/仮想環境/04.CentOSのインストール」(2015/05/17 (日) 15:14:17) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

[[仮想環境>環境構築/仮想環境]] *CentOSのインストール VirtualBox+Vagrant環境上にCentOS7.1をインストールします。 ---- #contents ---- **CentOS7.1のインストール http://www.vagrantbox.es/ にアクセスしてBoxファイルのURLをコピーする。 - [[CentOS 7 x64 (Minimal, Shrinked, Guest Additions 4.3.26) (Monthly updates)>https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box]] を使う。 -コマンドプロンプトから以下のコマンドを入力して仮想環境用のディレクトリを作る。 #codehighlight(linenumber){ C:\>mkdir Vagrant\CentOS7.1 C:\>cd Vagrant\CentOS7.1 } -Boxファイルをダウンロードする。 #codehighlight(linenumber){ C:\Vagrant\CentOS7.1>vagrant box add CentOS7.1 https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box ==> box: Adding box 'CentOS7.1' (v0) for provider: box: Downloading: https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box ==> box: Box download is resuming from prior download progress box: Progress: 100% (Rate: 3126k/s, Estimated time remaining: --:--:--) ==> box: Successfully added box 'CentOS7.1' (v0) for 'virtualbox'! } -Boxが追加されていることを確認する。 #codehighlight(linenumber){ C:\Vagrant\CentOS7.1>vagrant box list CentOS7.1 (virtualbox, 0) } -仮想環境の初期化をする。 #codehighlight(linenumber){ C:\Vagrant\CentOS7.1>vagrant init CentOS7.1 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. } - 仮想環境を起動する。 #codehighlight(linenumber){ C:\Vagrant\CentOS7.1>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'CentOS7.1'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: CentOS71_default_1431791415011_58624 ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 => 2222 (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: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. 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 its present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => C:/Vagrant/CentOS7.1 } ** SSHクライアントからの接続確認 PuTTYから仮想環境に接続する。PuTTYからの接続情報は [[03.PuTTYのインストール>環境構築/仮想環境/03.PuTTYのインストール]] で設定したとおり。 -接続情報は以下のとおり。 |項目|値|h |ホスト名(IPアドレス)|127.0.0.1| |ポート番号|2222| |ユーザー|vagrant| |パスワード|vagrant| -PuTTYを起動し、事前に設定した VirtualBox(Vagrant) をダブルクリックすると接続を開始する。 #image(putty_01.png) -初回接続時など、サーバーの鍵がPuTTYにキャッシュされていない旨の警告がでるので、[はい(Y)]をクリックしてPuTTYにキャッシュする。 #image(putty_02.png) -パスワードを入力してログインする。 #codehighlight(linenumber){ Using username "vagrant". vagrant@127.0.0.1's password: Last login: Sat May 16 15:53:52 2015 from 10.0.2.2 Welcome to your Vagrant-built virtual machine. [vagrant@localhost ~]$} ---- 次のページ > [[]]
[[仮想環境>環境構築/仮想環境]] *CentOSのインストール VirtualBox+Vagrant環境上にCentOS7.1をインストールします。 ---- #contents ---- **CentOS7.1のインストール http://www.vagrantbox.es/ にアクセスしてBoxファイルのURLをコピーする。 - [[CentOS 7 x64 (Minimal, Shrinked, Guest Additions 4.3.26) (Monthly updates)>https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box]] を使う。 -コマンドプロンプトから以下のコマンドを入力して仮想環境用のディレクトリを作る。 #codehighlight(linenumber){ C:\>mkdir Vagrant\CentOS7.1 C:\>cd Vagrant\CentOS7.1 } -Boxファイルをダウンロードする。 #codehighlight(linenumber){ C:\Vagrant\CentOS7.1>vagrant box add CentOS7.1 https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box ==> box: Adding box 'CentOS7.1' (v0) for provider: box: Downloading: https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box ==> box: Box download is resuming from prior download progress box: Progress: 100% (Rate: 3126k/s, Estimated time remaining: --:--:--) ==> box: Successfully added box 'CentOS7.1' (v0) for 'virtualbox'! } -Boxが追加されていることを確認する。 #codehighlight(linenumber){ C:\Vagrant\CentOS7.1>vagrant box list CentOS7.1 (virtualbox, 0) } -仮想環境の初期化をする。 #codehighlight(linenumber){ C:\Vagrant\CentOS7.1>vagrant init CentOS7.1 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. } - 仮想環境を起動する。 #codehighlight(linenumber){ C:\Vagrant\CentOS7.1>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'CentOS7.1'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: CentOS71_default_1431791415011_58624 ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 => 2222 (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: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. 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 its present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => C:/Vagrant/CentOS7.1 } ** SSHクライアントからの接続確認 PuTTYから仮想環境に接続する。PuTTYからの接続情報は [[03.PuTTYのインストール>環境構築/仮想環境/03.PuTTYのインストール]] で設定したとおり。 -接続情報は以下のとおり。 |項目|値|h |ホスト名(IPアドレス)|127.0.0.1| |ポート番号|2222| |ユーザー|vagrant| |パスワード|vagrant| -PuTTYを起動し、事前に設定した VirtualBox(Vagrant) をダブルクリックすると接続を開始する。 #image(putty_01.png) -初回接続時など、サーバーの鍵がPuTTYにキャッシュされていない旨の警告がでるので、[はい(Y)]をクリックしてPuTTYにキャッシュする。 #image(putty_02.png) -パスワードを入力してログインする。 #codehighlight(linenumber){ Using username "vagrant". vagrant@127.0.0.1's password: Last login: Sat May 16 15:53:52 2015 from 10.0.2.2 Welcome to your Vagrant-built virtual machine. [vagrant@localhost ~]$} ---- 次のページ > [[05.CentOSのアップデート>環境構築/仮想環境/05.CentOSのアップデート]]

表示オプション

横に並べて表示:
変化行の前後のみ表示: