Hi,
I'm developing a script to import an OVF VM to an ESX 6.5 host.
I'm using ovftool command to run the import.
When I try to pass Virtual Serial Port properties (retreieved from .vmx file when I did manually via vSphere Client GUI),
ovftool returned warning:
$ ovftool \
--name="Test04" \
--acceptAllEulas \
-ds=datastore1 \
-dm=thin \
--net:'Network 1=VM Network' \
--prop:serial0.fileType='network' \
--prop:serial0.fileName='telnet://:7004' \
--prop:serial0.yieldOnMsrRead='TRUE' \
--prop:serial0.present='TRUE' \
./Test04.ovf \
vi://root:PASSWORD@172.18.125.43
Opening OVF source: ./FortiGate-VM64.ovf
Opening VI target: vi://root@172.18.125.43:443/
Deploying to VI: vi://root@172.18.125.43:443/
Transfer Completed
Warning:
- OVF property with key: 'serial0.fileName' does not exists.
- OVF property with key: 'serial0.fileType' does not exists.
- OVF property with key: 'serial0.present' does not exists.
- OVF property with key: 'serial0.yieldOnMsrRead' does not exists.
Completed successfully
And Virtual Serial Port is not added after the ovftool import.
After ovftool import,
I have also tried manully edit .vmx file by appending 4 lines at the end:
serial0.fileName = "telnet://:7003"
serial0.fileType = "network"
serial0.present = "TRUE"
serial0.yieldOnMsrRead = "TRUE"
but it still has no effect.
How can I add a "Virtual Serial Port" to an ESX 6.5 VM
without going through vSphere Client GUI or Web GUI?
Is it possibe to use vim-cmd from ESX host shell?
or any solution in Linux?