Skip to content

Instantly share code, notes, and snippets.

@jcpowermac
Created August 12, 2014 12:16
Show Gist options
  • Select an option

  • Save jcpowermac/51d174d2927d7831e12e to your computer and use it in GitHub Desktop.

Select an option

Save jcpowermac/51d174d2927d7831e12e to your computer and use it in GitHub Desktop.
virt-sysprep
virt-sysprep -a /dev/virtualmachine/virctlpaw002 --hostname virctlpaw002.virtomation.com \
--firstboot-command "sed -i -r 's/IPADDR=(\b[0-9]{1,3}\.){3}[0-9]{1,3}\b'/IPADDR=10.53.252.62/ /etc/sysconfig/network-scripts/ifcfg-eth0" \
--firstboot-command 'systemctl restart network' \
--firstboot-command 'yum install -y http://rdo.fedorapeople.org/rdo-release.rpm' \
--firstboot-command 'yum install openstack-packstack -y'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment