Last active
August 29, 2015 14:02
-
-
Save jjuarez/c4c36ddfc8a6c24e8248 to your computer and use it in GitHub Desktop.
From CDROM 2 OpenNebula IMG
This file contains 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
## | |
# Preparar una imagen con la ISO de la distribución a generar (driver tap:aio:) | |
# Preparar un DATABLOCK de un tamaño de 5-8Gb (driver tap:aio:, formato ext3 (pe) y de tipo persistente) | |
# Preparar un template que boote de la imagen del CDROM y que tenga como storage adicional el DATABLOCK | |
# Instalación... >> El resultado será una imagen raw multiparticionada MBR, /boot y LVM en formato RAW | |
# Convertir la imagen a formato qcow2 | |
qemu-img convert -f raw my_image.img -O qcow2 my_image.qcow2 | |
# Montar la nueva imagen: | |
guestmount -a my_image.qcow2 -i /mnt --rw | |
# Copiar el RPM de contextualización: | |
cp one-context-csic.rpm /mnt/root | |
# chroot a la imagen | |
chroot /mnt | |
# Instalacion del rpm de contextualizacion | |
rpm -ih one-context-csic.rpm | |
exit | |
# Declarar una nueva imagen con la del formato qcow2 | |
# Preparar una template para que utilice de storage y boot esta imagen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment