A simple http server(using echo) and virtualbox wrapper for controlling virtualbox vms remotly.
available commands:
status
on
off
setting
clone
delete
execute
transfer
upload
More details:
{
"command": "status",
"vmName": "VM1"
}
{
"command": "status"
}
{
"command": "delete",
"vmName": "VM1",
"status": "Ok"
}
{
"command": "on/off",
"vmName": "VM1"
}
{
"command": "setting",
"vmName": "VM1",
"cpu": 2,
"ram": 1024
}
{
"command": "clone",
"sourceVmName": "VM1",
"destVmName": "VM2"
}
{
"command": "execute",
"vmName": "VM1",
"input": "mkdir sina && touch sina.txt && ls"
}
{
"command": "transfer",
"originVM": "VM1",
"originPath": "/home/sina.txt",
"destVM": "VM2",
"destPath": "/home/temp/"
}
Upload file in multipart/form-data
format.
destPath
vmName
file