Skip to content

Instantly share code, notes, and snippets.

@vlj91
Created February 22, 2018 11:48
Show Gist options
  • Save vlj91/019b590ccf560513cf10aae3272951c9 to your computer and use it in GitHub Desktop.
Save vlj91/019b590ccf560513cf10aae3272951c9 to your computer and use it in GitHub Desktop.
xCAT CentOS7 image generation
#!/bin/bash
yum install -y -e0 wget
mkdir -pv /opt/vm
pushd /opt/vm
wget http://centos.serverspace.co.uk/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-1708.iso
copycds CentOS-7-x86_64-Everything-1708.iso
genimage centos7.4-x86_64-netboot-compute
packimage centos7.4-x86_64-netboot-compute
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment