• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

UnixArena

  • Home
  • kubernetes
  • DevOps
    • Terraform
    • Jenkins
    • Docker
    • Openshift
      • OKD
    • Ansible engine
    • Ansible Tower
      • AWX
    • Puppet
  • Cloud
    • Azure
    • AWS
    • Openstack
    • Docker
  • VMware
    • vCloud Director
    • VMware-Guests
    • Vcenter Appliance 5.5
    • vC OPS
    • VMware SDDC
    • VMware vSphere 5.x
      • vSphere Network
      • vSphere DS
      • vShield Suite
    • VMware vSphere 6.0
    • VSAN
    • VMware Free Tools
  • Backup
    • Vembu BDR
    • Veeam
    • Nakivo
    • Azure Backup
    • Altaro VMBackup
    • Spinbackup
  • Tutorials
    • Openstack Tutorial
    • Openstack Beginner’s Guide
    • VXVM-Training
    • ZFS-Tutorials
    • NetApp cDot
    • LVM
    • Cisco UCS
    • LDOM
    • Oracle VM for x86
  • Linux
    • How to Articles
    • Q&A
    • Networking
    • RHEL7
  • DevOps Instructor-led Training
  • Contact

How to disable control Alt Delete on VMware Linux Guests ?

May 6, 2014 By Cloud_Devops 1 Comment

I just want to share about the incident that  happened on our VMware vSphere environment last week. In our environment, we have mix of windows and Redhat Linux guest operating systems that are running on VMware ESXi . One of the Redhat Linux server rebooted automatically and the root cause was that some one send Ctrl-Alt-Delete (Ctrl-Alt-Insert) to redhat guest OS. Normally Unix administrator will never invoke such key combination on linux host.Later on we came to know that one of the windows admin was trying to login to windows host from vCenter client and due to slow network/by mistake he has selected the Linux host instead of windows host on the vcenter console. Before console popups, he pressed ctrl-Alt-Insert(which sends Ctrl-Alt-Delete signals to guest ) on the guest and Linux host  got rebooted.

So the conclusion is  better to  disable the Ctrl-Alt-Delete on all the VMware’s Linux guest operating systems.So that these kind of incidents can be prevented.

Here we will see how we can disable the control-Alt-Delete on Redhat Linux guest operating system.

1. Login to vCenter server and navigate it  to Linux guest OS console.

VMware ESXi Redhat Linux console
VMware ESXi Redhat Linux console

If you press Ctrl-Alt-Delete or Ctrl-Alt-Insert , system will reboot . Here is the execution .

Control-Alt-Insert Effect
Control-Alt-Insert Effect

 

2. Login to Redhat Linux as root  and identify the ctrl-alt-delete control file.

Indentify Control File for ctrl alt delete
Identify Control File for ctrl alt delete

As per the above screen shot,  ctrl-alt-delete has been controlled using /etc/init/control-alt-delete.conf file.

In older version of Redhat Linux, this key sequence has been managed by /etc/inittab file and entries will be something like the below one. Just comment out the below entries to disable the key sequence.

Before change:

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

After the change:

# What to do when CTRL-ALT-DEL is pressed.
# ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

3.In Our case , just edit the /etc/init/control-alt-delete.conf file like below.I have put some meaning full comments by replacing the shutdown command. This change is instantaneous and no reboot required.

Disabled the control Alt Delete

Disabled the control Alt Delete

4.You can send the control-alt-delete signal to Linux guest to verify (Control-Alt-Insert) our change.

This control file location may differ to different Linux flavours .Please leave a comment if you have any other method to prevent this kind of issues.

Hope this article is informative to you.

Share it ! Comment it !! Be Sociable !!!

Filed Under: VMware-Guests

Reader Interactions

Comments

  1. Bhutta says

    September 29, 2016 at 3:05 pm

    Let’s Start exploring the Docker – Container World

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow UnixArena

  • Facebook
  • LinkedIn
  • Twitter

Copyright © 2025 · UnixArena ·

Go to mobile version