Page 1 of 1

VboxMange guestcomtrol copyto broken in VirtualBox5

Posted: 19. Jul 2015, 21:47
by nullfrog
Linux Host : Fedora 22
Linux Guest : Oracle Enterprise Linux 6.6
VBox : 5.0.0r101573

I've written some basic scripts to help manage my linux VM, and since upgrading the VBoxManage guestcontrol copyto command fails to work

When I run the following, I don't get any errors, but the the file doesn't appear on the guest ...

Run Copy command ...

Code: Select all

[vbox@neotrantor auto_rac]$ VBoxManage guestcontrol "ASMRAC1" --verbose --username "root" --password "root123" copyto --target-directory "/root/" "/mnt/VirtMch/VirtBox/auto_rac/auto_vm_network.bash"

[vbox@neotrantor auto_rac]$ echo $?
0
Check whats in /root after ..

Code: Select all

[vbox@neotrantor auto_rac]$ VBoxManage guestcontrol ASMRAC1 run --exe /bin/ls --username root --password root123 -- ls /root
anaconda-ks.cfg
install.log
install.log.syslog

Also if I try the alternative syntax where you just specify <host-src0> and <guest-dst> , which looks valid to me I get an error

Code: Select all

[vbox@neotrantor auto_rac]$ VBoxManage guestcontrol "ASMRAC1" --verbose --username "root" --password "root123" copyto "/mnt/VirtMch/VirtBox/auto_rac/auto_vm_network.bash" "/root"
Oracle VM VirtualBox Command Line Management Interface Version 5.0.0
(C) 2005-2015 Oracle Corporation
All rights reserved.

Usage:

VBoxManage guestcontrol     <uuid|vmname> [--verbose|-v] [--quiet|-q]
                              [--username <name>] [--domain <domain>]
                              [--passwordfile <file> | --password <password>]
                              copyto [common-options]
                              [--dryrun] [--follow] [-R|--recursive]
                              <host-src0> [host-src1 [...]] <guest-dst>

                              copyto [common-options]
                              [--dryrun] [--follow] [-R|--recursive]
                              [--target-directory <guest-dst>]
                              <host-src0> [host-src1 [...]]


Syntax error: No destination specified!
These seems to be a bug, or am I doing something wrong ?

Re: VboxMange guestcomtrol copyto broken in VirtualBox5

Posted: 19. Jul 2015, 23:51
by noteirak
First guess: you did not update the guest additions inside your guest OS.
If you did, then read Minimum information needed for assistance and provide zipped attachment of the VM log file and the guest settings so we can investigate further.

Re: VboxMange guestcomtrol copyto broken in VirtualBox5

Posted: 20. Jul 2015, 09:47
by nullfrog
Version 5 guest additions is installed and starting correctly, details in attached Vbox_min_info.txt
so not that.

Re: VboxMange guestcomtrol copyto broken in VirtualBox5

Posted: 21. Jul 2015, 20:39
by Paul43
I'm encountering the same problems. Info attached.

Re: VboxMange guestcomtrol copyto broken in VirtualBox5

Posted: 21. Apr 2016, 15:11
by pentagonik
Please re-try with latest 5.0.18. Also keep in mind that the 5.0.18 Guest Additions needs to be installed. Thanks.