VMware Cloud Community
avenuce
Contributor
Contributor

Problems with uploading ISO using vCD 8.2

Hi, can u help me plz.

Have a problem with uploading iso in media&other in vCD 8.2.

The attempted operation cannot be performed using this browser. Re-try using an alternative method:  - Use the VMware OVF Tool to perform the operation. You can download the OVF Tool and its User Guide from the OVF Tool product page at https://www.vmware.com/support/developer/ovf/. - Use a browser and platform combination that is supported by vCloud Director for this operation. For the supported browser and platform combinations, see the Release Notes for this version of vCloud Director.

I've found this two articles:

Upload ovf/ova to vCloud Director with PowerShell | Remko Weijnen's Blog (Remko's Blog)

http://www.virtualizedgeek.com/2016/02/error-uploading-to-vcloud-air-using-ovftool/

uploaded iso using:

./ovftool -st=”ISO” –vCloudTemplate=”false” “W2k16.ISO” “vcloud://us-california-1-3.vchs.vmware.com?vdc=Azure&org=7389d726-3efe-2345-837a-12345a3d30f0f&media=w2k16-2.iso&catalog=Media”

and it works, but i can't insert this media into my VM. There's nothing to insert:

pastedImage_4.png

The problem was in uploading. File wasn't fully uploaded, but it was displayed in catalog:

pastedImage_0.png

The solution of the issue was in uploading iso by cloud administrators.

Does any know any solutions of this problem?

I try to use firefox, opera, ie11, chrome on windows platform, reinstall client integration plugin, reboot OS, install VMware-ovftool-4.2.0-5965791-win.msi, update browsers, but it's not help.

Message was edited by: bush andrei

Reply
0 Kudos
2 Replies
mhampto
VMware Employee
VMware Employee

Are there any further messages in the vCD logs as to why the upload is failing? Are you able to provide the command you ran for your environment to import eh OVF? 

Reply
0 Kudos
avenuce
Contributor
Contributor

I write this script with powershell

[string]$ovftool62FilePath = "C:\Program Files (x86)\VMware\Client Integration Plug-in 6.2\ovftool\ovftool.exe"

[string]$ovftool60FilePath = "C:\Program Files (x86)\VMware\Client Integration Plug-in 6.0\ovftool.exe"

[string]$ovfDefaultPath = ''

# form object - get file path

