From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: [libvirt-users] Questions on how to reset ID numbers for virt Guests. Date: Wed, 11 Sep 2013 08:59:44 +0100 Message-ID: <20130911075944.GA23194@redhat.com> References: <522F9CD1.2020401@vudu.com> <52301FFB.20401@redhat.com> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: James Sparenberg , libvirt-users , "kvm@vger.kernel.org" To: Paolo Bonzini Return-path: Received: from mx1.redhat.com ([209.132.183.28]:4341 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751181Ab3IKH7t (ORCPT ); Wed, 11 Sep 2013 03:59:49 -0400 Content-Disposition: inline In-Reply-To: <52301FFB.20401@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Sep 11, 2013 at 09:47:07AM +0200, Paolo Bonzini wrote: > Il 11/09/2013 00:27, James Sparenberg ha scritto: > > I'm doing some experimenting in our Development lab and as a result > > I'm kickstarting over and over Virtual guests. This is of course > > causing the guest Id to increment by one with each test. I've > > googled around and tried searching the list but have not found out > > how (if at all) it would be possible to reset the ID number back to 1 > > more than is in use. Also is there a limit where I run out of ID's? > > (for example does it only go up to 99?) > > No, there is no limit. Well, 'int' will wrap eventually, but you'd need to have created a hell of alot of guests for that to be a problem :-) > I don't know the answer to your other question, so I'm adding the > libvirt-users mailing list. If you restart libvirtd, it reset itself to start allocating IDs at the max current used ID of any running guest. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|