Bug 999292
Summary: | conflict exist in man doc about '--attach' | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | CongDong <codong> | ||||
Component: | virt-viewer | Assignee: | Daniel Berrangé <berrange> | ||||
Status: | CLOSED CANTFIX | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.5 | CC: | acathrow, berrange, cfergeau, codong, dblechte, dyuan, hyao, lcui, mzhan, pschiffe, tzheng, xlu, zsong | ||||
Target Milestone: | rc | Keywords: | ManPageChange | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 999291 | Environment: | |||||
Last Closed: | 2013-09-09 08:41:53 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 999914, 999922 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
CongDong
2013-08-21 06:00:50 UTC
(In reply to CongDong from comment #0) > 3. On client: > # virt-viewer -a -c qemu+tcp://$ip/system $vm Per the manpage --attach only works when using a local connection. ie you must be using qemu:///system or qemu:///session. Any use of +tcp or +tls or +ssh APIs will not work (In reply to Daniel Berrange from comment #2) > (In reply to CongDong from comment #0) > Per the manpage --attach only works when using a local connection. ie you > must be using qemu:///system or qemu:///session. Any use of +tcp or +tls > or +ssh APIs will not work Hi, thanks for reply, but still have two problems: 1. I tried with local connection and remote guest both. virt-viewer -a -c qemu+tcp://$localip/system $vm virt-viewer -c qemu+tcp://$localip/system $vm Both of the two commands have same effect virt-viewer -a $guest virt-viewer $guest Both of the two commands have same effect too. As the result, I think the option is unless, so can you give me an example? I think should add one in man doc too. 2. In the manpage about "--attach": 1) This avoids the need to authentication with the remote display, if authentication with libvirt is already allowed. 2) This option does not work with remote displays. From the description in "1)", I think virt-viewer can connect the remote guest without authentication through "-a". But as the "2)" says, it can't be used with remote displays. It's conflict. Can you run LIBVIRT_LOG_FILTERS=1:libvirt virt-viewer -c qemu:///system --attach --debug $guest and attach the output to this bug. I expect when you run that command you'll see an error in the logs (virt-viewer:11573): virt-viewer-DEBUG: Error internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS And if you do 'setenforce 0', then the error will go away & virt-viewer will do what it is supposed to do. Created attachment 789402 [details] The virt-viewer log file (In reply to Daniel Berrange from comment #5) > I expect when you run that command you'll see an error in the logs > > (virt-viewer:11573): virt-viewer-DEBUG: Error internal error: unable to > execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS > > > And if you do 'setenforce 0', then the error will go away & virt-viewer > will do what it is supposed to do. Yes, I run the command and there is an error message like you said in the log file, and I run it again after "steenforce 0", the error message didn't appear. But virt-viewer can always connect the guest just like without "--attach". The KVM in RHEL-6 does not provide the functionality required for the --attach argument to work. (In reply to Daniel Berrange from comment #7) > The KVM in RHEL-6 does not provide the functionality required for the > --attach argument to work. If kvm in RHEL6 does not provide the function, I think should remove the options in virt-viewer. |