Browse Source

Added support for Ubuntu 18.04 LTS

pull/21/head
Giovanni Torres 8 years ago
parent
commit
daed634fef
  1. 3
      README.md
  2. 7
      kvm-install-vm
  3. 8
      tests/check_distributions.bats

3
README.md

@ -94,13 +94,12 @@ DISTRIBUTIONS
centos7-atomic CentOS 7 Atomic Host centos
centos6 CentOS 6 centos
debian9 Debian 9 (Stretch) debian
fedora26 Fedora 26 fedora
fedora26-atomic Fedora 26 Atomic Host fedora
fedora27 Fedora 27 fedora
fedora27-atomic Fedora 27 Atomic Host fedora
fedora28 Fedora 28 fedora
fedora28-atomic Fedora 28 Atomic Host fedora
ubuntu1604 Ubuntu 16.04 LTS (Xenial Xerus) ubuntu
ubuntu1804 Ubuntu 18.04 LTS (Bionic Beaver) ubuntu
EXAMPLES
kvm-install-vm create foo

7
kvm-install-vm

@ -78,6 +78,7 @@ function usage_subcommand ()
printf " fedora28 Fedora 28 fedora\n"
printf " fedora28-atomic Fedora 28 Atomic Host fedora\n"
printf " ubuntu1604 Ubuntu 16.04 LTS (Xenial Xerus) ubuntu\n"
printf " ubuntu1804 Ubuntu 18.04 LTS (Bionic Beaver) ubuntu\n"
printf "\n"
printf "EXAMPLES\n"
printf " $prog create foo\n"
@ -287,6 +288,12 @@ function fetch_images ()
IMAGE_URL=https://cloud-images.ubuntu.com/releases/16.04/release
LOGIN_USER=ubuntu
;;
ubuntu1804)
QCOW=ubuntu-18.04-server-cloudimg-amd64.img
OS_VARIANT="ubuntu17.10"
IMAGE_URL=https://cloud-images.ubuntu.com/releases/18.04/release
LOGIN_USER=ubuntu
;;
*)
die "${DISTRO} not a supported OS. Run 'kvm-install-vm create help'."
;;

8
tests/check_distributions.bats

@ -72,6 +72,14 @@ function remove_test_vm ()
remove_test_vm ubuntu1604
}
@test "Install VM (Ubuntu 18.04) - $VMNAME-ubuntu1804" {
create_test_vm ubuntu1804
}
@test "Delete VM (Ubuntu 18.04) - $VMNAME-ubuntu1804" {
remove_test_vm ubuntu1804
}
@test "Install VM (Debian 9) - $VMNAME-debian9" {
create_test_vm debian9
}

Loading…
Cancel
Save