[solved] Virsh autostart not working (edit: permission error)

after a reboot i need to run virsh start pfsense inspite of autostart being enabled as far as i can tell, any idea what i am missing?

running ubuntu server 22.04 (headless)

i have tried removing autostart and re-applying it as well as using systemctl enable libvirtd

i basically cloned my /etc/libvirt folder when i setup new drives, i had it working on the old install, but i can’t seem to get it working on this one

$ virsh dominfo pfsense
Id:             2
Name:           pfsense
UUID:           1a98be77-f026-4c33-b471-d3fceefbbe1a
OS Type:        hvm
State:          running
CPU(s):         2
CPU time:       239.3s
Max memory:     4194304 KiB
Used memory:    4194304 KiB
Persistent:     yes
Autostart:      enable
Managed save:   no
Security model: apparmor
Security DOI:   0
Security label: libvirt-1a98be77-f026-4c33-b471-d3fceefbbe1a (enforcing)

/etc/libvirt$ sudo tree
.
├── hooks
├── libvirt-admin.conf
├── libvirt.conf
├── libvirtd.conf
├── libxl-lockd.conf
├── libxl-sanlock.conf
├── libxl.conf
├── lxc.conf
├── nwfilter
│   ├── allow-arp.xml
│   ├── allow-dhcp-server.xml
│   ├── allow-dhcp.xml
│   ├── allow-dhcpv6-server.xml
│   ├── allow-dhcpv6.xml
│   ├── allow-incoming-ipv4.xml
│   ├── allow-incoming-ipv6.xml
│   ├── allow-ipv4.xml
│   ├── allow-ipv6.xml
│   ├── clean-traffic-gateway.xml
│   ├── clean-traffic.xml
│   ├── no-arp-ip-spoofing.xml
│   ├── no-arp-mac-spoofing.xml
│   ├── no-arp-spoofing.xml
│   ├── no-ip-multicast.xml
│   ├── no-ip-spoofing.xml
│   ├── no-ipv6-multicast.xml
│   ├── no-ipv6-spoofing.xml
│   ├── no-mac-broadcast.xml
│   ├── no-mac-spoofing.xml
│   ├── no-other-l2-traffic.xml
│   ├── no-other-rarp-traffic.xml
│   ├── qemu-announce-self-rarp.xml
│   └── qemu-announce-self.xml
├── qemu
│   ├── autostart
│   │   └── pfsense.xml -> /etc/libvirt/qemu/pfsense.xml
│   ├── networks
│   │   └── autostart
│   └── pfsense.xml
├── qemu-lockd.conf
├── qemu-sanlock.conf
├── qemu.conf
├── secrets
├── storage
│   ├── Downloads.xml
│   ├── autostart
│   │   ├── Downloads.xml -> /etc/libvirt/storage/Downloads.xml
│   │   ├── default.xml -> /etc/libvirt/storage/default.xml
│   │   └── images.xml -> /etc/libvirt/storage/images.xml
│   ├── default.xml
│   └── images.xml
├── virtlockd.conf
└── virtlogd.conf

9 directories, 44 files
/etc/libvirt$ ls -l qemu
total 12
drwxr-xr-x 2 root root 4096 Nov 14 01:43 autostart
drwxr-xr-x 3 root root 4096 Nov 12 18:14 networks
-rw------- 1 root root 3717 Nov 12 18:15 pfsense.xml


/etc/libvirt$ ls -l qemu/autostart/
total 0
lrwxrwxrwx 1 root root 29 Nov 14 01:43 pfsense.xml -> /etc/libvirt/qemu/pfsense.xml

edit:

Nov 14 01:59:41 niceserver libvirtd[1194]: Unable to read from monitor: Connection reset by peer
Nov 14 01:59:41 niceserver libvirtd[1194]: internal error: qemu unexpectedly closed the monitor: Could not access KVM kernel module: Permission denied
                                           2022-11-14T01:59:41.963737Z qemu-system-x86_64: -accel kvm: failed to initialize kvm: Permission denied
Nov 14 01:59:41 niceserver libvirtd[1194]: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
                                           2022-11-14T01:59:41.963737Z qemu-system-x86_64: -accel kvm: failed to initialize kvm: Permission denied
Nov 14 01:59:42 niceserver libvirtd[1194]: internal error: Failed to autostart VM 'pfsense': internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
                                           2022-11-14T01:59:41.963737Z qemu-system-x86_64: -accel kvm: failed to initialize kvm: Permission denied

edit: after going through my /etc/groups the only note worth difference i could find was my user account not in the kvm group, maybe that is/was the issue?

final edit: that was it, had to add my user to the kvm group, now it works