Restore VMware VM backup if vCenter is down

242 views
Skip to first unread message

Stefan

unread,
Feb 27, 2018, 6:51:22 AM2/27/18
to bareos-users
My vCenter server is a Virtual Machine itself, and I've created backups of its VMDK using the Bareos VMware plugin. Now it's down and I need to restore the VMDK from a backup. This, however, seems not to be possible, as the plugins wants to connect to the vCenter server (my vCenter VM is called vc46-1):


27-Feb 12:10 bareos46-1-fd JobId 3976: Warning: python-fd: Could not retrieve SSL Cert from vc46-1.mobile.rz
27-Feb 12:10 bareos46-1-fd JobId 3976: Fatal error: python-fd: Traceback (most recent call last):
File "/usr/lib/bareos/plugins/BareosFdWrapper.py", line 62, in plugin_io
return bareos_fd_plugin_object.plugin_io(context, IOP)
File "/usr/lib/bareos/plugins/BareosFdPluginVMware.py", line 358, in plugin_io
self.vadp.keepalive()
File "/usr/lib/bareos/plugins/BareosFdPluginVMware.py", line 693, in keepalive
if int(time.time()) - self.si_last_keepalive > 900:
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

27-Feb 12:10 bareos-sd JobId 3976: Error: bsock_tcp.c:407 Write error sending 60131 bytes to client:10.46.22.80:9103: ERR=Connection reset by peer
27-Feb 12:10 bareos-sd JobId 3976: Fatal error: read.c:156 Error sending to File daemon. ERR=Connection reset by peer
27-Feb 12:10 bareos-sd JobId 3976: Error: bsock_tcp.c:452 Socket has errors=1 on call to client:10.46.22.80:9103
27-Feb 12:10 bareos-dir JobId 3976: Error: Bareos bareos-dir 17.2.4 (21Sep17):
Build OS: x86_64-pc-linux-gnu debian Debian GNU/Linux 8.0 (jessie)
JobId: 3976
Job: RestoreFiles.2018-02-27_12.10.37_04
Restore Client: bareos-fd
Start time: 27-Feb-2018 12:10:39
End time: 27-Feb-2018 12:10:41
Elapsed time: 2 secs
Files Expected: 2
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 1
FD termination status: Error
SD termination status: Fatal Error
Termination: *** Restore Error ***


I would be happy if the plain VMDK file would just be extracted locally therefore I tried the plugin option "python:localvmdk=yes", but that didn't change the story.

How can I extract a backup of this VM without connecting to the vCenter server?

Stefan

unread,
Feb 27, 2018, 6:52:34 AM2/27/18
to bareos-users
I forgot to mention I'm running Bareos 17.2.4-6.1.

Stephan Duehr

unread,
Mar 8, 2018, 4:42:26 AM3/8/18
to bareos...@googlegroups.com
Hello,

you probably found a bug in the plugin, technically it's not necessary to connect vCenter for
restore to local VMDK file.

If you don't mind, please create a bugreport on https://bugs.bareos.org/

Regards,

Stephan
--
Stephan Dühr stepha...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-90
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: S. Dühr, M. Außendorf, J. Steffens, Philipp Storz

Marek Grudzinski

unread,
Oct 25, 2018, 6:39:00 AM10/25/18
to bareos-users
Is this still a bug?
Reply all
Reply to author
Forward
0 new messages