分享

VMware Communities: Sysprep.inf

 coolper 2007-11-15
try this
Put this in sysprep.inf before running sysprep on the original

[Sysprep]
BuildMassStorageSection=Yes

[SysprepMassStorage]
;leave blank

then once the new os is booted run

sysprep -clean -quiet to speed up the boot process


You can do the following:

1) Create your new VM
2) Edit the VM and delete the virtual HD that was added
3) run vmkfstools -i /source_path/source.vmdk / dest_path/dest.vmdk
4) Edit the VM and add a new virtual HD - use an existing VMDK file.
5) Power on your VM and run sysprep, etc.

The reason for creating the VM first is to get all the VM‘s files into one folder. If you create a folder first, then copy the VMDK and then create the new VM, you‘ll end up with 2 folders: NEW_VM and NEW_VM_01.

You can also script this process if you want to do that.


Here‘s the process which I normally follow to clone without VirtualCenter. If you have the VMX file copied, you can right click on the datastore and select browser. Then find the VMX and right click and add to inventory.
1) Create a new VM with the specs you want and a small HD.
2) Edit the VM and remove the HD.
3) Copy the VMDK over from the source to new folder with vmkfstools -i /source_path/source.vmdk /dest_path/destination.vmdk
4) Edit the VM, add a HD and use an existing VMDK file.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多