![]() ![]() After that, I ran the cleanup script and converted to template.Įthernet0.generatedAddress = "00:50:56:a1:c7:bc" This machine was created on the esx host itself, and installed interactively. This is the vmtx file of my WORKING template. Migrate.hostLog = "centos7_base_1.1-624cbdd1.hlog" The resulting vmtx file on the esx host looks like this: Then, on the vSphere server I upgrade the hardware version to 13 and convert to template. This machine is created on a Linux Machine (with vmware player) and then converted to vSphere via ovftools. # Remove the root user’s shell history and poweroff Sed -i -e /etc/sysconfig/network-scripts/ifcfg-e* Sed -i '/^\(HWADDR\|UUID\)=/d' /etc/sysconfig/network-scripts/ifcfg-e* # Remove the traces of the template MAC address and UUIDs # Truncate the audit logs (and other logs we want to keep placeholders for) # Force the logs to rotate & remove old logs we don’t need Pwpolicy luks -minlen=6 -minquality=50 -notstrict -nochanges -notempty Pwpolicy user -minlen=6 -minquality=50 -notstrict -nochanges -notempty Pwpolicy root -minlen=6 -minquality=50 -notstrict -nochanges -notempty %addon com_redhat_kdump -enable -reserve-mb='auto' Part swap -fstype="swap" -ondisk=sda -nodefaults Part /var -fstype="xfs" -ondisk=sda -size=15360 Part /home -fstype="xfs" -ondisk=sda -size=5120 Part / -fstype="xfs" -ondisk=sda -size=10240 Part /boot -fstype="xfs" -ondisk=sda -size=512 Rootpw -iscrypted $6$QYRPcrqL2ZKFABGT$6eT.NBiW/iuyLhdiUjD73FvhjkslSsIQs0uUhwBY1BgJcB0sjblikNmlpTJ/wThP2JGpwuDc/6fy1QVOFUa600īootloader -append=" crashkernel=auto" -location=mbr -boot-drive=sda Network -bootproto=dhcp -noipv6 -activate
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |