VBoxManage guestcontrol -- unable to pass arguments

Discussions about using Linux guests in VirtualBox.
Post Reply
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

VBoxManage guestcontrol -- unable to pass arguments

Post by Technologov »

I did:
C:\Program Files\Oracle\VirtualBox>VBoxManage --nologo guestcontrol execute "Fed
ora 14 64-bit" "/bin/uname" --arguments "-a" --username foo --password
bar --wait-for stdout

with the goal to run:
$ uname -a

but I got output of 'uname' only.

Any ideas?

--
-Alexey Eromenko "Technologov"
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxManage guestcontrol -- unable to pass arguments

Post by Perryg »

Code: Select all

VBoxManage guestcontrol Ubuntu-10.10 execute --image /bin/uname --username foo --password bar --wait-stdout -- -a
Use the 8.2 Commands overview. It looks to me like the 8.29 is written wrong(in my user manual anyway)
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: VBoxManage guestcontrol -- unable to pass arguments

Post by Technologov »

--image ???

No such parameter exists.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxManage guestcontrol -- unable to pass arguments

Post by Perryg »

I am running 4.0.51 as I said read your Chapter 8.2 to see what your syntax is. I tested the command before I posted it so I know it works.
Or run VBoxManage guestcontrol in your terminal without arguments to see what the syntax is.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxManage guestcontrol -- unable to pass arguments

Post by Perryg »

Here is from 4.0.4

Code: Select all

VBoxManage guestcontrol execute Ubuntu-10.04 /bin/uname --username foo --password bar --arguments -a --wait-for stdout
Results

Code: Select all

Linux perry-ubuntu 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux
Post Reply