1.3. Accessing the console

Opening a console on your virtual machine

Console access

If your VM is running, you can open a console on the VM using the virtctl tool.

First, list your VMs to get the name of your VirtualMachine:

kubectl get vm --namespace lab-<username>

The output should be:

NAME            AGE   STATUS    READY
lab01-firstvm   10m   Running   True

Task 1.3.1: Entering the console

Enter the console using:

virtctl console lab01-firstvm --namespace lab-<username>

Congratulations, you successfully connected to your VMs console! The expected output is:

Successfully connected to lab01-firstvm console. The escape sequence is ^]

login as 'cirros' user. default password: 'gocubsgo'. use 'sudo' for root.
training-worker-0 login:

You can now use the default credentials to log in:

  • User: cirros
  • Password: gocubsgo

Try executing a couple of commands, such as:

whoami
ping tim-koko.ch