Running in Headless mode with non standard file structure
Posted: 29. Oct 2020, 18:33
Just want so say I'm new to this so some go easy.
I installed a VirtualBox to D:\VirualBox (I didnt see the spelling error at the time)
I set up the VM install location to D:\VB os's\ (so there is a Debian folder with the logs, snapshots, Debian.vbox , Debian.vdi, etc inside)
I also was trying things so I set up a batch script in C:\Users\bryce (default cmd directory) that says (see below) so I dont have to change directory every time
I want to run headless mode and ssh into the server because I feel it is easier (things like monitor scaling, pasting, etc). After researching some I found this script-
When I change it to say {"Debian"} and run it in cmd I get-
I next tried it at D:\VirualBox and got-
As a last resort I tried it at D:\VB os's and got
How do I run headless mode with a non stand file structure?
Can I write a batch script to do this from desktop?
How do I modify that script for other VM in the future?
Any help would be greatly appreciated and welcomed.
I installed a VirtualBox to D:\VirualBox (I didnt see the spelling error at the time)
I set up the VM install location to D:\VB os's\ (so there is a Debian folder with the logs, snapshots, Debian.vbox , Debian.vdi, etc inside)
I also was trying things so I set up a batch script in C:\Users\bryce (default cmd directory) that says (see below) so I dont have to change directory every time
Code: Select all
@echo off
"D:\VirualBox\VBoxManage.exe" %*Code: Select all
vboxmanage startvm {"vmname" or UUID} --type headless Code: Select all
VBoxManage.exe: error: Could not find a registered machine named '{Debian}'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBoxWrap, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(pszVM).raw(), machine.asOutParam())" at line 722 of file VBoxManageMisc.cppCode: Select all
VBoxManage.exe: error: Could not find a registered machine named '{Debian}'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBoxWrap, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(pszVM).raw(), machine.asOutParam())" at line 722 of file VBoxManageMisc.cppCode: Select all
'vboxmanage' is not recognized as an internal or external command,
operable program or batch file.Can I write a batch script to do this from desktop?
How do I modify that script for other VM in the future?
Any help would be greatly appreciated and welcomed.