how can i mount cdrom in to opentack instance
Dears,
Is there any way to mount cdrom in to openstack environment . i want create local repository for my redhat instances
First time here? Check out the FAQ!
Dears,
Is there any way to mount cdrom in to openstack environment . i want create local repository for my redhat instances
Create an image from the cdrom iso. Create a volume from the image. Attach the volume to the instance.
Example:
openstack image create NEW_IMAGE_NAME --file CDROM_IMAGE.iso --disk-format iso --container-format bare
openstack volume create NEW_VOLUME_NAME --image NEW_IMAGE_NAME --size 1
openstack server add volume INSTANCE_NAME NEW_VOLUME_NAME
The volume can then be mounted in the instance using mount. Make the mount permanent by adding an entry to /etc/fstab.
You may want to set some additional image settings to force the load as IDE?
openstack image set --property hw_cdrom_bus=ide --property hw_disk_bus=ide NEW_IMAGE_NAME
It then will be attached as /dev/hdX
Asked: 2016-07-10 04:28:34 -0600
Seen: 5,555 times
Last updated: Feb 21 '17