New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Boxstarter runs on a W2k16 operating system #302
Comments
Unfortunately there is no session isolation. Upon reboot, Boxstarter sets itself up to restart on login regardless of session. |
@mwrock Are there any suggested workarounds that i could use in my Boxstarter script? From your experience, do you know how this has been overcome? I can implement this myself. However, i wanted some ideas on how i could do this. What do you think of the above suggestions? Kindly advice. |
If you are trying to run boxstarter remotely or targeting a VM, the best way to do that is to use the |
Hello @mwrock Is there a way to know that the script is running post a reboot? In our case, the powershell script is hosted on a server and is invoked by Install-BoxstarterPackage cmdlet. I want to know if this script is being run after a reboot or if it's running the first time. Do you have any ideas here? |
Hello @mwrock So the way i overcome this was by deleting the boxstarter-post-restart.bat file from my powershell script. If there are multiple sessions with the same user login, upon a reboot, the first session which executes my script would delete this file. This would mean that the file will be not accessible to any further user sessions with the same login. So far i have found this working. Do you foresee a problem with this approach? |
There has been no update to this in quite some time and the initial issue is known behaviour of Boxstarter. |
I recently ran into an issue using Boxstarter on a W2k16 operating system.
I logged into the console session of the system and initiated a Boxstarter run. Boxstarter started installing my choco packages and rebooted in between. This was expected. I had even opted for Autologon.
After some time, i RDP to this system. And i see that Boxstarter again starts executing in this new session as well. My expectation was that, Boxstarter should always execute only in the session where it was executed and not start executing in any session that's created on the system. So essentially, what happened was, i had 2 simulatenous BoxStarter sessions running on the system i.e one in the Console session that Boxstarter had used autologin to resume and one in the RDP session that i used to log into the system.
I think this causes some issues where a certain package was being reported as locked by another process. I am thinking that this particular package was being installed in the other console session, hence was being reported as locked in the current RDP session that i was connected to.
This in my opinion is a serious issue as users of the system might not really expect to connect to a console session most of the time.
Is this a known issue? if so, what is the suggested workaround here?
This is very easy to reproduce. I can reproduce it at will.
Kindly advice.
Regards,
Kiran Hegde
The text was updated successfully, but these errors were encountered: