{"action":"closed","issue":{"url":"https://api.github.com/repos/zstackorg/zstack/issues/146","repository_url":"https://api.github.com/repos/zstackorg/zstack","labels_url":"https://api.github.com/repos/zstackorg/zstack/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/zstackorg/zstack/issues/146/comments","events_url":"https://api.github.com/repos/zstackorg/zstack/issues/146/events","html_url":"https://github.com/zstackorg/zstack/issues/146","id":113390702,"number":146,"title":"unable to start vm with qemu option \"cache=none\" when file system not support O_DIRECT","user":{"login":"mattyen","id":2368301,"avatar_url":"https://avatars.githubusercontent.com/u/2368301?v=3","gravatar_id":"","url":"https://api.github.com/users/mattyen","html_url":"https://github.com/mattyen","followers_url":"https://api.github.com/users/mattyen/followers","following_url":"https://api.github.com/users/mattyen/following{/other_user}","gists_url":"https://api.github.com/users/mattyen/gists{/gist_id}","starred_url":"https://api.github.com/users/mattyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattyen/subscriptions","organizations_url":"https://api.github.com/users/mattyen/orgs","repos_url":"https://api.github.com/users/mattyen/repos","events_url":"https://api.github.com/users/mattyen/events{/privacy}","received_events_url":"https://api.github.com/users/mattyen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zstackorg/zstack/labels/need%20merge","name":"need merge","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/zstackorg/zstack/milestones/4","html_url":"https://github.com/zstackorg/zstack/milestones/1.0","labels_url":"https://api.github.com/repos/zstackorg/zstack/milestones/4/labels","id":1315995,"number":4,"title":"1.0","description":null,"creator":{"login":"youyk","id":2962014,"avatar_url":"https://avatars.githubusercontent.com/u/2962014?v=3","gravatar_id":"","url":"https://api.github.com/users/youyk","html_url":"https://github.com/youyk","followers_url":"https://api.github.com/users/youyk/followers","following_url":"https://api.github.com/users/youyk/following{/other_user}","gists_url":"https://api.github.com/users/youyk/gists{/gist_id}","starred_url":"https://api.github.com/users/youyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youyk/subscriptions","organizations_url":"https://api.github.com/users/youyk/orgs","repos_url":"https://api.github.com/users/youyk/repos","events_url":"https://api.github.com/users/youyk/events{/privacy}","received_events_url":"https://api.github.com/users/youyk/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":22,"state":"open","created_at":"2015-09-21T09:56:25Z","updated_at":"2016-02-23T08:06:56Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-10-26T16:10:24Z","updated_at":"2016-02-23T08:06:56Z","closed_at":"2016-02-23T08:06:56Z","body":"I use zfs pool as a localStorage for zstack on my machine, and zstack unable to start vm while I new VmInstance.\r\nPlease see API failure response below.\r\n\r\n{\r\n  \"org.zstack.header.vm.APICreateVmInstanceEvent\": {\r\n    \"success\": false,\r\n    \"apiId\": \"ffdbd4c1a92c4705b5ef4217ca25af51\",\r\n    \"headers\": {\r\n      \"schema\": {}\r\n    },\r\n    \"error\": {\r\n      \"code\": \"SYS.1006\",\r\n      \"cause\": {\r\n        \"code\": \"HOST.1005\",\r\n        \"description\": \"Failed to start vm on hypervisor\",\r\n        \"details\": \"failed to start vm[uuid:e6153a68fbf745018814a453a50d4d8c name:virtualRouter.l3.a9c1fe71cbbd438dab7937233397109c] on kvm host[uuid:6c69abf8581b4a81b99511b8ea6f4e46, ip:192.168.2.99], because unable to start vm[uuid:e6153a68fbf745018814a453a50d4d8c, name:virtualRouter.l3.a9c1fe71cbbd438dab7937233397109c], libvirt error: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=/DataRaidz/nfs_root/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-cc41ec605b43458abfd2f7236e03e50b/cc41ec605b43458abfd2f7236e03e50b.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: file system may not support O_DIRECT\\nqemu-system-x86_64: -drive file=/DataRaidz/nfs_root/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-cc41ec605b43458abfd2f7236e03e50b/cc41ec605b43458abfd2f7236e03e50b.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: could not open disk image /DataRaidz/nfs_root/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-cc41ec605b43458abfd2f7236e03e50b/cc41ec605b43458abfd2f7236e03e50b.qcow2: Could not open '/DataRaidz/nfs_root/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-cc41ec605b43458abfd2f7236e03e50b/cc41ec605b43458abfd2f7236e03e50b.qcow2': Invalid argument\\n\"\r\n      },\r\n      \"description\": \"An operation failed\",\r\n      \"details\": \"failed to start vm[uuid:e6153a68fbf745018814a453a50d4d8c name:virtualRouter.l3.a9c1fe71cbbd438dab7937233397109c] on kvm host[uuid:6c69abf8581b4a81b99511b8ea6f4e46, ip:192.168.2.99], because unable to start vm[uuid:e6153a68fbf745018814a453a50d4d8c, name:virtualRouter.l3.a9c1fe71cbbd438dab7937233397109c], libvirt error: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=/DataRaidz/nfs_root/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-cc41ec605b43458abfd2f7236e03e50b/cc41ec605b43458abfd2f7236e03e50b.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: file system may not support O_DIRECT\\nqemu-system-x86_64: -drive file=/DataRaidz/nfs_root/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-cc41ec605b43458abfd2f7236e03e50b/cc41ec605b43458abfd2f7236e03e50b.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: could not open disk image /DataRaidz/nfs_root/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-cc41ec605b43458abfd2f7236e03e50b/cc41ec605b43458abfd2f7236e03e50b.qcow2: Could not open '/DataRaidz/nfs_root/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-cc41ec605b43458abfd2f7236e03e50b/cc41ec605b43458abfd2f7236e03e50b.qcow2': Invalid argument\\n\"\r\n    },\r\n    \"id\": \"2dcfd5742e104ed7a6785d9eb86d9cef\",\r\n    \"creatingTime\": 1445861649816\r\n  }\r\n}"}}