当前位置:网站首页>01 install virtual machine
01 install virtual machine
2022-07-02 10:32:00 【Lucky lucky】
vmware / virualbox
vm => virtual machine
1 vmware => n vm
redhat / ubuntu / centos7( be based on redhat)
### Steps for creating a new virtual machine ####
#1、 First create the installation folder in the computer 
vm-env Under the file is the virtual machine tool file 
vm-data Place the data file under the file 
#2、 Create a folder such as single01
#3、 Turn on the virtual machine , Click new virtual machine , Choose Custom installation , Click next
Do the following , Proceed in the order of pictures , No more text , Relatively simple .



The location is the folder you just created single01 Absolute road strength 
It should be allocated according to the configuration of your computer , In general, take general . For example, I am a 4 Core eight threads , The number of processors I give is 2, The number of cores per processor is 2.
Take half of your computer memory .






Click Custom hardware 

Click Close , Click Finish to start the new virtual machine , Select the first white line and press enter 






Finally, click Begin Installation
because Too short, all Done Click twice
root
root
The account name is the same as the password name , Easy to remember .

# View host name
hostname
# Modify hostname
hostnamectl set-hostname singlelucky
# View firewall status
systemctl status firewalld
# Turn off firewall
systemctl stop firewalld
# Disable firewall
systemctl disable firewalld
# Check the network status
systemctl status network
# Check that the network management service is turned off and disabled
systemctl status NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
#network To configure
vi /etc/sysconfig/network-scripts/ifcfg-ens33
Enter at the command line :1,$s/\"//g Replace “” It's empty
BOOTPROTO=static
IPADDR=192.168.19.xxx
NETMASK=255.255.255.0
GATEWAY=192.168.19.x
DNS1=8.8.8.8
DNS2=114.114.114.11
# Restart network service
systemctl restart network
Fight intranet :ping www.baidu.com
Internet connection :WINS+R Open the command window to input cmd, In the command editor, enter :ping 192.168.19.xxx
open Xshell New session 
Click login as user , Input information 
#########################Xshell#################################
# Configure the host name and IP
vi /etc/hosts
[root@singlelucky ~]# hostname
singlelucky
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.19.xxx singlelucky
# Local image mount
# Local image mount
Switch user view /dev/sr0 /mnt
[root@singlelucky ~]# su lucky
[lucky@singlelucky /]$ ls
bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[lucky@singlelucky /]$ cd dev/
[lucky@singlelucky dev]$ ls
[lucky@singlelucky dev]$ cd /
[lucky@singlelucky /]$ ls
bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
Switch back to mount
[lucky@singlelucky /]$ su root
Password:root
mount /dev/sr0 /mnt
# Configure local mirror source
cd /etc/yum.repos.d
# Create a backup folder , Back up the default image file to this file
mkdir bak
mv *.repo bak/
# Create and edit the local image profile
vi base.repo
------------------------
[local]
name=local
baseurl=file:///mnt
gpgcheck=0
enabled=1
------------------------
# Set the remote Huawei image source
wget -o CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo
# Install the local file transfer plug-in
yum -y install lrzsz
# Drag and upload to the current directory
#sz RESOURCE_NAME => Select the download directory
边栏推荐
- Project practice, redis cluster technology learning (IX)
- Post disaster reconstruction -- Floyd thought
- [unreal] key to open the door blueprint notes
- How does {} prevent SQL injection? What is its underlying principle?
- Leetcode -- the nearest common ancestor of 236 binary tree
- [pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces
- sqoop创建job出现的一系列问题解决方法
- Blender模型导入ue、碰撞设置
- [unity3d] nested use layout group to make scroll view with dynamic sub object height
- ERROR 1118 (42000): Row size too large (> 8126)
猜你喜欢

测试--面试题总结

Pytest framework implements pre post

Blender stone carving

Basic notes of illusory AI blueprint (10000 words)

JS reduce accumulator
![[Fantasy 4] introduction and use of UMG components (under update...)](/img/33/7e3b74192b7fd73d5145f85e061d1f.png)
[Fantasy 4] introduction and use of UMG components (under update...)

UE illusory engine programmed plant generator setup -- how to quickly generate large forests

Configuration programmée du générateur de plantes du moteur illusoire UE - - Comment générer rapidement une grande forêt
Brief analysis of edgedb architecture
![[illusory] weapon slot: pick up weapons](/img/a7/1e395fc9cdfd0359e7ae4d2313290d.png)
[illusory] weapon slot: pick up weapons
随机推荐
Ctrip starts mixed office. How can small and medium-sized enterprises achieve mixed office?
Blender多镜头(多机位)切换
【虚幻4】从U3D到UE4的转型之路
ue4材质的入门和原理笔记
【Visual Studio】每次打开一个Unity3D的脚本,都会自动重新打开一个新的VS2017
快速做出原型
This article takes you to learn in detail what is fiber to home FTTH
MPLS experiment
Flink实时计算topN热榜
Basic usage of mock server
ERROR 1118 (42000): Row size too large (> 8126)
Operator exercises
Post disaster reconstruction -- Floyd thought
Centos7 one click compilation and installation of PHP script
Pytest learning --base
[unreal] animation notes of the scene
Applet development summary
UE5——AI追逐(蓝图、行为树)
Zlib download and use
2021-09-12