...
Sørg for å ha siste versjon av ntnusky/admintools. Stå i mappa grid-image-build og ha klar qcow2-image du skal modifisere, samt en passende cuda-installer omnavnet til cuda.run i denne mappen.
Ubuntu-triks
Ubuntu-imagene har for liten disk til å kunne inneholde cuda-installeren. Utivd imaget litt før du begynner
Code Block |
---|
qemu-img create -f qcow2 -o preallocation=metadata nyttimage.qcow2 6G
virt-resize --expand /dev/sda1 originalimage.img nyttimage.qcow2 |
Modifisering av image
Code Block |
---|
# git clone git@github.com:ntnusky/admintools.git # Last ned qcow2-utgaven av imaget du skal modifisere # Last ned cuda-installer, og rename til cuda.run # Katalogen grid-image-build inneholder bygge-script for hhv CentOS og Ubuntu # Scriptene er verifisert med CentOS 7 og Ubuntu Server 18.04 # ./create-centos-image.sh <originalimage.qcow2> # ./create-ubuntu-image.sh <originalimage.qcow2> |
...