Japanese

Virtualbox 5.0 と vagrant 1.7.4にした

  • このエントリーをはてなブックマークに追加

こんにちは

私はwindowsでvirtual box+vagrantを使ってるんですが、

virtual box 5.0に移行してちょっとハマったのでメモメモ。

古いvirtual boxとvagrantをアンインストールして再起動後、

新しいバージョンをインストール。

vagrant upしたらこんなエラーが

==> default: Clearing any previously set network interfaces… There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.

Command: [“hostonlyif”, “ipconfig”, “VirtualBox Host-Only Ethernet Adapter #2”, “–ip”, “192.168.33.1”, “–netmask”, “25 5.255.255.0”]

Stderr: VBoxManage.exe: error: The host network interface with the given name could not be found VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component HostWrap, interface IHost, callee IUnknown VBoxManage.exe: error: Context: “FindHostNetworkInterfaceByName(Bstr(pszName).raw(), hif.asOutParam())” at line 204 of f ile VBoxManageHostonly.cpp

調べてみたらどうやら、

vagrantアンインストールでは

ホストオンリーアダプタのデバイスを消してくれないようです。

なのでデバイスマネージャから古いデバイスを消します。

[f:id:koooge:20150725105710j:plain]

画像のうち警告のでてるものを削除。

あらためてvagrant upすると正常に立ち上がりました。

でも、もう1個難点が、

default: Guest Additions Version: 4.3.20
default: VirtualBox Version: 5.0

Guest Additions Versionがずれてます。

vagrant-vbguestを入れてもエラーで直りませんでした。

Installing Virtualbox Guest Additions 5.0.0 - guest version is 4.3.20 Verifying archive integrity… All good. Uncompressing VirtualBox 5.0.0 Guest Additions for Linux………… VirtualBox Guest Additions installer Removing installed version 4.3.20 of VirtualBox Guest Additions… Copying additional installer modules … Installing additional modules … Removing existing VirtualBox non-DKMS kernel modules[ OK ] Building the VirtualBox Guest Additions kernel modules Building the main Guest Additions module[FAILED] (Look at /var/log/vboxadd-install.log to find out what went wrong)

updateしくってます。

/var/log/vboxadd-install.logを見ろ。とのことなのですが、

これってwindowsだとどこ?

対応まちかな?

[追記] ゲストのkernel-develをあわせるといいみたいでした。

yum install kernel-devel