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
2. Install the openEuler operating system
openEuler 22.03 LTS is based on linux kernel 5.10, so choose other Linux 5.x kernel 64-bit
Disk 100G
Custom hardware
Start the virtual machine
Select Install openEuler 22.3-LTS-SP2 and press Enter
Select operating system default language
Software Selection
Select Root Account
Select Installation Destination
The new mount point will use the following partition scheme(N): Select LVM
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
Select the file system as EXT4
Then click + in the lower left corner to create a second partition /home
Then click + in the lower left corner to create a third partition SWAP
Then click + in the lower left corner to create the fourth partition /var
Then click + in the lower left corner to create the fifth partition/boot
Then click + in the lower left corner to create the sixth partition biosboot
When adding biosboot, the remaining space is less than 2M and the biosboot partition cannot be added.
The solution is to shrink the /var partition to 13G first, so that 1G is reserved.
After adding biosboot, allocate all remaining space to /var
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.
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.
Now the partition creation is complete.
Click Finish in the upper left corner.
Click Begin Installation
The first step is to create a custom LVM partition
Wait for the installation to complete just a moment
When the following interface appears, the installation is complete and click Reboot System.
login successful
View kernel and system version information
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
After restarting the system, the IP address and gateway will take effect.
3.2. View disk partitions
df -lTh
3.3. Check the system version
cat /etc/*release
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
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
Now that the configuration is complete, you can start your openEuler journey.