I have VirtualBox set up on a server. It was set up as a Bridged VM, and has an IP address. It's now running in headless mode, started with "VBoxHeadless -s PuppetMaster".
How can I find out what IP the VM is using VBoxManage?
I have VirtualBox set up on a server. It was set up as a Bridged VM, and has an IP address. It's now running in headless mode, started with "VBoxHeadless -s PuppetMaster".
How can I find out what IP the VM is using VBoxManage?
I could find my Headless VB with the combination of following commands:
But even easier: in linux, you can connect to the VB:
This command will open a shell window, and you'll have direct access to the Headless VB, where you can retrieve your Headless VB IP: ip addr
Install guest additions and (assuming linux is the guest) you can run the following:
You can get it directly using this command:
Not sure if VBoxManage can give you that information directly. What you can do is run the following command to see the network card configuration.
That will if nothing else will provide you with the MAC address, allowing you to find out the actual ip address by other means.
From virtualbox.org forum --
VBoxManage guestproperty get <vm-name> "/VirtualBox/GuestInfo/Net/0/V4/IP" | cut -f2 -d " "