some VMs show "hardware" and some show "resources"???

JimLS

New Member
Mar 20, 2025
15
0
1
Trying to allow a vm access to PCI audio. I installed haos (home assistant) and see under hardware I can add sound hardware directly. But under a zoneminder install the selections are different and I don't see "hardware". Closest is "resources" and selections are different. Can someone explain this or point me to some info? I installed Alpine to use for some of this and it has the same limitations as my zoneminder vm. Seems like I need a "full" OS vm to get the hardware option? The stuff I want to run with USB and audio are some simple scripts and realized I could just run them on another vm so don't really need Alpine - just haven't deleted it yet and noticed it has similar selections to the zoneminder vm - I can't do direct hardware pass through on either one.
 
where would I read up on those? Sounds like I want a VM.
Section 10 and 11 in the manual: https://pve.proxmox.com/pve-docs/pve-admin-guide.html . Use PCI(e) passthrough for VMs and dev-node passthrough for containers, but that intentionally "breaks" the virtual abstraction level and comes with all kinds of caveats. Search the forum and the Wiki for more experiences from other people.
 
Looks like it is possible to pass through PCIe audio hardware in an LXC but more complicated than a VM. Thinking I may just punt and go with a VM. Is an LXC enough better (as far as resources seems to be the main thing) that I should stick with an LXC and figure out the audio? I also need to do a USB serial port (Arduino). Alternate is to do a really basic VM with something like Alpine (current one is in an LXC container but I could change that). Or perhaps run the scripts on the HAOS VM if possible as it is already a VM.
 
No idea what "scripts" you are trying to run - but be aware running any scripts blindly can/will break any system.

Or perhaps run the scripts on the HAOS VM if possible as it is already a VM.
HAOS is a dedicated OS for running Home Assistant which is a home automation manager (as it says on the lid) - why would you start running other foreign "scripts" inside that? BTW, if you've installed the official HAOS, you will most likely not be able to run out-of-the-box "any script" - as they have pretty much controlled/locked down the supervised OS (and very admirably so!).

IDK your HV or general Linux experience/expertise - but it looks like you are a novice at least as far as PVE is concerned - my advice would therefore be to spin up a new VM, & do what you like within that VM - as usually within a VM (best isolation) you won't cause much damage to the host environment.

The last advice I have is - make backups of any data you value - you WILL regret it if you don't!
 
  • Like
Reactions: UdoB