Cisco CSR 1000V Series Cloud Services Router Software Configuration Guide
Booting the Cisco CSR 1000V and Accessing the Console
Downloads: This chapterpdf (PDF - 243.0 KB) The complete bookPDF (PDF - 3.53 MB) | Feedback

Table of Contents

Booting the Cisco CSR 1000V and Accessing the Console

Booting the Cisco CSR 1000V as the VM

Accessing the Cisco CSR 1000V Console

Accessing the Cisco CSR 1000V Through the Virtual VGA Console

Accessing the Cisco CSR 1000V Through the Virtual Serial Port

Creating Serial Console Access in VMware ESXi

Creating the Serial Console Access in KVM

Creating the Serial Console Access in Microsoft Hyper-V

Opening a Telnet Session to the Cisco CSR 1000V Console on the Virtual Serial Port

Changing the Console Port Access After Installation

License Installation

Booting the Cisco CSR 1000V and Accessing the Console

Booting the Cisco CSR 1000V as the VM

The Cisco CSR 1000V boots when the VM is powered on. Depending on your configuration, you can monitor the installation process on the virtual VGA console or the console on the virtual serial port.


Note If you want to access and configure the Cisco CSR 1000V from the serial port on the hypervisor instead of the virtual VGA console, you should provision the VM to use this setting before powering on the VM and booting the router. For more information, see the “Accessing the Cisco CSR 1000V Through the Virtual Serial Port” section.



Step 1 Power-up the VM.

Step 2 Within 5 seconds of powering on the VM, choose which console to use to view the router bootup and to access the Cisco CSR 1000V CLI:

  • Auto Console : (Cisco IOS XE 3.13S and later) Choose this option to use automatic console detection. When two virtual serial ports are detected, the IOS XE CLI will be available on the first virtual serial port and the IOS XE diagnostic CLI will be available on the second virtual serial port. If two virtual serial ports are not detected, the IOS XE CLI will be available on the virtual VGA console. This is the default setting and the Cisco CSR 1000V will boot using the automatic console detection if another option is not selected within the 5 second timeframe.

Note (for VMware ESXi): If you are installing on VMware ESXi without a virtual serial port concentrator (vSPC), this option may not be able to properly detect virtual serial ports when there is an active connection to the virtual serial ports. If you are not using a vSPC and wish to use virtual serial ports, choose the Serial Console option.

Note (for Microsoft Hyper-V): If you are installing on Microsoft Hyper-V, this option may be unable to properly detect virtual serial ports when there is an active connection to the virtual serial ports. If you wish to use virtual serial ports, you should choose the Serial Console option.

Automatic selection of virtual serial ports : For this option to use the virtual serial ports, the virtual serial ports must already be present on the VM.

If you are installing on VMware ESXi, see the “Creating Serial Console Access in VMware ESXi” section.

If you are installing in KVM environments, see the “Creating the Serial Console Access in KVM” section.

If you are installing in Microsoft Hyper-V environments, see the “Creating the Serial Console Access in Microsoft Hyper-V” section.

  • Virtual Console : Choose this option to use the virtual VGA console. If you choose to use the virtual console, the rest of the steps in this procedure do not apply. On Cisco IOS XE 3.12S and earlier, this is the default setting and the Cisco CSR 1000V boots using the Virtual Console if another option is not selected within the 5 second timeframe.
  • Serial Console : Choose this option to use the virtual serial port console on the VM (not supported on Citrix XenServer VMs).

The virtual serial port must already be present on the VM for this option to work.

If you are installing on VMware ESXi, see the “Creating Serial Console Access in VMware ESXi” section.

If you are installing in KVM environments, see the “Creating the Serial Console Access in KVM” section.

If you are installing in Microsoft Hyper-V environments, see the “Creating the Serial Console Access in Microsoft Hyper-V” section.


Note The option to select the console port during the boot process is available only the first time the Cisco CSR 1000V boots. To change the console port access after the Cisco CSR 1000V has first booted, see the “Changing the Console Port Access After Installation” section.


The Cisco CSR 1000V starts the boot process.

Step 3 Telnet to the VM using the following URI:

  • telnet:// host-ipaddress : portnumber

or, from a UNIX xTerm terminal:

  • telnet host-ipaddress portnumber

The following example shows the Cisco CSR 1000V initial boot output on the VM:

%IOSXEBOOT-4-BOOT_SRC: (rp/0): CD-ROM Boot
%IOSXEBOOT-4-BOOT_CDROM: (rp/0): Installing GRUB
%IOSXEBOOT-4-BOOT_CDROM: (rp/0): Copying super package
csr1000v-universalk9 2011-10-20_13.09.SSA.bin
%IOSXEBOOT-4-BOOT_CDROM: (rp/0): Creating /boot/grub/menu.lst
%IOSXEBOOT-4-BOOT_CDROM: (rp/0): CD-ROM Installation finished
%IOSXEBOOT-4-BOOT_CDROM: (rp/0): Ejecting CD-ROM tray
 

