forked from Code-Hex/vz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a VZ_VSOCK_PORT to indicate a virtio-vsock port to connect to after the VM has finished booting. The example code tries to call ConnectToPort every 10 seconds, and when the connection succeeds, it sends 'hello VM' to that connection. `nc --listen --vsock $VZ_VSOCK_PORT` needs to be run on the VM for the connection test to work.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters