VirtualBox
Move VM

Move Virtual Machine

vboxmanage list vms

vboxmanage movevm myvmname --type basic --folder /myfolder/mysubfolder

Where myvmname is the vmname or the uuid as shown in the output from vboxmanage list vmsAnd /myfolder/mysubfolder represents the target directory (i.e. you will end up with a path like this: /myfolder/mysubfolder/myvmname)Note: movevm was introduced in VirtualBox 6, for earlier versions use the alternate GUI method (1)