giovtorres / kvm-install-vm

Bash script to build local virtual machines using KVM/libvirt and cloud-init.
MIT License
333 stars 161 forks source link

Add support for Ubuntu 20.04 "Focal Fossa" #58

Closed berkutta closed 4 years ago

berkutta commented 4 years ago

Added support for the new Ubuntu release https://lists.ubuntu.com/archives/ubuntu-announce/2020-April/000256.html

➜  kvm-install-vm git:(ubuntu2004) ./kvm-install-vm create -t ubuntu2004 focal0
- Copying cloud image (ubuntu-20.04-server-cloudimg-amd64.img) ... OK
- Generating ISO for cloud-init ... OK
- Creating storage pool ... OK
- Installing the domain ... OK
- Cleaning up cloud-init files ... OK
- MAC address: 52:54:00:95:65:2d
- Waiting for domain to get an IP address ... OK

- Checking for 192.168.122.88 in known_hosts file
- No entries found for 192.168.122.88

- SSH to focal0: 'ssh ubuntu@192.168.122.88' or 'ssh ubuntu@focal0'
- Console at spice://localhost:5900
- DONE
➜  kvm-install-vm git:(ubuntu2004) ssh ubuntu@192.168.122.88                   
The authenticity of host '192.168.122.88 (192.168.122.88)' can't be established.
ED25519 key fingerprint is SHA256:r8eRiEVfwTUCsbgSgvGLrrAr+vxOZWR+1oZtcXcfcMw.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.122.88' (ED25519) to the list of known hosts.
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-26-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Thu Apr 23 20:05:10 UTC 2020

  System load:  0.58              Processes:               125
  Usage of /:   60.4% of 1.96GB   Users logged in:         0
  Memory usage: 17%               IPv4 address for enp1s0: 192.168.122.88
  Swap usage:   0%

0 updates can be installed immediately.
0 of these updates are security updates.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@focal0:~$