Skip to content

mikelogaciuk/ubuntu-kvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ubuntu-kvm

About

Simple KVM setup for Ubuntu 22.04 LTS.

In order to start, type:

mkdir -p ~/repos && cd ~/repos && git clone https://github.com/mikelogaciuk/ubuntu-kvm.git && cd ubuntu-kvm

Then generate all the needed directories:

rake generate:folders

Fetch cloud image and resize it to 30GB:

rake image:fetch

Generate SSH keys and link them to the project:

rake generate:ssh

Virsh:

rake pool:create

Init

To prototype the machine, type:

terraform init
terraform apply

Setup

ssh -t [email protected] bash -l

Check if machine is running

In order to check if cloud-init has done its job, type:

sudo tail -30 /var/log/cloud-init-output.log

Teardown

In order to destroy everything, type:

terraform destroy

ssh-keygen -f "$HOME/.ssh/known_hosts" -R "192.168.122.89"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published