Hi Glenn, Thank you, my issue was caused by not removing unique id and other stuff from network configuration
Regards, Cristian On 18.02.2016 16:48:20, Glenn Wagner <[email protected]> wrote: Hi Cristian, When you setup the networking in the linux template did you keep all the setting as DHCP and remove the unique id Example your eth0 file should only look like this , nothing else DEVICE=eth0 TYPE=Ethernet BOOTPROTO=dhcp ONBOOT=yes Also did you install the password script in the linux template >From here http://cloudstack-administration.readthedocs.org/en/4.8/templates/_password.html#adding-password-management-to-templates 1. Download the cloud-set-guest script (http://download.cloud.com/templates/4.2/bindir/cloud-set-guest-password.in) 2.Copy the file into the /etc/init.d directory 3. Make the script executable (chmod +x /etc/init.d/cloud-set-guest-password) 4. Then make the script run at boot (chkconfig --add cloud-set-guest-password) Thanks Glenn [ShapeBlue] [http://www.shapeblue.com] Glenn Wagner Senior Consultant , ShapeBlue d: | s: +27 21 527 0091 [tel:|%20s:%20+27%2021%20527%200091] | m: +27 73 917 4111 [tel:+27%2073%20917%204111] e: [email protected] | t: [mailto:[email protected]%20|%20t:] | w: www.shapeblue.com [http://www.shapeblue.com] a: 2nd Floor, Oudehuis Centre, 122 Main Rd, Somerset West Cape Town 7130 South Africa Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark. This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. -----Original Message----- From: Ricardo Makino [mailto:[email protected]] Sent: Thursday, 18 February 2016 3:21 PM To: [email protected] Subject: Re: Procedure for Linux templates Hello Cristian, Regarding the password I had the same problema in CentOS 7, you will have to stop and disable the NetworkManager. Because NetworkManager change the path for dhcp lease file: # systemctl stop NetworkManager # systemctl disable NetworkManager About the IP, your VM is configured to set the IP through DHCP? Or in your network offer the DHCP is enabled? Regards, -- Ricardo Makino On Thu, Feb 18, 2016 at 11:04 AM, Cristian Ciobanu <[email protected] > wrote: > Hello, > > Can i get a documentation for how to create Linux templates, and > needed scripts ? > > I did like in this example : > http://cloudstack-administration.readthedocs.org/en/4.8/templates.html#creating-a-template-from-an-existing-virtual-machine > but is not working for CentOS 6.7 or CentOS 7 ( after deploy from > template template i don't have IP assigned on my network also password > reset is not working ) > > Thank you! > > > Regards, > Cristian Find out more about ShapeBlue and our range of CloudStack related services: IaaS Cloud Design & Build [http://shapeblue.com/iaas-cloud-design-and-build//] | CSForge – rapid IaaS deployment framework [http://shapeblue.com/csforge/] CloudStack Consulting [http://shapeblue.com/cloudstack-consultancy/] | CloudStack Software Engineering [http://shapeblue.com/cloudstack-software-engineering/] CloudStack Infrastructure Support [http://shapeblue.com/cloudstack-infrastructure-support/] | CloudStack Bootcamp Training Courses [http://shapeblue.com/cloudstack-training/]
