3.7 Template (Template)- What? (Migrate)
The template.(Template) The function is a pre-set virtual machine.(VM) Or containers.(CT) It's a key tool for quickly distributing the same environment to the masses by fixing it to the original image.
Before use
| The Distinction | Content |
|---|---|
| I need permission. | Template uploading, downloading, copying, converting, migrating are functions that require administrator permissions. |
| External IT Facts | File transfer and template management are all Proxmox VE API And it's interacting with storage. |
| Preconditions | Check for target nodes, storage space, network status, cluster configuration. |
| Check the work | The success or failure of a task is verified by the screen notification, the working status, the audit records. |
3.7.1 Uploaded
The file uploaded to the administrator Local PCsIt's already stored in Template file(.tar.gz,.tar.xzBack to the office.) Or Virtual head image(.iso) And then you select that and you send it to the storage on that server.
3.7.1.1 Container template(LXC)- The image is a haircut.(ISO)
- Select the content type and click the file selection button. List of files on the user's local PCIt's going to bring you in.
- If you select a list of files to upload, File names and sizes are automatically assigned So we're going to do that.
- The default value of the hash algorithm is None.
3.7.1.2 Entry entries and permissible range
| Items | Explanation | The input/selection criteria |
|---|---|---|
| Content type | It's the kind of uploading thing. | Container template.(LXC) Or a virtual image of a brain.(ISO) I'm going to choose. |
| The file. | It's an uploaded object file stored on an administrator PC. | LXC The template is .tar.gz, .tar.xz And then you pick the template file on your back, VM The image is .iso Select the file. |
| File name/size | It's information that is automatically displayed after the file is selected. | The administrator doesn't edit it himself, but verifies that it matches the selected file. |
| The hash algorithm. | It's an algorithm that we use to check the integrity of upload files. | The base value is None If you need to verify files in a test or operating environment, SHA-256 I recommend using it more. |
If the upload fails, the file format, the target storage space, the network status, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, the data, etc. Proxmox API Check the connection status.
Features of the algorithm type
| Algorithms | Security thieves. | Features and Recommendations |
|---|---|---|
| None | No, not at all. | It's not verifiable. It's not detectable for transmission errors or distortions. |
| MD5 | Very low. | It was used a lot in the past, but now it's because of security vulnerabilities. I don't recommend it. It's the fastest. |
| SHA-1 | Low. | It's better than MD5, but it's also a trend that's been gradually phased out in modern systems for security reasons. |
| SHA-224 | Usually. (Recommended) | The minimum security theft allowed by national security requirements(More than 112 bits.) It's the starting point. |
| SHA-256 | Height (Standard) | It's the most widely used industry standard today, and the best balance of security and performance is the best. |
| SHA-512 | Very high. | The maximum security intensity, but the computing power and the file capacity can take longer. |
3.7.2 Download(Template)
The proxemes officially provide List of images(Ubuntu, Debian, CentOS and more.)Call it directly from the server and select it to download.
- Select the template list to download.
- After selecting Storage to save, a download start notification will appear when you click the Download Start button.
- You have to have enough space for the downloaded storage, and you have to have an external template storage and a free download. Proxmox VE API It's got to be a communication state.
- If the download fails, the network connection is Proxmox Check if the template storage is accessible, storage permissions and capacity.
3.7.3 List of templates
- The template list is The virtual brain. Or The container.What is the meaning of this? Convert to templateI'll bring you a list.
- These templates are Copy that.(Clone), Migration, you can delete it.
- In the list, you check the name, type, storage location, associated node information of the template, and before you copy or migrate, you check if the target template is correct.
<aside> 💡
Template migrationTemplate stored in a specific node(VM Or CT The original image.) I have a The ability to move to another node in the clusterIt means.
</aside>
3.7.3.1 Replicate(Clone)
- Click on the copy button on the right side of the work menu of the template.
- After clicking the button, the clone setting model window will appear.
| Items | Explanation | The input/selection criteria |
|---|---|---|
| Target node. | It's a copy. VM/CT It's the cluster node that's going to be generated. | You select one of the nodes in the cluster that you're building. |
| VM ID | It's the unique identifier of the replicate. | The next ID that's available by default is automatically assigned, and if necessary, can be changed to a non-replique value. |
| Name of the place. | It's the name of the display of the replicate. | You type in English, numbers, hyphen, and so on. |
- When the clone is started, the modeling is shown in progress, and it waits until the work is done.
- When the clone is done, the instances that are generated will be The name, VM ID, nodes and nodes. We can check the information.
- See the Instances Details And then you click on that button and you go to the detailed display of the created instances.
- The virtual machine, cloned on a detailed screen, The system, the resources, the network, the disk. I'm going to check the information.
- You can start, set up, console, delete, and so on when you need to.
- If the replication fails, VM It's about identification, the status of the target node, the storage capacity of the target, the status of the template file.
3.7.4 Convert to template(Convert to template)
- The template conversion is The virtual brain. Or The container.It's a function to convert templates, and it's available in the instance list.
- Template conversion is an activity that requires administrator permission. An unauthorized account may not see the task menu or may be restricted in execution.
- Subject to transformation VM/CT Check that it's a standard image, and be careful not to template it in a way that contains unnecessary temporary files, test accounts, or sensitive information.
3.7.4.1 Template conversion example
- I'm going to convert it into a template. VM/CT It's a choice to convert.
- After verifying the successful template conversion, we check the template that was converted from the template.
- If the conversion fails, the object instance status, storage access, Proxmox API Check the connection status.
3.7.5 Migration(Migrate)
Migration.It's available in instances lists and templates, In the cluster node that it's made of.From
Virtual machine or container. Or The template.It's a function of transferring. ️Note: The migration button cannot be activated unless a cluster is formed.
- The migration is made up of two or more nodes in a cluster, and it's done when the source node and the target node are in normal state.
- The storage and network configuration needed for the target node must be ready.
- An account without authorization cannot perform migration.
3.7.5.1 Virtual machine/container migration
VM/CT There are two types of migration mode.
1. Online migration: VM/CT Migration progress while running Two: Offline migration: VM/CT Migration progresses when the
| The Distinction | Online (Live) Migration. | Off line. (Cold) Migration. |
|---|---|---|
| It's in the air. | VM This is the It's on. Move it around. | VM I have a Turn it off. Move it around. |
| Downtime. | No, not at all. (The user is shading) | There is. (We're not connected during the time of the move.) |
| Transmitting data | Memory(RAM) Status + disk changes | Full disk data + setup files |
| Main use | When you're checking the server without interruption, | Stable movement, template movement, error resolution |
3.7.5.2 Virtual machine/container migration progress example
- I'm going to move the migration. VM/CT Select the target node after the selection.
Node 1 → Node 2
- The migration button is clicked. VM/CT The phrase in the migration is displayed.
- After a while, we'll check that the migration is done normally.
- After you're done, you'll check the associated node, run status, network connection status on the instantaneous detail screen.
3.7.5.3 Template migration
Template migration is a way of life. Offline fixedAnd then we're going to move on.
3.7.5.4 Template migration progress example
- You choose the template to migrate, then you choose the target node.
Node 2 → Node 1
- When you click the migration button, you see a migration phrase in the template.
- After a while, we check that the migration is done normally.
- Once you're done, check the template list to see if the template's associated node and storage location have changed.
How to solve problems
| The symptoms. | Check the item | How to take action |
|---|---|---|
| The upload failed. | File format, storage capacity, network status | Supported template.ISO Check if the file is real, and then you can find the target storage space and the Proxmox API Check the connection status. |
| Download is not started. | Access to the external template storage, object storage | Check if the network connection and template storage are accessible, then select the storage to store again. |
| The failure of reproduction. | VM Replicate the ID, name format, target node status | It's not a transcript. VM Use the ID, check that there are no unhelpful or unauthorized characters in the name. |
| Template conversion menu is not visible. | Account permissions, subject VM/CT It's in the air. | Check if you're logged into your administrator account and see if the conversion object is the correct instance. |
| The migration button is disabled. | Cluster configuration, number of nodes, authorization | Check that the cluster is built, and check that the target node is present and in normal condition. |
| The failure of the migration. | The storage/network configuration of the target node, VM/CT Running state | We check the storage and network configuration of the target node, and if the online migration fails, we review the offline migration to consider the impact of the service. |
| Confirmation of the work results difficulty | Screen notification, working status, thank you. | Check the completion notice and the status indicator, and check the success/fail record if necessary. |