LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-24-2013, 10:07 AM   #1
tamhankarnikhil
LQ Newbie
 
Registered: Oct 2013
Distribution: Red Hat Enterprise Linux 6 Server
Posts: 11

Rep: Reputation: Disabled
Question Bad: unable to open connection to hypervisor URI 'qemu:///system'


Hello, I have a RHEL6 VM installed on VMware and trying to install another virtual machine inside VMware using virt-manager. Now, I have installed the virt-manager properly, but while creating a new VM, I am getting below error:

Quote:
unable to open connection to hypervisor URI 'qemu:///system':
unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 992, in _try_open
None], flags)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 111, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory
and below is the attached screenshot of the error displayed on virt-manager while creating a new VM

http://4.bp.blogspot.com/-MEMLkiUiNS...4-20-13-12.png

Here are the other details

Quote:
[root@server ~]# rpm -qa libvirt
libvirt-0.8.1-27.el6.x86_64
[root@server ~]# rpm -qa virt-manager
virt-manager-0.8.4-8.el6.noarch
[root@server ~]# rpm -qa qemu-kvm
qemu-kvm-0.12.1.2-2.113.el6.x86_64
[root@server ~]# lsmod | grep qemu
[root@server ~]# rpm -qa libvirt-python
libvirt-python-0.8.1-27.el6.x86_64
[root@server ~]# service libvirtd status
libvirtd (pid 2381) is running...
[root@server ~]# ps ax | grep libvirtd
2381 ? Sl 0:03 libvirtd --daemon
29405 pts/1 S+ 0:00 grep libvirtd
[root@server ~]# ps ax | grep qemu
29422 pts/1 S+ 0:00 grep qemu
As you can see there is not output for "lsmod | grep qemu" and "ps ax | grep qemu" command.

Can anybody tell what is this issue and how to resolve it?

Last edited by tamhankarnikhil; 10-24-2013 at 10:16 AM.
 
Old 10-25-2013, 09:12 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,646

Rep: Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969
Quote:
Originally Posted by tamhankarnikhil View Post
Hello, I have a RHEL6 VM installed on VMware and trying to install another virtual machine inside VMware using virt-manager. Now, I have installed the virt-manager properly, but while creating a new VM, I am getting below error:
Code:
unable to open connection to hypervisor URI 'qemu:///system':
unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 992, in _try_open
None], flags)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 111, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory
As you can see there is not output for "lsmod | grep qemu" and "ps ax | grep qemu" command. Can anybody tell what is this issue and how to resolve it?
Did you read the error message?? I've bolded it above. Did you start libvirtd? Note the line in the message to verify that it's started...
Try starting the service before you try to use it:
Code:
service libvirtd start
 
Old 10-26-2013, 02:54 AM   #3
tamhankarnikhil
LQ Newbie
 
Registered: Oct 2013
Distribution: Red Hat Enterprise Linux 6 Server
Posts: 11

Original Poster
Rep: Reputation: Disabled
libvurtd is already started

Please see other details section in the question where I have mentioned that

[root@server ~]# service libvirtd status
libvirtd (pid 2381) is running...
 
Old 10-26-2013, 03:10 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,991

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Let me get this right. You have a vm running and within that vm you want to start another vm?

Anway, try qemu from command line. See what is says.
 
1 members found this post helpful.
Old 10-29-2013, 12:31 AM   #5
tamhankarnikhil
LQ Newbie
 
Registered: Oct 2013
Distribution: Red Hat Enterprise Linux 6 Server
Posts: 11

Original Poster
Rep: Reputation: Disabled
No. I have a windows host and a RHEL6 VM. I want another VM inside RHEL6 VM.

Windows Host
|
v
VMware RHEL6
|
v
virt-manager VM
 
Old 10-29-2013, 10:02 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,646

Rep: Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969
Quote:
Originally Posted by tamhankarnikhil View Post
No. I have a windows host and a RHEL6 VM. I want another VM inside RHEL6 VM.
Right...which is EXACTLY what jefro said. Did you try running the command suggested?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable ssh the VM from Xen Hypervisor rajorcldba Linux - Networking 7 04-18-2013 12:05 AM
Unable to open connection to XEN hypervisor/deamon anil98433 Linux - Virtualization and Cloud 0 07-19-2012 11:40 AM
Unable to open a connection to the Xen hypervisor/daemon albie17 Linux - Virtualization and Cloud 1 08-05-2010 06:47 PM
Unable to install Network Printer in KDE (URI, Port 9100...nothing worked)! tux_addict Linux - Networking 2 01-14-2008 02:28 AM
LXer: Qemu a Virtualization System for Open Source World LXer Syndicated Linux News 0 06-27-2006 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:49 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