VMware Cloud Community
RomainSESSA
Contributor
Contributor

Get-VApp don't find VApp on a mounted network file system as datastore.

Hi,

On my ESX I try to create VM from virtual appliances using a PowerShell script.

I have 3 datastores :

- vmfs01 : where I want to install Virtual Machines.

- ncepsiFS01 : a network file system mounted as a datastore where they are virtual appliances(.ova)

- systemdisk

And I have a folder "vm" that correspond at the datastore ncepsiFS01.

When I execute a Get-VApp on the PowerCLI I have no result. I don't understand why ? Is it because my virtual appliances are on a network file system ?

Thanks for your help.

Romain

Reply
0 Kudos
3 Replies
RvdNieuwendijk
Leadership
Leadership

Hi Romain,

it looks like there is something wrong with your virtual appliances. Can you try to create a new virtual appliance and test if you can see this one with Get-VApp?

New-VApp -Name MyVApp -Location (Get-VMHost | Select-Object -first 1)
Get-VApp

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
Reply
0 Kudos
RomainSESSA
Contributor
Contributor

Thank you for your answer.

I try to create a new VApp but without result :

New-VApp -Name MyVapp -Location (Get-VMHost | Select-Object -first 1)

New-VApp : 24/06/2010 09:59:38 New-VApp 520c1a1b-0847-085e-d80a-a78079e91

3cb The operation is not supported on the object.

At line:1 char:9

+ New-VApp <<<< -Name MyVapp -Location (Get-VMHost | Select-Object -first 1)

Is it possible an ESX doesn't support VApp ?

Reply
0 Kudos
admin
Immortal
Immortal

Hi,

VApp object is supported only by vCenter server not by the standalone ESX servers.

Because of that, Get-VApp returns nothing when you are connected directly to ESX server and Import-vApp throws a "not supported" error.

Actually the OVF standard supports to type of configuration - single VM and multi VM configuration. As the single VM OVFs contain information for single VM it is possible to import such OVF when the connection is directly to ESX server.

In your import attempt to the OVF is of multi VM type.

Vitali

Reply
0 Kudos