Replies: 9 comments 6 replies
-
Question - would this work with the scenario of just adding an existing hdd to an LXC? Such as adding an existing HDD to a jellyfin server LXC? |
Beta Was this translation helpful? Give feedback.
-
I do wonder if the above might be created as a script similar to the tailscale one - as in you run the script, select lxc, select the hdd option you want to use from a generated list, and then done. Is that an option? |
Beta Was this translation helpful? Give feedback.
-
I'm a little confused by a couple of things in the original post:
Thanks! |
Beta Was this translation helpful? Give feedback.
-
Could we have script for OpenMediaVault in VM? |
Beta Was this translation helpful? Give feedback.
-
Does this only work with LVM drives? I would like to use my ZFS pool, but I don't see the additional storage with |
Beta Was this translation helpful? Give feedback.
-
<CT_ID> — це ідентифікатор контейнера (Container ID) Рішення: Дати OMV доступ до блочних пристроїв Зупиніть контейнер
Відкрийте конфігураційний файл контейнера
Додайте або змініть ці параметри
Збережіть і закрийте файл (CTRL+X, Y, Enter). Запустіть контейнер
|
Beta Was this translation helpful? Give feedback.
-
When will be avaible under VM ? |
Beta Was this translation helpful? Give feedback.
-
ok, thanks, i reset the proxmox server and install again and it seems
everything is ok.
Thanks anyway
*David Alcón *| ***@***.*** | +34 679 82 07 01
El mié, 9 jul 2025 a las 12:52, Patricio ***@***.***>)
escribió:
… <CT_ID> is the Container ID
The example uses the /dev/sdc disk and the /dev/sdc1 partition
Solution: Give OMV access to the block devices
You need to reconfigure the OMV container:
Stop the container
pct stop <CT_ID>
Open the container configuration file
nano /etc/pve/lxc/<CT_ID>.conf
Add or change these parameters
lxc.cgroup2.devices.allow = b 8:* rwm
lxc.mount.entry = /dev/sdc dev/sdc none bind,optional,create=file
lxc.mount.entry = /dev/sdc1 dev/sdc1 none bind,optional,create=file
lxc.apparmor.profile = unconfined
lxc.cap.drop =
lxc.cap.add = SYS_ADMIN SYS_RAWIO
Save and close the file (CTRL+X, Y, Enter).
Start the container
pct start <CT_ID>
—
Reply to this email directly, view it on GitHub
<#175 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BERFINMOFCFS2AUDFH6AGY33HTX67AVCNFSM6AAAAABRR2MNVOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZQG44TGMA>
.
You are receiving this because you commented.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
I backed up the VMs or LXCs to an external HDD or USB, reinstall Proxmox
from scratch and restore the VMs and LXCs.
*David Alcón *| ***@***.*** | +34 679 82 07 01
El sáb, 12 jul 2025 a las 3:49, Richard Kendi Kaku (<
***@***.***>) escribió:
… ok, thanks, i reset the proxmox server and install again and it seems
everything is ok. Thanks anyway *David Alcón | @.** | +34 679 82 07 01 El
mié, 9 jul 2025 a las 12:52, Patricio *@*.
*>) escribió: … <#m_6620055549605233902_> <CT_ID> is the Container ID The
example uses the /dev/sdc disk and the /dev/sdc1 partition Solution: Give
OMV access to the block devices You need to reconfigure the OMV container:
Stop the container pct stop <CT_ID> Open the container configuration file
nano /etc/pve/lxc/<CT_ID>.conf Add or change these parameters
lxc.cgroup2.devices.allow = b 8: rwm lxc.mount.entry = /dev/sdc dev/sdc
none bind,optional,create=file lxc.mount.entry = /dev/sdc1 dev/sdc1 none
bind,optional,create=file lxc.apparmor.profile = unconfined lxc.cap.drop =
lxc.cap.add = SYS_ADMIN SYS_RAWIO Save and close the file (CTRL+X, Y,
Enter). Start the container pct start <CT_ID> — Reply to this email
directly, view it on GitHub <#175 (reply in thread)
<#175 (reply in thread)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BERFINMOFCFS2AUDFH6AGY33HTX67AVCNFSM6AAAAABRR2MNVOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZQG44TGMA
<https://github.com/notifications/unsubscribe-auth/BERFINMOFCFS2AUDFH6AGY33HTX67AVCNFSM6AAAAABRR2MNVOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZQG44TGMA>
. You are receiving this because you commented.Message ID: @.** .com>
How did you do it? Could you pass it on to me?
—
Reply to this email directly, view it on GitHub
<#175 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BERFINPSZM4ZQCTGIJZLWFL3IBSSXAVCNFSM6AAAAABRR2MNVOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZTGY2TSNA>
.
You are receiving this because you commented.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Mounting Additional Storage in OMV LXC on Proxmox
This guide explains how to mount additional storage in an OpenMediaVault (OMV) container running on Proxmox Virtual Environment (PVE).
Prerequisites
Steps
1. Create OMV LXC Container
Create an OMV LXC container on your Proxmox host using the corresponding script. Ensure the container is set to "Privileged" during creation.
2. Add Storage Mount Point
/data
.3. Find Block Device IDs
lvdisplay
in the Proxmox shell./dev/pve/vm-<CT_ID>-disk-X
.4. Create Mount Hook Script
253 9
with the block device numbers you found in the previous step.5. Add Hook to LXC Config
Edit the LXC config file:
6. Start the OMV Container
Start the OMV container.
7. Mount the Storage
/dev/sda1
.At this point, the additional storage should be available in the OMV interface. You can then create shares, set permissions, and use the storage as needed.
Please note that some users reported issues with this method, particularly around the block device numbers changing after a reboot. In such cases, you may need to modify the mount hook script to use the LVM volume UUID instead of the block device numbers.
Original-Thread: tteck/Proxmox#1075
Beta Was this translation helpful? Give feedback.
All reactions