Hello, i'm working with VirtualBox by command line.
I'd like to know how to get the ip address of my virtual machine from command line.
Thanks in advance
How to get VM ip address from command line
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: How to get VM ip address from command line
From within the guest use terminal or command window.
ifconfig -a (Linux) ipconfig /all (Windows)
ifconfig -a (Linux) ipconfig /all (Windows)
-
- Posts: 12
- Joined: 24. Feb 2010, 12:39
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Ubuntu 9.10
Re: How to get VM ip address from command line
perry i mean how to get ip address of the vm from the command line of the os where virtualbox is installed
-
- Volunteer
- Posts: 829
- Joined: 27. Sep 2008, 06:18
- Primary OS: Mac OS X Leopard
- VBox Version: PUEL
- Guest OSses: linux,xp,win7
- Location: Luleå or Skellefteå, Sweden
Re: How to get VM ip address from command line
Try VBoxManage guestproperty enumerate <MachineName>
there you find:
Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 10.0.2.15, timestamp: 1267018722416154000, flags:
there you find:
Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 10.0.2.15, timestamp: 1267018722416154000, flags:
-
- Posts: 12
- Joined: 24. Feb 2010, 12:39
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Ubuntu 9.10
Re: How to get VM ip address from command line
thanks a lot baf
Re: How to get VM ip address from command line
Ip of the phpvirtualbox then port
Example:
192.168.0.10:9000
In the Remote Desktop of Windows
Example:
192.168.0.10:9000
In the Remote Desktop of Windows