[tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware

Time:2020-2-27

Installing CentOS in VMWare

1. Configure VMnet8 in the network adapter

After installing VMWare
The network adapter interface (control panel network and Internet network connections) will have more VMnet1 and VMnet8

VMnet1(host-only)
Virtual machine set to host only mode
You need to manually set the same subnet segment as VMnet1

VMnet8(NAT)
Provide gateway and address translation services through VMware NAT service
VMware DHCP service provides automatic IP address assignment service for virtual machine
Communicating with virtual machine through VMnet8

[tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware

We need to set up VMnet8
Right clickVMware Network Adapter VMnet8findattribute
double-clickInternet Protocol version 4 (TCP / IPv4)
[tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
Manual settingsIP addressSubnet maskDefault gateway
[tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware

Be careful
Set hereIP addressTo be on the same network segment as the current computer(Subnet maskDefault gatewayMatch)
Otherwise, you may not be able to connect to SecureCRT, and Ping may not connect to the Internet
For example: WLAN currently used
IP address is 192.168.1.116
Then the IP address of VMnet8 is 192.168.1. X

View current IP address
Open cmd.exe (Win + R and enter CMD)
inputipconfigYou can view the windows IP configuration

2. Configure VMnet8 in VMWare

Open VMWare
clickeditfindVirtual Network Editor
Find the topVMnet8
ChoiceNAT mode
ChecklistConnect the host virtual adapter to this networkandUse local DHCP service to assign IP address to virtual machine
Give WaySubnet IPandSubnet maskMatch the settings just set in the network adapter
[tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
Re enteringNAT settings
Configure the gateway and match the gateway in the network adapter
[tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
Final entryDHCP settings
Setting up theStarting IP addressAndTerminate IP address
When configuring the IP address of the virtual machine later, make sure that the IP address configured for the virtual machine is within this range
[tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware

3. Create a new virtual machine

The system used here is centos-6.10
If there are differences, please select the appropriate installation options according to your own installation files

  • Enter the new virtual machine Wizard
    Found on VMware’s home pageCreate a new virtual machineAnd click
  • Specify configuration type
    ChoiceCustom (Advanced)
  • Specify virtual machine hardware compatibility
    No special requirements (such asWorkstation 15.x
  • Installing the client operating system
    ChoiceInstall the operating system later
  • Select client operating system
    Client operating system selectionLinux
    Version isCentOS 64 bits
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
  • Name virtual machine
    Name according to your own requirements and select the installation location
    Use heretestEasy to read
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
  • Processor configuration
    Generally, the number of processors is 1, which can be increased if necessary
  • Virtual machine memory configuration
    Also adjust according to your own needs
    Generally, 1GB can be used. If it is not enough, it can be changed after the virtual machine is created
  • Network type selection
    ChoiceUse network address translation (NAT)
  • Select I / O controller type
    Use recommendedLSI Logicthat will do
  • Select disk type
    Use recommendedSCSI
  • Select disk
    ChoiceCreate a new virtual disk
  • Specify disk capacity
    The maximum disk size is20.0Enough, increase if necessary
  • Specify disk file
    Default disk filename(test.vmdkYou can
  • complete
    On the left side of VMware when finishedlibraryLowerMy computerWill appeartest[tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware

4. Install CentOS operating system

  • Add operating system
    stayCreate a new virtual machineOfInstalling the client operating systemTime
    ChoseInstall the operating system later, now add the operating system of the virtual machine
    Select on the lefttest
    stayequipmentFind belowCD/DVDAnd click
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
    On the pop-up pageVirtual machine settingsFind on the right sideConnect
    ChoiceUse ISO image file
    browseSystem files foundCentOS-6.10-x86_64-bin-DVD1.isoPosition in[tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
    Determinethat will do
  • Installing the operating system
    ChoicetestClickTurn on this virtual machine
    Wait and jump out of the interface
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
    Select firstInstall or upgrade an existing systemAccording toEnter
    After waiting a little, ask if you need to check the disc
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
    No need to check, press->ChoiceskipPress downEnter
    Get intoDetailed configurationInterface, clicknext
  • Choose a virtual machine language
    defaultEnglish(English)that will do
    You can choose other languages if you need
  • Select keyboard
    Also use the default us English keyboardU.K.English
  • Select storage device
    Using basic storage devicesBasic Storage Devices
  • Storage device warning
    Ignore all dataYes,discard any data
  • Set host name
    It is better to keep the same name as the virtual machine set before
    Here we also usetest
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
  • Set time zone
    Choose Asia / ShanghaiAsia/Shanghai
    Uncheck system clock to use UTC timeSystem clock use UTC
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
  • Set password for root
    For the convenience of memory123456
    If the password is too simple, a warning will pop up
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
    Choose to use it anywayUse Anyway
  • Select device layout
    Choose to create a custom layoutCreate Custom Layout
  • Set up hard disk partition

    Linux system partition
    Swap partitionswap, not more than 2GB when there is not enough memory
    Boot partition/boot, save system startup data, 200MB is enough
    Root zoning/

    Create swap partition
    Click CreateCreate, generate partition select standard partitionStandard Partition
    File Syatem TypeChoiceswap
    Size(MB)Set to2000
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware

    Create boot partition
    Use standard partitionStandard Partition
    Mount PointSet to/boot
    Size(MB)Set to200
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware

    Create root partition
    Use standard partitionStandard Partition
    Mount PointSet to/
    Additional Size OptionsChoiceFill to maximum allowable size
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware

    Formatting warnings
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
    Click FormatFormat

    Write storage settings to disk
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
    Click to write changes to diskWrite changes to disk

  • Confirm configuration information
    Click if there is no errornext
  • Select system interface
    DesktopandMinimal DesktopAll have graphical interfaces
    We chooseMinimalNo graphical interface, convenient for follow-up learning
  • Waiting for system installation
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
  • System installed successfully
    clickRebootRestart system

5. Log in to Linux system

Use the password configured for root when installing the virtual machine
Log in to Linux as root
[tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
After login, you can use the command to operate the Linux virtual machine


Connection between Linux virtual machine and SecureCRT

1. Configure Linux virtual machine network information

  • modify parameters
    After successful login, use the command
    vi /etc/sysconfig/network-scripts/ifcfg-eth0
    View network profileifcfg-eth0
    PressiModify file information
    takeONBOOTThe value of is changed toyes
    takeBOOTPROTOThe value of is changed tostatic
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
  • Add network information
    stayBOOTPROTO=staticAdd next line of
    IPADDR=192.168.1.20
    NETMASK=255.255.255.0
    GATEWAY=192.168.1.2
    DNS1=192.168.1.2
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware

    Be careful
    IPADDRMake sure that the starting IP address and ending IP address of the previously configured virtual machine are between
    NETMASKandGATEWAYAlso match the subnet mask and gateway configured before
    DNSJust use the gateway

    After confirming that the configuration has been modified correctly
    PressEscinputwq!
    Save configuration information and exit

  • service network restart
    Input command
    service network restart
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
    All show[ OK ]No problem, proceed to the next step
    If appear[ FAILED ]It indicates that there is a problem with the configuration information, and the corresponding processing is carried out according to the prompt information
  • View network information
    Input command
    ifconfig
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
    Match the information just configured
  • Ping external network
    Commands are available
    ping www.baidu.com
    To further check if there is a problem with the configuration information
    If there is no problem, the following message will be displayed
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware

2. Connect SecureCRT

  • Establish a quick connection
    There is a lightning sign on SecureCRT’s toolbar
    Click on it to establish a quick connection
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
  • Input information
    inputHostname, which is set up aboveIPADDR
    inputUsername, used hereroot
    clickConnect
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
  • Prompt information
    Tips for new host
    Click accept and saveAccept&Save
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
  • Input password
    Enter the password for the root user
    ChecklistSave assword
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
  • Successful connection
    [email protected]:~Appear before, indicating that the Linux virtual machine is successfully connected to SecureCRT
    [tutorial] installing the connection of CentOS, Linux virtual machine and SecureCRT in VMware
    You can operate Linux virtual machine on SecureCRT

Recommended Today

What are the new methods of visual + map technology?

Last week, Ren Xiaofeng, chief scientist of Alibaba Gaode map, made a technical exchange with you on the development of computer vision related technology and the application in the field of map travel at the online live broadcast activity of “cloud dialogue” between senior students of Alibaba. The interaction between live broadcast is hot. Especially […]