diff --git a/README.md b/README.md index 35610d9..7c367bc 100644 --- a/README.md +++ b/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 diff --git a/kvm-install-vm b/kvm-install-vm index ea6d093..10ce076 100755 --- a/kvm-install-vm +++ b/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'." ;; diff --git a/tests/check_distributions.bats b/tests/check_distributions.bats index 596b2bd..827d5ed 100644 --- a/tests/check_distributions.bats +++ b/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 }