LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2014, 09:52 PM   #1
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Rep: Reputation: Disabled
Trouble with virtual machine manager/libvirt


I apologize for all my newb problems/questions. I installed and configured KVM on my server (Centos 6.5). I was able to use Virtual Machine manager locally on the server in the desktop gui and install a working Fedora guest machine.

Now I'm back to my laptop/client machine which is now running Linux Mint 16 (yes I have had about 5 different distros in the past week on my laptop). I have installed virtual machine manager and trying to connect remotely to my server and use the virtual machine there but I keep getting errors:
Unable to connect to libvirt.

Cannot recv data: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).: Connection reset by peer

Verify that the 'libvirtd' daemon is running
on the remote host.

Unable to connect to libvirt.

Cannot recv data: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).: Connection reset by peer

Verify that the 'libvirtd' daemon is running
on the remote host.

Libvirt URI is: qemu+ssh://root@192.168.1.7:1977/system

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 1027, in _open_thread
self.vmm = self._try_open()
File "/usr/share/virt-manager/virtManager/connection.py", line 1009, in _try_open
flags)
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Cannot recv data: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).: Connection reset by peer


I have checked and confirmed the daemon is running on my server:

service libvirtd restart
Stopping libvirtd daemon: [ OK ]
Starting libvirtd daemon: [ OK ]


I basically followed this tutorial :

http://www.howtoforge.com/how-to-ins...ged-networking


Any thoughts? thanks
 
Old 01-29-2014, 02:03 AM   #2
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
So I was trying to create a local virtual machine on my wife's computer running Ubuntu and I get the same error so I'm guessing it's a compatibility issue with the OS
 
Old 01-29-2014, 05:30 PM   #3
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
what is the recommended application or method to connect to a remotely hosted virtual machine? I now have KVM/Virt and Virtualbox on my CentOS server and running Debian on my laptop.
 
Old 02-02-2014, 01:13 PM   #4
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
I'm still trying to get my head around this. My server has KVM installed. I was able to create and run a virtual machine using Virtual Machine Manager gui on the server.

I am trying to use VMM on the client and connect and I keep getting an error that says make sure the libvrtd daemon is running on the host. It is running, I have confirmed and restarted it. My server has intel virtualization technology and it is enabled in the bios. My client doesn't have virt technology (does this matter?)

I feel like the hard work is done and connecting remotely to my already configured and installed vm should be simple but it's not. What is the best way to connect to the KVM/QEMU machine from my client (debian)?

I have also tried using VirtualBox on the server with the extension pack for remote access and I can't seem to get that working either.
 
Old 02-02-2014, 09:13 PM   #5
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Can someone point me to a link that will help get this up and running on a Centos server? I don't care if I am using KVM or VirtualBox. I just want to be able to host some machines on my server and connect to them from my laptop. I have read through a few tutorials. I have kvm/libvirt installed on the server and Virtualbox with extensions for remote connections. I can configure and install a guest system on my server and run them in the desktop gui on the server but I just can't connect from my laptop. I have tried Virtual Machine Manager and rdesktop from the client side with different options and nothing happens. This has become a hurdle in my learning since I want to start configuring virtual servers to run different services and not worry about screwing up the physical server which is pretty solid right now
 
Old 02-03-2014, 03:20 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,357

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Consider asking the Mods via the Report button to move this to the Virtualization & Cloud forum https://www.linuxquestions.org/quest.../?daysprune=-1
 
Old 08-13-2014, 02:37 AM   #7
nobulus
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Rep: Reputation: Disabled
Hi

I found this while searching for a solution to my problem & can see that it's a bit late for the OP but I'm replying here in the hope that it will help others who suffer the same symptoms.

In my case this was caused by an incorrect password being saved & invisibly applied by ksshaskpass (KDE) when trying to connect to a remote host with Virtual Machine Manager. I tried to edit the Kwallet holding the credentials but ended up destroying the wallet to fix it.

Where I differed from the OP was here:

OP: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).: Connection reset by peer
Me: Permission denied (publickey,password).: Connection reset by peer

Regards

Nobby
 
Old 08-29-2014, 08:03 AM   #8
chewynet
LQ Newbie
 
Registered: Feb 2010
Location: Dublin, Ireland
Distribution: OpenSuSE
Posts: 3

Rep: Reputation: 0
Cheers nobulus

Help you did indeed. Cleared all instances of applications unhelpfully named "password" or "Password" under the ksshaskpass/Password branch of KDEWallet.

Regards
Patrick
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems using Virtual Machine Manager infinity386@gmail.com Linux - Software 0 11-11-2012 06:49 AM
Virtual Machine Manager Joy1982 Linux - Software 3 04-11-2012 05:39 AM
Virtual machine manager HELP. Onedayyou Linux - Virtualization and Cloud 3 03-01-2010 03:07 AM
Virtual Machine Manager, i need help on setup usahanes Linux - Server 2 10-27-2009 11:23 PM
virtual machine manager anant Linux - Newbie 1 01-02-2007 02:56 AM


All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration