Skip to content

Allows for initiating start, stop, and migration of virtual machines by means of MQTT messages.

License

Notifications You must be signed in to change notification settings

spickartz/migration-framework

 
 

Repository files navigation

migration-framework

Build Status

Allows for initiating start, stop, and migration of virtual machines by means of MQTT messages.

Requirements

  • For migration-framework:
    • libvirt
  • For fast-lib:
    • mosquitto
    • mosquittopp
    • yaml-cpp

Build instructions

mkdir build && cd build
cmake -DLibVirt_INCLUDE_DIR=<path/to/libvirt/include> -DLibVirt_LIBRARY=<path/to/libvirt.so> ..
make

Examples

  • See directory "examples" for messages which can be parsed.

  • To test messages:

    1. Start mosquitto daemon (and optional redirect output).

      • "-d" puts mosquitto in background after starting
      mosquitto -d 2> /dev/null
    2. Start migfra daemon:

      build/migfra
    3. 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  
    4. 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

About

Allows for initiating start, stop, and migration of virtual machines by means of MQTT messages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 81.2%
  • CMake 18.8%