Virsh Migration: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 4: Zeile 4:
 
=Virt Install von vorhandenem Image=
 
=Virt Install von vorhandenem Image=
 
==Installation auf ryzen==
 
==Installation auf ryzen==
*virt-install -n alice -r 2048 --os-type=linux  --disk  /mnt/virtimages/alice.qcow2,device=disk,bus=virtio -w  bridge=lan,model=virtio --vnc --noautoconsole --import
+
*virt-install -n alice -r 2048 --os-type=linux  --disk  /mnt/virtimages/alice.qcow2,device=disk,bus=virtio,cache=none -w  bridge=lan,model=virtio   --noautoconsole --import
 +
 
 
==Kopieren auf mabel==
 
==Kopieren auf mabel==
 
*root@ryzen:~# scp /var/libvirt/qemu/alice.xml root@mabel:/var/libvirt/qemu/
 
*root@ryzen:~# scp /var/libvirt/qemu/alice.xml root@mabel:/var/libvirt/qemu/

Version vom 4. April 2017, 19:18 Uhr

Voraussetzung

Beide Hosts müssen auf den gleichen Storage-Pool zu greifen. Entweder NFS oder ISCSI.

Virt Install von vorhandenem Image

Installation auf ryzen

  • virt-install -n alice -r 2048 --os-type=linux --disk /mnt/virtimages/alice.qcow2,device=disk,bus=virtio,cache=none -w bridge=lan,model=virtio --noautoconsole --import

Kopieren auf mabel

  • root@ryzen:~# scp /var/libvirt/qemu/alice.xml root@mabel:/var/libvirt/qemu/

Definieren auf mabel

  • root@mabel:~# virsh define /etc/libvirt/qemu/alice.xml

Migration zu einem neuen Host

Auf ryzen

Auf mabel