Skip to content

Commit

Permalink
Added Fedora 32 to list of distributions (#63)
Browse files Browse the repository at this point in the history
* Added Fedora32 to list of distributions

* Updating readme to reflect current output.
  • Loading branch information
bahorn authored Jun 28, 2020
1 parent 5351f3b commit 6fdb56e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 27 deletions.
55 changes: 28 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,55 +77,60 @@ COMMANDS
```
$ kvm-install-vm help create
NAME
kvm-install-vm create [OPTIONS] VMNAME
kvm-install-vm create [COMMANDS] [OPTIONS] VMNAME
DESCRIPTION
Create a new guest domain.
COMMANDS
help - show this help
OPTIONS
-a Autostart (default: false)
-b Bridge (default: virbr0)
-c Number of vCPUs (default: 1)
-d Disk Size (GB) (default: 10)
-D DNS Domain (default: example.local)
-f CPU Model / Feature (default: host)
-g Graphics type (default: spice)
-a Autostart (default: false)
-b Bridge (default: virbr0)
-c Number of vCPUs (default: 1)
-d Disk Size (GB) (default: 10)
-D DNS Domain (default: example.local)
-f CPU Model / Feature (default: host)
-g Graphics type (default: spice)
-h Display help
-i Custom QCOW2 Image
-k SSH Public Key (default: $HOME/.ssh/id_rsa.pub)
-l Location of Images (default: $HOME/virt/images)
-L Location of VMs (default: $HOME/virt/vms)
-m Memory Size (MB) (default: 1024)
-M Mac address (default: auto-assigned)
-p Console port (default: auto)
-k SSH Public Key (default: $HOME/.ssh/id_rsa.pub)
-l Location of Images (default: $HOME/virt/images)
-L Location of VMs (default: $HOME/virt/vms)
-m Memory Size (MB) (default: 1024)
-M Mac address (default: auto-assigned)
-p Console port (default: auto)
-s Custom shell script
-t Linux Distribution (default: centos8)
-T Timezone (default: US/Eastern)
-u Custom user (defualt: $USER)
-t Linux Distribution (default: centos8)
-T Timezone (default: US/Eastern)
-u Custom user (default: $USER)
-y Assume yes to prompts (default: false)
-n Assume no to prompts (default: false)
-v Be verbose
DISTRIBUTIONS
NAME DESCRIPTION LOGIN
amazon2 Amazon Linux 2 ec2-user
centos8 CentOS 8 centos
centos7 CentOS 7 centos
centos7-atomic CentOS 7 Atomic Host centos
centos6 CentOS 6 centos
centos8 CentOS 8 centos
debian9 Debian 9 (Stretch) debian
debian10 Debian 10 (Buster) debian
fedora27 Fedora 27 fedora
fedora27-atomic Fedora 27 Atomic Host fedora
fedora28 Fedora 28 fedora
fedora28-atomic Fedora 28 Atomic Host fedora
fedora29 Fedora 29 fedora
fedora29-atomic Fedora 29 Atomic Host fedora
fedora30 Fedora 30 fedora
fedora31 Fedora 31 fedora
fedora32 Fedora 32 fedora
opensuse15 OpenSUSE Leap 15.2 opensuse
ubuntu1604 Ubuntu 16.04 LTS (Xenial Xerus) ubuntu
ubuntu1804 Ubuntu 18.04 LTS (Bionic Beaver) ubuntu
ubuntu2004 Ubuntu 20.04 LTS (Focal Fossa) ubuntu
EXAMPLES
kvm-install-vm create foo
Create VM with the default parameters: CentOS 7, 1 vCPU, 1GB RAM, 10GB
Create VM with the default parameters: CentOS 8, 1 vCPU, 1GB RAM, 10GB
disk capacity.
kvm-install-vm create -c 2 -m 2048 -d 20 foo
Expand All @@ -137,10 +142,6 @@ EXAMPLES
kvm-install-vm create -T UTC foo
Create a default VM with UTC timezone.
kvm-install-vm create -s ~/script.sh -g vnc -u bar foo
Create a VM with a custom script included in user-data, a graphical
console accessible over VNC, and a user named 'bar'.
```

#### Deleting a Guest Domain
Expand Down
9 changes: 9 additions & 0 deletions kvm-install-vm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function usage_subcommand ()
printf " fedora29-atomic Fedora 29 Atomic Host fedora\n"
printf " fedora30 Fedora 30 fedora\n"
printf " fedora31 Fedora 31 fedora\n"
printf " fedora32 Fedora 32 fedora\n"
printf " opensuse15 OpenSUSE Leap 15.2 opensuse\n"
printf " ubuntu1604 Ubuntu 16.04 LTS (Xenial Xerus) ubuntu\n"
printf " ubuntu1804 Ubuntu 18.04 LTS (Bionic Beaver) ubuntu\n"
Expand Down Expand Up @@ -387,6 +388,14 @@ function fetch_images ()
DISK_FORMAT=qcow2
LOGIN_USER=fedora
;;
fedora32)
QCOW=Fedora-Cloud-Base-32-1.6.x86_64.qcow2
OS_TYPE="linux"
OS_VARIANT="fedora32"
IMAGE_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/32/Cloud/x86_64/images
DISK_FORMAT=qcow2
LOGIN_USER=fedora
;;
ubuntu1604)
QCOW=ubuntu-16.04-server-cloudimg-amd64-disk1.img
OS_TYPE="linux"
Expand Down
8 changes: 8 additions & 0 deletions tests/check_distributions.bats
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ function remove_test_vm ()
remove_test_vm fedora31
}

@test "Install VM (Fedora 32) - $VMNAME-fedora32" {
create_test_vm fedora32
}

@test "Delete VM (Fedora 32) - $VMNAME-fedora32" {
remove_test_vm fedora32
}

@test "Install VM (Ubuntu 16.04) - $VMNAME-ubuntu1604" {
create_test_vm ubuntu1604
}
Expand Down

0 comments on commit 6fdb56e

Please sign in to comment.