VMware Cloud Community
radek1986
Contributor
Contributor

Delete machine from disk and convert to template

Hello,

I have two question Smiley Wink

1. Is it possible to delete virtual machine from inventory and from disk by one command (Delete from disk - in graphical client Smiley Happy)? I know that I can delete folder using vifs.pl, and unregister machine by vmware-cmd -s register. But when I unregister machine, it is still in inventory marked as orphaned. I need to know if it is another way to do this?

2. The next question is, how to convert a VM to template ? I found script  vmtemplate.pl, but when I use it I get error: Making a virtual machine as a template is not supported. Verify the virtual machine state. I use: vmtemplate.pl --server serverName --vmname machine --operation T

I use it via ESX server no vCenter, i don't know if it is important Smiley Happy

Thank in adance,

Regards,

Radek

Reply
0 Kudos
0 Replies