michihide's blog

技術メモおよび雑感

Cent6でISOイメージ作成

Linux上でCDの中身をISOイメージ化した際のメモ。
OSはCentOS6で、vShere5上のVMとして動いているもの。

1.VMにクライアント側のCDを認識させる

  • vSphere Client>仮想マシン設定の編集>CD/DVDドライブ>クライアントデバイス>OK
  • vShere上部のCDボタンをクリック>CD/DVDドライブ1>D:に接続

2.マウントする

# mkdir /mnt/cdrom
# mount /dev/cdrom /mnt/cdrom

3.ISOイメージ化する

# yum install genisoimage
# mkisofs -o image.iso /mnt/cdrom
# ls -l image.iso
-rw-r--r-- 1 root root 541149184 6月 19 15:43 2012 image.iso