{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/4484","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/4484/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/4484/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/4484/events","html_url":"https://github.com/mitchellh/vagrant/pull/4484","id":42384547,"number":4484,"title":"Add support for linked clones for VirtualBox.","user":{"login":"mpoeter","id":8653812,"avatar_url":"https://avatars.githubusercontent.com/u/8653812?v=3","gravatar_id":"","url":"https://api.github.com/users/mpoeter","html_url":"https://github.com/mpoeter","followers_url":"https://api.github.com/users/mpoeter/followers","following_url":"https://api.github.com/users/mpoeter/following{/other_user}","gists_url":"https://api.github.com/users/mpoeter/gists{/gist_id}","starred_url":"https://api.github.com/users/mpoeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpoeter/subscriptions","organizations_url":"https://api.github.com/users/mpoeter/orgs","repos_url":"https://api.github.com/users/mpoeter/repos","events_url":"https://api.github.com/users/mpoeter/events{/privacy}","received_events_url":"https://api.github.com/users/mpoeter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/vagrant/labels/pr/reviewed","name":"pr/reviewed","color":"fef2c0"},{"url":"https://api.github.com/repos/mitchellh/vagrant/labels/waiting-reply","name":"waiting-reply","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-09-10T07:16:49Z","updated_at":"2015-06-05T12:59:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mitchellh/vagrant/pulls/4484","html_url":"https://github.com/mitchellh/vagrant/pull/4484","diff_url":"https://github.com/mitchellh/vagrant/pull/4484.diff","patch_url":"https://github.com/mitchellh/vagrant/pull/4484.patch"},"body":"This allow creation of linked clones using the VirtualBox 4.3 provider:\r\n```\r\nconfig.vm.provider \"virtualbox\" do |vb|\r\n    vb.use_linked_clone = true\r\nend\r\n```\r\nInstead of creating a fresh machine via importing the ovf file a master VM is created once (via ovf import) and the clones are created based on this master VM. The id of the master VM is stored in a file \"master_id\" in the directory of the according box.\r\n\r\nThere are a few bits missing like preventing concurrent creation of master VMs for the same box, as well as maintaining the lifetime of the master VM (when shall it be destroyed and who is responsible for it?).\r\n\r\nAlso the code might need a few adaptions since this is the first time I wrote some Ruby.\r\n\r\nHowever, I thought this might be a good starting point for a discussion about how this feature could be added to Vagrant."},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/109285085","html_url":"https://github.com/mitchellh/vagrant/pull/4484#issuecomment-109285085","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/4484","id":109285085,"user":{"login":"mpoeter","id":8653812,"avatar_url":"https://avatars.githubusercontent.com/u/8653812?v=3","gravatar_id":"","url":"https://api.github.com/users/mpoeter","html_url":"https://github.com/mpoeter","followers_url":"https://api.github.com/users/mpoeter/followers","following_url":"https://api.github.com/users/mpoeter/following{/other_user}","gists_url":"https://api.github.com/users/mpoeter/gists{/gist_id}","starred_url":"https://api.github.com/users/mpoeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpoeter/subscriptions","organizations_url":"https://api.github.com/users/mpoeter/orgs","repos_url":"https://api.github.com/users/mpoeter/repos","events_url":"https://api.github.com/users/mpoeter/events{/privacy}","received_events_url":"https://api.github.com/users/mpoeter/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T12:59:54Z","updated_at":"2015-06-05T12:59:54Z","body":"Sure, I think I can spare a few minutes in the next days..."}}