Skip to content

Instantly share code, notes, and snippets.

@obourdon
Created June 18, 2018 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obourdon/ec35ddc455e5f621a81459fd39c7ee16 to your computer and use it in GitHub Desktop.
Save obourdon/ec35ddc455e5f621a81459fd39c7ee16 to your computer and use it in GitHub Desktop.
DIB error generating CentOS image on Ubuntu
git clone https://github.com/opennext-io/onpc-provisioning && cd onpc-provisioning
# Use script https://github.com/opennext-io/onpc-provisioning/blob/master/scripts/create_infra_master_vm.sh
MASTER_VM_DISK=20480 PRESEED_URL=http://www.olivierbourdon.com/preseed_master-xenial-dib.cfg VIRT=vbox PROXY=http://172.20.20.56:8080/ ./scripts/create_infra_master_vm.sh
# Login into VM and run the following as vagrant user (passwd: vagrant)
cd diskimage-builder
sudo pip install -r requirements.txt
sudo python setup.py install
disk-image-create -t qcow2 --image-size 60 -o /tmp/test.qcow2 centos-minimal dhcp-all-interfaces cloud-init-nocloud devuser yum epel baremetal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment