HI,
I have virtual here linux server that run on private lab network,
and i have anather server that trying to use a device...
I'm running the command for using a device -
labuser@yaira-lab:/etc$ /usr/sbin/vhclientx86_64 -t "USE,labpc.1311"
But getting 'FAILED'
didnt see any logs in virtual here servers that indicate that i try to connect the device.
Maybe i need to open other ports in the firewall for connect to device ? (except 7575)
.
You need to purchase a license
failed after purchase
Hello,
I've bought and activated a license, restarted both the server and client. However, when trying to connect to device from linux client, I still encounter a 'FAILED' error with no corresponding logs on the server.
labuser@yaira-lab:/etc$ sudo /usr/sbin/vhclientx86_64 -t "USE,labpc.1311"
FAILED
(Note: I successfully executed list commands on the Linux client.)
Additionally, I've successfully connected to multiple devices from the Windows client command prompt.
.
Have a look in
/var/log/syslog
on the client machine where you are running vhclientx86_64 USE ... and see if it shows messages thereHi, I running this command:…
Hi,
I running this command: sudo /usr/sbin/vhclientx86_64 -t "USE,labpc.1311"
There is this error message in /var/log/syslog: VirtualHere Client: bind unix domain socket server, error 98 (Address in use)
But address is not in use -
abuser@yaira-lab:/etc$ /usr/sbin/vhclientx86_64 -t "LIST"
VirtualHere Client IPC, below are the available devices:
(Value in brackets = address, * = Auto-Use)
28 (labpc:7575)
--> Integrated_Webcam_HD (labpc.16)
--> 192.168.91.41 (labpc.1344)
--> USB 10/100/1000 LAN (labpc.41)
--> 0x0026 (labpc.110)
--> 192.168.91.34 (labpc.1311)
Auto-Find currently on
Auto-Use All currently off
Reverse Lookup currently off
Reverse SSL Lookup currently off
VirtualHere Client is running as a service
.
Can you send me the output of
uname -a
and also
lsmod
on the client machine
labuser@yaira-lab:/etc$…
labuser@yaira-lab:/etc$ uname -a
Linux yaira-lab 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
labuser@yaira-lab:/etc$ lsmod
Module Size Used by
cp210x 40960 1
usbserial 69632 3 cp210x
rfcomm 98304 4
xt_conntrack 12288 1
nft_chain_nat 12288 3
xt_MASQUERADE 16384 1
nf_nat 61440 2 nft_chain_nat,xt_MASQUERADE
nf_conntrack_netlink 57344 0
nf_conntrack 200704 4 xt_conntrack,nf_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6 24576 1 nf_conntrack
nf_defrag_ipv4 12288 1 nf_conntrack
xfrm_user 61440 1
xfrm_algo 20480 1 xfrm_user
...
.
I cant see
vhci_hcd
usbip_core
modules listed. Did you install usbip client drivers? ubuntu comes with those by default
yes, lsmod output - vhci_hcd…
yes, lsmod output -
vhci_hcd 61440 0
usbip_core 40960 1 vhci_hcd
There is also this error on srart -
abuser@yaira-lab:/etc/systemd/system$ sudo systemctl status virtualhereclient.service
● virtualhereclient.service - VirtualHere Client
Loaded: loaded (/etc/systemd/system/virtualhereclient.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2024-01-15 18:24:42 IST; 21min ago
Process: 16127 ExecStart=/usr/sbin/vhclientx86_64 -n (code=exited, status=0/SUCCESS)
Main PID: 16128 (vhclientx86_64)
Tasks: 9 (limit: 18689)
Memory: 17.2M
CPU: 922ms
CGroup: /system.slice/virtualhereclient.service
└─16128 /usr/sbin/vhclientx86_64 -n
Jan 15 18:24:42 yaira-lab systemd[1]: Starting VirtualHere Client...
Jan 15 18:24:42 yaira-lab vhclientx86_64[16128]: VirtualHere Client: VirtualHere Client 5.5.7 starting (Compiled: Dec 11 2023 11:25:42)
Jan 15 18:24:42 yaira-lab systemd[1]: Started VirtualHere Client.
Jan 15 18:24:42 yaira-lab vhclientx86_64[16128]: VirtualHere Client: Client OS is Linux 6.5.0-14-generic x86_64
Jan 15 18:24:42 yaira-lab vhclientx86_64[16128]: VirtualHere Client: Using config at /root/.vhui
Jan 15 18:24:42 yaira-lab vhclientx86_64[16128]: VirtualHere Client: IPC available at /tmp/vhclient
Jan 15 18:24:42 yaira-lab vhclientx86_64[16128]: VirtualHere Client: VirtualHere Client is running as a service
Jan 15 18:24:42 yaira-lab vhclientx86_64[16128]: VirtualHere Client: Auto-find (Bonjour) on
Jan 15 18:24:42 yaira-lab vhclientx86_64[16128]: VirtualHere Client: Auto-find (Bonjour SSL) on
Jan 15 18:26:24 yaira-lab vhclientx86_64[16128]: VirtualHere Client: bind unix domain socket server, error 98 (Address in use)
.
Is this a normal install of ubuntu, or is it locked down somehow? E.g selinux rules
The reason is that the virtualhere client creates a linux domain socket (a special socket but just in memory) to talk to the usbip client driver
When it tries to then bind to this socket it fails with the error you have.
Can you send me the output of
sudo lsof -p `pidof vhclientx86_64`
Hi, Output: labuser@yaira…
Hi,
Output:
labuser@yaira-lab:/etc/systemd/system$ sudo lsof -p '16128'
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
lsof: WARNING: can't stat() fuse.portal file system /run/user/1000/doc
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
vhclientx 16128 root cwd DIR 259,2 4096 2 /
vhclientx 16128 root rtd DIR 259,2 4096 2 /
vhclientx 16128 root txt REG 259,2 1328556 27012737 /usr/sbin/vhclientx86_64
vhclientx 16128 root mem REG 259,2 2388 9178641 /usr/share/zoneinfo/Asia/Jerusalem
vhclientx 16128 root 0u unix 0xffff9312a6c1ee80 0t0 84690 type=DGRAM
vhclientx 16128 root 2u unix 0xffff9312cd73aa80 0t0 81855 /tmp/vhclient_ipc/socket type=STREAM
vhclientx 16128 root 8r FIFO 0,14 0t0 83918 pipe
vhclientx 16128 root 9w FIFO 0,14 0t0 83918 pipe
vhclientx 16128 root 10u a_inode 0,15 0 2076 [eventpoll]
vhclientx 16128 root 11u IPv4 83927 0t0 TCP 192.168.91.27:54550->192.168.91.28:7575 (ESTABLISHED)
.
It doesnt show any netlink socket. Just install normal ubuntu and it will work. I dont know how you've setup your ubuntu
Now i see that when i'm…
Now i see that when i'm running sudo /usr/sbin/vhclientx86_64 (not in deamon), I'm getting this error when i trying to use a device -
labuser@yaira-lab:/etc/systemd/system$ sudo /usr/sbin/vhclientx86_64 -a
The VirtualHere Client drivers could not be loaded.
Try rebooting your machine and running VirtualHere Client again.
(I tried to reboot the mechine and it didn't help)
What virtual here drivers sould be installed ?
Thanks for the help
***After Edit -
I can see error in cat /var/log/syslog -
Jan 16 16:11:06 yaira-lab systemd[1]: Starting VirtualHere Client...
Jan 16 16:11:07 yaira-lab VirtualHere Client: VirtualHere Client 5.5.7 starting (Compiled: Dec 11 2023 11:25:42)
Jan 16 16:11:07 yaira-lab systemd[1]: Started VirtualHere Client.
Jan 16 16:11:07 yaira-lab VirtualHere Client: Client OS is Linux 6.5.0-14-generic x86_64
Jan 16 16:11:07 yaira-lab VirtualHere Client: Using config at /root/.vhui
Jan 16 16:11:07 yaira-lab VirtualHere Client: IPC available at /tmp/vhclient
Jan 16 16:11:07 yaira-lab VirtualHere Client: VirtualHere Client is running as a service
Jan 16 16:11:07 yaira-lab VirtualHere Client: Auto-find (Bonjour) on
Jan 16 16:11:07 yaira-lab VirtualHere Client: Auto-find (Bonjour SSL) on
Jan 16 16:14:54 yaira-lab VirtualHere Client: bind unix domain socket server, error 98 (Address in use)
.
What about if you uninstall the virtualhere client service
Reboot, then open a terminal and type
sudo ./vhclientx86_64 -n
then
./vhclientx86_64 -t "USE,labpc.1311"
Does that work?
I Can't belive it but i find…
I Can't belive it but i find the issue.
I'm Running on the same linux PC Digi client (It's a different tool that provide solution for remote serial)
And when Digi client are running, virtual here failed to connect with error: VirtualHere Client: bind unix domain socket server, error 98 (Address in use).
But when DIgi client are not running virtual here client 'USE' command is working.
Probebly they both run on the same socket, do you have a solution for that ?? can i configure a different socket address ?
I need the digi & virtual-here clients to run parallel
Thanks.
.
Ah OK! Yes digi licensed virtualhere a while ago for their digi anywhere plus product. So their client is actually a custom version of virtualhere client, so you wont be able to run both on the same machine.