Vagrant

VirtualBoxでVM起動時に「The VM session was closed before any attempt to power it on.」というエラーメッセージが出た場合

仮想マシン"..."のセッションを開けませんでした。 The VM session was closed before any attempt to power it on. 終了コード : E_FAIL (0x80004005) コンポーネント: SessionMachine インターフェース: ISession {c0447716-ff5a-4795-b57a-ecd5fffa18a4} …

Vagrant + VirtualBox + vagrant-vbguestでCentOSでGuestAdditionsがうまく入らない場合

雑な記事注意。 Please install the Linux kernel "header" files matching the current kernel for adding new hardware support to the system. The distribution packages containing the headers are probably: kernel-devel kernel-devel-3.10.0-862.14…

WindowsでVagrantでPageant使ってSSHエージェント転送

なんかはてなブログの下書きの仕様が変わったのか、書いてたの途中で消えちゃったので面倒なので適当に。WindowsでVagrantでPageant使ってSSHエージェント転送するのは簡単だよという話。provisionでGitとか叩くときとかに必要になるアレ。 GIT_SSHにplink.e…

vagrant-cachierはvagrant-vbguestと競合するっぽい

WindowsでVagrant 1.9.1にcachier, vbguestのプラグインを入れた状態で、 Vagrant.configure("2") do |config| config.vm.box = "centos/7" config.vm.synced_folder ".", "/vagrant", type: "virtualbox" config.vm.provision "shell", inline: "sudo yum u…

Vagrantのsynced_folderにはあまり期待してはいけない

そもそもなにがしたかったか Vagrant + VirtualBoxで開発環境を作ろうとしていて、デフォルトのvagrantユーザで作業するのもアレなんでprovision(今回はansible_local)でユーザを作って、そのユーザのホームディレクトリをホストOSと共有したかった。 試した…