Re: Cloudstack guest password

2020-07-28 Thread Richard Lawley
Do you have a redundant network (2 VRs)? If so, you cannot communicate with the password server on the shared .1 IP - you need to use the VR's unique IP address (this is why the scripts are trying to find the DHCP server address - this is the only way to find this IP). Also note that there's a lo

Re: Cloudstack guest password

2020-07-28 Thread Craig Dunn
Hi all, think i`m getting somewhere with it now. currently when I try to change the password it says NetworkManager is not running Jul 28 11:51:17 centos8-base-m1Dd4 cloud-set-guest-password[886]: Error: NetworkManager is not running. Jul 28 11:51:17 centos8-base-m1Dd4 cloud[924]: Unable to dete

Re: Cloudstack guest password

2020-07-24 Thread Craig Dunn
thanks Andrija, I`m having vpn trouble atm so cant get onto the VR to check but, if I run the wget command manually against the VR I get back the password which was shown in the UI. I`m guessing the VR has done its but its just not being applied to the VM itself for some reason. On Fri, 24 Jul

Re: Cloudstack guest password

2020-07-24 Thread Andrija Panic
When you change the password for a VM (while VM is stopped) - ACS will store the password (in readable form) inside the VR in /var/cache/cloud/password- - so if you see the password here (as given in the UI) - that means that nobody fetched the password from the VR - but if it's missing (re

Re: Cloudstack guest password

2020-07-24 Thread Craig Dunn
Hey all, So, spent yesterday messing around with it, if I run wget -q -t 3 -T 20 -O - --header "DomU_Request: send_my_password" $192.168.81.1:8080. Replace $PASSWORD_SERVER manually it shows nothing. [image: image.png] but this behaviour seems normal as a working template does not respond either.

Re: Cloudstack guest password

2020-07-23 Thread Andrija Panic
cloud-init has the "plugin" for cloudstack, so it "behaves" well with it. best, On Thu, 23 Jul 2020 at 12:48, Craig Dunn wrote: > Thanks Andrija i`ll have a look into that, does the platform need to > support it, or does cloudstack support it by default? > > @Vivek strangely its generated a lea

Re: Cloudstack guest password

2020-07-23 Thread Craig Dunn
Thanks Andrija i`ll have a look into that, does the platform need to support it, or does cloudstack support it by default? @Vivek strangely its generated a lease file in /var/lib/dhclient (not sure if I did anything to force it) I have tried resetting both manually and via the UI with no changes

Re: Cloudstack guest password

2020-07-23 Thread Andrija Panic
that script used to work only with initd and not systemd, so better invest some time in cloud-init, and achieve the same thing (and more if needed). You can i.e. download the http://dl.openvm.eu/cloudstack/macchinina/ template and see how the cloud-init is configured there (afaik, it uses cloud-ini

Re: Cloudstack guest password

2020-07-23 Thread Vivek Kumar
That won’t help because it fetch the password from router . Can you just run “dhclient” and check the lease folder wether you are getting lease file generated or not. Vivek Kumar Manager - Cloud & DevOps IndiQus Technologies 24*7 O +91 11 4055 1411 | M +91 7503460090 www.indiqus.com

Re: Cloudstack guest password

2020-07-23 Thread Craig Dunn
Hi, I have found a leases file BUT it only specifies the IP of the VM itself and not the gateway (which is where DHCP is served) [root@VM-222c78e8-a8f7-4746-b28b-6f1b66bdf34b NetworkManager]# cat internal-3e6e8f47-404a-46a9-9ad2-1b2a9217384a-ens35.lease # This is private data. Do not parse. ADDRE

Re: Cloudstack guest password

2020-07-23 Thread Craig Dunn
Hi Vivek, thanks for the response, seems its fallen at the first hurdle the /var/lib/dhclient folder is empty so, i`ll look into why thats not being generated. I have password enabled set on the template, I thought cloud init and the script were two different ways of achieving the same thing? Or

Re: Cloudstack guest password

2020-07-23 Thread Vivek Kumar
Hello Craig, So setup-password scripts works from inside of the VM. If you just look on the script - 1- First it finds the DHCP server IP from lease file. So make sure that you are getting you lease file in your any of the folder mentioned in script - i.e DHCP_FOLDERS="/var/lib/dhclient/* /v

Cloudstack guest password

2020-07-23 Thread Craig Dunn
Hi all, Just subscribed and after some advise. I'm trying to setup a new Centos8 template for our cloud platform. I want to use the guest password script so we can deploy and a password is generated on deployment but I'm having issues getting it to work. I'm following this guide: http://docs.cl