Friday, October 3, 2014

Creating Serial Console Access in VMware ESXi v5.5

1. Power off the VM.
2. Right-click the VM and configure the virtual serial port settings.
2.1 Choose Edit Settings > Add.
2.2 Choose Device Type > Serial port, and Next.
2.3 In "Serial Port Output", select "Connect via Network", and Next.
3. Select the Server (VM listens for connection) option.
3.1 Enter the Port URI: telnet://:[portnumber]
3.2 Select "Connect at power on"
3.3 Under I/O mode, select"Yield CPU on poll", and Next.
4.Configure the security settings for the virtual serial port.
4.1 Select the ESXi host.
4.2 Click the Configuration tab and click Security Profile in Software section.
4.3 To the right of Firewall section, click Properties
4.4 Scroll down and Select "VM serial port connected over Network", check it and OK.
5. Power on the VM.
6. telnet ESXi_host_IP [portnumber] to access VM serial console.

# VM Enable serial console, Ubuntu 14.04
#
1. configure grub
1.1 edit /etc/default/grub and add the following lines
GRUB_CMDLINE_LINUX='console=tty0 console=ttyS0,115200n8'
GRUB_TERMINAL=serial
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"

1.2 update grub
sudo update-grub

2. ttyS0.conf
2.1 Add /etc/init/ttyS0.conf
# ttyS0 - getty
#
# This service maintains a getty on ttyS0 from the point the system is
# started until it is shut down again.

start on stopped rc or RUNLEVEL=[12345]
stop on runlevel [!12345]

respawn
exec /sbin/getty -L 115200 ttyS0 vt102

2.1 start getty
sudo start ttyS0


# CSR1000v enable serial console
#
Router> enable
Router# configure terminal
Router(config)# platform console serial
Router(config)# end
Router# copy system:running-config nvram:startup-config
Router# reload


[email protected]:~$ telnet 192.168.255.2 10001
Trying 192.168.255.2...
Connected to 192.168.255.2.
Escape character is '^]'.

Router>en
Router#show version
Cisco IOS XE Software, Version 03.13.00a.S - Extended Support Release
Cisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.4(3)S0a, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Wed 03-Sep-14 13:29 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc.
All rights reserved.  Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0.  For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.


ROM: IOS-XE ROMMON

Router uptime is 3 minutes
Uptime for this control processor is 5 minutes
System returned to ROM by reload
System image file is "bootflash:packages.conf"
Last reload reason: Reload Command



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
[email protected].

License Level: ax
License Type: Default. No valid license found.
Next reload license Level: ax

cisco CSR1000V (VXE) processor (revision VXE) with 794724K/6147K bytes of memory.
Processor board ID 9EDI16UX6ZT
3 Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
2506272K bytes of physical memory.
7774207K bytes of virtual hard disk at bootflash:.

Configuration register is 0x2102

Router#

No comments: