{"action":"created","issue":{"url":"https://api.github.com/repos/zchee/docker-machine-xhyve/issues/19","labels_url":"https://api.github.com/repos/zchee/docker-machine-xhyve/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/zchee/docker-machine-xhyve/issues/19/comments","events_url":"https://api.github.com/repos/zchee/docker-machine-xhyve/issues/19/events","html_url":"https://github.com/zchee/docker-machine-xhyve/pull/19","id":118257421,"number":19,"title":"Generate disk image using hdiutil","user":{"login":"johanneswuerbach","id":864578,"avatar_url":"https://avatars.githubusercontent.com/u/864578?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneswuerbach","html_url":"https://github.com/johanneswuerbach","followers_url":"https://api.github.com/users/johanneswuerbach/followers","following_url":"https://api.github.com/users/johanneswuerbach/following{/other_user}","gists_url":"https://api.github.com/users/johanneswuerbach/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneswuerbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneswuerbach/subscriptions","organizations_url":"https://api.github.com/users/johanneswuerbach/orgs","repos_url":"https://api.github.com/users/johanneswuerbach/repos","events_url":"https://api.github.com/users/johanneswuerbach/events{/privacy}","received_events_url":"https://api.github.com/users/johanneswuerbach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-22T11:18:43Z","updated_at":"2015-11-22T11:53:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zchee/docker-machine-xhyve/pulls/19","html_url":"https://github.com/zchee/docker-machine-xhyve/pull/19","diff_url":"https://github.com/zchee/docker-machine-xhyve/pull/19.diff","patch_url":"https://github.com/zchee/docker-machine-xhyve/pull/19.patch"},"body":"As discussed in https://github.com/zchee/docker-machine-xhyve/issues/18. This removes the libguestfs dependency.\r\n\r\n```\r\ndocker-machine -D create -d xhyve --xhyve-disk-size \"2000\" xhyve\r\n```\r\n```\r\ndocker@boot2docker:~$ df -h\r\nFilesystem                Size      Used Available Use% Mounted on\r\ntmpfs                   896.6M    123.7M    772.9M  14% /\r\ntmpfs                   498.1M         0    498.1M   0% /dev/shm\r\n/dev/vda1               996.5M      2.0M    926.3M   0% /mnt/vda1\r\ncgroup                  498.1M         0    498.1M   0% /sys/fs/cgroup\r\n/dev/vda1               996.5M      2.0M    926.3M   0% /mnt/vda1/var/lib/docker/aufs\r\n```\r\n```\r\ndocker info\r\nContainers: 1\r\nImages: 2\r\nServer Version: 1.9.0\r\nStorage Driver: aufs\r\n Root Dir: /mnt/vda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 4\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 4.1.12-boot2docker\r\nOperating System: Boot2Docker 1.9.0 (TCL 6.4); master : 16e4a2a - Tue Nov  3 19:49:22 UTC 2015\r\nCPUs: 1\r\nTotal Memory: 996.3 MiB\r\nName: boot2docker\r\nID: TZZC:VPCB:ZLL6:UCV5:HKZZ:4ZCI:XWVB:UHZG:HY5Q:EZER:ABYI:OXP6\r\nDebug mode (server): true\r\n File Descriptors: 12\r\n Goroutines: 20\r\n System Time: 2015-11-22T11:21:38.821801822Z\r\n EventsListeners: 0\r\n Init SHA1: \r\n Init Path: /usr/local/bin/docker\r\n Docker Root Dir: /mnt/vda1/var/lib/docker\r\nLabels:\r\n provider=xhyve\r\n```\r\nOutput as expected 1GB (- 1GB swap created by b2d https://github.com/boot2docker/boot2docker/blob/master/rootfs/rootfs/etc/rc.d/automount#L28)\r\n\r\nThis is using now the same method as the bundled [vbox](https://github.com/docker/machine/blob/master/drivers/virtualbox/virtualbox.go#L630) and [hyper-v](https://github.com/docker/machine/blob/master/drivers/hyperv/hyperv.go#L366) drivers are using to bootstrap the disk.\r\n\r\nI'll remove libguestfs, if you think this is :+1:"},"comment":{"url":"https://api.github.com/repos/zchee/docker-machine-xhyve/issues/comments/158752692","html_url":"https://github.com/zchee/docker-machine-xhyve/pull/19#issuecomment-158752692","issue_url":"https://api.github.com/repos/zchee/docker-machine-xhyve/issues/19","id":158752692,"user":{"login":"zchee","id":6366270,"avatar_url":"https://avatars.githubusercontent.com/u/6366270?v=3","gravatar_id":"","url":"https://api.github.com/users/zchee","html_url":"https://github.com/zchee","followers_url":"https://api.github.com/users/zchee/followers","following_url":"https://api.github.com/users/zchee/following{/other_user}","gists_url":"https://api.github.com/users/zchee/gists{/gist_id}","starred_url":"https://api.github.com/users/zchee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zchee/subscriptions","organizations_url":"https://api.github.com/users/zchee/orgs","repos_url":"https://api.github.com/users/zchee/repos","events_url":"https://api.github.com/users/zchee/events{/privacy}","received_events_url":"https://api.github.com/users/zchee/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T11:53:37Z","updated_at":"2015-11-22T11:53:37Z","body":"LGTM.\r\n\r\nI understand all now! Sorry that I can not understand in the discus :(\r\nCheck your PR code, and I will merge later.\r\n\r\nI wanted to develop the implementation of `tuntap` and `xpc` state, glad this issue is resolved.\r\nThanks PR, and long discus :)"}}