GithubHelp home page GithubHelp logo

roerohan / qemu-automator Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 21 KB

Spawn virtual machines with pre-configured data files.

License: MIT License

Shell 100.00%
qemu cloud-image virtualization cloudinit cloudinary ubuntu

qemu-automator's Introduction

QEMU-Automator

Spawn virtual machines with pre-configured data files.

Repository for the project component of the course CSE4011 (Virtualization), maintained by Shantanu Verma, Rohan Mukherjee, and Bhavya Taneja.
The tools created herein are motivated by a literature survey we performed on this subject.

Requirements

  • qemu
  • kvm
  • cdrtools (or genisoimage)
  • cloud image - sample

Usage

Step 1

Store the cloud-image in the root directory. For the purpose of simplicity, we will refer to it as cloud.img.

wget -O cloud.img https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img

Step 2

Edit the user-data according to your requirements. It is in yaml format.

# cloud-config

users:
  - name: roerohan
    gecos: Rohan Mukherjee
    ssh-authorized-keys:
      - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCal7SgUCiCL0oBMnuFMp/x/zYV/T1NDCYskY1A8f9vrbOg+p6jqYnuj1zM3Pgc/1/cOcW6l6c3bZb3ko1hraxz9nNC7jJPSYvc/0ZAUTa9oLTaifZdeFCwTNhi5Z23EuIH+mhpO3OSRehClMYgAvBgL/CnMkJZd6EBvTtGDho4IIo62miK/HcN4uP7sP8WoVPRjkj3QELENfR0U9YwQRlK430VCfTYKgJB2Q/YxJk3VtdPWWRXGXl9fQTQNwlULzCU5bc/dyhdWPj1IrzLTB/wsFP43PZP/SegSIxAuK/13LN+Vs3Ca+50fm/V9OCzZnFqsAM/cHRcxg12t7eDx2dUOD5vikibgfCnbhADZy1pGGSM1BS6mLoPK5hk1Fz0oh2RAbeWMA+vz+wDbudK+paN7DnCTLIylJkEZJV/edfZhqoO6HI3wYapEXOuEGGC/N91dcgMJUHfABVWLWbUAyJGk2MKztbNc7pQOLKhwPaulPh2nji6yGcZh0RmDomHNEk= roerohan@anarchy
    sudo: ['ALL=(ALL) NOPASSWD:ALL']
    groups: sudo
    shell: /bin/bash

Step 3

Edit the meta-data file, if necessary. This is also in yaml format.

instance-id: id-12345
local-hostname: virt-ubuntu

Step 4

Run script.sh. This will automatically add your SSH key and other data from user-data to the image.

./script.sh

You will now be able to SSH into the ubuntu server, with the username and private key corresponding to the entered public key.

License

MIT License

References

You can checkout your user-data configuration here:

qemu-automator's People

Contributors

roerohan avatar saurusxi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.