[tutorial] install CentOS, Linux virtual machine and SecureCRT connection in VMWare

Time:2020-2-26

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] install CentOS, Linux virtual machine and SecureCRT connection in VMWare

We need to set up VMnet8
Right clickVMware Network Adapter VMnet8findattribute
double-clickInternet Protocol version 4 (TCP / IPv4)
[tutorial] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
Manual settingsIP addressSubnet maskDefault gateway
[tutorial] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
Re enteringNAT settings
Configure the gateway and match the gateway in the network adapter
[tutorial] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
  • Name virtual machine
    Name according to your own requirements and select the installation location
    Use heretestEasy to read
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
    Determinethat will do
  • Installing the operating system
    ChoicetestClickTurn on this virtual machine
    Wait and jump out of the interface
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
    Select firstInstall or upgrade an existing systemAccording toEnter
    After a while, ask if you need to check the disc
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
  • Set time zone
    Choose Asia / ShanghaiAsia/Shanghai
    Uncheck system clock to use UTC timeSystem clock use UTC
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
  • Set password for root
    For the convenience of memory123456
    If the password is too simple, a warning will pop up
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection in VMWare

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

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

    Formatting warnings
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
    Click FormatFormat

    Write storage settings to disk
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection 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] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
  • Input information
    inputHostname, which is set up aboveIPADDR
    inputUsername, used hereroot
    clickConnect
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
  • Prompt information
    Tips for new host
    Click accept and saveAccept&Save
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
  • Input password
    Enter the password for the root user
    ChecklistSave assword
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
  • Successful connection
    [email protected]:~Appear before, indicating that the Linux virtual machine is successfully connected to SecureCRT
    [tutorial] install CentOS, Linux virtual machine and SecureCRT connection in VMWare
    You can operate Linux virtual machine on SecureCRT

Recommended Today

Incomplete delivery order log of SAP SD basic knowledge

Incomplete delivery order log of SAP SD basic knowledge   If we call the incomplete project log, the system checks whether the data in the outbound delivery is complete. From the generated list, we can directly jump to the screen of maintaining incomplete fields.   We can call log of incomplete items from delivery processing, […]