Function Get-FilePathToOfvtoolexe () {

[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null

$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog

$OpenFileDialog.Title = "Set path for ovftool.exe"

$OpenFileDialog.ShowDialog() | Out-Null

return $OpenFileDialog.FileName.ToString()

}

Function Get-FilePathToOsImg () {

[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null

$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog

$OpenFileDialog.Title = "Set path for OS image:"

$OpenFileDialog.ShowDialog() | Out-Null

return $OpenFileDialog.FileName.ToString()

}

write-host "Set path for ovftool.exe:" -ForegroundColor Green

# find ovftool executable file path

if (Test-Path -Path $ovftool62FilePath) {

# vesion 6.2

$ovfDefaultPath = $ovftool62FilePath

write-host " - Default path: $ovfDefaultPath" -ForegroundColor Green

}elseif (Test-Path -Path $ovftool60FilePath){

# vesion 6.0

$ovfDefaultPath = $ovftool60FilePath

write-host " - Default path: $ovfDefaultPath" -ForegroundColor Green

}else {

# client choose path

$ovfDefaultPath = Get-FilePathToOfvtoolexe

write-host " - Default path: $ovfDefaultPath" -ForegroundColor Green

}

write-host "Get image file path" -ForegroundColor Green

$getVMWareImg = Get-FilePathToOsImg

write-host " - OS image file path: $getVMWareImg" -ForegroundColor Green

# here is your script

[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")

[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")

$objForm = New-Object System.Windows.Forms.Form

$objForm.Text = "Data Entry Form"

$objForm.Size = New-Object System.Drawing.Size(505,250)

$objForm.StartPosition = "CenterScreen"

$objForm.KeyPreview = $True

$objForm.Add_KeyDown({

if ($_.KeyCode -eq "Enter" -or $_.KeyCode -eq "Escape"){

$objForm.Close()

}

})

$OKButton = New-Object System.Windows.Forms.Button

$OKButton.Location = New-Object System.Drawing.Size(50,160)

$OKButton.Size = New-Object System.Drawing.Size(75,23)

$OKButton.Text = "OK"

$OKButton.Add_Click({$objForm.Close()})

$objForm.Controls.Add($OKButton)

$CancelButton = New-Object System.Windows.Forms.Button

$CancelButton.Location = New-Object System.Drawing.Size(150,160)

$CancelButton.Size = New-Object System.Drawing.Size(75,23)

$CancelButton.Text = "Cancel"

$CancelButton.Add_Click({$objForm.Close()})

$objForm.Controls.Add($CancelButton)

$objLabel = New-Object System.Windows.Forms.Label

$objLabel.Location = New-Object System.Drawing.Size(10,20)

$objLabel.Size = New-Object System.Drawing.Size(280,20)

$objLabel.Text = "Please enter the information in the space below:"

$objForm.Controls.Add($objLabel)

$objLabel1 = New-Object System.Windows.Forms.Label

$objLabel1.Location = New-Object System.Drawing.Size(280,40)

$objLabel1.Size = New-Object System.Drawing.Size(280,20)

$objLabel1.Text = "Payer's Account Number (УНП)"

$objForm.Controls.Add($objLabel1)

$objLabel2 = New-Object System.Windows.Forms.Label

$objLabel2.Location = New-Object System.Drawing.Size(280,70)

$objLabel2.Size = New-Object System.Drawing.Size(280,20)

$objLabel2.Text = "VDC name"

$objForm.Controls.Add($objLabel2)

$objLabel3 = New-Object System.Windows.Forms.Label

$objLabel3.Location = New-Object System.Drawing.Size(280,100)

$objLabel3.Size = New-Object System.Drawing.Size(280,20)

$objLabel3.Text = "Disk image name (name.extension)"

$objForm.Controls.Add($objLabel3)

$objLabel4 = New-Object System.Windows.Forms.Label

$objLabel4.Location = New-Object System.Drawing.Size(280,130)

$objLabel4.Size = New-Object System.Drawing.Size(280,20)

$objLabel4.Text = "Catalog name (existing)"

$objForm.Controls.Add($objLabel4)

$orgName = New-Object System.Windows.Forms.TextBox

$orgName.Location = New-Object System.Drawing.Size(10,40)

$orgName.Size = New-Object System.Drawing.Size(260,20)

$objForm.Controls.Add($orgName)

$vdcName = New-Object System.Windows.Forms.TextBox

$vdcName.Location = New-Object System.Drawing.Size(10,70)

$vdcName.Size = New-Object System.Drawing.Size(260,20)

$objForm.Controls.Add($vdcName)

$imgDiskName = New-Object System.Windows.Forms.TextBox

$imgDiskName.Location = New-Object System.Drawing.Size(10,100)

$imgDiskName.Size = New-Object System.Drawing.Size(260,20)

$objForm.Controls.Add($imgDiskName)

$catalogName = New-Object System.Windows.Forms.TextBox

$catalogName.Location = New-Object System.Drawing.Size(10,130)

$catalogName.Size = New-Object System.Drawing.Size(260,20)

$objForm.Controls.Add($catalogName)

$objForm.Topmost = $True

$objForm.Add_Shown({$objForm.Activate()})

[void]$objForm.ShowDialog()

#end

write-host "Specify vcloud param" -ForegroundColor Green

$orgName = $orgName.Text

$vdcName = $vdcName.Text

$imgDiskName = $imgDiskName.Text

$catalogName = $catalogName.Text

$vcloudCommand = ('"vcloud://@vmw.vdc.by:443/?org={0}&vdc={1}&media={2}&catalog={3}"' `

-f $orgName, $vdcName, $imgDiskName, $catalogName)

write-host " - vcloud param: $vcloudCommand" -ForegroundColor Green

if ($getVMWareImg.split('\').split('.')[-1] -eq "iso") {

# run command here for ISO upload

Write-Host ('Execute command: .\ {0} -st="ISO" "{1}" {2}' -f $ovfDefaultPath, $getVMWareImg, $vcloudCommand ) -ForegroundColor Yellow

& $ovfDefaultPath -st="ISO" "$getVMWareImg" $vcloudCommand

} else {

# run command here for other

Write-Host ('Execute command: {0} "{1}" {2}' -f $ovfDefaultPath, $getVMWareImg, $vcloudCommand ) -ForegroundColor Yellow

& $ovfDefaultPath "$getVMWareImg" $vcloudCommand

}

Reply
0 Kudos