VMware Cloud Community
TheZadok42
Contributor
Contributor

Use VSOCK inside esxi

I am attempting to use vsock inside a ESXi, when I attempt to use the address-family (40), it fails with:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/build/mts/release/bora-14320388/bora/build/esx/release/vmvisor/sys-boot/lib64/python3.5/socket.py", line 134, in __init__
OSError: [Errno 97] Address family not supported by protocol

I created a machine on the ESX, and I get this

In [2]: s = socket.socket(socket.AF_VSOCK, socket.SOCK_STREAM)

In [3]: s
Out[3]: <socket.socket fd=13, family=AddressFamily.AF_VSOCK, type=SocketKind.SOCK_STREAM, proto=0, laddr=(4294967295, 4294967295)>

 

Should I load a driver or something? What am I doing wrong?

This is ESXi 6.7 and the pre-loaded python3

 

Link to my stackoverflow question

Tags (1)
0 Kudos
0 Replies