Follow these procedures to back up and restore an Oracle VM 3.2 server.
Configuration
Back Up the Oracle VM Server
Restore Files for a Specific Guest
From the proxy server, mount the snapshot.
The snapshot is visible after you mount the snapshot.
If you list the files that are on the mounted volume, the Oracle VM server repository files are present.
After you mount the repository, mount the .img file so that you can view the guest VM files. Use the losetup command to configure and control the loop devices.
Detect the available loop device. On the command line, type the following command:
lookup -f
Use the available loop device to mount the .img file. On the command line, type the following command:
For this example, "loop1" is the available loop device.
losetup /dev/loop1 <path_of_.img_file>
Use the kpartx command to add partition mappings. On the command line, type the following command:
For this example, "loop1" is the available loop device.
kpartx –a /dev/loop1
Use the kpartx command to list the partition mappings. On the command line, type the following command:
For this example, "loop1" is the available loop device.
kpartx –l /dev/loop1
Create a mount point on the proxy sever for guest VM file system. On the command line, type the following command:
mount /dev/mapper/loop1p2 /mountGuestfs
The guest VM is visible and you can now recover the files.
After the restore completes, unmount the guest file system. On the command line, type the following commands:
umount /mountGuestfs
losetup –d /dev/loop1
kpartx –d /dev/loop1Use the losetup command to verify that loop device is free. On the command line, type the following command:
losetup –a
From the proxy server, unmount the snapshot.