Unable to connect to libvirt. (xubuntu)












0















Error message while opening VMM:




Unable to connect to libvirt. You need to install openssh-askpass or
similar to connect to this host.











share|improve this question



























    0















    Error message while opening VMM:




    Unable to connect to libvirt. You need to install openssh-askpass or
    similar to connect to this host.











    share|improve this question

























      0












      0








      0








      Error message while opening VMM:




      Unable to connect to libvirt. You need to install openssh-askpass or
      similar to connect to this host.











      share|improve this question














      Error message while opening VMM:




      Unable to connect to libvirt. You need to install openssh-askpass or
      similar to connect to this host.








      xubuntu virtualization






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 9 at 11:21









      sneakysneaky

      1015




      1015






















          2 Answers
          2






          active

          oldest

          votes


















          1














          After this is the second time this comes up I tried to reproduce it today. You already posted the answer how to install askpass (thanks), but for the other issue which was already marked a dup - here some details about it.



          I installed two Ubuntu systems and set up a user ubuntu@... that can be logged in via ssh keys. One of them had libvirtd and one had virt-manager.
          It worked right away.



          Since you mentioned askpass I removed the ability to login via keys and require a password. But in that case the error message for me seems quite clear. It directly calls for ssh-askpass in the error.



          enter image description here



          You can - as you did - install askpass, or as I outlined before set up ssh-keys - in both cases it then works fine.



          Is that maybe a rather old version of virt-manager?
          I tried virt-manager in Xenial, Bionic, Cosmic and Disco which all worked quite similar for me.



          If all of that doesn't help your case, please outline whatever is special on your user setup as it might be related.






          share|improve this answer
























          • Well, I used the version installed by repo on Xubuntu 18.04. The version is 1.5.1. I know, that there is a version 2.1, but which version do you use?

            – sneaky
            Mar 28 at 16:36











          • @sneaky - as stated above my tests covered all of these versions - I really wonder what is odd with your setup.

            – Christian Ehrhardt
            2 days ago



















          0














          Just install ssh-askpass



          sudo apt-get install ssh-askpass


          (x)Ubuntu Installations seems to misses that package.






          share|improve this answer



















          • 1





            That would still be a missing dependency, at least a recommends I'd say. @sneaky What exactly do you mean when you say "opening VMM" starting virt-manager? I'd ask you to file a bug for the package that has this to add a dependency which should help to avoid the issue for other users.

            – Christian Ehrhardt
            Feb 11 at 7:12











          • Well, at least this error message is more exact than the other message I get on another machine (and it can be solved the same way): [Unable to connect to libvirt qemu+ssh] (askubuntu.com/questions/1129190/…)

            – sneaky
            Mar 27 at 16:08











          • Unable to connect to libvirt qemu+ssh://UserName@IpOfServer:Port/system. Cannot recv data: Der Wert ist zu groß für den definierten Datentyp Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1036, in _do_open self._backend.open(self._do_creds_password) File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open open_flags) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: Cannot recv data:

            – sneaky
            Mar 28 at 7:01














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116898%2funable-to-connect-to-libvirt-xubuntu%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          After this is the second time this comes up I tried to reproduce it today. You already posted the answer how to install askpass (thanks), but for the other issue which was already marked a dup - here some details about it.



          I installed two Ubuntu systems and set up a user ubuntu@... that can be logged in via ssh keys. One of them had libvirtd and one had virt-manager.
          It worked right away.



          Since you mentioned askpass I removed the ability to login via keys and require a password. But in that case the error message for me seems quite clear. It directly calls for ssh-askpass in the error.



          enter image description here



          You can - as you did - install askpass, or as I outlined before set up ssh-keys - in both cases it then works fine.



          Is that maybe a rather old version of virt-manager?
          I tried virt-manager in Xenial, Bionic, Cosmic and Disco which all worked quite similar for me.



          If all of that doesn't help your case, please outline whatever is special on your user setup as it might be related.






          share|improve this answer
























          • Well, I used the version installed by repo on Xubuntu 18.04. The version is 1.5.1. I know, that there is a version 2.1, but which version do you use?

            – sneaky
            Mar 28 at 16:36











          • @sneaky - as stated above my tests covered all of these versions - I really wonder what is odd with your setup.

            – Christian Ehrhardt
            2 days ago
















          1














          After this is the second time this comes up I tried to reproduce it today. You already posted the answer how to install askpass (thanks), but for the other issue which was already marked a dup - here some details about it.



          I installed two Ubuntu systems and set up a user ubuntu@... that can be logged in via ssh keys. One of them had libvirtd and one had virt-manager.
          It worked right away.



          Since you mentioned askpass I removed the ability to login via keys and require a password. But in that case the error message for me seems quite clear. It directly calls for ssh-askpass in the error.



          enter image description here



          You can - as you did - install askpass, or as I outlined before set up ssh-keys - in both cases it then works fine.



          Is that maybe a rather old version of virt-manager?
          I tried virt-manager in Xenial, Bionic, Cosmic and Disco which all worked quite similar for me.



          If all of that doesn't help your case, please outline whatever is special on your user setup as it might be related.






          share|improve this answer
























          • Well, I used the version installed by repo on Xubuntu 18.04. The version is 1.5.1. I know, that there is a version 2.1, but which version do you use?

            – sneaky
            Mar 28 at 16:36











          • @sneaky - as stated above my tests covered all of these versions - I really wonder what is odd with your setup.

            – Christian Ehrhardt
            2 days ago














          1












          1








          1







          After this is the second time this comes up I tried to reproduce it today. You already posted the answer how to install askpass (thanks), but for the other issue which was already marked a dup - here some details about it.



          I installed two Ubuntu systems and set up a user ubuntu@... that can be logged in via ssh keys. One of them had libvirtd and one had virt-manager.
          It worked right away.



          Since you mentioned askpass I removed the ability to login via keys and require a password. But in that case the error message for me seems quite clear. It directly calls for ssh-askpass in the error.



          enter image description here



          You can - as you did - install askpass, or as I outlined before set up ssh-keys - in both cases it then works fine.



          Is that maybe a rather old version of virt-manager?
          I tried virt-manager in Xenial, Bionic, Cosmic and Disco which all worked quite similar for me.



          If all of that doesn't help your case, please outline whatever is special on your user setup as it might be related.






          share|improve this answer













          After this is the second time this comes up I tried to reproduce it today. You already posted the answer how to install askpass (thanks), but for the other issue which was already marked a dup - here some details about it.



          I installed two Ubuntu systems and set up a user ubuntu@... that can be logged in via ssh keys. One of them had libvirtd and one had virt-manager.
          It worked right away.



          Since you mentioned askpass I removed the ability to login via keys and require a password. But in that case the error message for me seems quite clear. It directly calls for ssh-askpass in the error.



          enter image description here



          You can - as you did - install askpass, or as I outlined before set up ssh-keys - in both cases it then works fine.



          Is that maybe a rather old version of virt-manager?
          I tried virt-manager in Xenial, Bionic, Cosmic and Disco which all worked quite similar for me.



          If all of that doesn't help your case, please outline whatever is special on your user setup as it might be related.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 28 at 16:30









          Christian EhrhardtChristian Ehrhardt

          626210




          626210













          • Well, I used the version installed by repo on Xubuntu 18.04. The version is 1.5.1. I know, that there is a version 2.1, but which version do you use?

            – sneaky
            Mar 28 at 16:36











          • @sneaky - as stated above my tests covered all of these versions - I really wonder what is odd with your setup.

            – Christian Ehrhardt
            2 days ago



















          • Well, I used the version installed by repo on Xubuntu 18.04. The version is 1.5.1. I know, that there is a version 2.1, but which version do you use?

            – sneaky
            Mar 28 at 16:36











          • @sneaky - as stated above my tests covered all of these versions - I really wonder what is odd with your setup.

            – Christian Ehrhardt
            2 days ago

















          Well, I used the version installed by repo on Xubuntu 18.04. The version is 1.5.1. I know, that there is a version 2.1, but which version do you use?

          – sneaky
          Mar 28 at 16:36





          Well, I used the version installed by repo on Xubuntu 18.04. The version is 1.5.1. I know, that there is a version 2.1, but which version do you use?

          – sneaky
          Mar 28 at 16:36













          @sneaky - as stated above my tests covered all of these versions - I really wonder what is odd with your setup.

          – Christian Ehrhardt
          2 days ago





          @sneaky - as stated above my tests covered all of these versions - I really wonder what is odd with your setup.

          – Christian Ehrhardt
          2 days ago













          0














          Just install ssh-askpass



          sudo apt-get install ssh-askpass


          (x)Ubuntu Installations seems to misses that package.






          share|improve this answer



















          • 1





            That would still be a missing dependency, at least a recommends I'd say. @sneaky What exactly do you mean when you say "opening VMM" starting virt-manager? I'd ask you to file a bug for the package that has this to add a dependency which should help to avoid the issue for other users.

            – Christian Ehrhardt
            Feb 11 at 7:12











          • Well, at least this error message is more exact than the other message I get on another machine (and it can be solved the same way): [Unable to connect to libvirt qemu+ssh] (askubuntu.com/questions/1129190/…)

            – sneaky
            Mar 27 at 16:08











          • Unable to connect to libvirt qemu+ssh://UserName@IpOfServer:Port/system. Cannot recv data: Der Wert ist zu groß für den definierten Datentyp Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1036, in _do_open self._backend.open(self._do_creds_password) File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open open_flags) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: Cannot recv data:

            – sneaky
            Mar 28 at 7:01


















          0














          Just install ssh-askpass



          sudo apt-get install ssh-askpass


          (x)Ubuntu Installations seems to misses that package.






          share|improve this answer



















          • 1





            That would still be a missing dependency, at least a recommends I'd say. @sneaky What exactly do you mean when you say "opening VMM" starting virt-manager? I'd ask you to file a bug for the package that has this to add a dependency which should help to avoid the issue for other users.

            – Christian Ehrhardt
            Feb 11 at 7:12











          • Well, at least this error message is more exact than the other message I get on another machine (and it can be solved the same way): [Unable to connect to libvirt qemu+ssh] (askubuntu.com/questions/1129190/…)

            – sneaky
            Mar 27 at 16:08











          • Unable to connect to libvirt qemu+ssh://UserName@IpOfServer:Port/system. Cannot recv data: Der Wert ist zu groß für den definierten Datentyp Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1036, in _do_open self._backend.open(self._do_creds_password) File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open open_flags) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: Cannot recv data:

            – sneaky
            Mar 28 at 7:01
















          0












          0








          0







          Just install ssh-askpass



          sudo apt-get install ssh-askpass


          (x)Ubuntu Installations seems to misses that package.






          share|improve this answer













          Just install ssh-askpass



          sudo apt-get install ssh-askpass


          (x)Ubuntu Installations seems to misses that package.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 9 at 11:22









          sneakysneaky

          1015




          1015








          • 1





            That would still be a missing dependency, at least a recommends I'd say. @sneaky What exactly do you mean when you say "opening VMM" starting virt-manager? I'd ask you to file a bug for the package that has this to add a dependency which should help to avoid the issue for other users.

            – Christian Ehrhardt
            Feb 11 at 7:12











          • Well, at least this error message is more exact than the other message I get on another machine (and it can be solved the same way): [Unable to connect to libvirt qemu+ssh] (askubuntu.com/questions/1129190/…)

            – sneaky
            Mar 27 at 16:08











          • Unable to connect to libvirt qemu+ssh://UserName@IpOfServer:Port/system. Cannot recv data: Der Wert ist zu groß für den definierten Datentyp Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1036, in _do_open self._backend.open(self._do_creds_password) File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open open_flags) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: Cannot recv data:

            – sneaky
            Mar 28 at 7:01
















          • 1





            That would still be a missing dependency, at least a recommends I'd say. @sneaky What exactly do you mean when you say "opening VMM" starting virt-manager? I'd ask you to file a bug for the package that has this to add a dependency which should help to avoid the issue for other users.

            – Christian Ehrhardt
            Feb 11 at 7:12











          • Well, at least this error message is more exact than the other message I get on another machine (and it can be solved the same way): [Unable to connect to libvirt qemu+ssh] (askubuntu.com/questions/1129190/…)

            – sneaky
            Mar 27 at 16:08











          • Unable to connect to libvirt qemu+ssh://UserName@IpOfServer:Port/system. Cannot recv data: Der Wert ist zu groß für den definierten Datentyp Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1036, in _do_open self._backend.open(self._do_creds_password) File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open open_flags) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: Cannot recv data:

            – sneaky
            Mar 28 at 7:01










          1




          1





          That would still be a missing dependency, at least a recommends I'd say. @sneaky What exactly do you mean when you say "opening VMM" starting virt-manager? I'd ask you to file a bug for the package that has this to add a dependency which should help to avoid the issue for other users.

          – Christian Ehrhardt
          Feb 11 at 7:12





          That would still be a missing dependency, at least a recommends I'd say. @sneaky What exactly do you mean when you say "opening VMM" starting virt-manager? I'd ask you to file a bug for the package that has this to add a dependency which should help to avoid the issue for other users.

          – Christian Ehrhardt
          Feb 11 at 7:12













          Well, at least this error message is more exact than the other message I get on another machine (and it can be solved the same way): [Unable to connect to libvirt qemu+ssh] (askubuntu.com/questions/1129190/…)

          – sneaky
          Mar 27 at 16:08





          Well, at least this error message is more exact than the other message I get on another machine (and it can be solved the same way): [Unable to connect to libvirt qemu+ssh] (askubuntu.com/questions/1129190/…)

          – sneaky
          Mar 27 at 16:08













          Unable to connect to libvirt qemu+ssh://UserName@IpOfServer:Port/system. Cannot recv data: Der Wert ist zu groß für den definierten Datentyp Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1036, in _do_open self._backend.open(self._do_creds_password) File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open open_flags) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: Cannot recv data:

          – sneaky
          Mar 28 at 7:01







          Unable to connect to libvirt qemu+ssh://UserName@IpOfServer:Port/system. Cannot recv data: Der Wert ist zu groß für den definierten Datentyp Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1036, in _do_open self._backend.open(self._do_creds_password) File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open open_flags) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: Cannot recv data:

          – sneaky
          Mar 28 at 7:01




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116898%2funable-to-connect-to-libvirt-xubuntu%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Human spaceflight

          Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

          張江高科駅