質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

Q&A

解決済

2回答

3745閲覧

 ローカル開発環境の構築

marshmallow

総合スコア33

VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

0グッド

1クリップ

投稿2015/09/21 16:30

2度目の質問です。
以前、ローカル開発環境の構築で質問させていただきました、
marshmallowです。

以前はうまくいかなくて諦めたのですが、
また必要になってきたので、皆様にお手伝いしていただきたく
質問させていただきます。

今回もドットインストールを
参考にして行っています。

下記のURLのターミナルで最後のvagrant upを入力する手前まではうまくいきました。
http://dotinstall.com/lessons/basic_localdev_mac/30704

ですが、vagrant upと入力すると、

No usable default provider could be found for your system.

Vagrant relies on interactions with 3rd party systems, known as
"providers", to provide Vagrant with resources to run development
environments. Examples are VirtualBox, VMware, Hyper-V.

The easiest solution to this message is to install VirtualBox, which
is available for free on all major platforms.

If you believe you already have a provider available, make sure it
is properly installed and configured. You can see more details about
why a particular provider isn't working by forcing usage with
vagrant up --provider=PROVIDER, which should give you a more specific
error message for that particular provider.

とエラーメッセージがでます。

自分なりに解釈して、
VirtualBoxを古いの入れてみたのですが、うまくいかず。。。

それと、複数、VirtualBoxを入れたので、新しいのを削除しようと思ったのですが、
アンインストールもうまくいかず困っています。
アンインストールしますか? Yes
まではいいのですが、自分のパスワードを入れようとすると
打たさりません。

恐縮ですが、まだsnowleopard使っています。10.6.8です。

教えていただけますでしょうか。

よろしくお願いいたします!

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

少し前vagrantではまっていました。32ビットのwindows7ですが。。。
複数台インストールしているとのことで、正直わかりませんが
自分の場合、つい先日最新版の1つ下のバーチャルボックスと、vagrant1.72?(こちらも1つ下のバージョン)
をインストールしました。vagrant init を好きなドライブに移動してから実行すると
そこにvagrantファイルが出来ます。この設定を変えるんですが
32bitのバーチャルOSでなければ、CPUに依存してしまうそうです。
64ビットPCでも64ビットバーチャルボックスをインストールする場合、biosで設定しなければ
いけなくなることもあるそうです。vagrantファイルにはデフォルトで
config.vm.box = "nrel/CentOS-6.5-i386"などとします。i386は32ビット版centosをあらわしています。
あと
config.ssh.insert_key = falseも書いておきます。vagrant1.7ぐらいから、vagrant upするたびに
keypairがどうのこうのって書いてあり、sshでは普通にログインできなくなります。
そのうえで初回vargrant upします。(初回vagrant up時だけは、まだ間に合う)

config.vm.network "forwarded_port", guest: 80, host: 8888
にすると、windows7からcentosへ(apacheがインストールされており、iptablesで80番をあけている
という設定にしてある場合。要sshは書いてあるのでそれを参照)windows7からlocalhost:8888で
アクセスできました。(ssh接続はさわらないほうがいいです。内部でvagrantが使ってるらしいです
iptablesも停止したほうがいいです)

状況は違うと思いますが、こちらがはまったのはつい2日前ぐらいのことです。何か参考になれば。
後、guiで起動してみてはどうでしょうか。悩むより全アンインストールして構築しなおしたほうが早いと思います。

投稿2015/09/21 16:51

kabuhiki

総合スコア58

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

marshmallow

2015/09/29 07:43

ご回答ありがとうございました! おかげさまで、構築できました! 本当にありがとうございました。 またお世話になると思いますがよろしくお願いいたします。
guest

0

ベストアンサー

インストールされたVirtualBoxが古く、Vagrantが対応していないのかもしれません。

ググッて見た所、snowleopardの場合sudo vagrantで起動することで解決できた方がいるようです。

参考:Vagrant complaining virtual box isn't installed when it is

投稿2015/09/21 16:37

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

marshmallow

2015/09/27 10:23

ご回答ありがとうございます! sudo vagrantでやってみて、 こんな表示が出たのですが、 Usage: vagrant [options] <command> [<args>] -v, --version Print the version and exit. -h, --help Print this help. Common commands: box manages boxes: installation, removal, etc. connect connect to a remotely shared Vagrant environment destroy stops and deletes all traces of the vagrant machine global-status outputs status Vagrant environments for this user halt stops the vagrant machine help shows the help for a subcommand init initializes a new Vagrant environment by creating a Vagrantfile login log in to HashiCorp's Atlas package packages a running vagrant environment into a box plugin manages plugins: install, uninstall, update, etc. provision provisions the vagrant machine push deploys code in this environment to a configured destination rdp connects to machine via RDP reload restarts vagrant machine, loads new Vagrantfile configuration resume resume a suspended vagrant machine share share your Vagrant environment with anyone in the world ssh connects to machine via SSH ssh-config outputs OpenSSH valid configuration to connect to the machine status outputs status of the vagrant machine suspend suspends the machine up starts and provisions the vagrant environment version prints current and latest Vagrant version For help on any individual command run `vagrant COMMAND -h` Additional subcommands are available, but are either more advanced or not commonly used. To see all subcommands, run the command `vagrant list-commands`. そのあと、ドットインストールの次の動画でhttp://dotinstall.com/lessons/basic_localdev_mac/30705 vagrant sshをいれましたが、また質問した時と同じ表示が出ました。 なにか解決方法はありますでしょうか? どうぞよろしくお願いします! (全くの初心者で申し訳ありません)
marshmallow

2015/09/29 07:42

お陰でローカル開発環境構築できました! ありがとうございました。 またお世話になると思いますがよろしくお願いします。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問