totoroliu's Posts

ok I got the answer from https://configmax.vmware.com/guest vSphere 6.5 Update 1 Configuration Maximums Networking Virtual Devices (    Virtual NICs per virtual machine) 10 Any combinatio... See more...
ok I got the answer from https://configmax.vmware.com/guest vSphere 6.5 Update 1 Configuration Maximums Networking Virtual Devices (    Virtual NICs per virtual machine) 10 Any combination of supported virtual NICs
Hi, Host: 6.5.0 Update 2 (Build 8294253) VM Guest: Ubuntu 16.04 I have already had 10 network adapters created and running ok. (I'm able to boot up the VM Guest and use all of 10 network ... See more...
Hi, Host: 6.5.0 Update 2 (Build 8294253) VM Guest: Ubuntu 16.04 I have already had 10 network adapters created and running ok. (I'm able to boot up the VM Guest and use all of 10 network adapstors). When I tried to add the 11th network adapters to this VM. I would get error message: Failed to reconfigure virtual machine 250-TCL-V1. Number of virtual devices exceeds the maximum for a given controller. - dismiss
It looks like there's noe way to turn off the echo of control-stream "FF FD 25". Eventually, we add extra handling to expect the control-stream.
Now I'm using this hacky way to do it directly on ESX hypervisor host: 1. Get VMID VMID=$(vim-cmd vmsvc/getallvms | sed -n "s:^([0-9])\s${VM_NAME}\s.$:\1:p") 2. Unregister VM vim-cmd vmsv... See more...
Now I'm using this hacky way to do it directly on ESX hypervisor host: 1. Get VMID VMID=$(vim-cmd vmsvc/getallvms | sed -n "s:^([0-9])\s${VM_NAME}\s.$:\1:p") 2. Unregister VM vim-cmd vmsvc/unregister "${VMID}" 3. Update .vmx file to add/define "Virtual Serial Port" echo " serial0.fileName = "telnet://:7003" serial0.fileType = "network" serial0.present = "TRUE" serial0.yieldOnMsrRead = "TRUE" " >> /vmfs/volumes/datastore1/${VM_NAME}/${VM_NAME}.vmx 4. Register VM vim-cmd solo/registervm /vmfs/volumes/datastore1/${VM_NAME}/${VM_NAME}.vmx
Now I'm using this hacky way to do it directly on ESX hypervisor host: 1. Get VMID VMID=$(vim-cmd vmsvc/getallvms | sed -n "s:^([0-9])\s${VM_NAME}\s.$:\1:p") 2. Unregister VM vim-cmd vmsv... See more...
Now I'm using this hacky way to do it directly on ESX hypervisor host: 1. Get VMID VMID=$(vim-cmd vmsvc/getallvms | sed -n "s:^([0-9])\s${VM_NAME}\s.$:\1:p") 2. Unregister VM vim-cmd vmsvc/unregister "${VMID}" 3. Update .vmx file to add/define "Virtual Serial Port" echo " serial0.fileName = "telnet://:7003" serial0.fileType = "network" serial0.present = "TRUE" serial0.yieldOnMsrRead = "TRUE" " >> /vmfs/volumes/datastore1/${VM_NAME}/${VM_NAME}.vmx 4. Register VM vim-cmd solo/registervm /vmfs/volumes/datastore1/${VM_NAME}/${VM_NAME}.vmx
I'm configuring a Virtual Serial Port to a virtual machine.
lamw​ the command-line tools i refer to are like: esxcli, vmware-cmd, vim-cmd, esxcfg, vicfg, etc Right now, I'm able to start/stop/register/unregsiter a VM either using these command-line... See more...
lamw​ the command-line tools i refer to are like: esxcli, vmware-cmd, vim-cmd, esxcfg, vicfg, etc Right now, I'm able to start/stop/register/unregsiter a VM either using these command-line tools directly or using API through scripts. Comparing with command-line tool to API, I found command-line tool is more stragihtforward and easy to use. So I thought there should be one command that corresponding to add/define "Virtual Serial Port".
Does command-line tool have same function/feature sets as API? or command-line tool is very limited compared to API?
Is API available directly on the hypervisor host? or the API available through only vSphere vCenter or vMA VM? We are using Enterprise license on ESX hypervisor host but we don't have vSpher... See more...
Is API available directly on the hypervisor host? or the API available through only vSphere vCenter or vMA VM? We are using Enterprise license on ESX hypervisor host but we don't have vSphere vCenter nor vMA VM.
jasnyder​ by the way, where could I find the documentation regarding to these Perl API library? I searched through vSphere CLI for vSphere 6.5 - VMware {code} it doesn't mention Perl at a... See more...
jasnyder​ by the way, where could I find the documentation regarding to these Perl API library? I searched through vSphere CLI for vSphere 6.5 - VMware {code} it doesn't mention Perl at all.
i am looking for more in bash/shell/python script~
Is it possible to do it through vCLI commands? either commands from vCLI package or commands directly on the ESX host shell
After enable Virtual Serial Port over network using telnet protocol on ESX 6.5, when using Python telnetlib library to do telnet connection, ESX telnet server would echo back '\xff\xfd%' after ... See more...
After enable Virtual Serial Port over network using telnet protocol on ESX 6.5, when using Python telnetlib library to do telnet connection, ESX telnet server would echo back '\xff\xfd%' after the first write. After digging into RFC 854 - Telnet Protocol Specification , '\xff\xfd%' is IAC DO command. Is there any easy way I can config Virtual Serial Port telnet server from ESX server to disable the echo? Here's a sample Python script to try: import time import telnetlib HOST = "172.18.125.43" PORT = "7004" tn = telnetlib.Telnet(HOST, PORT) tn.set_debuglevel(10) for i in range(5):     tn.write("\n")     time.sleep(1)     tn.read_very_eager() tn.close() Example output: Telnet(172.18.125.43,7004): send '\n' Telnet(172.18.125.43,7004): recv '\xff\xfd%\r\n\r\nLogin: ' Telnet(172.18.125.43,7004): IAC DO 37 Telnet(172.18.125.43,7004): send '\n' Telnet(172.18.125.43,7004): recv '%\r\nPassword: ' Telnet(172.18.125.43,7004): send '\n' Telnet(172.18.125.43,7004): recv '\r\n' Telnet(172.18.125.43,7004): send '\n' Telnet(172.18.125.43,7004): recv '\r\n' Telnet(172.18.125.43,7004): send '\n' Telnet(172.18.125.43,7004): recv '\r\n'
Hi, Is there any vSphere CLI command avaiable in ESX 6.5 to add/define "Virtual Serial Port" to a VM? assume targeting to the host directly without going through vCenter or vMA. Someone ha... See more...
Hi, Is there any vSphere CLI command avaiable in ESX 6.5 to add/define "Virtual Serial Port" to a VM? assume targeting to the host directly without going through vCenter or vMA. Someone has suggested using PowerCLI, but wondering if vCLI could acheive too. Rick
@jasnyder Is PowerCLI available to Linux OS?
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 fil... See more...
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?