2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PackerでHomebrew CaskでインストールしたVMware Fusion.appが見つからないとき

Posted at

Homebrew CaskでVMware Fusionをインストールすると、/Applicationsではなくユーザのホームディレクトリの~/Applicationsに配置されます。Packerはユーザのホームディレクトリを探さないため、packer buildが失敗します。

% packer build template.json
vmware-iso output will be in this color.

Build 'vmware-iso' errored: Failed creating VMware driver: Unable to initialize any driver for this platform. The errors
from each driver are shown below. Please fix at least one driver
to continue:
* Fusion application not found at path: /Applications/VMware Fusion.app
* Fusion application not found at path: /Applications/VMware Fusion.app


==> Some builds didn't complete successfully and had errors:
--> vmware-iso: Failed creating VMware driver: Unable to initialize any driver for this platform. The errors
from each driver are shown below. Please fix at least one driver
to continue:
* Fusion application not found at path: /Applications/VMware Fusion.app
* Fusion application not found at path: /Applications/VMware Fusion.app

これを回避するには、環境変数FUSION_APP_PATHでVMware Fusion.appのパスを指定しておきます。

% export FUSION_APP_PATH=/Users/suin/Applications/VMware\ Fusion.app

環境変数を定義したら、通常通りpacker buildを走らせます。

% packer build template.json
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?