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
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!