Creating an ISO in ESX from a mounted CD/DVD

by Ed Fisher on 2008-07-28

in Infrastructure


So I am using VMware ESX Server 3.5.0 to host a number of test machines, and I needed to mount the SharePoint Server 2007 CD-ROM so that I could install it. I used PuTTY to connect to the ESX server and mounted the CD at the command line as follows…
sudo mkdir /media/cdrom [enter]
sudo mount /dev/cdrom /media/cdrom [enter]
That seemed like a good idea at the time, but now I either have to leave the CD in the drive, or run the physical media into the datacenter everytime I need it going forward. Having plenty of disk space, I wanted to create an ISO file and save it to the server. While I could create an ISO on my client PC and load it up to the server, I already had the media mounted on the ESX server and figured there must be a way to do this. There is. Assuming the disc is mounted to /dev/cdrom, and that there is a directory called /vmwareiso and you want to name the ISO file image1.iso

sudo dd if=/dev/cdrom of=/vmwareiso/image1.iso [enter]
Viola! Just don’t forget to retrieve the disc or you will be looking for it a month from now and wondering who stole it!

You might also enjoy:

  1. Creating DHCP reservations at the command line
  2. Creating DNS records at the command line
  3. howto://mount a VHD in Windows
  4. howto://Installing MS Project Server 2007 on Windows 2008

Leave a Comment

CommentLuv Enabled

Previous post:

Next post: