This is the way I have performed baremetal recoverys lately of a VM:
1)
Take the anaconda.ks script from the subject system and use it as the basis to install a fresh system on a newly created. I use the anaconda.ks from the
subject system so that things like file system sizes, volumegroup names, and packages will be identical to the system were about to restore. (actually, a minimal install would probably be fine, as long as file system sizes and volumegroup names were identical)
2)
After the fresh install on a new VM, reboot the new VM to rescue mode. Chroot into the file systems of the newly installed fresh VM.
3)
Install bacula client, set the password.
4)
You will probably need to create a client config representing the temporary system and its IP that it probably got from DHCP (I did).
5)
“restore all” from your bacula console, select the subject system and the new temporary target system as the restore client. I omit these files:
a.
/etc/sysconfig/network-scripts/ifcfg-eth*
b.
/etc/fstab
c.
/etc/udev/rules.d/70-persistent-net.rules
d.
/boot/grub/system.map
6)
I have always had to finish this process with a grub-install to the boot device.
I imagine my method might be more cumbersome and time consuming than some others, but it has worked for me 100% of the times I have done this.
From: Radosław Korzeniewski [mailto:radoslaw AT korzeniewski DOT net]
Sent: Tuesday, May 07, 2013 10:17 AM
To: Jonathan Bayer
Cc: bacula-users
Subject: Re: [Bacula-users] Bare metal restore
Hello,
2013/5/7 Jonathan Bayer <jbayer AT bayertechnologygroup DOT com>
I've seen conflicting comments online about this.
I know this used to work.
Assuming only Linux systems, and a further assumption that they will all
be RHEL based systems, does Bacula support any way of bare-metal
restores? And to be even more specific, these would all be VMs.
If your machines are VM guests then I recommend to backup it as disk images. It will be the easiest BMR you can imagine.
For successful backup/restore you need to assure offline VM guest or some kind of OS quiescence (snapshot?). Do not forgot to export and backup a VM guest configuration (OVF or XML file depend of your hypervisor).
--
Radosław Korzeniewski
radoslaw AT korzeniewski DOT net