The system first calculates the SHA-1, which may take a few minutes.

Once the SHA-1 is calculated, the kernel is brought up. Once the initial installation process is complete, the.iso package file is removed from the virtual CD-ROM, and the VM is rebooted. This enables the Cisco CSR 1000V to boot normally off the virtual Hard Drive.


Note The system reboots during first-time installation only.


The time required for the Cisco CSR 1000V to boot may vary depending on the release and the hypervisor used.

Step 4 When the system is finished booting, the system presents a screen showing the main software image and the Golden Image, with an instruction that the highlighted entry is booted automatically in three seconds. Do not select the option for Golden Image and allow the main software image to boot.


Note The Cisco CSR 1000V does not include a ROMMON image similar to what is included in many Cisco hardware-based routers. During installation, a “backup” copy of the installed version is stored in a backup partition. This copy can be selected to boot from in case you upgraded your boot image, deleted the original boot image, or somehow corrupted your disk. Booting from the backup copy is equivalent to booting a different image from ROMMON.

For more information on changing the configuration register settings to access GRUB mode, see the “Accessing and Using GRUB Mode” section.


You can now enter the router configuration environment by entering the standard commands enable and then configure terminal. The following should be noted for the initial installation:

  • When the Cisco CSR 1000V is booted for the first time, the mode the router boots in depends on the release version:

(Cisco IOS XE 3.13S and later) The Cisco CSR 1000V boots with the AX package set of features and throughput is limited to 100 Kbps.

(Cisco IOS XE 3.12S and earlier) The Cisco CSR 1000V boots in a limited mode that provides limited feature support and throughput is limited to 2.5 Mbps.

You must install the software license or enable an evaluation license to obtain the supported throughput and features. Depending on the release version, you must enable the boot level or change the maximum throughput level, and reboot the Cisco CSR 1000V. For more information, see the “Installing Cisco CSR 1000V Licenses” section.

(Cisco IOS XE 3.13S and later) The installed license technology package must match the package level configured with the license boot level command. If the license package does not match the configured setting, throughput is limited to 100 Kbps.


 

Accessing the Cisco CSR 1000V Console

Accessing the Cisco CSR 1000V Through the Virtual VGA Console

When installing the Cisco CSR 1000V software image, the default setting is to use the virtual VGA console (Cisco IOS XE 3.12S and earlier) or the automatic console detection (Cisco IOS XE 3.13S and later). No other configuration changes are required to access the Cisco CSR 1000V CLI through the virtual VGA console if:

  • You do not change the console setting during the bootup process

and

  • (If using automatic console detection) You do not add two virtual serial ports to the VM configuration

Accessing the Cisco CSR 1000V Through the Virtual Serial Port

By default, the Cisco CSR 1000V is accessed using the virtual VGA console. If using automatic console detection and two virtual serial ports are detected, the Cisco CSR 1000V CLI will be available on the first virtual serial port. You can also configure the VM to use the Serial Console (which always attempts to use the first virtual serial port for the Cisco CSR 1000V CLI). See the following sections to configure the virtual serial port on your hypervisor:


Note The Citrix XenServer does not support access through a serial console.


Creating Serial Console Access in VMware ESXi

Perform the following steps using VMware VSphere. For more information, refer to the VMware VSphere documentation.


Step 1 Power-down the VM.

Step 2 Select the VM and configure the virtual serial port settings.

a. Choose Edit Settings > Add.

b. Choose Device Type > Serial port.

Click Next.

c. Choose Select Port Type.

Select the Connect via Network option.

Click Next.

Step 3 Choose the Select Network Backing option.

Select the Server (VM listens for connection) option.

Enter the Port URI using the following syntax:

telnet://:portnumber

where portnumber is the port number for the virtual serial port.

Under I/O mode, select the option to Yield CPU on poll.

Click Next.

Step 4 Power on the VM.

Step 5 When the VM is powered on, access the virtual serial port console.

Step 6 Configure the security settings for the virtual serial port.

a. Select the ESXi host for the virtual serial port.

b. Click the Configuration tab and click Security Profile.

c. In the Firewall section, click Properties, and then select the VM serial port connected over Network value.

You can now access the Cisco IOS XE console using the Telnet port URI. When you configure the virtual serial port, the CSR 1000V is no longer accessible from the VM’s virtual console. See the “Opening a Telnet Session to the Cisco CSR 1000V Console on the Virtual Serial Port” section.


