cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Indra Pramana <>
Subject cloud-set-guest-password script for CentOS 7 template
Date Wed, 02 Sep 2015 05:25:59 GMT
Dear all,

I am using ACS 4.2.0 with KVM hypervisor. I am trying to create a CentOS 7
template and everything is running fine except the CloudStack password
reset script template.

CentOS 7 is using systemd so I have created the required
/usr/lib/systemd/system/cloud-set-guest-password.service as follows:

Description=Cloudstack set guest password

ExecStart=/etc/init.d/cloud-set-guest-password start


I also modified the /etc/init.d/cloud-set-guest-password slightly since
CentOS 7 is using NetworkManager by default:

# Add your DHCP lease folders here

The script is running perfectly fine if I run it manually. However, it
doesn't seem to be started automatically upon boot-up even though I have
enable it via systemctl.

[root@test-centos7-20150819 ~]# systemctl enable
ln -s '/usr/lib/systemd/system/cloud-set-guest-password.service'

[root@test-centos7-20150819 ~]# systemctl status
cloud-set-guest-password.service - Cloudstack set guest password
   Loaded: loaded
(/usr/lib/systemd/system/cloud-set-guest-password.service; enabled)
   Active: inactive (dead)

Anyone has similar experience before? How to ensure that the script can be
executed during boot-up so that the password will be changed?

Thanks in advance.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message