Hi Josh:

Yes indeed there is a scheduler called VCL Post Load that invoke that
command [I checked on an image that a user created, not the original image
of WIndows 10 that I created and captured]

On Mon, Apr 19, 2021 at 1:30 PM Josh Thompson <[email protected]>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Luis,
>
> When a Windows image is captured, sshd is configured to be manually
> started
> and a startup script is created that changes it to autostart and then also
> starts it.  The reason for this is that if the image is captured with it
> set
> to autostart, sshd can end up being started before the OS has fully
> initialized.  If that happens, vcld would detect that the VM could be
> contacted via ssh and would start running commands to set up the
> reservation.
> However, a number of the commands would fail because the OS wouldn't be
> fully
> ready yet.
>
> So, there must be a problem with the startup script setting sshd to
> autostart.
> The script is created as a scheduled task.  I think the task is named "VCL
> Update Cygwin" and runs update_cygwin.cmd.  Do you see anything like that
> under scheduled tasks?
>
> Josh
>
> On Monday, April 19, 2021 12:04:37 PM EDT Luis A Lopez Negron wrote:
> > Hi Josh:
> >
> > Thanks again for your answer.  When I was preparing my WIndows10
> > installation I did what you just suggest and the command
> >
> > ./cyginw-sshd-config.sh 'PASSWORD'
> >
> > ran perfectly
> >
> > I checked the service and it was running [I also did ssh form the
> > management node to the new computer using the private ip address]. I do
> not
> > understand why when making a new reservation it puts on disable mode the
> > cygsshd service.  An interesting issue is that if prior to the five
> minutes
> > that the user reserves a computer, I log to that computer and enable the
> > cygsshd, then the user can use the computer, but this is not a simple
> > process and requires identifying the computer that the VCL assigns to the
> > user.
> >
> > On Thu, Apr 15, 2021 at 3:11 PM Josh Thompson <[email protected]>
> >
> > wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > Hi Luis,
> > >
> > > I'm not very good with that part of the process but I'll help as best
> as I
> > > can.  You shouldn't need to copy cygwin-sshd-config.sh in again if
> this is
> > > a
> > > fresh install of Windows.  It may be worth running it manually though.
> > > Log in
> > > as root, right click on the Cygwin shortcut on the desktop if you have
> it
> > > and
> > > select to run it as Administrator.  If you don't have an icon on the
> > > desktop,
> > > I'll have to find out what executable to find and run.
> > > cygwin-sshd-config.sh
> > > should already be in root's home directory.  Run it again using
> > >
> > > ./cyginw-sshd-config.sh 'PASSWORD'
> > >
> > > where PASSWORD is root's password.  If it works correctly, you should
> end
> > > up
> > > in a Command shell and have this near the bottom of the output:
> > >
> > > The CYGWIN cygsshd service was started successfully.
> > >
> > > Josh
> > >
> > > On Wednesday, April 14, 2021 4:11:37 PM EDT Luis A Lopez Negron wrote:
> > > > Hash: SHA1
> > > >
> > > > Hi Luis, Hi Josh:
> > > >
> > > >
> > > > Thank you for your response, below each question is my answer.
> > > >
> > > > >I have a few questions to get a better understanding of the
> situation:
> > > > >
> > > > >Is this the first time you've used a new version of cygwin that
> needed
> > >
> > > the
> > >
> > > > patch?
> > > >
> > > >
> > > > *I just read that the patch was needed in order to capture an image,
> so
> > > > I
> > > > applied, before that I had problem capturing the image *
> > > >
> > > > >Are you capturing the image from a fresh install of Windows, or is
> it
> > >
> > > from
> > >
> > > > a >base image you already have? From a fresh install of Windows 10
> > > >
> > > >
> > > > Did you update cygwin-sshd-config.sh in c:\cygwin\home\root? I'm not
> > > > sure
> > > > if that needs to be done manually or not after applying the patch,
> but
> > > > it
> > > > wouldn't hurt to try.
> > > >
> > > >
> > > > No, I have not updated it yet.
> > >
> > > - --
> > > - -------------------------------
> > > Josh Thompson
> > > VCL Developer
> > > North Carolina State University
> > >
> > > my GPG/PGP key can be found on pool.sks-keyservers.net
> > >
> > > All electronic mail messages in connection with State business which
> > > are sent to or received by this account are subject to the NC Public
> > > Records Law and may be disclosed to third parties.
> > > -----BEGIN PGP SIGNATURE-----
> > >
> > > iF0EARECAB0WIQRMIdRtWXideTZDK31X8tBw1209AwUCYHiP0AAKCRBX8tBw1209
> > > Axy7AJ4sCRvJ4DmZ1t0IAocE5NtlWXE3tgCfTZtJKfVpdnuBnYyUtObKA3iNtLU=
> > > =9g+c
> > > -----END PGP SIGNATURE-----
>
> - --
> - -------------------------------
> Josh Thompson
> VCL Developer
> North Carolina State University
>
> my GPG/PGP key can be found on pool.sks-keyservers.net
>
> All electronic mail messages in connection with State business which
> are sent to or received by this account are subject to the NC Public
> Records Law and may be disclosed to third parties.
> -----BEGIN PGP SIGNATURE-----
>
> iF0EARECAB0WIQRMIdRtWXideTZDK31X8tBw1209AwUCYH2+EgAKCRBX8tBw1209
> AyK7AJ9iwIM4dxj+LqQrG+k77lF6G7sYSQCfbHNKC0byuZDDe1amzBXXubumFzk=
> =+eqy
> -----END PGP SIGNATURE-----
>
>
>
>

-- 
Luis A. López
Retired Sys Admin, UPRM

Reply via email to