mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
14
tests/xml2vmxdata/xml2vmx-serial-network-client.vmx
Normal file
14
tests/xml2vmxdata/xml2vmx-serial-network-client.vmx
Normal 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"
|
||||
15
tests/xml2vmxdata/xml2vmx-serial-network-client.xml
Normal file
15
tests/xml2vmxdata/xml2vmx-serial-network-client.xml
Normal 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>
|
||||
14
tests/xml2vmxdata/xml2vmx-serial-network-server.vmx
Normal file
14
tests/xml2vmxdata/xml2vmx-serial-network-server.vmx
Normal 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"
|
||||
15
tests/xml2vmxdata/xml2vmx-serial-network-server.xml
Normal file
15
tests/xml2vmxdata/xml2vmx-serial-network-server.xml
Normal 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>
|
||||
Reference in New Issue
Block a user