Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

VMware15 installation CentOS7 detailed procedures and frequently asked questions (picture and text)

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

0 VMware15 detailed procedures for installing CentOS7 and frequently asked questions

Inadequacies, please contact atcode99@qq.com correction, thank you!

1 installation package preparation

VMware-player-15.0.4-12990004, free version for non-commercial, personal and household purposes

CentOS-7-x86_64-DVD-1810.iso

Both VMware and CentOS are in continuous updates. New versions can be obtained from the following address, and the installation process is more or less the same:

Https://www.vmware.com/cn/products/workstation-player/workstation-player-evaluation.html

Http://isoredirect.centos.org/centos/7/isos/x86_64/

2 WMware virtual machine configuration

2.1Open VMware and create a virtual machine

2.2: choose to install the operating system later, and then configure virtual machines such as hard disk memory processor network, etc.

Select the client operating system Linux, version CentOS 7 64-bit

2.4: name the virtual machine, specify the name and location of the virtual machine, and fill it according to your actual situation. My name is atcode99.

2.5: specify the disk capacity and fill it according to the situation of your own machine. It is recommended to be slightly larger, such as 30g, and then choose to split the virtual machine hard disk into multiple files to facilitate the copy and backup of the virtual machine.

2.6 (optional): select custom hardware, of course, these virtual machine configurations can be modified later, so you can also ignore the remaining 6 steps 12 steps of virtual machine configuration. Of course, you can also do it step by step to understand the whole configuration process.

2.7 (optional): specify the amount of memory allocated to this virtual machine. My machine is 16G, because the virtual machine is often used for source code analysis, and half of the 8G is allocated to the virtual machine.

2.8 (optional): the number of processor cores is set to 2 to facilitate understanding of multi-core programming

2.9 (optional): network connection is set to bridging mode

If you choose the bridge mode, the virtual machine and the host will have an equal relationship on the network, providing clients with direct access to the external Ethernet network.

2.10 (optional): the other several are not very important, click finish, so the virtual machine custom hardware is over.

2.11 (optional): virtual machine configuration interface, click Edit virtual machine settings to reconfigure

2.12 (optional): virtual machine hardware settings interface

3 CentOS installation

3.1Select the ISO image file CentOS-7-x86_64-DVD-1810.iso in the virtual machine settings interface

3.2: play the virtual machine to start the installation

There are three options: wait for timeout or enter directly. The first Install CentOS 7 is selected, and the second figure shows the installation progress log.

3. 4: choose a language, continue directly, and default. American keyboard, English, American English

3.5: set date and time

3.6. choose the software you need to install, and Server with GUI is strongly recommended, so you can have a GUI graphical interface.

Click Begin Installation to start the installation, and then you can have a rest, drink water, take a walk, and remember to drink plenty of water and don't sit for a long time.

3.8:ROOT user password configuration

3.9:USER user password configuration

3.10: click the configuration, then wait a minute, click Reboot, and restart the system.

Question 1: virtual machine bridging mode network link

After entering the virtual machine system, I found that there seems to be no IP address assigned.

Use root users

[root@localhost atcode99] # vi / etc/sysconfig/network-scripts/ifcfg-ens33

Change ONBOOT=no to yes, indicating that the network card is activated when the system starts.

[root@localhost atcode99] # service network restart

Check again, IP address has been assigned, network connection is successful

[root@localhost atcode99] # ping www.sina.com.cn

PING spool.grid.sinaedge.com (36.51.254.37) 56 (84) bytes of data.

64 bytes from 36.51.254.37 (36.51.254.37): icmp_seq=1 ttl=46 time=95.6 ms

64 bytes from 36.51.254.37 (36.51.254.37): icmp_seq=2 ttl=46 time=90.1 ms

5 problem 2:Samba server

1. Install samba

[root@localhost atcode99] # yum install samba

two。 Add samba user

[root@localhost atcode99] # smbpasswd-an atcode99

New SMB password:

Retype new SMB password:

Added user atcode99.

3. Configure samba

[root@localhost atcode99] # vi / etc/samba/smb.conf

Add at the end

[atcode99]

Path = / home/atcode99

Browseable = yes

Writable = yes

Valid users = atcode99

It is important to turn off the firewall and selinux

[root@localhost atcode99] # iptables-F

[root@localhost atcode99] # setenforce 0 restart the service, and you are done

[root@localhost atcode99] # service smb restart

Redirecting to / bin/systemctl restart smb.service

[root@localhost atcode99] # service nmb restart

Redirecting to / bin/systemctl restart nmb.service6 problem 3: the screen is always black after turning on the virtual machine

Run the Command prompt as an administrator in the host system

After opening a command prompt window, type

Netsh winsock reset enter

After the reset is complete, restart the host. When you start the virtual machine again, it should be normal.

This problem is caused by the fact that the bottom layer of the system network is injected by other programs, resulting in the failure of the virtual machine software to communicate normally.

7 key files of 4:WMware virtual machine, backup, startup exception, etc.

Focus on .vmem and .lck files.

The first .vmem file does not need to be backed up, which can save space; it is best to back up the virtual machine frequently in case of an accident.

The virtual machine may not start properly when the second .lck file is abnormally closed, delete and restart the virtual machine.

The following is a description of the specific file type

Virtual machines contain multiple types of files stored on supported storage devices. The list is as follows:

.nvram virtual machine BIOS or EFI configuration

.vmx virtual machine configuration file, which is usually opened to boot the system

.vmxf other virtual machine configuration files that generally do not need to be changed.

.vmdk virtual disk feature

The virtual disk on which the virtual machine holds files. The system and all files in the virtual machine are in this file.

.vmem virtual memory file

You don't need to copy it when you back up, and it doesn't matter if you delete it, because it will be established automatically when you start it.

.lck lock file directory

When you start the virtual machine, the virtual machine profile / virtual disk / virtual memory will have a directory. Provides protection mechanisms to prevent multiple virtual machines from accessing a .vmdk virtual disk file at the same time. When the virtual machine shuts down normally, the directory is automatically deleted.

During an abnormal shutdown, the .lck lock file directory may remain, causing the WMWare virtual machine to not start properly. Delete the .lck (note that there may be multiple) and restart the VMWare virtual machine.

The dictionary files for the .vmsd virtual machine snapshot and the associated vmdk are generally unchanged.

The .vmss virtual machine suspends the files and closes the files when the virtual machine is suspended. If the system is turned off, none.

.log current virtual machine log file

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report