cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Hair <j...@greenqloud.com>
Subject Re: Cloud Instance Manager only sets password after reboot on Windows 2012 R2
Date Tue, 30 Jun 2015 11:27:17 GMT
For people who have been wondering about this, we did get the template
working. Our solution was to restart the machine one time after it boots
the first time. It's not elegant, but it works. The KVM Windows template
can be found here:
https://github.com/greenqloud/packer/tree/master/soffi-windows-2012-standard-r2

The files of note:
 - scripts/cloudstack bat
 - files/cloud-instance-manager.reg

The default password for the machine is Password123 in the beginning, but
restarting will trigger the cloud instance manager and the password update.

On Tue, Jun 2, 2015 at 10:26 AM, Timothy Lothering <
tlothering@datacentrix.co.za> wrote:

> Hi Jeff,
>
> I have seen a similar issue whereby new VMs from Template (Windows 2012 &
> 2012 R2) do not have their passwords reset upon first time boot. I have not
> had any luck in getting it to work. Any advice here is highly appreciated.
>
> Regards,
>
> -----Original Message-----
> From: Jeff Hair [mailto:jeff@greenqloud.com]
> Sent: 02 June 2015 12: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 can
> 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
> Timothy Lothering
> Solutions Architect
> Managed Services
>
> T: +27877415535
> F: +27877415100
> C: +27824904099
> E: tlothering@datacentrix.co.za
>
>
> DISCLAIMER NOTICE:
>
> Everything in this e-mail and any attachments relating to the official
> business of Datacentrix Holdings Ltd. and its subsidiaries
> ('Datacentrix') is proprietary to Datacentrix. It is confidential, legally
> privileged and protected by law. Datacentrix does not
> own and endorse any other content. Views and opinions are those of the
> sender unless clearly stated as being that of Datacentrix.
> The person addressed in the e-mail is the sole authorised recipient.
> Please notify the sender immediately if it has unintentionally
> reached you and do not read, disclose or use the content in any way.
> Datacentrix cannot assure that the integrity of this communication
> has been maintained nor that it is free of errors, virus, interception or
> interference.
>



-- 
*Jeff Hair*
Core Systems Developer

Tel: (+354) 415 0200
jeff@greenqloud.com
www.greenqloud.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message