Fix freenas-proxmox compatibility with Proxmox VE 9 #209
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request: Proxmox VE 9 Compatibility Support
📋 Summary
This pull request adds complete Proxmox VE 9 compatibility to the freenas-proxmox plugin, resolving critical issues that prevented proper operation with PVE 9's new architecture.
🎯 Motivation and Context
Proxmox VE 9 introduced architectural changes that broke the existing freenas-proxmox plugin functionality:
These issues made the plugin unusable with Proxmox VE 9, requiring comprehensive fixes.
🔧 Changes Made
Core Fixes
1. Critical LUN 0 Handling Fix
Impact: Resolves VM startup failures when using LUN 0
2. Complete FreeNAS.pm Rewrite
3. ZFSPlugin.pm Provider Integration
New Features
4. Automated Installation Scripts
install-pve9.sh
: Complete installation for new systemspatch-pve9.sh
: Compatibility patches for existing installations5. Enhanced Error Handling
🧪 Testing
Test Environment
Test Results
Before/After Comparison
Before (PVE 9 without fixes):
After (PVE 9 with fixes):
📁 Files Added/Modified
New Files
install-pve9.sh
- Complete installation scriptpatch-pve9.sh
- Compatibility patcher for existing installationsREADME-PVE9.md
- Comprehensive documentationCHANGELOG-PVE9.md
- Detailed change logModified Files
perl5/PVE/Storage/LunCmd/FreeNAS.pm
- Complete rewrite for PVE 9perl5/PVE/Storage/ZFSPlugin.pm.patch
- Updated patches for PVE 9🔄 Breaking Changes
None. This update is fully backward compatible with existing configurations.
📋 Checklist
🎯 Type of Change
Breaking change(would cause existing functionality to not work as expected)📝 Additional Notes
Installation Methods
New Installations:
Existing Installations:
Community Impact
This fix resolves the #1 issue preventing freenas-proxmox usage with Proxmox VE 9, affecting:
Future Maintenance
The implemented solution:
🤝 Review Requests
Looking for review on:
This PR represents significant work to restore and enhance freenas-proxmox functionality for the Proxmox VE 9 era. The fixes are critical for anyone wanting to use TrueNAS storage with modern Proxmox deployments.