VirtualBox Commands

Show list of available VM's

$ VBoxManage list vms

"MapR-Sandbox-For-Apache-Drill-1.6.0-5.1.0" {0a8bb6e6-7a7b-421e-9dcb-fa0aad0a37e3}

"server01" {53db4cba-5115-4fbe-bf2e-8067170771b4}

"server02" {c1d33ac1-fddf-4c07-8039-1eb7f055caae}

"server03" {d8c13762-d6a7-4149-b418-4e79f37954d2}

"server04" {90e021a6-691e-4165-b5d8-8dfa1f947669}

Start server01 vm

$ VBoxManage startvm "server01" --type headless

Show running vms

$ VBoxManage list runningvms

Check status of a particular vm

$ VBoxManage showvminfo server01

Turn off a vm

$ VBoxManage controlvm server01 poweroff

Import VM

$ vboxmanage import /wd/software/MapR-Sandbox-For-Hadoop-6.0.1.ova

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Interpreting /wd/software/MapR-Sandbox-For-Hadoop-6.0.1.ova...

OK.

Disks:

vmdisk1 10632560640 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized MapR-Sandbox-For-Hadoop-6.0.1-disk001.vmdk -1 -1

vmdisk2 21474836480 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized MapR-Sandbox-For-Hadoop-6.0.1-disk002.vmdk -1 -1


Virtual system 0:

0: Suggested OS type: "RedHat_64"

(change with "--vsys 0 --ostype <type>"; use "list ostypes" to list all possible values)

1: Suggested VM name "MapR-Sandbox-For-Hadoop-6.0.1"

(change with "--vsys 0 --vmname <name>")

2: Number of CPUs: 2

(change with "--vsys 0 --cpus <n>")

3: Guest memory: 6144 MB

(change with "--vsys 0 --memory <MB>")

4: Sound card (appliance expects "", can change on import)

(disable with "--vsys 0 --unit 4 --ignore")

5: Network adapter: orig NAT, config 3, extra slot=0;type=NAT

6: IDE controller, type PIIX4

(disable with "--vsys 0 --unit 6 --ignore")

7: IDE controller, type PIIX4

(disable with "--vsys 0 --unit 7 --ignore")

8: Hard disk image: source image=MapR-Sandbox-For-Hadoop-6.0.1-disk001.vmdk, target path=/home/abasar/VirtualBox VMs/MapR-Sandbox-For-Hadoop-6.0.1/MapR-Sandbox-For-Hadoop-6.0.1-disk001.vmdk, controller=6;channel=0

(change target path with "--vsys 0 --unit 8 --disk path";

disable with "--vsys 0 --unit 8 --ignore")

9: Hard disk image: source image=MapR-Sandbox-For-Hadoop-6.0.1-disk002.vmdk, target path=/home/abasar/VirtualBox VMs/MapR-Sandbox-For-Hadoop-6.0.1/MapR-Sandbox-For-Hadoop-6.0.1-disk002.vmdk, controller=7;channel=1

(change target path with "--vsys 0 --unit 9 --disk path";

disable with "--vsys 0 --unit 9 --ignore")

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Successfully imported the appliance.


Set memory

$ vboxmanage modifyvm "MapR-Sandbox-For-Hadoop-6.0.1" --memory 11024

Show configuration of a VM

$ vboxmanage showvminfo "MapR-Sandbox-For-Hadoop-6.0.1"

Name: MapR-Sandbox-For-Hadoop-6.0.1

Groups: /

Guest OS: Red Hat (64-bit)

UUID: 08ca272d-1a9a-45d8-89a7-e8443aca988e

Config file: /home/abasar/VirtualBox VMs/MapR-Sandbox-For-Hadoop-6.0.1/MapR-Sandbox-For-Hadoop-6.0.1.vbox

Snapshot folder: /home/abasar/VirtualBox VMs/MapR-Sandbox-For-Hadoop-6.0.1/Snapshots

Log folder: /home/abasar/VirtualBox VMs/MapR-Sandbox-For-Hadoop-6.0.1/Logs

Hardware UUID: 08ca272d-1a9a-45d8-89a7-e8443aca988e

Memory size: 11024MB

Page Fusion: off

VRAM size: 8MB

CPU exec cap: 100%

HPET: off

Chipset: piix3

Firmware: BIOS

Number of CPUs: 2

PAE: on

Long Mode: on

Triple Fault Reset: off

APIC: on

X2APIC: on

