分类:
2006-12-05 02:31:24
在ESX3.0中将可以将一个目录制作成ISO文件,但由于ESX3 COS是一个经过裁剪的Linux(RHEL, 2.5x为RH7.3)操作系统,因此需要安装mkisofs包。
安装过程如下:
# mount -o loop -t iso9660 -r /vmimages/os-isoimages/linux/RHFC5/FC-5-i386-DVD.iso /mnt/cdrom/
# cd /mnt/cdrom
# ls
eula.txt README RPM-GPG-KEY-fedora
Fedora README-Accessibility RPM-GPG-KEY-fedora-extras
fedora.css RELEASE-NOTES RPM-GPG-KEY-fedora-rawhide
figs RELEASE-NOTES-en.html RPM-GPG-KEY-fedora-test
GPL repodata RPM-GPG-KEY-rawhide
images RPM-GPG-KEY stylesheet-images
isolinux RPM-GPG-KEY-beta TRANS.TBL
# find . -name mkiso\*
./Fedora/RPMS/mkisofs-2.01.01.0.a03-3.i386.rpm
# cp ./Fedora/RPMS/mkisofs-
# cd /tmp
# rpm -ivh mkisofs-
warning: mkisofs-
error: Failed dependencies:
libc.so.6(GLIBC_
libc.so.6(GLIBC_2.4) is needed by mkisofs-
# rpm -qa|grep -i glibc
glibc-
glibc-headers-
glibc-common-
glibc-kernheaders-2.4-
glibc-devel-
# mount -o loop -t iso9660 -r /vmimages/os-isoimages/linux/RHEL-AS3update4/RHEL-AS3u4-disk1.ISO /mnt/cdrom/
# cd /mnt/cdrom
# find . -name mkiso\*
# cd /
# umount /mnt/cdrom
# mount -o loop -t iso9660 -r /vmimages/os-isoimages/linux/RHEL-AS3update4/RHEL-AS3u4-disk2.ISO /mnt/cdrom/
mount -o loop -t iso9660 -r /vmimages/os-isoimages/linux/RHEL-AS3update4/RHEL-AS3u4-disk2.ISO /mnt/cdrom/
# cd /mnt/cdrom
# find . -name mkiso\*
./RedHat/RPMS/mkisofs-2.01.0.a32-0.EL3.1.i386.rpm
# cp ./RedHat/RPMS/mkisofs-
# cd /tmp
# rpm -ivh mkisofs-
mkisofs-
# rpm -ivh mkisofs-
mkisofs-
# rpm -ivh mkisofs-
warning: mkisofs-
Preparing... ###########################################
1:mkisofs ###########################################
安装完成后,做个测试:
# cd /
# mkisofs –o tmp.iso –r /tmp –J
然后就可以在VM中mount下试试了