myspaghetti / macos-virtualbox

Push-button installer of macOS Catalina, Mojave, and High Sierra guests in Virtualbox on x86 CPUs for Windows, Linux, and macOS
GNU General Public License v2.0
13.5k stars 1.12k forks source link

Time Machine support #536

Closed ilippert closed 3 years ago

ilippert commented 3 years ago

It would be so great, if I could attach a USB storage to my Linux system on which a time machine backup can be found - and then use it to restore it in the virtual box. Any chance this might be possible?

myspaghetti commented 3 years ago

I have not tested this myself, but as far as I recall Time Machine works fine off of local area network storage, so attaching the storage to the host and exposing it to the guest as local area network storage should work.

ilippert commented 3 years ago

Hm, thank you, uuh, I have a simple external USB disk. My linux system finds it. Exposing it as a Shared Folder in Virtual Box did not make it findable for macOS.

myspaghetti commented 3 years ago

You should configure your Linux host as a Time Machine drive with netatalk and avahi. See for example this tutorial. The macOS guest should have a virtual network adapter that is exposed to the host.

ilippert commented 2 years ago

For anybody looking into this - my solution was to attach the USB powered time machine hard disk in the VirtualBox preferences to the macOS virtual machine, and voila, it got recognised.