Giter Site home page Giter Site logo

carlodepieri / freshly_brewed_virtualsquare Goto Github PK

View Code? Open in Web Editor NEW

This project forked from virtualsquare/freshly_brewed_virtualsquare

0.0 1.0 0.0 12 KB

Dynamically create a disk image to test the latest developments of Debian sid and virtualsquare

License: GNU General Public License v2.0

Shell 100.00%

freshly_brewed_virtualsquare's Introduction

Freshly Brewed Virtualsquare

Dynamically create a disk image to test the latest developments of Debian sid and virtualsquare

The script brew_v2 downloads the latest version of SID/unstable from the Debian Official Cloud Images and customizes it to be used as a Tutorial environment for the Virtualsquare projects.

Requirements

brew_v2 should need the following packages:

$ apt-get install qemu-kvm qemu-utils parted libguestfs-tools

Usage

Simply run brew_v2:

$ ./brew_v2

At the end the script creates a disk image file like:

debian-sid-v2-amd64-daily-20200526-275.qcow2

(20200526 is the date and 275 is the version number of the latest version so it will be updated consistently)

This image can be used to start a kvm virtual machine. e.g.:

$ kvm -smp 8 -drive file=debian-sid-v2-amd64-daily-20200526-275.qcow2 -m 1G \
    -monitor stdio -netdev type=user,id=net,hostfwd=tcp::2222-:22 \
    -device virtio-net-pci,netdev=net

When the VM has booted log in as root (password virtualsquare) and run the following command:

# ./get_v2all

This command installs all the packets needed by the virtualsquare projects and then downloads, builds and installs all the altest versions of the projects directly from the development repositories.

Log in and try your experiments

Virtualsquare tools do not generally require root access. So an unprivileged user named user (password virtualsquare) has been added for the tests.

It is possible to log-in on the console or by ssh (a tunnel is provided as localhost at port 2222):

$ ssh -p2222 -X user@localhost

This example provides also a X-window forwarding service.

In case you update the disk image (e.g. using brew_v2 again) ssh can complain that the host key has changed. In case delete the previous key:

$  ssh-keygen -R "[localhost]:2222"

freshly_brewed_virtualsquare's People

Contributors

rd235 avatar

Watchers

James Cloos 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.