netfox Posted December 14, 2022 Share Posted December 14, 2022 Hello, All, I'm planning to have a backup server on a Linux box or RPI. How can I export the VM and use it on Ubutntu/PiOs/Debian? Thank you John Quote Link to comment
ghost82 Posted December 15, 2022 Share Posted December 15, 2022 (edited) If you want to restore an image to a hd/sd card (bare metal): I would restore the image to the hard disk/sd card with dd. I would operate on the same pc booting from a live linux usb with the hard disk containing the vdisk and the empty hard disk/sd card. The empty hard disk/sd card must be grater or equal in size than the size of the vdisk. I would restore a raw image to the hard disk/sd card; if the image is in qcow2 format I would convert it to raw with qemu-img (you can do it in unraid): qemu-img convert -f qcow2 -O raw /path/to/vdisk.qcow2 /path/to/save/vdisk.img Then, use dd to restore the image: sudo dd if=/path/to/vdisk.img of=/dev/sdX bs=10M where sdX is the empty hard disk/sd card: this will restore all the partitions inside the vdisk image. -- On the other hand, if you want to run the vdisk on another box in a vm, simply copy the vdisk image, create a new vm pointing to that vdisk. Edited December 15, 2022 by ghost82 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.