Oracle VirtualBox Snippets

Enumerate Guest Properties
VBoxManage guestproperty enumerate Youre_VM_Name_Here

Get IP (ipV4) Address Of Guest
VBoxManage guestproperty get Youre_VM_Name_Here /VirtualBox/GuestInfo/Net/0/V4/IP

Run Bash Command Inside Linux Guest
VBoxManage --nologo guestcontrol Youre_VM_Name_Here execute --image "/sbin/ifconfig" --username guestUser --password guestUserPassword --wait-exit --wait-stdout -- -a

NOTE: The above runs ifconfig

Download PDF
This entry was posted in Snippets, VirtualBox and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *