{"action":"created","issue":{"url":"https://api.github.com/repos/stefanberger/swtpm/issues/7","repository_url":"https://api.github.com/repos/stefanberger/swtpm","labels_url":"https://api.github.com/repos/stefanberger/swtpm/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/stefanberger/swtpm/issues/7/comments","events_url":"https://api.github.com/repos/stefanberger/swtpm/issues/7/events","html_url":"https://github.com/stefanberger/swtpm/issues/7","id":153248160,"number":7,"title":"Unable to start vtpm vm through libvirt xml file","user":{"login":"MIBc","id":4477478,"avatar_url":"https://avatars.githubusercontent.com/u/4477478?v=3","gravatar_id":"","url":"https://api.github.com/users/MIBc","html_url":"https://github.com/MIBc","followers_url":"https://api.github.com/users/MIBc/followers","following_url":"https://api.github.com/users/MIBc/following{/other_user}","gists_url":"https://api.github.com/users/MIBc/gists{/gist_id}","starred_url":"https://api.github.com/users/MIBc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MIBc/subscriptions","organizations_url":"https://api.github.com/users/MIBc/orgs","repos_url":"https://api.github.com/users/MIBc/repos","events_url":"https://api.github.com/users/MIBc/events{/privacy}","received_events_url":"https://api.github.com/users/MIBc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-05T14:49:28Z","updated_at":"2016-05-10T10:30:49Z","closed_at":null,"body":"I have made a /dev/vptm0 device through our documentation and start a vm using qemu-system-x86_64 command. Then, I have a try to start vtpm vm through libvirt xml. But I meet an error which I can't solve it. The error is \"**qemu-system-x86_64: -tpmdev cuse-tpm,id=tpm0,path=/dev/vtpm0: Cannot access TPM device using '/dev/vtpm0': Operation not permitted**\".\r\nI edit a test.txt file and use \"virsh domxml-from-native qemu-argv\" command to create libvirt xml file.\r\nThe contents of test.txt file and commands I used is as follows:\r\n**test.txt**\r\nLC_ALL=C PATH=/usr/local/bin HOME=/root LOGNAME=root /usr/local/bin/qemu-system-x86_64 -display sdl -enable-kvm -m 1024 -boot c -bios /root/tpm-test/seabios-tpm/out/bios.bin -boot menu=on -tpmdev cuse-tpm,id=tpm0,path=/dev/vtpm0 -device tpm-tis,tpmdev=tpm0 /tmp/tpm-test/centos.img\r\n\r\nvirsh domxml-from-native qemu-argv test.txt > my.xml\r\nvirsh create my.xml.\r\nAfter excute these operations, the error above-mentioned occured."},"comment":{"url":"https://api.github.com/repos/stefanberger/swtpm/issues/comments/218119429","html_url":"https://github.com/stefanberger/swtpm/issues/7#issuecomment-218119429","issue_url":"https://api.github.com/repos/stefanberger/swtpm/issues/7","id":218119429,"user":{"login":"MIBc","id":4477478,"avatar_url":"https://avatars.githubusercontent.com/u/4477478?v=3","gravatar_id":"","url":"https://api.github.com/users/MIBc","html_url":"https://github.com/MIBc","followers_url":"https://api.github.com/users/MIBc/followers","following_url":"https://api.github.com/users/MIBc/following{/other_user}","gists_url":"https://api.github.com/users/MIBc/gists{/gist_id}","starred_url":"https://api.github.com/users/MIBc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MIBc/subscriptions","organizations_url":"https://api.github.com/users/MIBc/orgs","repos_url":"https://api.github.com/users/MIBc/repos","events_url":"https://api.github.com/users/MIBc/events{/privacy}","received_events_url":"https://api.github.com/users/MIBc/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T10:30:49Z","updated_at":"2016-05-10T10:30:49Z","body":"@stefanberger  Very thank you for your response. I try the command \"umount /sys/fs/cgroup/devices\", but I occured another. I think you answker may be right. May be there are some error in my xml file. I'm wondering where can I get you driver for libvirt and how to use it.\r\n"}}