僕は普段 MacBookAir の 128GB を使っているのですが、最近 Vagrant でローカルに開発環境を作るようになり、複数の VM が容量を圧迫するようになっていました。調べてみると Vagrant の環境を外付けHDDなどに移すことができるようだったので、手持ちのポータブルHDDに移してみました。 ここでは下記の構成で移動させました。 ファイルディレクトリ /Volumes/data/htdocs/www.example.jp/vccw/Vagrantfile Vagrant データ /Volumes/data/htdocs/vagrant_home/ VirtualBox データ /Volumes/data/htdocs/vagrant_vms/ VirtualBox Vagrant の環境を外付けに移すには、まず VirtualBox の設定を変更する必要があります(僕は
![MacBookAir の容量がきついので Vagrant 環境を外付けに移した話](https://cdn-ak-scissors.b.st-hatena.com/image/square/40d9faf920638fd7604f47a7085d662697a56576/height=288;version=1;width=512/https%3A%2F%2F2inc.org%2Fwp-content%2Fuploads%2F2017%2F08%2Fogp.png)