Virtualboxplugin Vboxmanage

  • Hi !


    I have installed the vboxplugin and have a running virtual machine (Ubuntu 12.04). This works fine.


    Now i was playing around with vboxmanage and wanted to list the vm's


    Code
    VBoxManage list vms


    The problem is i get no output and so i cannot shutdown the VM with vboxmanage:


    Code
    VBoxManage controlvm Server-VM acpipowerbutton


    I get this error:



    Code
    VBoxManage: error: Could not find a registered machine named 'Server-VM'
    VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
    VBoxManage: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())" at line 95 of file VBoxManageControlVM.cpp


    Do i need anything else to install ?


    I cannot find the error.


    Thanks for your reply.


    Greets Karl.

  • seems that that solved my problem ... int the separate shell i can use the vboxmanage tool.


    I want to make me a script which can be executed once a week by cron to backup the Vbox.


    For this i first wanted to stop the VM, then copy the data to the backup location and then to restart the VM.


    Or is that somehow out of the box possible with OMV or the vbox plugin ?

    • Offizieller Beitrag

    While you might not want to use poweroff (try acpipowerbutton), this should work (run as vbox user):


    VBoxManage controlvm "VMNAME" poweroff
    backup vm files
    VBoxManage startvm "VMNAME" --type headless

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!