From users-return-22032-apmail-cloudstack-users-archive=cloudstack.apache.org@cloudstack.apache.org Tue Jun 2 10:38:53 2015 Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C44F17947 for ; Tue, 2 Jun 2015 10:38:53 +0000 (UTC) Received: (qmail 99113 invoked by uid 500); 2 Jun 2015 10:38:52 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 99056 invoked by uid 500); 2 Jun 2015 10:38:52 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 99044 invoked by uid 99); 2 Jun 2015 10:38:52 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2015 10:38:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C10F7CAB5F for ; Tue, 2 Jun 2015 10:38:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id qc0z_p8I6Mw0 for ; Tue, 2 Jun 2015 10:38:42 +0000 (UTC) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id B93D720C4B for ; Tue, 2 Jun 2015 10:38:41 +0000 (UTC) Received: by wibdq8 with SMTP id dq8so54638916wib.1 for ; Tue, 02 Jun 2015 03:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wecYEiQH85bsxAZhE6GvJ+IEtT2rw7Qz7mqeSFcqSLY=; b=YsaGlpIKpwpjdwzhGieWBNfVkCYvXIPKCzm7pXPteg0fEheqx8Tbd1buvb3iAdYPTN uEQlzi+u2L2Y+Db/O1f7OftkvlDSq+eDLktEuDzxBL0f04cpWQNZN7iEyH/K+4oC/kHt yKFnm8TNyFxp7iGRJZx6IOXbcOIdVJc6HKdgrNFckzpJpyWifLwCrmuo4oeA2i4iqLii nlboQI/OVzM2F29609pUwrgtU34I6Afi9+Gaku3pFcclBTg997p2MiSCAoybUHkx4Y4f 3hUss2C3RquxkJeNDYjBizUVGfrsqB60lTzvNgui7zHZG3GiEik4yPc3aROEAJLoGVqq /E3w== MIME-Version: 1.0 X-Received: by 10.194.87.1 with SMTP id t1mr50797283wjz.24.1433241476463; Tue, 02 Jun 2015 03:37:56 -0700 (PDT) Received: by 10.28.172.199 with HTTP; Tue, 2 Jun 2015 03:37:56 -0700 (PDT) In-Reply-To: <978068db704046d49d650b3bfdb889a0@exchange01.et.ee> References: <541fcf76a998447884f51ba3001a0a54@exchange01.et.ee> <978068db704046d49d650b3bfdb889a0@exchange01.et.ee> Date: Tue, 2 Jun 2015 12:37:56 +0200 Message-ID: Subject: Re: Cloud Instance Manager only sets password after reboot on Windows 2012 R2 From: Andrija Panic To: "users@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=089e0102ee2a1502c8051786894b --089e0102ee2a1502c8051786894b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable "We're building a Windows 2012 template on KVM. It works fine except that i= t only sets the password for the VM after rebooting it once." we observed this behaviour with 4.3.1/2 because when you check inside VR, there is file /var/cache/cloud/passwords that should indicate that the IP=3Dpassword line is not present during VM boot (or at least that is the behaviour we saw). Meaning VR is late with password provisioning inside this file so VM doesnt get to fetch it during first time boot... But if you reboot the instance, in the meantime the line with IP=3Dpassword is provisioned, so simpe reboot works fine. If instead reboot, you shutodnw VM, reset pass again, you will not be able to fetch it again - so reseting pass is simly not the solution. Simple VM reboot will fetch pass... On 2 June 2015 at 12:21, Vadim Kimlaychuk wrote= : > Jeff, > > Try to reset password for existing VM. Will it take 2 reboots? > There is may be a problem with Cloud Instance Manager. It is quit= e > old - as I have checked at > http://sourceforge.net/projects/cloudstack/files/Password%20Management%20= Scripts/ > it is almost 4 years old. > > Vadim. > > -----Original Message----- > From: Jeff Hair [mailto:jeff@greenqloud.com] > Sent: Tuesday, June 02, 2015 1:15 PM > To: users@cloudstack.apache.org > Subject: Re: Cloud Instance Manager only sets password after reboot on > Windows 2012 R2 > > Hi, > > This is specifically for when the VM first starts up. Don't think it is > specifically a CloudStack problem, it's more of a question about how to > properly configure the Cloud Instance Manager. Basically when the machine > first starts up, it tries to auto-login (despite no registry setting for > that), but fails due to invalid password. The password to log in is the > default password from when I created the template. Cloud Instance Manager > has the garbled output I described in the first post. If I reboot the > machine, it starts up and Cloud Instance Manager works fine, and thus I c= an > log in with the CloudStack-set password. > > On Tue, Jun 2, 2015 at 10:11 AM, Vadim Kimlaychuk < > Vadim.Kimlaychuk@elion.ee > > wrote: > > > Hello Jeff, > > > > Actually to reset password you need to power-off VM first. > > Then after start-up it picks up new password from VR. > > If you create VM from password-enabled template then > > you should get it immediately upon VM start-up. > > > > Whether Windows have to log-in automatically or not -- depends > > on windows OS settings. This issue seems does not belong to Cloudstack > > or KVM hypervisor. Check your template OS. > > > > I don't see any problems related to CS here. > > > > Vadim. > > > > -----Original Message----- > > From: Jeff Hair [mailto:jeff@greenqloud.com] > > Sent: Tuesday, June 02, 2015 12:57 PM > > To: users@cloudstack.apache.org > > Subject: Cloud Instance Manager only sets password after reboot on > > Windows > > 2012 R2 > > > > Hi, > > > > We're building a Windows 2012 template on KVM. It works fine except > > that it only sets the password for the VM after rebooting it once. > > When the machine first starts up, there is garbled output in the Cloud > > Instance Manager logs. For example "Added DHCP server: i#x" > > > > After rebooting the machine, Cloud Instance Manager works and the > > password is set. > > > > Also on the first boot it is trying to auto-login but failing with the > > wrong password, if that helps. > > > > Any ideas? > > > > Thanks, > > > > Jeff > > > > > > -- > *Jeff Hair* > Core Systems Developer > > Tel: (+354) 415 0200 > jeff@greenqloud.com > www.greenqloud.com > --=20 Andrija Pani=C4=87 --089e0102ee2a1502c8051786894b--