{"action":"created","issue":{"url":"https://api.github.com/repos/mist64/xhyve/issues/111","repository_url":"https://api.github.com/repos/mist64/xhyve","labels_url":"https://api.github.com/repos/mist64/xhyve/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/mist64/xhyve/issues/111/comments","events_url":"https://api.github.com/repos/mist64/xhyve/issues/111/events","html_url":"https://github.com/mist64/xhyve/issues/111","id":158778997,"number":111,"title":"Cannot read disk when using ZFS volume","user":{"login":"jeduardo","id":75496,"avatar_url":"https://avatars.githubusercontent.com/u/75496?v=3","gravatar_id":"","url":"https://api.github.com/users/jeduardo","html_url":"https://github.com/jeduardo","followers_url":"https://api.github.com/users/jeduardo/followers","following_url":"https://api.github.com/users/jeduardo/following{/other_user}","gists_url":"https://api.github.com/users/jeduardo/gists{/gist_id}","starred_url":"https://api.github.com/users/jeduardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeduardo/subscriptions","organizations_url":"https://api.github.com/users/jeduardo/orgs","repos_url":"https://api.github.com/users/jeduardo/repos","events_url":"https://api.github.com/users/jeduardo/events{/privacy}","received_events_url":"https://api.github.com/users/jeduardo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-06T21:26:25Z","updated_at":"2016-12-07T21:05:44Z","closed_at":null,"body":"I'm using OpenZFS with a pool created inside a USB drive. \n\nWhen trying to install Ubuntu 16.04 over a ZFS volume it seems that xhyve cannot read the block device. The Ubuntu installer just tells me that no disk was detected. Using an actual (non-sparse) file hosted in the HFS+ partition in the same USB drive (but no ZFS) everything works fine.\n\nWhen creating a volume and dd'ing a running image onto this volume, then pointing xhyve to the volume the boot hangs at the initramfs prompt and the disk is never detected. When pointing xhyve to the image in the hard drive, the disk is detected as vda and everything works perfectly. \n\nI enabled `pci_vtblk_debug` under `src/pci_virtio_block.c` and I do get some interesting messages when running on both situations:\n\n1) Block device, first attempt to read disk returns the following message and eventually Linux stop waiting for the disk:\n\n> virtio-block: read/ident op, 20 bytes, 1 segs\n\n2) Disk image, first attempt to read disk returns the following message and it works fine for all session:\n\n> virtio-block: read/ident op, 4096 bytes, 1 segs\n\nIn situation 2 I get several times the message where 4096 are being read from the disk (sometimes with more bytes read). \n\nAny ideas? \n"},"comment":{"url":"https://api.github.com/repos/mist64/xhyve/issues/comments/265573260","html_url":"https://github.com/mist64/xhyve/issues/111#issuecomment-265573260","issue_url":"https://api.github.com/repos/mist64/xhyve/issues/111","id":265573260,"user":{"login":"jeduardo","id":75496,"avatar_url":"https://avatars.githubusercontent.com/u/75496?v=3","gravatar_id":"","url":"https://api.github.com/users/jeduardo","html_url":"https://github.com/jeduardo","followers_url":"https://api.github.com/users/jeduardo/followers","following_url":"https://api.github.com/users/jeduardo/following{/other_user}","gists_url":"https://api.github.com/users/jeduardo/gists{/gist_id}","starred_url":"https://api.github.com/users/jeduardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeduardo/subscriptions","organizations_url":"https://api.github.com/users/jeduardo/orgs","repos_url":"https://api.github.com/users/jeduardo/repos","events_url":"https://api.github.com/users/jeduardo/events{/privacy}","received_events_url":"https://api.github.com/users/jeduardo/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T21:05:44Z","updated_at":"2016-12-07T21:05:44Z","body":"Hmm... don't think so. From what I could understand the issue you linked is related to the devices not being created correctly for the ZVOLs. In my case the devices are created correctly, in fact, if I format a ZVOL with a filesystem that macOS can read I can mount it just fine in the system. \r\n\r\nHowever I could verify that I'm facing the same problem if I try to read/write to a USB device as well, so the problem might be with block devices in general, and not only the block device referencing the ZVOL. Does that make sense?"}}
{"actor":{"display_login":"jeduardo"}}