Page 2 of 3

Re: Cannot get an ip address from the guest VM

Posted: 1. Jun 2013, 01:16
by Naga
I have this version 4.2.12 of VirtualBox running..FYI

Re: Cannot get an ip address from the guest VM

Posted: 1. Jun 2013, 01:18
by Perryg
Maybe one of the MODs that has the current release will test this again. In the mean time I will see about installing myself.

Re: Cannot get an ip address from the guest VM

Posted: 1. Jun 2013, 01:23
by Naga
Sure, thanks so much..

Re: Cannot get an ip address from the guest VM

Posted: 1. Jun 2013, 02:15
by Perryg
Sorry for taking so long but my laptop was compiling and it is where I had the release version 4.2.12
This guest I have (3) test adapters and they all enumerate. Maybe it has something to do with you using a Mac, but I wouldn't think that would have anything to do with it. At this point I am at a loss as to why this is not working for you. Maybe a Mac user will try this for you and let you know if it works for them or not.

Code: Select all

perry@perry-laptop ~ $ VBoxManage guestproperty enumerate Mint-14
Name: /VirtualBox/GuestInfo/OS/Product, value: Linux, timestamp: 1370045303992908000, flags: 
Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 10.0.2.15, timestamp: 1370045304307941000, flags: 
Name: /VirtualBox/HostInfo/GUI/LanguageID, value: en_US, timestamp: 1370045264637186000, flags: 
Name: /VirtualBox/GuestInfo/Net/0/MAC, value: 0800275323E7, timestamp: 1370045304309067000, flags: 
Name: /VirtualBox/GuestInfo/OS/ServicePack, value: , timestamp: 1370045303999675000, flags: 
Name: /VirtualBox/HostInfo/VBoxVerExt, value: 4.2.12, timestamp: 1370045264410072000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/1/Status, value: Up, timestamp: 1370045304311769000, flags: 
Name: /VirtualBox/GuestAdd/Vbgl/Video/SavedMode, value: 1287x766x32, timestamp: 1370045321621280000, flags: 
Name: /VirtualBox/GuestInfo/Net/1/V4/Broadcast, value: 192.168.1.255, timestamp: 1370045304310687000, flags: 
Name: /VirtualBox/GuestInfo/Net/0/V4/Netmask, value: 255.255.255.0, timestamp: 1370045304308673000, flags: 
Name: /VirtualBox/GuestInfo/Net/1/V4/Netmask, value: 255.255.255.0, timestamp: 1370045304311059000, flags: 
Name: /VirtualBox/GuestInfo/Net/1/MAC, value: 08002703EB0D, timestamp: 1370045304311418000, flags: 
Name: /VirtualBox/GuestInfo/OS/Version, value: #46-Ubuntu SMP Mon Mar 25 20:00:05 UTC 2013, timestamp: 1370045303993820000, flags: 
Name: /VirtualBox/GuestInfo/Net/2/V4/Netmask, value: 255.255.255.0, timestamp: 1370045304321738000, flags: 
Name: /VirtualBox/GuestAdd/VersionExt, value: 4.2.12, timestamp: 1370045304014926000, flags: 
Name: /VirtualBox/GuestAdd/Revision, value: 84980, timestamp: 1370045304015291000, flags: 
Name: /VirtualBox/HostGuest/SysprepExec, value: , timestamp: 1370045264409485000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/OS/LoggedInUsers, value: 1, timestamp: 1370045324700586000, flags: TRANSIENT, TRANSRESET
Name: /VirtualBox/GuestInfo/Net/0/Status, value: Up, timestamp: 1370045304309624000, flags: 
Name: /VirtualBox/GuestInfo/Net/2/MAC, value: 0800270505AC, timestamp: 1370045304322394000, flags: 
Name: /VirtualBox/GuestInfo/Net/2/V4/IP, value: 10.0.0.10, timestamp: 1370045304312133000, flags: 
Name: /VirtualBox/GuestInfo/Net/2/V4/Broadcast, value: 10.0.0.255, timestamp: 1370045304312495000, flags: 
Name: /VirtualBox/HostGuest/SysprepArgs, value: , timestamp: 1370045264409525000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestAdd/Version, value: 4.2.12, timestamp: 1370045304014548000, flags: 
Name: /VirtualBox/HostInfo/VBoxRev, value: 84980, timestamp: 1370045264410103000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/0/V4/Broadcast, value: 10.0.2.255, timestamp: 1370045304308311000, flags: 
Name: /VirtualBox/HostInfo/VBoxVer, value: 4.2.12, timestamp: 1370045264410045000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/OS/LoggedInUsersList, value: mint, timestamp: 1370045324699997000, flags: TRANSIENT, TRANSRESET
Name: /VirtualBox/GuestInfo/Net/1/V4/IP, value: 192.168.1.108, timestamp: 1370045304310273000, flags: 
Name: /VirtualBox/GuestInfo/Net/2/Status, value: Up, timestamp: 1370045304322774000, flags: 
Name: /VirtualBox/GuestInfo/Net/Count, value: 3, timestamp: 1370045350131924000, flags: 
Name: /VirtualBox/GuestInfo/OS/Release, value: 3.5.0-27-generic, timestamp: 1370045303993489000, flags: 
Name: /VirtualBox/GuestInfo/OS/NoLoggedInUsers, value: false, timestamp: 1370045324700941000, flags: TRANSIENT, TRANSRESET
Name: /VirtualBox/GuestAdd/HostVerLastChecked, value: 4.2.51, timestamp: 1368898006312607000, flags: 
perry@perry-laptop ~ $ 

Re: Cannot get an ip address from the guest VM

Posted: 1. Jun 2013, 02:22
by noteirak
Can't seem to reproduce your issue either...
I've exported one of my own VMs and imported back. Regardless of how I do it, I have no issue with networking. I have tried on Windows 8 & Debian "Testing" hosts.

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage guestproperty enumerate SambaDC
Name: /VirtualBox/GuestInfo/OS/Product, value: Linux, timestamp: 1370045619376320200, flags:
Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 10.40.0.162, timestamp: 1370045619387324000, flags:
Name: /VirtualBox/HostInfo/GUI/LanguageID, value: C, timestamp: 1370045899659961600, flags:
Name: /VirtualBox/GuestInfo/Net/0/MAC, value: 080027A4039E, timestamp: 1370045619391325000, flags:
Name: /VirtualBox/GuestInfo/OS/ServicePack, value: , timestamp: 1370045619377321400, flags:
Name: /VirtualBox/HostInfo/VBoxVerExt, value: 4.2.12, timestamp: 1370045598120420501, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/0/V4/Netmask, value: 255.255.255.0, timestamp: 1370045619390824700, flags:
Name: /VirtualBox/GuestInfo/OS/Version, value: #1 SMP Debian 3.2.41-2, timestamp: 1370045619376821600, flags:
Name: /VirtualBox/GuestAdd/VersionExt, value: 4.2.6, timestamp: 1370045619380322300, flags:
Name: /VirtualBox/GuestAdd/Revision, value: 82870, timestamp: 1370045619380821800, flags:
Name: /VirtualBox/HostGuest/SysprepExec, value: , timestamp: 1370045598119920300, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/OS/LoggedInUsers, value: 0, timestamp: 1370045619384823100, flags: TRANSIENT, TRANSRESET
Name: /VirtualBox/GuestInfo/Net/0/Status, value: Up, timestamp: 1370045619392825400, flags:
Name: /VirtualBox/HostGuest/SysprepArgs, value: , timestamp: 1370045598119920301, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestAdd/Version, value: 4.2.6, timestamp: 1370045619379821300, flags:
Name: /VirtualBox/HostInfo/VBoxRev, value: 84980, timestamp: 1370045598120420502, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/0/V4/Broadcast, value: 10.40.0.255, timestamp: 1370045619389324700, flags:
Name: /VirtualBox/HostInfo/VBoxVer, value: 4.2.12, timestamp: 1370045598120420500, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/Count, value: 1, timestamp: 1370046159872351300, flags:
Name: /VirtualBox/GuestInfo/OS/Release, value: 3.2.0-4-amd64, timestamp: 1370045619376320201, flags:
Name: /VirtualBox/GuestInfo/OS/NoLoggedInUsers, value: true, timestamp: 1370045619385323000, flags: TRANSIENT, TRANSRESET

