1
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.

VagrantでVirtualBox VMsのグループを設定する

1
Last updated at Posted at 2014-08-29

Vagrantfileで以下の記述をするだけ

  config.vm.provider :virtualbox do |vb|
    vb.name = "node1.elasticsearch"
    vb.customize [
        "modifyvm", :id,
        "--groups", "/MyProject"
    ]
  end

ただし、いったん $HOME/VirtualBox VMsvb.name とかで指定した名前でVMイメージが作成されるので、同じ名前のイメージが既に存在していたりするとエラーが発生して vagrant up できないので注意が必要です。

1
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
1
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?