CPUID Portability Level: 0

CPUID overrides: None

Boot menu mode: message and menu

Boot Device (1): HardDisk

Boot Device (2): DVD

Boot Device (3): Not Assigned

Boot Device (4): Not Assigned

ACPI: on

IOAPIC: on

BIOS APIC mode: APIC

Time offset: 0ms

RTC: local time

Hardw. virt.ext: on

Nested Paging: on

Large Pages: on

VT-x VPID: on

VT-x unr. exec.: on

Paravirt. Provider: Default

Effective Paravirt. Provider: KVM

State: powered off (since 2018-05-01T01:41:21.000000000)

Monitor count: 1

3D Acceleration: off

2D Video Acceleration: off

Teleporter Enabled: off

Teleporter Port: 0

Teleporter Address:

Teleporter Password:

Tracing Enabled: off

Allow Tracing to Access VM: off

Tracing Configuration:

Autostart Enabled: off

Autostart Delay: 0

Default Frontend:

Storage Controller Name (0): IDE Controller

Storage Controller Type (0): PIIX4

Storage Controller Instance Number (0): 0

Storage Controller Max Port Count (0): 2

Storage Controller Port Count (0): 2

Storage Controller Bootable (0): on

IDE Controller (0, 0): /home/abasar/VirtualBox VMs/MapR-Sandbox-For-Hadoop-6.0.1/MapR-Sandbox-For-Hadoop-6.0.1-disk001.vmdk (UUID: 11a33d02-f84d-4677-b61e-2b9bab768f10)

IDE Controller (1, 1): /home/abasar/VirtualBox VMs/MapR-Sandbox-For-Hadoop-6.0.1/MapR-Sandbox-For-Hadoop-6.0.1-disk002.vmdk (UUID: 4ac46ebf-5fc6-460f-b4f4-c944a6252802)

NIC 1: MAC: 080027C3CB0F, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none

NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)

NIC 1 Rule(0): name = HSHTTP, protocol = tcp, host ip = 127.0.0.1, host port = 19888, guest ip = , guest port = 19888

NIC 1 Rule(1): name = HSUISecure, protocol = tcp, host ip = 127.0.0.1, host port = 19890, guest ip = , guest port = 19890

NIC 1 Rule(2): name = HiveServer, protocol = tcp, host ip = 127.0.0.1, host port = 10000, guest ip = , guest port = 10000

NIC 1 Rule(3): name = HiveServer2, protocol = tcp, host ip = 127.0.0.1, host port = 10001, guest ip = , guest port = 10001

NIC 1 Rule(4): name = Httpfs, protocol = tcp, host ip = 127.0.0.1, host port = 14000, guest ip = , guest port = 14000

NIC 1 Rule(5): name = HueBeeswax, protocol = tcp, host ip = 127.0.0.1, host port = 8002, guest ip = , guest port = 8002

NIC 1 Rule(6): name = HueWeb, protocol = tcp, host ip = 127.0.0.1, host port = 8888, guest ip = , guest port = 8888

NIC 1 Rule(7): name = JobTrackerUI, protocol = tcp, host ip = 127.0.0.1, host port = 50030, guest ip = , guest port = 50030

NIC 1 Rule(8): name = NodeManagerUI, protocol = tcp, host ip = 127.0.0.1, host port = 8042, guest ip = , guest port = 8042

NIC 1 Rule(9): name = Oozie, protocol = tcp, host ip = 127.0.0.1, host port = 11000, guest ip = , guest port = 11000

NIC 1 Rule(10): name = OozieHTTPS, protocol = tcp, host ip = 127.0.0.1, host port = 11443, guest ip = , guest port = 11443

NIC 1 Rule(11): name = ResourceManagerUI, protocol = tcp, host ip = 127.0.0.1, host port = 8088, guest ip = , guest port = 8088

NIC 1 Rule(12): name = SecureNodeManagerUI, protocol = tcp, host ip = 127.0.0.1, host port = 8044, guest ip = , guest port = 8044

NIC 1 Rule(13): name = SecureResourceManagerUI, protocol = tcp, host ip = 127.0.0.1, host port = 8090, guest ip = , guest port = 8090

NIC 1 Rule(14): name = SparkApplication, protocol = tcp, host ip = 127.0.0.1, host port = 7077, guest ip = , guest port = 7077

NIC 1 Rule(15): name = SparkDriver, protocol = tcp, host ip = 127.0.0.1, host port = 4040, guest ip = , guest port = 4040

