Hi we have actually a PR1486 which is opened, fixing last round of 
discovered bugs.
Maybe you want to path and try this code 

https://github.com/bareos/bareos/blob/de8824d2ba56192b57f8d39223b3e545affb331f/core/src/plugins/filed/python/vmware/BareosFdPluginVMware.py

This is a compatible 22.1.x+ version
 
On Thursday, June 22, 2023 at 4:59:05 AM UTC+2 jesse wrote:

> hi
> when i try to restore a vm machine from backup,bareos return the following 
> errors:
>
> Bareos-fd JobId 1816: Fatal error: Bareosfd: Traceback (most recent call 
> last):
> File "/usr/lib64/Bareos/plugins/BareosFdWrapper.py", line 57, in 
> handle_plugin_event
> return Bareos_fd_plugin_object.handle_plugin_event(event)
> File "/usr/lib64/Bareos/plugins/BareosFdPluginVMware.py", line 841, in 
> handle_plugin_event
> return self.start_restore_job()
> File "/usr/lib64/Bareos/plugins/BareosFdPluginVMware.py", line 534, in 
> start_restore_job
> return self.vadp.prepare_vm_restore()
> File "/usr/lib64/Bareos/plugins/BareosFdPluginVMware.py", line 1247, in 
> prepare_vm_restore
> if not self.create_vm():
> File "/usr/lib64/Bareos/plugins/BareosFdPluginVMware.py", line 1677, in 
> create_vm
> self.add_disk_devices_to_vm(transformer.disk_device_change_delayed)
> File "/usr/lib64/Bareos/plugins/BareosFdPluginVMware.py", line 2749, in 
> add_disk_devices_to_vm
> WaitForTask(reconfig_task)
> File "/usr/local/lib/python3.6/site-packages/pyVim/task.py", line 155, in 
> WaitForTask
> raise info.error
> pyVmomi.VmomiSupport.vim.fault.InvalidDeviceSpec: 
> (vim.fault.InvalidDeviceSpec) {
> dynamicType = ,
> dynamicProperty = (vmodl.DynamicProperty) [],
> msg = "Invalid configuration for device '0'.",
> faultCause = ,
> faultMessage = (vmodl.LocalizableMessage) [],
> property = 'VirtualDisk.capacityInKB',
> deviceIndex = 0
> }
>
>
>
> the metadata can be restored and i can see the vm in vcenter,but  the vmdk 
> file can not be restored. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bareos-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-devel/66007deb-d889-4c08-924d-3114e628f0adn%40googlegroups.com.

Reply via email to