Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

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\

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
You can’t perform that action at this time.