Ask Your Question
1

how can i mount cdrom in to opentack instance

asked 2016-07-10 04:28:34 -0500

billy gravatar image

Dears,

Is there any way to mount cdrom in to openstack environment . i want create local repository for my redhat instances

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-07-10 11:09:35 -0500

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.

edit flag offensive delete link more
0

answered 2017-02-21 03:49:33 -0500

miggser007 gravatar image

updated 2017-02-21 03:54:01 -0500

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2016-07-10 04:28:34 -0500

Seen: 4,000 times

Last updated: Feb 21 '17