QNX 7.0.0 x86 Unable to ping host adapter

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby fth0 » 16. Jun 2022, 17:13

In the VBox-x86-Test-2022-06-16-19-34-07-final.log file, the statistics show that virtio-net#0 sent 1710 bytes in 5 packets, IntNet-0 sent 1710 bytes in 5 packets, IntNet-0 received 8692 bytes in 71 packets and virtio-net#0 received 8200 bytes in 67 packets. (I verified in my own working setup, that the received packet count can only be calculated from the raised interrupt count; there seems to be no counter for that.) Those summary statistics alone don't reveal what was in the packets, though.
fth0
Volunteer
 
Posts: 4730
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby fth0 » 16. Jun 2022, 17:17

FWIW, in your screenshot there are a lot of packets counted in /Drivers/IntNet-0/Packets/Lost, but in VBox-x86-Test-2022-06-16-19-34-07-final.log file the counter was 0.
fth0
Volunteer
 
Posts: 4730
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby amhblore » 16. Jun 2022, 17:23

With PCnet-FAST III, my QNX VM does not even recognize the network device. I have tried all different combinations of the network card in VBox & drivers on the QNX side. the virtio seems to be the closest match.
amhblore
 
Posts: 18
Joined: 12. Jun 2022, 07:44

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby amhblore » 16. Jun 2022, 17:24

fth0 wrote:FWIW, in your screenshot there are a lot of packets counted in /Drivers/IntNet-0/Packets/Lost, but in VBox-x86-Test-2022-06-16-19-34-07-final.log file the counter was 0.


00:00:41.169363 /Devices/virtio-net#0/ReceiveBytes 8200 bytes
00:00:41.169366 /Devices/virtio-net#0/TransmitBytes 1710 bytes

00:00:41.169384 /Drivers/IntNet-0/Bytes/Received 8692 bytes
00:00:41.169388 /Drivers/IntNet-0/Bytes/Sent 1710 bytes
amhblore
 
Posts: 18
Joined: 12. Jun 2022, 07:44

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby amhblore » 16. Jun 2022, 17:30

fth0 wrote: Those summary statistics alone don't reveal what was in the packets, though.


Its probably the dhclient in my VM that is trying to get an IP by sending requests regularly. I have nothing else at the moment trying to communicate with the host side.
amhblore
 
Posts: 18
Joined: 12. Jun 2022, 07:44

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby amhblore » 16. Jun 2022, 17:33

@scottgus1, you mentioned you created a VM QNX7, Was it an actual QNX7 VM and its working?
amhblore
 
Posts: 18
Joined: 12. Jun 2022, 07:44

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby scottgus1 » 16. Jun 2022, 17:41

amhblore wrote:Was it an actual QNX7 VM and its working?

No, I didn't install the OS, only made the VM according to the template to see what network card it would pick.

The OS installed in the VM must have built-in or user-provided (through an ISO) drivers for the network card presented. Does the QNX7 OS have drivers for virtio or the PCnet card?
scottgus1
Site Moderator
 
Posts: 18782
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby fth0 » 16. Jun 2022, 17:43

amhblore wrote:Its probably the dhclient in my VM that is trying to get an IP by sending requests regularly.

The 5 sent packets could be DHCP DISCOVER packets, and the 67 received packets could contain 5 DHCP OFFER packets or not. A packet capture could tell. ;)
fth0
Volunteer
 
Posts: 4730
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby amhblore » 16. Jun 2022, 18:05

scottgus1 wrote:The OS installed in the VM must have built-in or user-provided (through an ISO) drivers for the network card presented. Does the QNX7 OS have drivers for virtio or the PCnet card?


Yes, the OS has driver for the virtio. For PCnet, no. There is a driver devnp-e1000.so for the Intel network cards, but that gives no carrier detected error.
amhblore
 
Posts: 18
Joined: 12. Jun 2022, 07:44

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby amhblore » 16. Jun 2022, 18:10

fth0 wrote: A packet capture could tell. ;)


I need to create a new bootable image & write it to the hardisk. The tcpdump needs a library which is not in the current image
amhblore
 
Posts: 18
Joined: 12. Jun 2022, 07:44

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby fth0 » 16. Jun 2022, 18:23

Just another idea: The nicinfo utility can provide low-level info according to Troubleshooting a driver, depending on a verbosity level. I have a rough understanding of network driver details, so perhaps I could make educated guesses ...
fth0
Volunteer
 
Posts: 4730
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby amhblore » 16. Jun 2022, 18:47

amhblore
 
Posts: 18
Joined: 12. Jun 2022, 07:44

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby amhblore » 17. Jun 2022, 03:19

Attached output of tcpdump. There is no response to the DISCOVER message. And in the previous host logs we see the host OFFER message sent to the VM. But the VM never gets it!!! Where is it gone :?:
Attachments
tcpdump.txt
(8.12 KiB) Downloaded 8 times
amhblore
 
Posts: 18
Joined: 12. Jun 2022, 07:44

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby fth0 » 17. Jun 2022, 11:00

The VirtualBox statistics also indicated that (virtual) hardware interrupts were raised for sent and received packets, so the next thing to look at would be the interrupt handling in QNX. Which interrupts are recognized, which are handled?

Additionally, capture the network traffic in QNX and in VirtualBox simultaneously (VBoxManage --nictrace option).
fth0
Volunteer
 
Posts: 4730
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: QNX 7.0.0 x86 Unable to ping host adapter

Postby amhblore » 21. Jun 2022, 07:00

fth0 wrote:so the next thing to look at would be the interrupt handling in QNX. Which interrupts are recognized, which are handled?


I dont know how to check interrupts in QNX. This will need some effort & investigation :(
amhblore
 
Posts: 18
Joined: 12. Jun 2022, 07:44

PreviousNext

Return to Other Guests

Who is online

Users browsing this forum: No registered users and 2 guests