- Before performing this process, make sure you have your VM CD-Rom not pointing to a datastore and pointed to the “Client Device” and have the CD Rom disconnected. Having the CD-Rom pointed to a datastore can cause problems.
- Open PowerShell ISE in Administrator Mode
- Open the "Initialize-PowerCLIEnvironment.ps1 script located at C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Scripts
- This will be here after you installed PowerCLI
- In order to get the Power CLI to connect to servers on the network, you have to bypass the certificate error by putting in the following code:
- Set-PowerCLIConfiguration -InvalidCertificateAction Ignore
- Then you can connect to your server with the following command:
- Connect-VIServer -Server x.x.x.x -User vsphere.local\example - Password XXXXXXX
- Once this is done, you can now start your exporting of your OVA/OVF with the next steps.
- Make sure you know your destination folder and the name of your VM from vCenter. Once you have this, perform the following command:
- Get-VM –Name ExampleTest | Export-VApp –Destination C:\Users\Example\Desktop –Format Ovf or ova
This blog consists of configurations and processes I have performed in a lab environment. In no way do I recommend or imply these processes need to be followed or are the correct way to execute on any network. Perform at your own risk. Also, please feel free to leave comments if my configurations are too old/need updating.
What's Popular
-
1. You can perform this either from user mode or privileged mode: a. SW1>ssh -l user_name ip_address b. SW1#ssh -l user_name ip_a...
-
Step 1: UCS-A# scope security Step 2: UCS-A /security # scope keyring default Step 3: UCS-A /security/keyring # set regenerate yes Step 4: U...
-
Via GUI: • Click on Device tab > Setup link > Operations tab • Click on shutdown device under device operations on the right...
Meh, Whatever is Featured
Linking Active Directory to Palo Alto
###First you need to create a server profile under the LDAP section. DEVICE>Server Profiles>LDAP then click on the Add down at the bo...
Friday, May 11, 2018
Simple PowerCLI Backup for OVA/OVF
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment