Allows for initiating start, stop, and migration of virtual machines by means of MQTT messages.
- For migration-framework:
- libvirt
- For fast-lib:
- mosquitto
- mosquittopp
- yaml-cpp
mkdir build && cd build
cmake -DLibVirt_INCLUDE_DIR=<path/to/libvirt/include> -DLibVirt_LIBRARY=<path/to/libvirt.so> ..
make
-
See directory "examples" for messages which can be parsed.
-
To test messages:
-
Start mosquitto daemon (and optional redirect output).
- "-d" puts mosquitto in background after starting
mosquitto -d 2> /dev/null
-
Start migfra daemon:
build/migfra
-
Use mosquitto_pub to publish messages.
- "-f <file>" the file that contains the message content.
- "-q <2,1,0>" sets quality of service. For more information see mosquitto documentation.
- "-t <topic>" the topic to publish on.
mosquitto_pub -f examples/start_task.yaml -q 2 -t topic1
-
Use mosquitto_sub to see messages.
- "-q <2,1,0>" sets quality of service. For more information see mosquitto documentation.
- "-t <topic>" the topic to publish on.
mosquitto_sub -q 2 -t topic1
-
-
To verify new examples this online yaml parser is useful:
http://yaml-online-parser.appspot.com