8 OVF模板制作
8.1 系统清理和初始化
[root@oracle ~]# cd /temp
[root@oracle temp]# ls
database lost+found
linux.x64_11gR2_database_1of2.zip pdksh-5.2.14-37.el5_8.1.x86_64.rpm
linux.x64_11gR2_database_2of2.zip yum
[root@oracle temp]# rm -rfv database/
[root@oracle temp]# rm -rfv linux.x64_11gR2_database_*
[root@oracle temp]# rm -rfv pdksh-5.2.14-37.el5_8.1.x86_64.rpm
[root@oracle temp]$ exit
logout
[root@oracle ~]# cd /etc/udev/rules.d/
[root@oracle rules.d]# ls
60-fprint-autosuspend.rules 70-persistent-net.rules 98-kexec.rules
60-pcmcia.rules 90-alsa.rules 99-fuse.rules
60-raw.rules 90-hal.rules 99-vmware-scsi-udev.rules
70-persistent-cd.rules 97-bluetooth-serial.rules
[root@oracle rules.d]# vi 70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
[root@oracle rules.d]# vi 70-persistent-cd.rules
# This file was automatically generated by the /lib/udev/write_cd_rules
# program, run by the cd-aliases-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and set the $GENERATED variable.
[root@oracle rules.d]#cd /etc/sysconfig/network-scripts/
[root@oracle network-scripts]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
HWADDR= 00:0c:29:81:57:f3
[root@oracle network-scripts]# shutdown -h 0
Broadcast message from root@oracle.kely.com
(/dev/pts/0) at 7:36 ...
The system is going down for halt NOW!
8.2 导出OVF模板
1)如下图所示,选中Oracle11g虚拟机。
2)如下图所示,依次选择文件 -- 导出 -- 导出OVF模板。
3)如下图所示,输入名称(Oracle11g),选择目录(E:\VMware vSphere 5.5 Templates),选择格式(单个文件(OVA)),输入描述(Oracle 11g R2 x86_64 is installed finish. BUILD20140515),单击确定。
4)如下图所示,正在导出Oracle11g…