Skip to content

Instantly share code, notes, and snippets.

@yuitowest
Last active December 29, 2015 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuitowest/7744049 to your computer and use it in GitHub Desktop.
Save yuitowest/7744049 to your computer and use it in GitHub Desktop.

Build 'vmware' errored

packer build で下記のようなエラーがでた

Build 'vmware' errored: Couldn't find VMware tools for 'linux'! VMware often downloads these
tools on-demand. However, to do this, you need to create a fake VM
of the proper type then click the 'install tools' option in the
VMware GUI.

for '?' の部分の名前の iso があるか確認する(上記の場合だと linux.iso)

$ ls /Applications/VMware\ Fusion.app/Contents/Library/isoimages

iso がない場合は1度同じ OS タイプのダミー VM を作成して、メニューから

[仮想マシン] -> [VMWare Tools のインストール] を選ぶ。

再度 ls コマンドを実行して iso ファイルがあることを確認する。

Failed to mount folders ...

vagrant up 時に下記のエラーが出た

default: /vagrant => /Users/yuitowest/vagrant

Failed to mount folders in Linux guest. This is usually because the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly. The command attempted was:

mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` /vagrant /vagrant mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant

対処法

### host os 内
$ vagrant ssh
### gest os 内
$ sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
$ exit
### host os 内
$ vagrant halt
$ vagrant up

packer build 時点で対応したほうがいいのかいろいろ調査中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment