![]() |
Qt SDK inside VMware - how to connect to N9 ?
Hi!
I'm rebuilding my development environment and to have finally a more clean system my plan is to put every SDK in a own VM using VMware. It works so far great but sadly I have some issues with mobile development. I'm unable to see the via USB to the host connected Nokia N9 in my VMware environment. My host (Windows 7 64bit) IP is 192.168.0.6, the IP of my VMware (Windows 7 32bit) is 192.168.0.103 - the to the host connected N9 has 192.168.2.15 I'm able to ping the N9 from my host system but it is not visible inside the VM. :confused: Any ideas, has anybody got this constellation working? |
Re: Qt SDK inside VMware - how to connect to N9 ?
Use network driver: bridged
You can find this under Virtual Machine Settings (ctrl + D) This way the VM will get direct acces to your network and not throug NAT, this might solve your situation. |
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
I'm able to connect via WiFi, in this case the N9 has the IP 192.168.0.108. But if I connect it via USB the IP is 192.168.2.15. I need to route somehow from 192.168.0.x to 192.168.2.x and I don't know how. :confused: The 192.168.2.15 is only visible at the desktop I have connected the device to. If I could make it public within my private network it should work for the N9 (and my other mobile devices which has the same problems) |
Re: Qt SDK inside VMware - how to connect to N9 ?
Try to connect the N9 to the VM and not to the host system.
|
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
|
Re: Qt SDK inside VMware - how to connect to N9 ?
You have the Oracle VM VirtualBox Extension Pack installed? You can patch through USB devices to the VM. It's as if you plug in USB devices directly into the VM. FWIW, I've used it recently to crack/root an Android device with it.
|
Re: Qt SDK inside VMware - how to connect to N9 ?
Helex,
I'm sorry if my answer will not be as precise as you asked but please read: When I started N9 development, I asked my dear friend N950 developer for help with USB problems. He asked me "Why do You use USB?" and ofcourse I did not know that there is a WiFi option. So I setup a fixed DHCP based IP address for my N9 on my router (although it never changed before) and setup WiFi link between N9 and Nokia QT SDK. So when I write code and want to test it, I just press the play (build&run) button in SDK and the app compiles, transfer to N9 via WiFi, installs automatically and runs on N9 with open debug link back to SDK on my PC. So I sugest that is the most pleasant way to use SDK in my opinion. The only problem is that I did not use the "developer" account but "user" account in order to make the best possible simulation of real world scenario. |
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
Your problem is, as you hint below, that the IP address assigned to the USB network (N9 <-> PC-USB) is on a different subnet than your other (WLAN, VM) addresses. The other solution would be to tweak the routing the table. With Windows that's a pretty complicated task. |
Re: Qt SDK inside VMware - how to connect to N9 ?
As I said on twitter, you should bridge all your VMs with the host machine. In this way, all Your network devices are in the same subnet, and all of them will be reachable. I use VMware only in this mode.
|
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
But I have a BlackBerry DevAlpha here, too. I have with it the same issues but at this device the only possible development mode is via the USB connection. I never got it via WiFi working and the IP Adress is very different: 169.254.0.1 So if I could solve the network routing issue if I connect my N9 via USB the chance is big to use the same solution for the BlackBerry device. The point of all this VM stuff is I wan't to seperate all SDK's I have on my system each in their own installation to minimize problems with the different environments, to do some testing without breaking everything and to avoid to slow down my host because of Qt4, Qt5, BB10 Beta, the Jolla SDK later this year, the old no longer maintained symbian stuff... |
Re: Qt SDK inside VMware - how to connect to N9 ?
I understand you. Right now I only have VisualStudio2012 installed :-) but when I reinstall qtSDK I don't mind mixing it on my primary OS. It does not do too much harm.
But back on-topic: I don't know how exactly USB connection works for N9 since I did not really use it! But you should be able to connect/disconnect each USB device to one (virtual)machine at a time, so try that. I cannot help You with USB very much since I don't have SDK installed right now, and that crap (honestly) takes hours to install. |
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
I were anyway surprised that I'm the first with this problem. :( Quote:
If I could make 169.254.0.1 and 192.168.2.15 visible to all devices within 192.168.0.* the problem should be solved. Hm, if nobody knows how this works I'm afraid I need to refresh my Network knowledge with some fundamental stuff from wikipedia. :confused: |
Re: Qt SDK inside VMware - how to connect to N9 ?
Open SDK connect app on N9, select USB and connect the cable. You'll see your IP address that you don't like.
Now click settings below and disable DHCP server so you can change the IP to the one that you like. I'm not sure this will help you at all, but you can try. I think your USB device (N9) is virtually attached to the wrong virtualmachine, or maybe even to the host. You must virtually disconnect N9 from current machine and connect it virtually to the VM that has QTSDK. You do that by clicking the icons AFAIR. |
Re: Qt SDK inside VMware - how to connect to N9 ?
just do VM -> Removeable devices -> N9 RNDIS xxxxxx -> connect.
Simple. I have exactly the same setup, running Qt SDK under a VM, don't have any issues even over wifi or USB. |
Re: Qt SDK inside VMware - how to connect to N9 ?
Yep, that's what I was trying to explain but don't remember where the buttons are.
|
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
So I thought I could get rid of all my problems by using VMs. Oh, I were so wrong... :D Quote:
So I guess the only finally working and best solution for every dev device I have here would be to make the different subnets visible to all devices in my network. Don't know why, google delivered so far only very confusing stuff... but I guess this is doable. |
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
I have my mouse there, keyboard, a gigaset landline phone, my external storage, the BlackBerry but not the N9. :( And as I wrote, I tried to reconnect with the blackberry, without success. |
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
The phone normally asks you which type of connection you want to use. If not they something is wrong (or you've defaulted it to not ask and use a specific connection type) |
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
The BlackBerry device in counterpart shows up as a icon in VMware but I'm unable to connect. It says always "the device is currently in use" - locked by the driver at the host. If I deinstall or deactivate the driver at the host system the corresponding usb icon at VMware disappears or I get a "driver error" if I'm fast enought. I wonder now why it works just fine with your N9 at your system. Could you please share your setup? I have over here Windows 7 64bit host, Windows 7 32 bit guest, VMware Player 5.0.0 build-812388. |
Re: Qt SDK inside VMware - how to connect to N9 ?
i'm running openSUSE 12.2 as host, opensuse 12.2 as guest using vmware workstation 9.
try this VM -> Hardware tab -> USB Controller -> Tick show all USB input devices. Or try this: with your guest in FULL screen mode and focused purely on the guest (open some windows in the guest or open notpad and type with the keyboard) plug in your N9 in this state and then select your connection type (SDK). Normally in full screen mode the guest takes control over USB devices rather than the host. |
Re: Qt SDK inside VMware - how to connect to N9 ?
No success. :(
I'm installing now Windows 7 64bit into the VM for the next try... Perhaps there are some issues with 32bit systems as guest because the host system are using 64bit drivers. |
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
I'd suggest trying maybe vmware player 4. and restarting your computer (fixes many things in Windows). EDIT: you may want to try this, right click on the vmware player shortcut and click run as administrator, that might fix this. Some threads on this issue: http://communities.vmware.com/thread/306248 http://superuser.com/questions/34304...ze-usb-devices |
Re: Qt SDK inside VMware - how to connect to N9 ?
After fiddling around the whole day trying to get it via the USB Network working I just found out how to connect Eclipse (BB SDK) to the BlackBerry device via WiFi. Just like it is possible at the Nokia N9 and C7.
The connection is not very reliable and quite slow compared to USB, but even better than nothing and wasting a again a whole day booting my desktop again and again until I get the routing across different subnets working. So, I guess I need to stick to WiFi until a unexpected wonder happens. :( Thanks for everyone who has tried to help me with my issue! I would have loved to post here a step by step guide how to get this at a ugly Windows 7 host working... but perhaps this honour is reserved for somebody else. :) |
Re: Qt SDK inside VMware - how to connect to N9 ?
That was a step by step guide in my post above.
From what I can tell something is wrong with your HOST usb drivers/device. Checkout the links above. FYI - If you want to get it working then re-install your HOST windows 7, and after installing virus scanner, the first thing you should install is vmware player - BEFORE installing ANY drivers! |
Re: Qt SDK inside VMware - how to connect to N9 ?
One more thing. If you want I can connect to your host via teamviewer (there is a linux rpm version) and have a look at it. I have no other ideas since everything *seems* to be covered in these three pages.
|
Re: Qt SDK inside VMware - how to connect to N9 ?
Quote:
Quote:
But I will test it at a spare Harddrive at my next day off and will update here if simply the installation of the host was screwed. :) Quote:
|
Re: Qt SDK inside VMware - how to connect to N9 ?
Just just need a bit more base knowledge about foundations you are building on. After that you'll be your own king! ;-)
|
All times are GMT. The time now is 09:16. |
vBulletin® Version 3.8.8