I'm using a Bamboo Amazon EC2 Windows 2008 Server VM for my CI server and I see there is a "Bamboo" user created on the VM and that when Bamboo starts a build, it runs under this user. I would like to be able to RDP to the VM as the Bamboo user so I can perform some set up operations.
I am aware that I can find the Administrator password on the Bamboo website and login as the Administrator, but I want to actually login as the Bamboo user that the builds run under, how can I do that?
Thanks!
Remote login for user Bamboo is disabled for security reasons (we cannot randomise passwords for that user). You can reenable it (but remember to change the password first).
To make that change permanent, you need to create a new image.
Ok can do, once I change the password on the Bamboo user and create a new AMI, do I need to update the password on the Bamboo website somewhere, in addition to the AMI ID?
I see I can update the AMI ID on the Edit Elastic Image Configuration page, but it makes no mention of the Bamboo VM user or password and I'm not seeing it anywhere else.
Thanks for the help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, you don't need to update the password in Bamboo server, it does not use it.
Just make sure you run prepareInstanceForSaving.bat (available on your Bamboo stock image) before saving the image.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for following up! I was able to reset the password, run prepareInstanceForSaving.bat and create a new AMI. However, the Elastic Agent on the new AMI never leaves the "Pending" state and is therefore unable to start any builds.
I tried this many times to get it to work with no luck, here's my steps to reproduce:
1. Start Default Image EBS x86_64 (windows) (stock image) VM (ami-976edafe) via Bamboo
2. Login as Administrator
3. Change Bamboo user password
4. Set Ec2SetPassword to Enabled in C:\Program Files\Amazon\Ec2ConfigService\Settings\config.xml
5. Run C:\opt\bamboo-elastic-agent\bin\prepareInstanceForSaving.bat
6. Shutdown VM
7. Create new AMI from VM
8. Update Elastic Image Configuration with new AMI ID
9. Start VM with new AMI.
10. Wait for Elastic Agent status to go Idle
I also tried running prepareInstanceForSaving.bat as the Bamboo user as well.
The agent on the original AMI (ami-976edafe) typically starts after about 10 minutes or so. However, after the steps above, the agent on the new AMI wouldn't start (waited 30 minutes).
Am I missing any steps?
Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please go through Task Scheduler config steps from here: https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image+-+Windows
Maybe you need to set the new password somewhere.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Updating the Bamboo users password on the scheduled task did the trick, thanks!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.