C:\Program Files\Oracle\VirtualBox>
I fear the issue is with the VM itself. Could you attach as zip the VM log file with a full session, where you have the issue?

Re: Cannot get an ip address from the guest VM

Posted: 3. Jun 2013, 19:33
by Naga
Hi Perry,
Thanks so much for your help. Possibly I may not be able to send VM or the logs before checking with my company policies. what I can do however is, try and see if I can setup a
webex session or something and show you. For now, as you are suspecting, may be for all I know it's a MAC issue so what I will try to do is spin up a Centos within my VirtualBox and
then install VirtualBox within and then try to run the command line. Is that supported?. Last time I tried it, it gave an error, it was about some accelaration..I stopped at that point.
I will pick from there.

I guess, at this point, because of my limitation of not being able to provide you the VM and the logs, I guess, I will keep this task on hold, if you by chance can get it working with
MAC, with luck, similar to my setup please do let me know, I should be able to try whatever you suggest. Meanwhile, I will enquire about policies here and see what I can share with you.

Re: Cannot get an ip address from the guest VM

Posted: 3. Jun 2013, 20:05
by Perryg
Do others in your company do the same thing and does it work for them?

Re: Cannot get an ip address from the guest VM

Posted: 3. Jun 2013, 20:21
by Naga
Hi Perry,
No, everyone uses the standard way, meaning, importing through the UI and be done. I have to use it with commandline because (1) my cluster is remote and I need a headless version and (2) I am the only one who is automating my product end-to-end and as I said, one of our application uses the VM, my automation also need to include bringing up the VM on the
virtualbox in automation(without the UI).

One possibility I can see is, currently I am doing it all on my laptop but once I move my code into production, it will be running in the cloud on a Ubuntu/Centos so that is why I am not
so frustrated if it does not indeed work on MAC.

Re: Cannot get an ip address from the guest VM

Posted: 3. Jun 2013, 20:31
by Perryg
Well if you have a Linux machine that you can use to verify that it is in fact a Mac issue then you could put this behind you. I just don't have one and it doesn't seem like anyone here that has a Mac is willing to see if it works for them. In the meantime, I'll try to contact someone that does here in a bit and see if the command works for them.

Re: Cannot get an ip address from the guest VM

Posted: 3. Jun 2013, 20:51
by Naga
Hi perry,
Sure, no problem, for now, as I am still have not moved the code to production, I can wait. When ever you get a chance to try it out let me know, atleast with this exercise, we will
know if it is a generic MAC issue or something to do with my setup. Based on that, I can make some calls.

Cheers and thanks for all your help.

Re: Cannot get an ip address from the guest VM

Posted: 3. Jun 2013, 21:47
by Perryg
Confirmed. The Mac does not produce all of the information that is available. Not sure why but at least you know,

Re: Cannot get an ip address from the guest VM

Posted: 3. Jun 2013, 22:07
by loukingjr
In defense of Perry I had given him incorrect info. My fault. So It may not be confirmed.

Re: Cannot get an ip address from the guest VM

Posted: 3. Jun 2013, 23:11
by Perryg
Sadly we are back to something in your code, or at least something on the host causing the issue I am afraid. Seeing Louis's enumeration is exactly like looking at mine.

I would be interested to see if you can do this on a different machine on your LAN and see if the results are the same.

Also instead of using VBoxManage startvm <guest> --type headless you might want to try VBoxHeadless -s <guest> instead. It may not make a difference but it is a lot easier to type.

Re: Cannot get an ip address from the guest VM

Posted: 4. Jun 2013, 22:30
by Naga
Hi Perry,
Sure, I will try your installing on non-MAC system but it will take me sometime and to answer your other question, yes, I had tried VBoxHeadless few times, I found both commands
to be the same from the user point of view, maybe implementation on the code side maybe different, would not matter much to me.

Re: Cannot get an ip address from the guest VM

Posted: 5. Jun 2013, 09:01
by noteirak
Maybe I missed that part in the topic here, but what is the actual VM IP, when you go check via the VM console directly?