投稿

ラベル(vagrant)が付いた投稿を表示しています

2-6. Vagrant up時のGuestAdditionのアンマッチを解消する

一連のインストールの中で、yum update (all)したせいで、vagrant upした際に、こんなエラーが出るようになりました。 (実は、最初から出ていたのですが、読んでいませんでしたw) centos72: The guest additions on this VM do not match the installed version of centos72: VirtualBox! In most cases this is fine, but in rare cases it can centos72: prevent things such as shared folders from working properly. If yo u see centos72: shared folder errors, please make sure the guest additions within the centos72: virtual machine match the version of VirtualBox you have installed on centos72: your host and reload your VM. centos72: centos72: Guest Additions Version: 4.3.30 centos72: VirtualBox Version: 5.1 ==> centos72: Configuring and enabling network interfaces... ==> centos72: Mounting shared folders... centos72: /vagrant => D:/VM Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxsf" is not available. This filesystem is made available via the VirtualBox Guest Add...

1-4. OS実装

## Vagrantfileの編集 D:\VM\Vagrantfileをテキストエディタで編集しましょう。

1-3. OSイメージダウンロード

# Vagrantに入れるOSを落として入れます。 その前に、コマンドプロンプトでインストールの確認と、初期化。 D:\VM>vagrant --version Vagrant 1.9.1 D:\VM>VirtualBox\VBoxManage.exe --version 5.1.12r112440 D:\VM>vagrant init 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.

1-2. Vagrantのインストール

イメージ
# 必要なモジュールのダウンロード [Vagrant by Hashicorp](http://www.vagrantup.com/) 最新モジュールは vagrant_1.9.1.msi でした。 # Vagrantのインストール vagrant_1.9.1.msiを実行します。 インストール先は、D:\VM\Vagrantに変更しました。

1-1. VirtualBoxのインストール

イメージ
# 必要なモジュールのダウンロード [Oracle VM VirtualBox](http://www.virtualbox.org/) 最新モジュールは VirtualBox-5.1.12-112440-Win.exe でした。 # VirtualBoxのインストール VirtualBox-5.1.12-112440-Win.exeを実行します。 インストール先は、D:\VM\VirtualBoxに変更しました。

Windows上にVagrantでCentOSを立ててJupyterができる環境を作るよ

## WindowsでJupyter動かす環境を作るよ。 Windows版のPythonインストールして、pip install jupyterでもいいけど、あえてCent OSを入れて、Python3でJupyterを動かす環境を作っていくよ。 Jupyter Notebookはいいね。 - Pythonが動く - ブラウザで動く - matplotlibの結果もすぐ見れる - $\LaTeX$で数式が書ける - ノートブックをファイルとして保存できる というわけで、VM作って環境作ろう!! ### Windowsに入れるのは、VagrantとVirtualBoxだけだよ。 なお長いのでじっくり実行してください。環境によってはうまく行かないかもしれません。 ## 執筆環境 - OS: Windows 7 32bit - CPU: Celeron 2core - Memory: 4GB