当前位置:网站首页>Virtual machine installation and configuration

Virtual machine installation and configuration

2022-06-09 08:40:00 weixin_ forty-six million seven hundred and eighty-seven thousa

1. install Vmware

  • Open the website
     Insert picture description here
  • Download the file
     Insert picture description here
  • Double click the downloaded file to install the app
  • Open application
     Insert picture description here

2. Install the image Here the centos7

 Insert picture description here

  • Download mirroring
     Insert picture description here

3. Create a virtual machine

 Insert picture description here
technological process :
Click create new virtual machine =》 next step =》 Choose download good centos The next step of the mirror path =》 Name the virtual machine centos7, Fill in the username and password , Be careful root The password of the user will be the same as that of the newly created user =》 next step =》 Fill in the number of processors , Fill in the next step according to your computer configuration =》 Set the memory size to 4096 next step =》 next step =》... As recommended =》 Select the virtual machine creation location. The file name cannot have Chinese =》 complete =》 Automatic installation

After installation, you can use root The user login

4. Virtual machine related operations

You can choose to restart
 Insert picture description here

5. Virtual machine configuration

  • View virtual machine ip Address
$ ifconfig         // You can view the virtual machine IP

 Insert picture description here

  • use ping Check whether the network of the virtual machine is available
$ ping 192.168.228.128

 Insert picture description here

  • Modify static ip
& vim /etc/sysconfig/network-scripts/ifcfg-ens33
# modify 
bootproto=static(dhcp)   
onboot=yes

# increase 
IPADDR=192.168.228.128
NETMASK=255.255.255.0
GATEWAY=192.168.228.2
DNS1=8.8.8.8

Save and exit after modification

  • Modify host name
 Open file 
& vim /etc/hostname    

Change the name
 Insert picture description here

  • Restart the network
$ systemctl restart network
  • Turn off firewall
$ systemctl stop firewalld
$ systemctl disable firewalld
  • close selinux
vim /etc/selinux/config

#  modify 
SELINUX=disabled

6. Restart the virtual machine

$ reboot 

7. Cloning of virtual machines ( Used to build clusters )

Be careful : Before cloning and it should be in the off state
 Insert picture description here

  • Right click and select Rename virtual machine name
  • Right click =》 management =》 clone =》 next step =》 Select create complete clone =》 Name the virtual machine and select the installation location. Next =》
  • Modify the configuration of the cloned virtual machine
    Right click on the newly cloned virtual machine =》 Set up =》 network adapter =》 senior =》MAC Address regeneration =》 Turn on virtual machine =》vim /etc/hostname Modify host name ,vim /etc/sysconfig/network-scripts/ifcfg-ens33 modify ip The address cannot be the same as the clone machine , Restart the network systemctl restart network, Restart the virtual machine reboot

8.ssh Remote login use mobaxterm Connecting virtual machines

  • Check whether there is... On the virtual machine sshd$ systemctl status sshd

  • without sshd install sshd$ yum install -y openssl openssh-server,$ systemctl restart sshd & systemctl enable sshd
     Insert picture description here

  • Download the free version mobaxterm And install
     Insert picture description here
    Create connection
     Insert picture description here

Fill in the goal ip Use root The user login

 Insert picture description here
Click create and enter root The user's password creates a connection

9 Upload and download files

  • install ftp The server File transfer protocol
    yum install vsftpd
    systemctl start vsftpd
    systemctl status vsftpd
    systemctl enable vsftpd

  • establish SFTP Connect
     Insert picture description here

Download the file
 Insert picture description here
Upload files
Drag and drop directly to upload
 Insert picture description here

原网站

版权声明
本文为[weixin_ forty-six million seven hundred and eighty-seven thousa]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206090835001116.html