I had a DVD movie that was only readable by my SATA DVD drive. This meant that I needed to pass it through to my VM. However, it appears that it is not possible at this time without doing an iSCSI workaround. Since I only needed to do this for a single DVD, I didn't want to do something that complicated. What I decided to do was to use an LXC to create an ISO that I could use in the VM.
LXC DVD drive passthrough
- Create a new LXC (I used the debian version and upped memory to 2 GiB and storage to 8 GiB)
- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/debian.sh)"
- Passthrough the DVD drive
- Container -> Resources
- Add -> Device Passthrough
- Device Path: /dev/sr0 (or whatever number your DVD drive is)
- Click Add
- Install dvdbackup, libdvdcss2, and ddrescue
- apt-get install dvdbackup libdvdcss2 gddrescue
- dpkg-reconfigure libdvd-pkg
- Create the ISO
- dvdbackup -i /dev/sr0 -I # unlock the DVD
- ddrescue -b2048 -d -r500 /dev/sr0 disc.iso disc.mapfile # Create the ISO
Appendix
Sources
- https://forum.proxmox.com/threads/a-simple-way-to-passthrough-an-internal-sata-dvd-burner-solved.47541/
- https://community-scripts.github.io/ProxmoxVE/scripts?id=debian&category=Operating+Systems
- https://www.cyberciti.biz/faq/installing-plugins-codecs-libdvdcss-in-debian-ubuntu-linux/
- https://wiki.archlinux.org/title/Dvdbackup
No comments:
Post a Comment