LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 02-03-2014, 09:45 AM   #1
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Rep: Reputation: Disabled
Having problems setting up my first virtualization server


Firt off, I am a bit of a noob. Been using Linux as a desktop for a while but built my first home server a month ago. Server is CentOS 6.5. I installed the server with the basic server install. I added the kvm packages later. Using the desktop gui and virtual machine manager on the server I am able to create and run a virtual machine but I can't connect to it from my laptop (client machine). When I try I get the following message:

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

I have just realized that when installing CentOS there is an option for Virtualized Server. Would it be worth re installing with that option? I basically built this server as a learning tool for me. I have installed some other services but doing it again will probably help my knowledge. I know realize that I probably should just have the physical server as bare bones as possible to just run as the virtualization host and then install some virtual servers on it for other things like ssh, samba, torrent, btsync that I am running
 
Old 02-03-2014, 03:09 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Can I assume that the host OS is Centos and you have some other client OS on it??
 
Old 02-03-2014, 04:43 PM   #3
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Can I assume that the host OS is Centos and you have some other client OS on it??
So I am obviously a little new to virutalization hosted on a server. I have used virtualbox at home on a local machine.

Right now I do have a CentOS 6.5 server that I am trying to use as the host machine. I installed a virtual Fedora 20 machine. I am trying to connect from my laptop which is running Debian. Hope that makes sense
 
Old 02-03-2014, 07:23 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Sorry, some times I just don't grasp the entire deal.

No, don't re-install it as a virtualized server.

I am still a bit puzzled so I'll ask more questions.

This laptop is a separate computer from the server computer?

In a normal install of some host OS and some VM one doesn't need to go to a new computer to start the test. You can stay at the host computer and try to connect to the client. When you say libvirt it suggests to me that you want to control it.

So... try to connect to the client OS from Centos to start.


Your link has been cut up and doesn't work.
 
Old 02-03-2014, 07:48 PM   #5
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
OK. On the CentOS server I can start the virtual machine and use it from the server. Now I want to connect remotely to it from my laptop. That is where I am having trouble.
 
Old 02-04-2014, 11:20 AM   #6
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
How do I connect remotely? Do I redesktop from my laptop? Do I ssh to the server first and run the Command on the server? Very confused
 
Old 02-04-2014, 05:30 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
From a practical point of view, a virtual computer is just as any physical computer.

In this instance you have to first test and prove that you can access the client from the host. That doesn't prove that a connection from outside the host will work but it is the first step.

There are many ways to access a remote computer. Many times we suggest a less than secure means. Simple tests of networking and knowledge of how one might connect a vm help. A vm can have one of a few ways to interact or use the hosts networking. Bridged and Nat are common for your use. They have very different means to connect.

Can you connect to the client from the host?
 
Old 02-05-2014, 09:53 AM   #8
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Thank you. I can connect to the client from the host but the client I created has no network connection. I know that I need to create network bridge with the host computer but that is where I am having trouble.

My host is using wifi only for network. I tried going through a tutorial to set up bridge on my host with config files and command line and after that I lost my wifi on the host. I found it was because the tutorial had me disable NetworkManager and turn on network service. Once I reverted back to NetworkManager I get my host wifi back but no bridge to the client.

I set up my client using the Virtual Machine Manager gui interface. In VMM gui, I set the network to bridge my wlan0 which is my host wifi card but even after stopping starting the virtual machine there is no network connection.
 
Old 02-06-2014, 02:32 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
The hosts connection is transparent to the vm client in most cases once the host has connected.

What happens in the client's command line? Use ifconfig command.
 
Old 02-13-2014, 01:44 PM   #10
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Just mentioning: If you are doing this for training purposes, you would be better off using XenServer or Vmware as those are the two primary platforms used. I haven't seen a centos virtualization server in production use.
 
Old 02-21-2014, 01:40 PM   #11
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
Just mentioning: If you are doing this for training purposes, you would be better off using XenServer or Vmware as those are the two primary platforms used. I haven't seen a centos virtualization server in production use.
Thanks for the advice. VMWare is not free as far as I know. I was looking at the XenServer website. It looks like that is an actual operating system that I would run on my physical box, is that correct?

Right now I am running Debian on my physical box and using it as a samba server as well as VM host. I was able to use both VirtualBox and VMM with the gui on my server to set up a virtual guest Ubuntu server and I can ssh to the remote guest now. So I am up and running.

But if there would be an advantage to using XenServer I would consider re imaging my system.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems setting up VNC server lawrence_lee_lee Linux - Software 1 12-25-2009 03:11 PM
Problems setting up a NTP Server on Ubuntu Server 9.04 mikesmith20001 Linux - Server 1 08-10-2009 10:14 AM
Problems with setting up Name Server markw8500 Linux - General 4 09-12-2005 07:00 PM
problems setting up apache and vsftp server behind a router that serves as a server xone Linux - Security 1 04-08-2004 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:59 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
Open Source Consulting | Domain Registration