apache / apache/cloudstack

Failed to create a new instance from backup with Veeam using vSAN storage

未關閉
#11,888 2 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@nvazquez 已經在處理了。

開始於 2026年5月20日。

  • #13203 來自 @nvazquez —— 未關閉
component:vmware Severity:Major type:bug
主要語言
Java
星號
3.1k
分支
1.4k
平均合併
7 天 14 小時
30 天內合併 PR
31

描述

Discussed in https://github.com/apache/cloudstack/discussions/11886

Originally posted by leolns October 21, 2025

problem

Cloudstack 4.21.0.0 + VMware 8u3g + vSAN + Veeam 12 environment.

When trying to create a new instance from an existing backup, an error occurs because the datastore cannot be found. The datastore lookup is using the CloudStack UUID instead of the volume name.

$ds = Find-VBRViDatastore -Server:$server -Name "0f2b59684453331eb366a6d7036bae96"

Find-VBRViDatastore doesnt accept uuid, it needs vmware volume name

ERROR [c.c.u.s.SshHelper] (API-Job-Executor-120:[ctx-e94e8dfc, job-58501, ctx-8df14098]) (logid:d58f3113) SSH execution of command PowerShell Import-Module Veeam.Backup.PowerShell -WarningAction SilentlyContinue;$ProgressPreference='SilentlyContinue';$points = Get-VBRRestorePoint;foreach($point in $points) { if ($point.Id -eq '4bf0faea-53e5-4d3f-bf2c-8f83a2104e7d') { $restorePoint = $point; break; } };$server = Get-VBRServer -Name "10.10.10.103";$ds = Find-VBRViDatastore -Server:$server -Name "0f2b59684453331eb366a6d7036bae96";$job = Start-VBRRestoreVM -RestorePoint:$restorePoint -Server:$server -Datastore:$ds -VMName "i-8-662-TESTEDEMOBKPRESTORE" -RunAsync;while (-not (Get-VBRRestoreSession -Id $job.Id).IsCompleted) { Start-Sleep -Seconds 10 } has an error status code in return. Result output: Find-VBRViDatastore : Cannot convert 'System.Object[]' to the type 'Veeam.Backup.Core.Common.CHost' required by ^M
parameter 'Server'. Specified method is not supported.^M
At line:1 char:342^M
+ ... -Name 10.254.254.10;$ds = Find-VBRViDatastore -Server:$server -Name 0 ...^M
+                                                           ~~~~~~~^M
    + CategoryInfo          : InvalidArgument: (:) [Find-VBRViDatastore], ParameterBindingException^M
    + FullyQualifiedErrorId : CannotConvertArgument,Veeam.Backup.PowerShell.Cmdlets.FindVBRViDatastore^M
 ^M
Start-VBRRestoreVM : Cannot convert 'System.Object[]' to the type 'Veeam.Backup.Core.Common.CHost' required by ^M
parameter 'Server'. Specified method is not supported.^M
At line:1 char:451^M
versions

Cloudstack 4.21.0.0 + VMware 8u3g + vSAN + Veeam 12

The steps to reproduce the bug

Try to create a new instance from backup

What to do about it?

Find-VBRViDatastore doesnt accept uuid, it needs vmware volume name

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。