casanswers.blogg.se

Linux rocky download
Linux rocky download




linux rocky download

Target disk boots and works rocky]# ls -lah Virt-sparsify: Before deleting the old disk, carefully check that the Sparsify operation completed with no errors. Fill free space in /dev/rl/root with zero Create overlay file in /scratch to protect source disk Now, lets shrink down the image using virt-sparsify: rocky]# export rocky]# virt-sparsify -compress 2 2 Setting the machine ID in /etc/machine-id To install libguests-tools: dnf install libguestfs-toolsĪnd sysprep the image: rocky]# export rocky]# virt-sysprep -a. You can now either copy the image over to an environment where the virt / libguestgs tools are present or install them locally. Glance image-download $IMAGE_ID -file $IMAGE_FILE_NAME

linux rocky download linux rocky download

$IMAGE_FILE_NAME is the local image qcow2 file name cinder upload-to-image -disk-format qcow2 -force=True $VOLUME_ID $IMAGE_NAME $IMAGE_ID output from the cinder commands confirming the UUID of the newly created glance image file $IMAGE_NAME whatever you wanted to call your Rocky image $VOLUME_ID is the block device we installed Rocky to earlier Again, shut the instance down so the volume is not in a running state. Once we are happy with all of that, we can pull down the volume as a qcow2 image. On the cloud-init side, we set the following features in the configuration file: /etc/cloud/cloud.cfg First, log into the rocky OS and install cloud-init: dnf install epel-release Once thats all up and running, we can ssh in to setup the system. Now, let’s boot up the new Rocky environment – where $VOLUME_ID is the cinder volume uuid which acted as the target installer for Rocky earlier: openstack server create rocky-8.4-cloudimage -flavor m1.medium -network private -volume $VOLUME_ID Once the installation is complete you can shutdown the instance and detach the installation target volume. We added a Rocky user and gave that account a password – this will get cleaned up by sysprep later on. Proceed with the installation until it is complete. Via the dashboard create a new instance using this image.Īttach a second volume to the instance as an installation target (if you do this after the boot you may need to rescan the drives during the installation if no disks are detected). Openstack image create Rocky-8.4-iso -public -container-format bare -disk-format iso -file. To setup your Rocky Linux image, first download the iso and import into Openstack: curl -L -O How to Build Your own Rocky Images from the ISO file:






Linux rocky download