NIC 1 Rule(16): name = SparkHistory, protocol = tcp, host ip = 127.0.0.1, host port = 18080, guest ip = , guest port = 18080

NIC 1 Rule(17): name = SparkMaster, protocol = tcp, host ip = 127.0.0.1, host port = 8080, guest ip = , guest port = 8080

NIC 1 Rule(18): name = SparkWorker, protocol = tcp, host ip = 127.0.0.1, host port = 8081, guest ip = , guest port = 8081

NIC 1 Rule(19): name = Sqoop2Server, protocol = tcp, host ip = 127.0.0.1, host port = 12000, guest ip = , guest port = 12000

NIC 1 Rule(20): name = TaskTrackerUI, protocol = tcp, host ip = 127.0.0.1, host port = 50060, guest ip = , guest port = 50060

NIC 1 Rule(21): name = YarnJobSubmission, protocol = tcp, host ip = 127.0.0.1, host port = 8032, guest ip = , guest port = 8032

NIC 1 Rule(22): name = YarnTimeline, protocol = tcp, host ip = 127.0.0.1, host port = 8188, guest ip = , guest port = 8188

NIC 1 Rule(23): name = YarnTimelineSecure, protocol = tcp, host ip = 127.0.0.1, host port = 8190, guest ip = , guest port = 8190

NIC 1 Rule(24): name = cldbweb, protocol = tcp, host ip = 127.0.0.1, host port = 7221, guest ip = , guest port = 7221

NIC 1 Rule(25): name = drill, protocol = tcp, host ip = 127.0.0.1, host port = 8047, guest ip = , guest port = 8047

NIC 1 Rule(26): name = drillbit, protocol = tcp, host ip = 127.0.0.1, host port = 31010, guest ip = , guest port = 31010

NIC 1 Rule(27): name = maprfs, protocol = tcp, host ip = 127.0.0.1, host port = 5660, guest ip = , guest port = 5660

NIC 1 Rule(28): name = mcs, protocol = tcp, host ip = 127.0.0.1, host port = 8443, guest ip = , guest port = 8443

NIC 1 Rule(29): name = nfs, protocol = tcp, host ip = 127.0.0.1, host port = 2049, guest ip = , guest port = 2049

NIC 1 Rule(30): name = nfs2, protocol = tcp, host ip = 127.0.0.1, host port = 111, guest ip = , guest port = 111

NIC 1 Rule(31): name = nfsmgmt, protocol = tcp, host ip = 127.0.0.1, host port = 9998, guest ip = , guest port = 9998

NIC 1 Rule(32): name = nfsmon, protocol = tcp, host ip = 127.0.0.1, host port = 9997, guest ip = , guest port = 9997

NIC 1 Rule(33): name = ssh, protocol = tcp, host ip = 127.0.0.1, host port = 2222, guest ip = , guest port = 22

NIC 2: disabled

NIC 3: disabled

NIC 4: disabled

NIC 5: disabled

NIC 6: disabled

NIC 7: disabled

NIC 8: disabled

Pointing Device: PS/2 Mouse

Keyboard Device: PS/2 Keyboard

UART 1: disabled

UART 2: disabled

UART 3: disabled

UART 4: disabled

LPT 1: disabled

LPT 2: disabled

Audio: enabled (Driver: PulseAudio, Controller: AC97, Codec: STAC9700)

Clipboard Mode: disabled

Drag and drop Mode: disabled

VRDE: enabled (Address 127.0.0.1, Ports 5903, MultiConn: off, ReuseSingleConn: off, Authentication type: null)

Video redirection: disabled

VRDE property: TCP/Ports = "5903"

VRDE property: TCP/Address = "127.0.0.1"

USB: disabled

EHCI: disabled

XHCI: disabled


USB Device Filters:


<none>


Bandwidth groups: <none>


Shared folders: <none>


Video capturing: not active

Capture screens: 0

Capture file: /home/abasar/VirtualBox VMs/MapR-Sandbox-For-Hadoop-6.0.1/MapR-Sandbox-For-Hadoop-6.0.1.webm

Capture dimensions: 1024x768

Capture rate: 512 kbps

Capture FPS: 25


Guest:


Configured memory balloon size: 0 MB


View the state of the VM

$ vboxmanage showvminfo "MapR-Sandbox-For-Hadoop-6.0.1" | grep -i state

State: running (since 2018-07-01T03:25:08.431000000)