Note To use these settings, either the Auto Console option or the Serial Console option in the GRUB menu must have been selected during the Cisco CSR 1000V bootup. If you have already installed the Cisco CSR 1000V software using the virtual VGA console, you must configure either the Cisco IOS XE platform console auto command or the Cisco IOS XE platform console serial command and reload the VM for the console access through the virtual serial port to work. See the “Changing the Console Port Access After Installation” section.



 

Creating the Serial Console Access in KVM

Perform the following steps using the KVM console on your server. For more information, refer to the KVM documentation.


Step 1 Power off the VM.

Step 2 Click on the default Serial 1 device (if it exists) and then click Remove. This removes the default pty-based virtual serial port which would otherwise count as the first virtual serial port.

Step 3 Click on Add Hardware.

Step 4 Select Serial to add a serial device.

Step 5 Under Character Device, choose the TCP Net Console (tcp) device type from the drop-down menu.

Step 6 Under Device Parameters, choose the mode from the drop-down menu.

Step 7 Under Host, enter 0.0.0.0. The server will accept a telnet connection on any interface.

Step 8 Choose the port from the drop-down menu.

Step 9 Choose the Use Telnet option.

Step 10 Click Finish.

You can now access the Cisco IOS XE console using the Telnet port URI. See the “Opening a Telnet Session to the Cisco CSR 1000V Console on the Virtual Serial Port” section.


Note To use these settings, either the Auto Console option or the Serial Console option in the GRUB menu must have been selected while the Cisco CSR 1000V booted. If you have already installed the Cisco CSR 1000V software using the virtual VGA console, you must configure either the Cisco IOS XE platform console auto command or platform console serial command and reload the VM in order for the console access through the virtual serial port to work. See the “Changing the Console Port Access After Installation” section.



 

Creating the Serial Console Access in Microsoft Hyper-V

The console port access for Microsoft Hyper-V is created when configuring the VM settings. For more information, see the “Configuring the VM Settings” section.


Note Telnet access to the Cisco CSR 1000V console is not supported for Microsoft Hyper-V. You must use a Putty session to access the console.


Opening a Telnet Session to the Cisco CSR 1000V Console on the Virtual Serial Port

Perform the following steps using the Cisco IOS XE CLI commands:


Step 1 Telnet to the VM using the following URI:

  • telnet:// host-ipaddress : portnumber

or, from a UNIX terminal:

  • telnet host-ipaddress portnumber

Step 2 At the Cisco CSR 1000V IOS XE password prompt, enter your login password. The following example shows entry of the password mypass :

User Access Verification
 
Password: mypass

Note If no password has been configured, press Return.


Step 3 From user EXEC mode, enter the enable command as shown in the following example:

Router> enable
 

Step 4 At the password prompt, enter your system password. The following example shows entry of the password enablepass :

Password: enablepass
 

Step 5 When the enable password is accepted, the privileged EXEC mode prompt appears:

Router#
 

Step 6 You now have access to the CLI in privileged EXEC mode and you can enter the necessary commands to complete your desired tasks.

Step 7 To exit the Telnet session, use the exit or logout command as shown in the following example:

Router# logout
 


 

Changing the Console Port Access After Installation

After the Cisco CSR 1000V has booted successfully, you can change the console port access to the router using Cisco IOS XE commands. After you change the console port access, you must reload or power-cycle the router.

 

Command or Action
Purpose

Step 1

enable

 

Router> enable

Enables privileged EXEC mode.

  • Enter your password if prompted.

Step 2

configure terminal

 

Router# configure terminal

Enters global configuration mode.

Step 3

platform console auto

or

platform console virtual

or

platform console serial

 

Router(config)# platform console auto

or

Router(config)# platform console virtual

or

Router(config)# platform console serial

Options for platform console x :

  • auto —Specifies that the Cisco CSR 1000V console is detected automatically. This is the default setting during the initial installation boot process (Cisco IOS XE 3.13S and later). For additional information, see Booting the Cisco CSR 1000V as the VM.
  • virtual —Specifies that the Cisco CSR 1000V is accessed through the hypervisor virtual VGA console. This is the default setting during the initial installation boot process (on Cisco IOS XE 3.12S and earlier).
  • serial —Specifies that the Cisco CSR 1000V is accessed through the serial port on the VM.

Note : Use this option only if your hypervisor supports serial port console access.

Step 4

end

 

Router(config)# end

Exits configuration mode.

Step 5

copy system:running-config nvram:startup-config

 

Router# copy system:running-config nvram:startup-config

Copies the running configuration to the NVRAM startup configuration.

Step 6

reload

 

Router# reload

Reloads the operating system.

License Installation

One of the first steps you need to perform after obtaining console access is to install the Cisco CSR 1000V software licenses. For more information, see Chapter9, “Installing Cisco CSR 1000V Licenses”