This tutorial demonstrates how to share a Proxmox host’s hard drive with a guest instance. This is useful for adding disk space to a guest, sharing files among many guests, and more.
For this tutorial, the following assumptions are made. Adjust any parameters as is necessary.
- The host’s drive/partition that is to be shared is
- The drive’s filesystem is
- The guest that the drive is to be shared with has the ID
- The drive will be mounted to
/mnt/driveon the guest
On the Host…
1. Edit VM Conf File
Add a new line for the shared drive.
ide3 can be any number that isn’t already assigned to another IDE device:
2. Halt the Guest, then Restart
halt the system and then restart (not just reboot)
shutdown -h now
On the Guest…
1. Find the drive’s UUID:
ls -lsa /dev/disk/by-uuid/
Look for the UUID of the drive at
0 lrwxrwxrwx. 1 root root 9 Jul 18 17:04 abcde123-4567-fghi-8901-jklmnopq2345 -> ../../sdb
2. Edit fstab
Add the following line. Be sure to change the drive’s UUID and the mount point:
UUID=abcde123-4567-fghi-8901-jklmnopq2345 /mnt/drive ext4 defaults 0 1
The drive will now mount at boot. To mount the drive now, without rebooting run: