VMware Fusion Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 36: Line 36:


<font color=red>TODO: "Clean Up Virtual Machine"</font>
<font color=red>TODO: "Clean Up Virtual Machine"</font>
=Rename VM Bundle Files=
{{Warn|This is an experimental procedure. It worked, but it is probably not supported. If not applied, a VM can be cloned but the underlying [[VMware_Fusion_Concepts#VM_Bundle|bundle files]] won't be renamed.}}
Start by renaming the top level directory so its name coincides with the new name of the VM.
Rename bundle files as follows:
<pre>
old="old-name"; new="new-name"; for i in ${old}*; do mv ${i} ${i/${old}/${new}}; done
</pre>
Change the sparse disk extent description. Open <new-name>.vmdk, where <new-name>.vmdk is referred from the vmx file, in vi and:
<pre>
:1,$s/old-name/new-name/g
</pre>
Update the snapshot file *. vmsd. Use same command in vi.
Update the .vmx and .vmxf configuration files. Use same command in vi.
Remove old logs:
<pre>
rm vmware*.log
</pre>


=Snapshot Consolidation=
=Snapshot Consolidation=


{{External|https://kb.vmware.com/kb/1020000}}
{{External|https://kb.vmware.com/kb/1020000}}

Revision as of 03:29, 1 June 2017

Internal

Procedures

Changing the Number of CPUs Allocated to a VM

Virtual Machine -> Settings -> System Settings row -> Processors & Memory -> Processors.

Rename a VM

External

Procedure

After startup, Virtual Machine -> Settings -> General -> Click the existing name of the VM to edit the text -> Rename and click outside the text box to save.

Shutdown.

Note that renaming the VM does not change the name of any bundle file on disk.

Shrink a Sparse Disk

External

Procedure

TODO: "Clean Up Virtual Machine"

Snapshot Consolidation

https://kb.vmware.com/kb/1020000