Zeile 1.321: |
Zeile 1.321: |
| auto ens1f1 | | auto ens1f1 |
| iface ens1f1 inet manual | | iface ens1f1 inet manual |
| + | |
| + | # Inter-Bridge Backbone-VM <-> Uplink-VM |
| + | auto br-gluonb2b |
| + | iface br-gluonb2b inet manual |
| + | bridge_ports none |
| + | bridge_stp no |
| + | bridge_fd 0 |
| </source> | | </source> |
| | | |
Zeile 1.594: |
Zeile 1.601: |
| <label>libvirt-04502792-af13-41de-9073-a777ec8eea80</label> | | <label>libvirt-04502792-af13-41de-9073-a777ec8eea80</label> |
| <imagelabel>libvirt-04502792-af13-41de-9073-a777ec8eea80</imagelabel> | | <imagelabel>libvirt-04502792-af13-41de-9073-a777ec8eea80</imagelabel> |
| + | </seclabel> |
| + | </domain> |
| + | </source> |
| + | |
| + | <source lang='xml'> |
| + | <domain type='kvm' id='15'> |
| + | <name>ffmwu-hans-uplink</name> |
| + | <uuid>d768984d-d16e-400d-9a22-273f45bd9ab2</uuid> |
| + | <memory unit='KiB'>524288</memory> |
| + | <currentMemory unit='KiB'>524288</currentMemory> |
| + | <vcpu placement='static'>1</vcpu> |
| + | <resource> |
| + | <partition>/machine</partition> |
| + | </resource> |
| + | <os> |
| + | <type arch='x86_64' machine='pc-i440fx-wily'>hvm</type> |
| + | <boot dev='hd'/> |
| + | </os> |
| + | <features> |
| + | <acpi/> |
| + | <apic/> |
| + | <vmport state='off'/> |
| + | </features> |
| + | <cpu mode='custom' match='exact'> |
| + | <model fallback='allow'>Nehalem</model> |
| + | </cpu> |
| + | <clock offset='utc'> |
| + | <timer name='rtc' tickpolicy='catchup'/> |
| + | <timer name='pit' tickpolicy='delay'/> |
| + | <timer name='hpet' present='no'/> |
| + | </clock> |
| + | <on_poweroff>destroy</on_poweroff> |
| + | <on_reboot>restart</on_reboot> |
| + | <on_crash>restart</on_crash> |
| + | <pm> |
| + | <suspend-to-mem enabled='no'/> |
| + | <suspend-to-disk enabled='no'/> |
| + | </pm> |
| + | <devices> |
| + | <emulator>/usr/bin/kvm-spice</emulator> |
| + | <disk type='file' device='disk'> |
| + | <driver name='qemu' type='raw'/> |
| + | <source file='/var/lib/libvirt/images/ffmwu-hans-uplink.img'/> |
| + | <backingStore/> |
| + | <target dev='vda' bus='virtio'/> |
| + | <alias name='virtio-disk0'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/> |
| + | </disk> |
| + | <controller type='usb' index='0' model='ich9-ehci1'> |
| + | <alias name='usb'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> |
| + | </controller> |
| + | <controller type='usb' index='0' model='ich9-uhci1'> |
| + | <alias name='usb'/> |
| + | <master startport='0'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/> |
| + | </controller> |
| + | <controller type='usb' index='0' model='ich9-uhci2'> |
| + | <alias name='usb'/> |
| + | <master startport='2'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/> |
| + | </controller> |
| + | <controller type='usb' index='0' model='ich9-uhci3'> |
| + | <alias name='usb'/> |
| + | <master startport='4'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> |
| + | </controller> |
| + | <controller type='pci' index='0' model='pci-root'> |
| + | <alias name='pci.0'/> |
| + | </controller> |
| + | <controller type='virtio-serial' index='0'> |
| + | <alias name='virtio-serial0'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> |
| + | </controller> |
| + | <controller type='ide' index='0'> |
| + | <alias name='ide'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> |
| + | </controller> |
| + | <controller type='scsi' index='0'> |
| + | <alias name='scsi0'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> |
| + | </controller> |
| + | <interface type='bridge'> |
| + | <mac address='52:54:00:1c:86:61'/> |
| + | <source bridge='br-gluonb2b'/> |
| + | <target dev='vnet3'/> |
| + | <model type='virtio'/> |
| + | <alias name='net0'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> |
| + | </interface> |
| + | <interface type='network'> |
| + | <mac address='52:54:00:fd:c1:33'/> |
| + | <source network='ovs-sw05' portgroup='vlan-6'/> |
| + | <actual type='bridge'> |
| + | <source bridge='br-sw05'/> |
| + | <virtualport type='openvswitch'> |
| + | <parameters interfaceid='47c1d339-fc70-4734-8f77-197ceecaed70'/> |
| + | </virtualport> |
| + | </actual> |
| + | <target dev='vnet4'/> |
| + | <model type='virtio'/> |
| + | <alias name='net1'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> |
| + | </interface> |
| + | <serial type='pty'> |
| + | <source path='/dev/pts/2'/> |
| + | <target port='0'/> |
| + | <alias name='serial0'/> |
| + | </serial> |
| + | <console type='pty' tty='/dev/pts/2'> |
| + | <source path='/dev/pts/2'/> |
| + | <target type='serial' port='0'/> |
| + | <alias name='serial0'/> |
| + | </console> |
| + | <channel type='spicevmc'> |
| + | <target type='virtio' name='com.redhat.spice.0' state='disconnected'/> |
| + | <alias name='channel0'/> |
| + | <address type='virtio-serial' controller='0' bus='0' port='1'/> |
| + | </channel> |
| + | <input type='tablet' bus='usb'> |
| + | <alias name='input0'/> |
| + | </input> |
| + | <input type='mouse' bus='ps2'/> |
| + | <input type='keyboard' bus='ps2'/> |
| + | <graphics type='spice' port='5901' autoport='yes' listen='127.0.0.1'> |
| + | <listen type='address' address='127.0.0.1' fromConfig='1'/> |
| + | </graphics> |
| + | <sound model='ich6'> |
| + | <alias name='sound0'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> |
| + | </sound> |
| + | <video> |
| + | <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/> |
| + | <alias name='video0'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> |
| + | </video> |
| + | <redirdev bus='usb' type='spicevmc'> |
| + | <alias name='redir0'/> |
| + | </redirdev> |
| + | <redirdev bus='usb' type='spicevmc'> |
| + | <alias name='redir1'/> |
| + | </redirdev> |
| + | <memballoon model='virtio'> |
| + | <alias name='balloon0'/> |
| + | <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> |
| + | </memballoon> |
| + | </devices> |
| + | <seclabel type='dynamic' model='apparmor' relabel='yes'> |
| + | <label>libvirt-d768984d-d16e-400d-9a22-273f45bd9ab2</label> |
| + | <imagelabel>libvirt-d768984d-d16e-400d-9a22-273f45bd9ab2</imagelabel> |
| </seclabel> | | </seclabel> |
| </domain> | | </domain> |
Zeile 1.605: |
Zeile 1.762: |
| | | |
| count=$( ping6 -c 5 fd56:b4dc:4b1e:0:5054:ff:fedd:cc9d | grep "bytes from" | wc -l ) | | count=$( ping6 -c 5 fd56:b4dc:4b1e:0:5054:ff:fedd:cc9d | grep "bytes from" | wc -l ) |
| + | if [ $count -eq 0 ] |
| + | then |
| + | logger "ffmwu-hans-core: Not available -> Reset VM" |
| + | virsh reset ffmwu-hans-core || virsh start ffmwu-hans-core |
| + | exit 0 |
| + | else |
| + | logger "ffmwu-hans-core: Up and running -> nothing to do" |
| + | exit 0 |
| + | fi |
| + | </source> |
| + | |
| + | <source lang='bash'> |
| + | #!/bin/bash |
| + | |
| + | count=$( ping6 -c 5 fd56:b4dc:4b1e:0:5054:ff:fe1c:8661 | grep "bytes from" | wc -l ) |
| if [ $count -eq 0 ] | | if [ $count -eq 0 ] |
| then | | then |
Zeile 1.619: |
Zeile 1.791: |
| <source lang='text'> | | <source lang='text'> |
| # m h dom mon dow command | | # m h dom mon dow command |
− | */20 * * * * /usr/local/bin/vm-watchdog.sh | + | */20 * * * * /usr/local/bin/ffmwu-hans-core.sh |
| + | */20 * * * * /usr/local/bin/ffmwu-hans-uplink.sh |
| </source> | | </source> |
| | | |