VboxMange guestcomtrol copyto broken in VirtualBox5

Discussions related to using VirtualBox on Linux hosts.
Post Reply
nullfrog
Posts: 2
Joined: 19. Jul 2015, 18:50

VboxMange guestcomtrol copyto broken in VirtualBox5

Post 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 ?
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: VboxMange guestcomtrol copyto broken in VirtualBox5

Post 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.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
nullfrog
Posts: 2
Joined: 19. Jul 2015, 18:50

Re: VboxMange guestcomtrol copyto broken in VirtualBox5

Post by nullfrog »

Version 5 guest additions is installed and starting correctly, details in attached Vbox_min_info.txt
so not that.
Attachments
vboxinfo.zip
guest logs and min info
(56.54 KiB) Downloaded 8 times
Paul43
Posts: 5
Joined: 3. Feb 2015, 21:56

Re: VboxMange guestcomtrol copyto broken in VirtualBox5

Post by Paul43 »

I'm encountering the same problems. Info attached.
Attachments
vbox-info.zip
(41.39 KiB) Downloaded 5 times
pentagonik
Oracle Corporation
Posts: 309
Joined: 19. May 2008, 16:09
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Too many to specify!
Contact:

Re: VboxMange guestcomtrol copyto broken in VirtualBox5

Post 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.
Post Reply