Install the Oracle VM VirtualBox Linux virtual machine

Source: Internet
Author: User
Tags ssh oracle vm virtualbox vm virtualbox

There's nothing to do today. I installed a Linux virtual machine, used to deploy project-specific. But after the system is installed, the use of private shell connection is encountering trouble. Let's talk about the process first and talk about the problems I've encountered.

1. First open the Oracle VM VirtualBox to create a system. Allocate the memory and hard drive you have given.


2. Then download a Linux mirror, the landlord side of the choice is CentOS6.5


3. Select the system in the Oracle VM VirtualBox and click Set


Click Set to select your ISO image file in storage, then click OK. Then start the system.

4. After entering the interface, the graph will have the countdown seconds, and then after the countdown, you can enter a simple Linux graphical interface.



5. For developers, what we need more is a console, not a graphical interface. So when you open the console, you can use init 3 to enter the console interface without the need for a graphical interface.



Enter the console interface


6. Install the virtual system, the landlord needs to pass the JDK Tomcat and other deployment Server tools to enter the virtual machine.

If the virtual machine is available on the Internet, we can use the Yum command to install the program we need directly.

Here the landlord is the use of SSH tools to link my virtual machine. So here's the problem. Landlord Download the private shell, anyway is not connected.

Let's take a look at the IP in the virtual machine first, because the landlord is started with the network way of the Host-only adapter.


So IP is


Let's take a look at the landlord native IP


We'll ping the IP in two ways.



This will prove that the two machines are interoperable.

Let's open the private shell to connect Linux virtual machines


Click OK to connect


Tell me I can't create a TCP connection

This time is depressed, the Internet to find a lot, most of them say open SSH service and firewall and so on.

Let's see.


I think I found a reason.

We have the server started.


Release the firewall and open the SSH service and then connect with private shell



There is still a problem of not connecting. So the landlord to try, or give up the private shell

7. Download the securecrtportable to try


Then the first time it was so connected.


8. At first I mistakenly thought it was a software problem, until I restarted, the second time to connect to my virtual machine, the result even SECURECRT connection failed. It was later found that SSH services and firewalls were turned off again,

Here is the main firewall iptables to close, otherwise it will cause the connection timeout. If the SSH service closes, the remote system refused the Conneciton is displayed.

9. To sum up, as long as the SSH service and shut down the firewall, the two software can be connected, the landlord or more like the private shell, feel the transfer of documents more useful, have interface prototype




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.