Proxmox Virtual Environment (Proxmox VE) is a powerful open-source platform for managing virtualized systems. One of the common tasks that administrators may encounter is the need to transfer ISO files from the server’s internal storage to an external storage. This can be crucial for backup purposes, freeing up space, or moving data between systems. In this article, I will guide you through a step-by-step process to safely and efficiently transfer all ISO files stored on the internal storage with Proxmox VE v7.0 to external storage and vice versa.
- Proxmox VE v7.0 installed on your server
- An external storage connected to the Proxmox server
Connect your external storage to the Proxmox server and create a mount point to access its filesystem:
mount /dev/sdb1 /mnt/external_storage
Depending on your needs, you may choose to either copy the ISO files to the external storage or from it. Choose the option that best suits your requirements and proceed with the transfer. Here’s how you can do both:
Copy ISO Files to External storage
rsync command to copy all ISO files from the Proxmox directory to your external storage:
rsync -avh /var/lib/vz/template/iso/ /mnt/external_storage/
Copy ISO Files from External storage
If you wish to copy the ISO files from the external storage to the Proxmox directory, use the following
rsync -avh /mnt/external_storage/ /var/lib/vz/template/iso/
You can verify the transfer by listing the contents of both the external storage and the original location where the ISO files were stored.
Comparing the contents of these two locations ensures that the ISO files have been transferred correctly.
Once you have verified the transfer, unmount the external storage:
Transferring ISO files from Proxmox VE to an external storage and vice versa is a straightforward process that can be done with just a few command-line instructions. This guide has provided you with all the necessary steps to perform this task safely and efficiently. Always remember to verify the transfer and ensure that no virtual machines or containers are using the ISOs during the transfer process.
I hope this article has helped you learn how to transfer all ISOs stored on the SSD with Proxmox VE v7.0 to an external storage. If this article has helped you, then please leave a comment
Thanks for reading and happy virtualizing!