ostridge
Guru
- Joined
- Jan 22, 2015
- Messages
- 1,816
- Reaction score
- 630
I thought it a bit of a chore to start learning and using the console - so this may help.
Scope of this is really for emergencies to fix a broken config.
direct-console-access-to-your-linux-instances-from-the-oci-console
Compute>Instances>Instance details
Scroll down to the Resources navigation on the left side of page
Click on Console connection and then 'Launch Cloud Shell connection' until console appears.
Wait until the console is populated and linked to your instance.
For More tips See Troubleshooting Instances from Instance Console Connections
Scroll down page to 'Troubleshooting Instances from Instance Console Connections'
AND scroll to subheading Linux
Issue the following commands:
Well that should save some reading help a little with navigation of the docs.
Scope of this is really for emergencies to fix a broken config.
direct-console-access-to-your-linux-instances-from-the-oci-console
Compute>Instances>Instance details
Scroll down to the Resources navigation on the left side of page
Click on Console connection and then 'Launch Cloud Shell connection' until console appears.
Wait until the console is populated and linked to your instance.
Troubleshooting Instances Using Instance Console Connection
Use a console connection to remotely troubleshoot malfunctioning instances.
docs.oracle.com
For More tips See Troubleshooting Instances from Instance Console Connections
Scroll down page to 'Troubleshooting Instances from Instance Console Connections'
AND scroll to subheading Linux
Issue the following commands:
Bash:
# Start a bash shell
init=/bin/bash
# From the Bash shell, run the following command to load the SElinux policies to preserve the context of the files you are modifying:
/usr/sbin/load_policy -i
# Run the following command to remount the root partition with read/write permissions:Run the following command to remount the root partition with read/write permissions:
/bin/mount -o remount, rw /
# Edit the configuration files as needed to try to recover the instance.
# To whitelist your router's dynamicIP you may need an FQDN from a DDNS provider; you can then run
/root/add-fqdn <my-home-router-fq-name> <my-router's-fqdn.domain.tld>
# If you have fixed IP for your home router run
/root/add-ip <myhome-ip-name> <IPaddress>
# After you have finished editing the configuration files, to start the instance from the existing shell, run the following command:
exec /usr/lib/systemd/systemd
# Alternatively, to reboot the instance, run the following command:
/usr/sbin/reboot -f
[HEADING=1]# Exiting the Instance Console Connection[/HEADING]
# When using SSH, the ~ character at the beginning of a new line is used as an escape character.
# To exit the serial console, enter:
~.
# To suspend the SSH session, enter:
~^z
# To see all the SSH escape commands, enter:
~?
Well that should save some reading help a little with navigation of the docs.
Last edited: