On my Ubuntu 22.04 PC, the official Torizon VS Code Extension can see my Verdin iMX8M-Mini with Torizon running.
I can connect with ssh without issues.
Then I tried the new Torizon VS Code Extension v2 (ApolloX) and the Verdin is not found.
I see two items named as the Ubuntu 22.04 PC
thanks for trying to use ApolloX, having brave early adopters like you will help us a lot moving forward .
About your issue, yeah this behavior has been reported before but we have not been able to reproduce internally. Therefore, in cases where device detection on the network does not help, there is a way to manually connect the device:
and now I can see threeubuntu-2204 devices in NETWORK DEVICES.
Yesterday I saw only two of them.
I describe my environment, in case it can help.
my Ubuntu 22.04 is a Guest Virtual Machine (Virtualbox 7.0.4) installed on my Host Windows 10 PC
the network interface for the Guest is set to NAT
the Verdin is connected into an ethernet switch together with other devices (not Toradex SoMs) on the network 192.168.1.0/24
the IP of the Verdin is 192.168.1.99
Here are the logs, as you requested:
log for ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 08:00:27:81:43:e1 brd ff:ff:ff:ff:ff:ff
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
link/ether 02:42:a1:d6:c3:59 brd ff:ff:ff:ff:ff:ff
4: br-c60667dd5e4d: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
link/ether 02:42:1f:dd:b7:4f brd ff:ff:ff:ff:ff:ff
I see that in the nmap log the IP of Verdin is not shown. I can see IPs of other devices connected to my local network 192.168.1.0/24.
Let me know if I can help in some way.
I had installed here the VBox and download the osboxes image to try the same environment, and with the bridge network I was able to detect my local network devices successfully. Could you change your VM network config to bridge and try?
Hi @matheus.tx
I tried and now ApolloX extension sees a couple of other non-Toradex devices connected to the same local network as the Verdin.
As far as I can see, I see the devices that expose themselves with mDNS name. I see their mDNS name xxxxx.local
The Verdin cannot be seen (but I can connect manually to the IP, as in the NAT network configuration).
And some other non-toradex devices connected to the same network cannot be seen to.
Which is the command run “under to hood” to scan for Verdin devices?
Can I debug the issue in some way?
I want to add another minor issue when I try to connect manually:
when I must enter the IP and the password, the textbos shows the hints “IP address” and “password”
But when I must enter the username, no hint is shown
sorry for the delay. Hope you had a good New Year’s Eve.
Which is the command run “under to hood” to scan for Verdin devices?
Can I debug the issue in some way?
We don’t specifically look for a Toradex device on the network, this scan for all network devices in your default network interface, actually this is just a help feature so you can find devices on your network and connect to the board without needing to know the IP address beforehand.
The extension uses nmap behind the scenes to do it:
And list the devices that are reported with the state="up" property.
I want to add another minor issue when I try to connect manually:
when I must enter the IP and the password, the textbos shows the hints “IP address” and “password”
I see 4 different hosts with the state="up" property; their IPs are 192.168.1.20, 192.168.1.99 and 192.168.1.100 (all of them with empty <hostnames />) and 192.168.1.179 (which is my Ubuntu VM).
But in ApolloX I see 5 items:
The fourth item (masked) is the mDNS name of IP 192.168.1.20. The mDNS name is not returned by nmap, so I image is read in another way.
I see that some of the nmap answers are reason="conn-refused" so I tried to run nmap under sudo and I get different results:
The reason is either reason="arp-response" or reason="localhos-response" (for the VM) and I see all of the devices connected to my local network (7 devices).
Here are my doubts/questions:
Why I see 5 items and not 4?
Why 4 of them are labelled ubuntu-2204?
what does the “arrow icon” means in the above image (I added a red arrow to highlight the icon)?
I see 4 different hosts with the state="up" property; their IPs are 192.168.1.20 , 192.168.1.99 and 192.168.1.100 (all of them with empty <hostnames /> ) and 192.168.1.179 (which is my Ubuntu VM).
But in ApolloX I see 5 items:
We have an issue that the button is not being in the disable state during the load, what can cause queue of more than one detection tasks. We will work on it.
this was an issue (showing a not trimmed break line) that has been fixed on the latest release, thanks for the report.
The fourth item (masked) is the mDNS name of IP 192.168.1.20 . The mDNS name is not returned by nmap , so I image is read in another way.
I see that some of the nmap answers are reason="conn-refused" so I tried to run nmap under sudo and I get different results:
I forget to mention that there is another step, we use also avahi-resolve to get the hostnames from the address.
Should ApolloX nmap be run under sudo?
We wouldn’t want to run anything as sudo at this stage.
Let me ask, is there any reason why you are choosing run in a VM than in WSL 2 in your environment? (to support Windows we are adding features in the extension to support it trough WSL 2)
Let me know.
yes, there is one reason why I must use a VM. I hope that in the future I can switch to WSL 2.
The reason is that for other projects I have a set of MS Windows Guest VMs in Virtualbox.
And, unfortunately, Virtualbox works really bad (slow performance) when Hyper-V is enabled on the Host PC.
Hyper-V is necessary to run WSL 2, Docker on Windows, Sandbox, …
Bjut if I enable it, the performances of Virtualbox Guest VMs are too slow.
It’s a known problem of Virtualbox; newer releases behave a little bit better, but at the moment this is a major issue for me.
At the moment these VMs are my everyday job, and Torizon is the future (I hope).
It’s frustrating, but this is the reason.
Hi @henrique.tx
no way with the Linux Virtualbox Guest.
I’ve been evaluatiuon the feasibility/effor of migrating to VMWare or enabling Hyper-V with the new release of Virtualbox.
Hi @henrique.tx and @matheus.tx
I had a partial success in using WSL2 instead of my VM.
I setup WSL2 and installed the TorizonCore extensions in VS Code.
The problem (related to WSL2 and not TorizonCore) is that it seems that WSL2 supports only one network adapter.
I created a different topic to discuss this.
hello,
I’m testing Apollo extension on a an Ubuntu laptop and I have the same issue, I can’t see any of my Verdin devices connected to my network
If I connect manually , it connects, but it doesn’t recognise the device as a verdin board, it seems that it just connects via ssh to the bash prompt of the device.
If I check DOCKER_HOST under docker->contexts I can’t see my device as endpoint
For now there is no a “perfect” solution for this, and the user can always connect by the ip address. This feature is a handy help.
we are thinking to make some changes in the OS level, maybe to have some socket or service, so the IDE can list only the Torizon devices instead to have to scan the network. But this does not have an estimate and when it will be implemented…