Unable to install hacs in haos in virtualbox

i am very new to HAOS, created a new VM using virtualbox using haos vdi in windows 11 and was able to connect to it through ssh and terminal addon, but when i try to install hacs using get hacs xyz using ssh it says error version current version is not new enough needs atleast target version and i am using latest 12.4 haos with 12.7.1 core and below that line it says installation complete and remember to restart homeassistant which i did and also cleared browser cache but the like below says else followed by “could not find directory for homeassistant” false, manually change the directory to the root of your homeassistant config with the user that is running homeassistant and i have no clue, any help appreciated greatly.