<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Einrichtung_einer_selbstst%C3%A4ndig_migrierenden_VM</id>
	<title>Einrichtung einer selbstständig migrierenden VM - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Einrichtung_einer_selbstst%C3%A4ndig_migrierenden_VM"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Einrichtung_einer_selbstst%C3%A4ndig_migrierenden_VM&amp;action=history"/>
	<updated>2026-06-29T14:14:11Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Einrichtung_einer_selbstst%C3%A4ndig_migrierenden_VM&amp;diff=13955&amp;oldid=prev</id>
		<title>Janning: Die Seite wurde neu angelegt: „=VM Definition aufheben= *virsh undefine nog  =VM ins hochverfügbare Verzeichnis kopieren= *cp /etc/libvirt/qemu/nog.xml /mnt/nfs-cluster/libvirt-etc/  =Anpas…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Einrichtung_einer_selbstst%C3%A4ndig_migrierenden_VM&amp;diff=13955&amp;oldid=prev"/>
		<updated>2017-09-25T13:27:36Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „=VM Definition aufheben= *virsh undefine nog  =VM ins hochverfügbare Verzeichnis kopieren= *cp /etc/libvirt/qemu/nog.xml /mnt/nfs-cluster/libvirt-etc/  =Anpas…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=VM Definition aufheben=&lt;br /&gt;
*virsh undefine nog&lt;br /&gt;
&lt;br /&gt;
=VM ins hochverfügbare Verzeichnis kopieren=&lt;br /&gt;
*cp /etc/libvirt/qemu/nog.xml /mnt/nfs-cluster/libvirt-etc/&lt;br /&gt;
&lt;br /&gt;
=Anpassungen an der VM vornehmen=&lt;br /&gt;
*vi /mnt/nfs-cluster/libvirt-etc/nog.xml&lt;br /&gt;
**An der Stelle &amp;quot;model fallback='allow' muss die CPU-Model-Bezeichnung auf &amp;quot;core2duo&amp;quot; gesetzt sein&lt;br /&gt;
**An der Stelle &amp;quot;driver name='qemu' type='qcow2'&amp;quot; muss der Eintrag &amp;quot;cache='none'&amp;quot; gesetzt sein&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;cpu mode='custom' match='exact'&amp;gt;&lt;br /&gt;
    &amp;lt;model fallback='allow'&amp;gt;core2duo&amp;lt;/model&amp;gt;&lt;br /&gt;
  &amp;lt;/cpu&amp;gt;&lt;br /&gt;
&lt;br /&gt;
.......&lt;br /&gt;
&lt;br /&gt;
&amp;lt;emulator&amp;gt;/usr/bin/kvm-spice&amp;lt;/emulator&amp;gt;&lt;br /&gt;
    &amp;lt;disk type='file' device='disk'&amp;gt;&lt;br /&gt;
      &amp;lt;driver name='qemu' type='qcow2' cache='none'/&amp;gt;&lt;br /&gt;
      &amp;lt;source file='/mnt/nfs-cluster/images/nog.qcow2'/&amp;gt;&lt;br /&gt;
      &amp;lt;target dev='vda' bus='virtio'/&amp;gt;&lt;br /&gt;
      &amp;lt;boot order='1'/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Die VM als HA-Resource erstellen=&lt;br /&gt;
*pcs resource create vm-nog VirtualDomain hypervisor=&amp;quot;qemu:///system&amp;quot; config=&amp;quot;/mnt/nfs-cluster/libvirt-etc/nog.xml&amp;quot; migration_transport=ssh op start timeout=&amp;quot;120s&amp;quot; op stop timeout=&amp;quot;120s&amp;quot; op monitor timeout=&amp;quot;30&amp;quot; interval=&amp;quot;10&amp;quot; meta allow-migrate=&amp;quot;true&amp;quot; priority=&amp;quot;100&amp;quot; op migrate_from interval=&amp;quot;0&amp;quot; timeout=&amp;quot;120s&amp;quot; op migrate_to interval=&amp;quot;0&amp;quot; timeout=&amp;quot;120&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=Reihenfolge erstellen=&lt;br /&gt;
*pcs constraint order add start nfs-server then start mount-nfs-cluster-clone&lt;br /&gt;
*pcs constraint order add start mount-nfs-cluster-clone then start vm-nog&lt;br /&gt;
&lt;br /&gt;
=Ergebnis=&lt;br /&gt;
*pcs status&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cluster name: kvm-cluster&lt;br /&gt;
Last updated: Mon Sep 25 15:26:31 2017		Last change: Mon Sep 25 11:32:52 2017 by root via crm_resource on mabel&lt;br /&gt;
Stack: corosync&lt;br /&gt;
Current DC: ryzen (version 1.1.14-70404b0) - partition with quorum&lt;br /&gt;
2 nodes and 12 resources configured&lt;br /&gt;
&lt;br /&gt;
Online: [ mabel ryzen ]&lt;br /&gt;
&lt;br /&gt;
Full list of resources:&lt;br /&gt;
&lt;br /&gt;
 vm-nog 	(ocf::heartbeat:VirtualDomain):	Started mabel&lt;br /&gt;
 Master/Slave Set: nfs-drbd-clone [nfs-drbd]&lt;br /&gt;
     Masters: [ mabel ]&lt;br /&gt;
     Slaves: [ ryzen ]&lt;br /&gt;
 nfs-ip	(ocf::heartbeat:IPaddr2):	Started mabel&lt;br /&gt;
 nfs-data	(ocf::heartbeat:Filesystem):	Started mabel&lt;br /&gt;
 nfs-server	(systemd:nfs-kernel-server):	Started mabel&lt;br /&gt;
 Clone Set: mount-nfs-cluster-clone [mount-nfs-cluster]&lt;br /&gt;
     Started: [ mabel ryzen ]&lt;br /&gt;
&lt;br /&gt;
PCSD Status:&lt;br /&gt;
  mabel: Online&lt;br /&gt;
  ryzen: Online&lt;br /&gt;
&lt;br /&gt;
Daemon Status:&lt;br /&gt;
  corosync: active/disabled&lt;br /&gt;
  pacemaker: active/enabled&lt;br /&gt;
  pcsd: active/enabled&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Janning</name></author>
	</entry>
</feed>