New Question

Revision history [back]

click to hide/show revision 1
initial version

Trouble getting access to Powershell GUI using cloudbase-init LocalScript

I have a Windows VM where I have set up Cloudbase-init and I want to access the Powershell GUI which should have been launched via the LocalScripts once I log in to the Windows VM. However, I can't see the GUI when I log in. The Powershell process is running though, which I can confirm under the details tab in the task manager.

I suspect the cloudbase-init runs as a different account apart from my local admin account. How do I run it via the local admin account I have already created? I tried setting the username in the config file as the admin account name but it doesn't work.

Any help is appreciated.

Below is my cloudbase-init.conf:

[DEFAULT]
username=shrshah
config_drive_raw_hhd=true
config_drive_cdrom=true
config_drive_vfat=true
bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe
mtools_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\
verbose=true
debug=true
log_dir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\
log_file=cloudbase-init.log
default_log_levels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN
loggingserialport_settings=
mtu_use_dhcp_config=true
ntp_use_dhcp_config=true
local_scripts_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\
check_latest_version=true
netbios_host_name_compatibility=false
metadata_services=cloudbaseinit.metadata.services.httpservice.HttpService, 
                  cloudbaseinit.metadata.services.base.EmptyMetadataService
plugins=cloudbaseinit.plugins.common.localscripts.LocalScriptsPlugin

And here is the startup script that I run via LocalScripts:

Start-Process powershell -ArgumentList '-NoExit', '-Command', '& {C:\Windows\system32\nomad.exe agent -config=C:\Nomad\winfarm_working_dir_shrshah\isolated_client_and_servers\clients\client2.hcl}' -NoNewWindow:$false