esx: Add support for virtual serial device network backing

Since version 4.1 ESX(i) can expose virtual serial devices over TCP.

Add support in the VMX handling code for this, add test cases to cover
it and add links to some documentation.

ESX supports two additional protocols: TELNETS and TLS. Add them to
the list of serial-over-TCP protocols.
This commit is contained in:
Matthias Bolte
2010-09-29 23:04:19 +02:00
parent 62a50a0b80
commit 02e11b8353
15 changed files with 304 additions and 31 deletions

View File

@@ -0,0 +1,14 @@
config.version = "8"
virtualHW.version = "7"
guestOS = "other"
uuid.bios = "56 4d 9b ef ac d9 b4 e0-c8 f0 ae a8 b9 10 35 15"
displayName = "serial-network"
memsize = "4"
numvcpus = "1"
floppy0.present = "false"
floppy1.present = "false"
serial0.present = "true"
serial0.fileType = "network"
serial0.fileName = "tcp://192.168.0.17:42001"
serial0.network.endPoint = "client"
serial0.yieldOnMsrRead = "true"

View File

@@ -0,0 +1,15 @@
<domain type='vmware'>
<name>serial-network</name>
<uuid>564d9bef-acd9-b4e0-c8f0-aea8b9103515</uuid>
<memory>4096</memory>
<os>
<type>hvm</type>
</os>
<devices>
<serial type='tcp'>
<source mode="connect" host="192.168.0.17" service="42001"/>
<protocol type="raw"/>
<target port='0'/>
</serial>
</devices>
</domain>

View File

@@ -0,0 +1,14 @@
config.version = "8"
virtualHW.version = "7"
guestOS = "other"
uuid.bios = "56 4d 9b ef ac d9 b4 e0-c8 f0 ae a8 b9 10 35 15"
displayName = "serial-network"
memsize = "4"
numvcpus = "1"
floppy0.present = "false"
floppy1.present = "false"
serial0.present = "true"
serial0.fileType = "network"
serial0.fileName = "ssl://0.0.0.0:42001"
serial0.network.endPoint = "server"
serial0.yieldOnMsrRead = "true"

View File

@@ -0,0 +1,15 @@
<domain type='vmware'>
<name>serial-network</name>
<uuid>564d9bef-acd9-b4e0-c8f0-aea8b9103515</uuid>
<memory>4096</memory>
<os>
<type>hvm</type>
</os>
<devices>
<serial type='tcp'>
<source mode="bind" host="0.0.0.0" service="42001"/>
<protocol type="tls"/>
<target port='0'/>
</serial>
</devices>
</domain>