{"action":"created","issue":{"url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/issues/178","labels_url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/issues/178/comments","events_url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/issues/178/events","html_url":"https://github.com/test-kitchen/kitchen-vagrant/pull/178","id":95333700,"number":178,"title":"Support `createhd`, `storageattach` option for Virtualbox","user":{"login":"w1mvy","id":362371,"avatar_url":"https://avatars.githubusercontent.com/u/362371?v=3","gravatar_id":"","url":"https://api.github.com/users/w1mvy","html_url":"https://github.com/w1mvy","followers_url":"https://api.github.com/users/w1mvy/followers","following_url":"https://api.github.com/users/w1mvy/following{/other_user}","gists_url":"https://api.github.com/users/w1mvy/gists{/gist_id}","starred_url":"https://api.github.com/users/w1mvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w1mvy/subscriptions","organizations_url":"https://api.github.com/users/w1mvy/orgs","repos_url":"https://api.github.com/users/w1mvy/repos","events_url":"https://api.github.com/users/w1mvy/events{/privacy}","received_events_url":"https://api.github.com/users/w1mvy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/labels/Feedback%20Requested","name":"Feedback Requested","color":"d4c5f9"},{"url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/labels/Improvement","name":"Improvement","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/milestones/3","html_url":"https://github.com/test-kitchen/kitchen-vagrant/milestones/Accepted%20Minor","labels_url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/milestones/3/labels","id":1509756,"number":3,"title":"Accepted Minor","description":"","creator":{"login":"cheeseplus","id":575693,"avatar_url":"https://avatars.githubusercontent.com/u/575693?v=3","gravatar_id":"","url":"https://api.github.com/users/cheeseplus","html_url":"https://github.com/cheeseplus","followers_url":"https://api.github.com/users/cheeseplus/followers","following_url":"https://api.github.com/users/cheeseplus/following{/other_user}","gists_url":"https://api.github.com/users/cheeseplus/gists{/gist_id}","starred_url":"https://api.github.com/users/cheeseplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheeseplus/subscriptions","organizations_url":"https://api.github.com/users/cheeseplus/orgs","repos_url":"https://api.github.com/users/cheeseplus/repos","events_url":"https://api.github.com/users/cheeseplus/events{/privacy}","received_events_url":"https://api.github.com/users/cheeseplus/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":1,"state":"open","created_at":"2016-01-15T22:02:48Z","updated_at":"2016-01-16T23:04:49Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-07-16T02:34:12Z","updated_at":"2016-01-18T18:16:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/pulls/178","html_url":"https://github.com/test-kitchen/kitchen-vagrant/pull/178","diff_url":"https://github.com/test-kitchen/kitchen-vagrant/pull/178.diff","patch_url":"https://github.com/test-kitchen/kitchen-vagrant/pull/178.patch"},"body":"Update Vagrantfile template.\r\n\r\nsupport Virtualbox options `createhd` and `storageattach`\r\n\r\n- https://www.virtualbox.org/manual/ch08.html#vboxmanage-createvdi\r\n- https://www.virtualbox.org/manual/ch08.html#vboxmanage-storageattach\r\n\r\nlike this\r\n\r\n```markdown\r\nplatforms:\r\n  - name: ubuntu-14.04\r\n    driver:\r\n      box: trusty64\r\n      customize:\r\n        memory: 1024\r\n        cpus: 4\r\n        nictype1: virtio\r\n        createhd:\r\n          filename: ./tmp/diskfile1.vmdk\r\n          size: 100 * 1024\r\n        storageattach:\r\n          storagectl: IDE Controller\r\n          port: 1\r\n          device: 0\r\n          type: hdd\r\n          medium: ./tmp/diskfile1.vmdk\r\n```"},"comment":{"url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/issues/comments/172610849","html_url":"https://github.com/test-kitchen/kitchen-vagrant/pull/178#issuecomment-172610849","issue_url":"https://api.github.com/repos/test-kitchen/kitchen-vagrant/issues/178","id":172610849,"user":{"login":"lgeinert","id":16020757,"avatar_url":"https://avatars.githubusercontent.com/u/16020757?v=3","gravatar_id":"","url":"https://api.github.com/users/lgeinert","html_url":"https://github.com/lgeinert","followers_url":"https://api.github.com/users/lgeinert/followers","following_url":"https://api.github.com/users/lgeinert/following{/other_user}","gists_url":"https://api.github.com/users/lgeinert/gists{/gist_id}","starred_url":"https://api.github.com/users/lgeinert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgeinert/subscriptions","organizations_url":"https://api.github.com/users/lgeinert/orgs","repos_url":"https://api.github.com/users/lgeinert/repos","events_url":"https://api.github.com/users/lgeinert/events{/privacy}","received_events_url":"https://api.github.com/users/lgeinert/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T18:16:12Z","updated_at":"2016-01-18T18:16:12Z","body":"If you are going to do createhd and storageattach does it make sense to do modifyhd?   Reason being, we cannot create a shareable disk initially, we have to do it as a second step.  \r\n>      vb.customize ['createhd', '--filename', \"../#{disk_name}.vdi\", '--size', (size * 1024).floor, '--variant', 'fixed']\r\n     vb.customize ['modifyhd', \"../#{disk_name}.vdi\", '--type', 'shareable'] "}}