Network provisioning and cloning of virtual machines

1. Select the desired clone a virtual machine, right-click menu select, manage - cloning, click clone;

 

 

Here you need to explain snapshots, it is to back up the current system, after the system recovery, cloning is very convenient, the newly installed system snapshot what best to do, (the newly installed virtual machine to do a snapshot, installed environment then do a snapshot.)
Specific methods: Right-click on the virtual machine, select a snapshot - taking snapshots when shooting snapshots sure to add description, description at this time which environmental systems are installed. Otherwise, after a period of time I do not know what this snapshot in the end is installed.
 
 
2. Select the clone of the current state (where you can select the current status of cloning existing snapshot or saved), and then choose to create a complete clone (create a complete clone is to create a new virtual machine and out of the original virtual machine is independent and not sharing any resources; linked clones share a disk file, save space, the virtual machine can not be cloned from the original virtual machines run independently), click Next;

 

 

 

 

3. Define the name and location of the virtual machine, and finally create a folder to put the virtual machine, click Finish;

 

 

4. clone virtual machine is prompted, after click Close;

 

 Finally, good virtual machine clones shown in FIG.

 

5. Right-click on the newly created virtual machine, select Settings;
 
 
6. In the virtual machine settings panel, select the network adapter click Advanced;
7. In the pop-up panel, click the network adapter advanced settings to generate a new MAC address, remember that MAC address (as the new virtual machine is cloned from, MAC address, both shown here is the same, this is problematic must be rebuilt, I just fell into the pit);
8. Start the virtual machine, configure the network card, the above steps centos7 and centos6 basically the same, but there are differences NIC configuration
centos7 directly modify / etc / sysconfig / network-scripts / ifcfg-eth16777728 file (the file name may be different, but all begin with ifcfg-et's)
HWADDR modify and configure a new IPADDR (configuration file when I did not find HWADDR, online inquiry said HWADDR needs and new MAC address previously generated the same)
 
 
 
 

Bridge mode network configuration

1, ip address and other configuration information to do the following configuration in / etc / sysconfig / network-scripts / ifcfg-ens33 file:

 command:

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

Modify as follows:

 
  1. YPE="Ethernet"   # 网络类型为以太网

  2. BOOTPROTO="static"  # 手动分配ip

  3. NAME="ens33"  # 网卡设备名,设备名一定要跟文件名一致

  4. DEVICE="ens33"  # 网卡设备名,设备名一定要跟文件名一致

  5. ONBOOT="yes"  # 该网卡是否随网络服务启动

  6. IPADDR="192.168.220.101"  # 该网卡ip地址就是你要配置的固定IP

  7. GATEWAY="192.168.220.2"   # 网关

  8. NETMASK="255.255.255.0"   # 子网掩码

  9. DNS1="8.8.8.8"    # DNS,8.8.8.8为Google提供的免费DNS服务器的IP地址

2, configure the network work

Add the following configuration in / etc / sysconfig / network file

 
  1. 命令:

  2.  
  3. vi /etc/sysconfig/network

  4.  
  5.  
  6. 修改:

  7.  
  8. NETWORKING=yes # 网络是否工作,此处一定不能为no

3, the configuration of public DNS service (optional)

Add the following configuration file /etc/resolv.conf

nameserver 8.8.8.8

4, turn off the firewall

 
  1. systemctl stop firewalld # 临时关闭防火墙

  2. systemctl disable firewalld # 禁止开机启动

5, Network Service Restart

Guess you like

Origin www.cnblogs.com/hezhishu/p/11569848.html