---
title: VMware Migrate VMK
slug: homologacao-atmosphere/vmware-migrate-vmk
description: Learn how to migrate a VMK interface from VSS to VDS with this comprehensive document. It covers all the necessary parameters, including ESXi hostname, device name, current switch and portgroup names, and desired switch and portgroup names for migration. 
createdAt: 2023-03-17T12:36:26.000Z
---

## Resumo

- Migrar uma interface VMK de VSS para VDS.



## Parâmetros

| **Parâmetro**            | **Tipo** | **Escolhas \|&#x20;**<u>**Valor Padrão**</u> | **Comentários**                                                      |
| ------------------------ | -------- | -------------------------------------------- | -------------------------------------------------------------------- |
| esxi\_hostname           | string   | <u>****</u>                                  | - Nome do host ESXi a ser gerenciado                                 |
| device                   | string   |                                              | - Nome da interface VMK                                              |
| current\_switch\_name    | string   |                                              | - A interface VMK do switch está ativada no momento                  |
| current\_portgroup\_name | string   |                                              | - A interface VMK do nome do grupo de portas está atualmente ativada |
| migrate\_switch\_name    | string   | <u>****</u>                                  | - Mude o nome para migrar a interface VMK para.                      |
| migrate\_portgroup\_name | string   |                                              | - Nome do grupo de portas para onde migrar a interface VMK.          |

Estende fragmentos da documentação do módulo [VMware Options](https://app.archbee.com/docs/qhqZWWA92JYWAihQOL_T5/lUq5eineIhH7ZwvyWZYCa).

## Notas

Observação

- Testado em ESXi 7.0.2
- Todos os módulos requerem acesso de gravação API e, portanto, não são suportados em uma licença ESXi gratuita.

## Exemplos

```yaml
- name: Migrate Management vmk
  vmware_migrate_vmk:
    hostname: "{{ vcenter_hostname }}"
    username: "{{ vcenter_username }}"
    password: "{{ vcenter_password }}"
    esxi_hostname: "{{ esxi_hostname }}"
    device: vmk1
    current_switch_name: temp_vswitch
    current_portgroup_name: esx-mgmt
    migrate_switch_name: dvSwitch
    migrate_portgroup_name: Management
  delegate_to: localhost

```

Não há valores retornados

