[Fedora-xen] error when trying to connect with virt-manager

Fischer, Anna anna.fischer at hp.com
Wed Nov 22 14:37:46 UTC 2006


Yes, you were right. It was in fact a name resolution problem. Now it
works fine. Thanks!! 

> -----Original Message-----
> From: Daniel P. Berrange [mailto:berrange at redhat.com] 
> Sent: 22 November 2006 13:33
> To: Fischer, Anna
> Cc: Jimison, Ed; fedora-xen at redhat.com
> Subject: Re: [Fedora-xen] error when trying to connect with 
> virt-manager
> 
> On Wed, Nov 22, 2006 at 12:27:01PM -0000, Fischer, Anna wrote:
> > The log says:
> > 
> > Wed, 22 Nov 2006 12:17:44 ERROR    Unable to open connection to
> > hypervisor URI 'xen': socket.gaierror (-2, 'Name or service not 
> > known')
> 
> Hmm, sounds like you have a messed up /etc/hosts file - check 
> that the line for '127.0.0.1' has a name 'localhost' 
> associated with it, eg
> 
> $ cat /etc/hosts
> # Do not remove the following line, or various programs # 
> that require network functionality will fail.
> 127.0.0.1               localhost.localdomain localhost
> ::1             localhost.localdomain localhost
> 
> 
> > 
> > "virsh list" runs perfect on my system. Furthermore, a 
> strange thing 
> > is that while this error message window is shown when virt-manager 
> > starts up, I can see in the background (virt-manager GUI is 
> actually 
> > loaded while showing the error message) that virt-manager 
> shows Dom0 
> > and its CPU usage etc. correctly. So why do I get this 
> error message 
> > then and virt-manager shuts down?
> 
> Its it failing to lookup 'localhost' when opening the console 
> for the guest I think.
> 
> Dan.
> -- 
> |=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 
> 978 392 2496 -=|
> |=-           Perl modules: http://search.cpan.org/~danberr/  
>             -=|
> |=-               Projects: http://freshmeat.net/~danielpb/   
>             -=|
> |=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF 
> F742 7D3B 9505  -=| 
> 




More information about the Fedora-xen mailing list