https://github.com/fgimenez/mirage-load-test
Files of MirageOS project http://canopy.mirage.io/Projects/load
https://github.com/fgimenez/mirage-load-test
Last synced: over 1 year ago
JSON representation
Files of MirageOS project http://canopy.mirage.io/Projects/load
- Host: GitHub
- URL: https://github.com/fgimenez/mirage-load-test
- Owner: fgimenez
- Created: 2017-01-02T10:31:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-05T16:28:34.000Z (over 9 years ago)
- Last Synced: 2025-02-01T11:11:06.265Z (over 1 year ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo hosts files related to the load test MirageOS project described in
http://canopy.mirage.io/Projects/load
# Dev box
The development machine is defined using a [packer](https://www.packer.io/) template
and some helper files, all under the `image` directory. For generating the image you need
a recent version of packer (tested with v0.11.0) and qemu with kvm support, on a ubuntu
16.04 host you need to execute:
$ sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
Then, from the `image` directory, you can execute:
$ packer build ubuntu.json
After the automated process finishes the resulting image is stored in `image/output-mlt/mlt`.
You can start it from the project's root with:
$ kvm -m 1024 -snapshot -netdev user,id=mynet0,hostfwd=tcp::8022-:22 -netdev user,id=mynet1 -device pcnet,netdev=mynet0 -device pcnet,netdev=mynet1 ./image/output-mlt/mlt
After a few seconds the instance will be accessible through ssh with this command:
$ ssh -i ./image/keypair/private -p 8022 mlt@localhost
The complete process of image creation, instance spin up and remote execution of
commands on it is automated in the `run.sh` script at the root of the project.