From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Duffy Subject: Re: VNC server for KVM VM Date: Fri, 14 Aug 2009 16:28:00 -0500 Message-ID: <4A85D6E0.6060103@messageone.com> References: <20090814205839.GA32226@defiant.freesoftware.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: daniel-listas@gmx.net To: kvm@vger.kernel.org Return-path: Received: from main.gmane.org ([80.91.229.2]:48146 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753441AbZHNV2J (ORCPT ); Fri, 14 Aug 2009 17:28:09 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Mc4Ji-0002wZ-VW for kvm@vger.kernel.org; Fri, 14 Aug 2009 21:28:06 +0000 Received: from 143.166.197.6 ([143.166.197.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Aug 2009 21:28:06 +0000 Received: from Charles_Duffy by 143.166.197.6 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Aug 2009 21:28:06 +0000 In-Reply-To: <20090814205839.GA32226@defiant.freesoftware.org> Sender: kvm-owner@vger.kernel.org List-ID: Daniel Bareiro wrote: > inet_listen: bind(ipv4,0.0.0.0,5903): Address already in use > inet_listen: FAILED If you check with netstat, I expect you'll see the port in TIME_WAIT state; if so, this will eventually clean itself up if you just wait a little bit before restarting. One option to avoid it is to make sure all connections are closed properly on shutdown; another is to set the SO_REUSEADDR flag on the socket before the bind() call.