Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rwth-os/migration-framework

Allows for initiating start, stop, and migration of virtual machines by means of MQTT messages.
https://github.com/rwth-os/migration-framework

Last synced: 15 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# migration-framework
[![Build Status](https://travis-ci.org/RWTH-OS/migration-framework.svg?branch=master)](https://travis-ci.org/RWTH-OS/migration-framework)

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
```bash
mkdir build && cd build
cmake -DLibVirt_INCLUDE_DIR= -DLibVirt_LIBRARY= ..
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
```bash
mosquitto -d 2> /dev/null
```
2. Start migfra daemon:

```bash
build/migfra
```
3. Use mosquitto\_pub to publish messages.
* "-f \" the file that contains the message content.
* "-q \<2,1,0\>" sets quality of service. For more information see mosquitto documentation.
* "-t \" the topic to publish on.
```bash
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 \" the topic to publish on.
```bash
mosquitto_sub -q 2 -t topic1
```

* To verify new examples this online yaml parser is useful:
http://yaml-online-parser.appspot.com