Questo contenuto non è disponibile nella lingua selezionata.

4.5. Migrating with virt-manager


This section covers migrating a KVM guest virtual machine with virt-manager from one host physical machine to another.
  1. Open virt-manager

    Open virt-manager. Choose Applications System Tools Virtual Machine Manager from the main menu bar to launch virt-manager.

    Figure 4.1. Virt-Manager main menu

  2. Connect to the target host physical machine

    Connect to the target host physical machine by clicking on the File menu, then click Add Connection.

    Figure 4.2. Open Add Connection window

  3. Add connection

    The Add Connection window appears.

    Figure 4.3. Adding a connection to the target host physical machine

    Enter the following details:
    • Hypervisor: Select QEMU/KVM.
    • Method: Select the connection method.
    • Username: Enter the user name for the remote host physical machine.
    • Hostname: Enter the host name for the remote host physical machine.
    Click the Connect button. An SSH connection is used in this example, so the specified user's password must be entered in the next step.

    Figure 4.4. Enter password

  4. Migrate guest virtual machines

    Open the list of guests inside the source host physical machine (click the small triangle on the left of the host name) and right click on the guest that is to be migrated (guest1-rhel6-64 in this example) and click Migrate.

    Figure 4.5. Choosing the guest to be migrated

    In the New Host field, use the drop-down list to select the host physical machine you wish to migrate the guest virtual machine to and click Migrate.

    Figure 4.6. Choosing the destination host physical machine and starting the migration process

    A progress window will appear.

    Figure 4.7. Progress window

    virt-manager now displays the newly migrated guest virtual machine running in the destination host. The guest virtual machine that was running in the source host physical machine is now listed inthe Shutoff state.

    Figure 4.8. Migrated guest virtual machine running in the destination host physical machine

  5. Optional - View the storage details for the host physical machine

    In the Edit menu, click Connection Details, the Connection Details window appears.
    Click the Storage tab. The iSCSI target details for the destination host physical machine is shown. Note that the migrated guest virtual machine is listed as using the storage

    Figure 4.9. Storage details

    This host was defined by the following XML configuration:
    <pool type='iscsi'>
        <name>iscsirhel6guest</name>
        <source>
            <host name='virtlab22.example.com.'/>
            <device path='iqn.2001-05.com.iscsivendor:0-8a0906-fbab74a06-a700000017a4cc89-rhevh'/>
        </source>
        <target>
            <path>/dev/disk/by-path</path>
        </target>
    </pool>
      ...
    Copy to Clipboard Toggle word wrap

    Figure 4.10. XML configuration for the destination host physical machine

Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat