Operation steps for creating a new linux virtual machine template in a virtual server cluster

This article takes the new linux system Ubuntu22.04 as an example.

Step 1: Upload the image

Step Two: Create a Virtual Machine

Step Three: Install the Operating System

Step Four: Convert the Virtual Machine to a Template

Step 5: Create a virtual machine from a template

Step 1: Upload the image

Select "Storage", find the storage to be uploaded, find the ISO directory, and select " Upload File ".

upload mirror

Step Two: Create a Virtual Machine

Find a host, right-click the host, and select " New Virtual Machine ".

Create a new virtual machine

Select " Create a new virtual machine ", the next step.

Create a new virtual machine

Give the virtual machine a name, the next step.

Give the virtual machine a name

Select which host to create the virtual machine on, the next step.

Choose which host to create the virtual machine on

Select which storage to place the virtual machine on, and click Next.

Choose which storage to put the virtual machine on

Compatibility does not change by default , the next step.

Do not move by default, the next step

Select the operating system series and operating system version, and select according to the actual situation . Next step.

Choose according to the actual situation

The CPU and memory configuration is simple without an overview. Pay special attention to the hard disk here. After configuring the hard disk capacity, you must change the disk provisioning mode to " thin provisioning ".

thin provisioning

After the hard disk configuration is complete, select " Data Storage ISO File " in "CD/DVD Drive" . Then select the ISO image file uploaded in the first step and confirm.

Select "Datastore ISO file

Select the ISO image file uploaded in the first step

After the image selection is complete, check " Connect when powering on ", the next step.

Check "Connect at power on"

Click Finish, and the system starts to automatically create the virtual machine.

The system starts to automatically create the virtual machine

Step Three: Install the Operating System

Select the first row to install the operating system.

Select the language, click " Install Ubuntu ", and continue.

The default keyboard layout is fine, continue.

Select " Normal Installation " to continue.

Select " Other Options " for disk configuration to configure the space manually.

Click "New Partition Table" to create a partition.

Select "Free" capacity and click "+".

Create a boot partition , size 2G, mount point /boot, OK.

In the remaining "free" capacity, click "+".

Create a swap partition with a size of 4G, select "Swap Space" for "Used", and click OK.

Continue to click "+" on the remaining "free" capacity.

Create a root partition , size all the remaining space, select "/" as the mount point, and click OK.

Then click " Install Now " to continue.

Configure the time zone as " Shanghai ", and continue.

Create a system user and a password for that user, and continue.

System installation is complete, restart.

This interface needs to hit the Enter key .

Step Four: Convert the Virtual Machine to a Template

Find the virtual machine with the system just completed, right-click and select "Template" - "Convert to Template" .

Click on " Virtual Machines and Templates " to see the template.

Step 5: Create a virtual machine from a template

Right-click the template and select "Create a new virtual machine from this template".

< Call out>

Guess you like

Origin blog.csdn.net/hnhgwfm/article/details/128482026