vmware installs openEuler operating system

1. Download the openEuler operating system image file

Official website download link: https://www.openeuler.org/zh/download/

Select the openEuler 22.03 LTS SP2 version standard image package here.
File name: openEuler-22.03-LTS-SP2-x86_64-dvd.iso
sha256: 69ea8e0faa1b45cf4a63bc1c3584834fcebaf292a38e4391607e61ad6047c2b2

Insert image description here

2. Install the openEuler operating system

Insert image description here

Insert image description here

Insert image description here

openEuler 22.03 LTS is based on linux kernel 5.10, so choose other Linux 5.x kernel 64-bit

Insert image description here

Insert image description here

Disk 100G

Insert image description here

Custom hardware

Insert image description here

Insert image description here

Insert image description here

Start the virtual machine

Insert image description here

Select Install openEuler 22.3-LTS-SP2 and press Enter

Insert image description here

Insert image description here

Select operating system default language

Insert image description here

Software Selection

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Select Root Account

Insert image description here

Insert image description here

Select Installation Destination

Insert image description here

Insert image description here

The new mount point will use the following partition scheme(N): Select LVM

Insert image description here

Disk 100G, use the following partition strategy

mount point Partition name Partition size Partition file system Equipment type
/ root partition 50G ext4 LVM
/home home partition 20G ext4 LVM
SWAP SWAP partition 15G SWAP LVM
/was var partition 14G ext4 LVM
/boot boot partition 1G ext4 Stand Partition
biosboot biosboot partition 2M BIOS Boot Stand Partition

Click + to create root partition

Insert image description here

Select the file system as EXT4

Insert image description here

Then click + in the lower left corner to create a second partition /home

Insert image description here

Insert image description here

Then click + in the lower left corner to create a third partition SWAP

Insert image description here

Insert image description here

Then click + in the lower left corner to create the fourth partition /var

Insert image description here

Insert image description here

Then click + in the lower left corner to create the fifth partition/boot

Insert image description here

Insert image description here

Then click + in the lower left corner to create the sixth partition biosboot

Insert image description here

When adding biosboot, the remaining space is less than 2M and the biosboot partition cannot be added.

Insert image description here

The solution is to shrink the /var partition to 13G first, so that 1G is reserved.

Insert image description here

Insert image description here

After adding biosboot, allocate all remaining space to /var

Insert image description here

The remaining 1023M space is allocated to the /var partition again

Note that the current remaining available space is displayed in the lower left corner of the page.

Insert image description here

Update the /var partition size again and allocate all remaining space to the /var partition

Scroll down the page and click Update Settings to update the size of the /var partition.

Insert image description here

Insert image description here

Now the partition creation is complete.
Click Finish in the upper left corner.

Insert image description here

Insert image description here

Click Begin Installation

Insert image description here

The first step is to create a custom LVM partition
Insert image description here

Wait for the installation to complete just a moment

Insert image description here

Insert image description here

When the following interface appears, the installation is complete and click Reboot System.

Insert image description here

Insert image description here

Insert image description here

login successful

Insert image description here

View kernel and system version information

Insert image description here

3. Configure the openEuler operating system

3.1. Configure static IP address and dns

cp /etc/sysconfig/network-scripts/ifcfg-ens33  /etc/sysconfig/network-scripts/ifcfg-ens33.bak

Edit network card configuration file

vi /etc/sysconfig/network-scripts/ifcfg-ens33

①Change BOOTPROTO=dhcp to BOOTPROTO=static
②Insert the following content

IPADDR=192.168.2.153  #静态IP地址
NETMASK=255.255.255.0 #掩码
GATEWAY=192.168.2.2   #网关
DNS1=192.168.2.2      #首选DNS
DNS2=114.114.114.114  #备选DNS

Please refer to the following modification process for the network card configuration file.
Before modification

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens33
UUID=25fa4dcd-5fca-47c0-a335-c3acb7b4abed
DEVICE=ens33
ONBOOT=yes

After change

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens33
UUID=25fa4dcd-5fca-47c0-a335-c3acb7b4abed
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.2.154
NETMASK=255.255.255.0
GATEWAY=192.168.2.2
DNS1=192.168.2.2
DNS2=114.114.114.114

After the changes are completed, restart the network service to make the changes take effect.

reboot 

Insert image description here

After restarting the system, the IP address and gateway will take effect.
Insert image description here

3.2. View disk partitions

 df -lTh

Insert image description here

3.3. Check the system version

cat /etc/*release

Insert image description here

Check the kernel version gcc version glibc version
The kernel version is 5.10 The gcc version is 10.3.1 The glibc version is 2.34

Insert image description here

View software sources

[root@localhost ~]# cat /etc/yum.repos.d/openEuler.repo 
#generic-repos is licensed under the Mulan PSL v2.
#You can use this software according to the terms and conditions of the Mulan PSL v2.
#You may obtain a copy of Mulan PSL v2 at:
#    http://license.coscl.org.cn/MulanPSL2
#THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
#IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
#PURPOSE.
#See the Mulan PSL v2 for more details.

[OS]
name=OS
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/OS/$basearch/
metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/OS&arch=$basearch
metadata_expire=1h
enabled=1
gpgcheck=1
gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/OS/$basearch/RPM-GPG-KEY-openEuler

[everything]
name=everything
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/everything/$basearch/
metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/everything&arch=$basearch
metadata_expire=1h
enabled=1
gpgcheck=1
gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/everything/$basearch/RPM-GPG-KEY-openEuler

[EPOL]
name=EPOL
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/EPOL/main/$basearch/
metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/EPOL/main&arch=$basearch
metadata_expire=1h
enabled=1
gpgcheck=1
gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/OS/$basearch/RPM-GPG-KEY-openEuler

[debuginfo]
name=debuginfo
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/debuginfo/$basearch/
metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/debuginfo&arch=$basearch
metadata_expire=1h
enabled=1
gpgcheck=1
gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/debuginfo/$basearch/RPM-GPG-KEY-openEuler

[source]
name=source
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/source/
metalink=https://mirrors.openeuler.org/metalink?repo=$releasever&arch=source
metadata_expire=1h
enabled=1
gpgcheck=1
gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/source/RPM-GPG-KEY-openEuler

[update]
name=update
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/update/$basearch/
metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/update&arch=$basearch
metadata_expire=1h
enabled=1
gpgcheck=1
gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/OS/$basearch/RPM-GPG-KEY-openEuler

[update-source]
name=update-source
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/update/source/
metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/update&arch=source
metadata_expire=1h
enabled=1
gpgcheck=1
gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP2/source/RPM-GPG-KEY-openEuler
[root@localhost ~]# 

Get software source metadata

yum makecache

Insert image description here
Now that the configuration is complete, you can start your openEuler journey.

Guess you like

Origin blog.csdn.net/OceanWaves1993/article/details/135327584
Recommended