A try for faster setting up virtual servers
Using qemu and docker
This repo contains mostly test files for a part of a project I would lfke to make
I would like as part of that project to create VMs super fast like digitalocean and a lot of others do
As prepreperation before someone can create faster a vm (only need to do this once for every os: debian, ubuntu, fedora)
- Create a virtual harddisk around 2gb depending on the OS and make sure it is resizeble
- Install the OS (not sure how to install something like ubuntu server without useing a screen)
- Mount the virtual harddisk to the server and change the settings inside the mounted folder (maybe using chroot)
- OR use ssh to get into the just created server
- Copy the vm
- Mount & chroot into the system and change ip, swap, default pass, etc
- Open vm
- Create link to domain, ip OR use custom ssh port
- Working VM... (send ip, username, password, etc to the client)
And this all mostly in dockercontainers to make it more scalible and a easier to work with.
Also It would be nice to have a status stream to the web or a server for checking the status
- Install docker and docker-compose
docker-compose up
and there you go :D
- Install docker, docker-compose, node.js, qemu
npm i -g yarn
On linux you might need to addsudo
yarn
yarn serve