[Solved] HELP needed with USB drive

Kornelius777

Member
Nov 6, 2022
35
1
13
Dear all,

I've set up my Raspberry Pi with the Operating System on a (USB-) SSD

Also (on a (2nd) partition), all guest disks are located.

Now, something stupid:

One of those guests is my home automation system, and I have several USB sensors connected to the Raspberry.
I wanted to hand through the sensors - and got the USB SSD!

Which file will I need to edit to get this mistake out of the system?

Thank you all kindly!
 
Yes, its the mountpoint for the PMXCFS filesystem thats mount the configs stored in in SQLite DB there. So if your pve-cluster service isn't running, that folder is empty, as the PMXCFS isn't working.
 
I thought Raspis couldn`t run VMs. If its a VM then its stored in the VMs config file in /etc/pve/qemu-server/YourVMID.conf
 
I do have snapshots of the guests, though - on the 2nd partition.
Is there a way to delete this SQLite database?
Just shred it and start from zero?
How would I accomplish that?
 
Last edited:
Maybe you could add something like this to /etc/fstab:
Code:
@reboot root mv /etc/pve/qemu-server/VmidOfYourHaVm.conf /etc/pve/qemu-server/VmidOfYourHaVm.conf.backup
With luck its fast enough and will rename the config file at reboot, before that home assistant VM is started passing through the USB SSD.
 
Actually, I was lucky enough to get a ssh connection to the host before the guests started.
And with your answers, you pointed me into the right direction.
I found the host config and could revert this ... well... stupidity.

Thank you again!
 
Yes, when working with passthrough you should always disable autostart of the guest when testing new configs or removing/adding hardware. So that you don't run into this problem in the first place.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!