Created
February 22, 2018 11:48
-
-
Save vlj91/019b590ccf560513cf10aae3272951c9 to your computer and use it in GitHub Desktop.
xCAT CentOS7 image generation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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