当前位置:网站首页>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
边栏推荐
- Pytest-- test report allure configuration
- Centos7 one click compilation and installation of PHP script
- [Lua] summary of common knowledge points (including common interview sites)
- 【虚幻4】UMG组件的简介与使用(更新中...)
- 2.14 is it Valentine's day or Valentine's day when the mainstream market continues to fluctuate and wait for changes?
- VLAN experiment
- 虚幻材质编辑器基础——如何连接一个最基本的材质
- 2021-10-04
- Project practice, redis cluster technology learning (12)
- [tutorial] how to make the Helpviewer help document of VisualStudio run independently
猜你喜欢
Blender multi lens (multi stand) switching
[unity3d] nested use layout group to make scroll view with dynamic sub object height
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
Blender体积雾
Post disaster reconstruction -- Floyd thought
flink 提交程序
Remember the use of add method once
[illusory] automatic door blueprint notes
How to judge the quality of primary market projects when the market is depressed?
Leetcode -- the nearest common ancestor of 236 binary tree
随机推荐
[jetbrain rider] an exception occurred in the construction project: the imported project "d:\visualstudio2017\ide\msbuild\15.0\bin\roslyn\microsoft.csh" was not found
【虚幻4】从U3D到UE4的转型之路
lunix重新分配root 和 home 空间内存
ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林
Project practice, redis cluster technology learning (10)
Vscode auto format
[Lua] summary of common knowledge points (including common interview sites)
Notes de base sur les plans illusoires d'IA (triés en 10 000 mots)
Deep understanding of redis cache avalanche / cache breakdown / cache penetration
Merge ordered sequence
Vscode set JSON file to format automatically after saving
[leetcode] sword finger offer 53 - I. find the number I in the sorted array
Project practice, redis cluster technology learning (6)
Unreal material editor foundation - how to connect a basic material
[Fantasy 4] the transformation from U3D to UE4
MySQL -- time zone / connector / driver type
【Unity3D】无法正确获取RectTransform的属性值导致计算出错
Project practice, redis cluster technology learning (12)
Blender体积雾
Determine whether there are duplicate elements in the array