前几天,由于要换电脑,所以做了一个vmware文件的迁移,从一台机器换到另外一台机器,vmware的迁移不光是简单的copy文件,里面有2处需要注意的地方:
1. 保证两个vmware软件完全相同
2.copy相关目录下,全部文件
C:\VM\rac1\*
C:\VM\rac2\*
C:\VM\sharedstorage\*
3. 删掉C:\VM\sharedstorage\下*.RESLCK文件
那个只是针对sharedstroage目录生成的一个*.reslck文件,删掉重启后,会自动再生成新的*.reslck文件
4. 修改相关目录下的Red Hat Enterprise Linux 4.vmx文件
按照自己新的实际目录位置修改
e.g. scsi1.present = "TRUE"
scsi1:0.present = "TRUE"
scsi1:0.fileName = "C:\VM\sharedstorage\ocfs2disk.vmdk"
scsi1:0.mode = "independent-persistent"
scsi1:0.deviceType = "disk"
scsi1:1.present = "TRUE"
scsi1:1.fileName = "C:\VM\sharedstorage\asmdisk1.vmdk"
scsi1:1.mode = "independent-persistent"
scsi1:1.deviceType = "disk"
scsi1:2.present = "TRUE"
scsi1:2.fileName = "C:\VM\sharedstorage\asmdisk2.vmdk"
scsi1:2.mode = "independent-persistent"
scsi1:2.deviceType = "disk"
scsi1:3.present = "TRUE"
scsi1:3.fileName = "C:\VM\sharedstorage\asmdisk3.vmdk"
scsi1:3.mode = "independent-persistent"
scsi1:3.deviceType = "disk"
scsi1.virtualDev = "lsilogic"
Ethernet1.present = "TRUE"
Ethernet1.connectionType = "hostonly"
5. 启动vm后,注意重新创建网卡
copy完以后,在启动vm的时候,需要重新remove掉网卡,create新的网卡,此时需要注意的是eth0和eth1的创建顺序,一般是把eth0当成对外的public ip,把eth1当成private ip,这个地方要注意。
6. 注意/etc/hosts文件里
127.0.0.1 localhost
在我做vmware迁移的时候,这行记录会消失,导致节点无法正常启动,所以当copy以后,启动vm的时候,需要注意/etc/hosts文件中的localhost参数
7. 在初始创建vm的时候,最好选择host-only的方式
即使换了网络ip,也不会影响从远程连接工具连接到虚拟机的主机上
相关连接:http://space.itpub.net/9252210/viewspace-598150
http://space.itpub.net/?uid-9252210-action-viewspace-itemid-567578
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9252210/viewspace-600255/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9252210/viewspace-600255/