Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/roles/create-vm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

vm_name: microshift-dev
vm_disk_dir: /var/lib/libvirt/images
iso_file: /var/lib/libvirt/images/rhel-baseos-9.1-x86_64-dvd.iso
iso_file: /var/lib/libvirt/images/rhel-9.2-x86_64-dvd.iso
num_cpu: 4
ram_size: 6
disk_size: 50
Expand Down
2 changes: 1 addition & 1 deletion docs/devenv_cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Follow the instructions in the [Create Virtual Machine](./devenv_setup_auto.md#c
```bash
./scripts/devenv-builder/create-vm.sh microshift-bench \
/var/lib/libvirt/images \
/var/lib/libvirt/images/rhel-baseos-9.2-$(uname -m)-dvd.iso \
/var/lib/libvirt/images/rhel-9.2-$(uname -m)-dvd.iso \
2 2 10 0 1
```

Expand Down
2 changes: 1 addition & 1 deletion docs/devenv_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sudo dnf install -y libvirt virt-manager virt-install virt-viewer libvirt-client
Move the ISO image to `/var/lib/libvirt/images` directory and run the following commands to create a virtual machine.
```bash
VMNAME="microshift-dev"
ISONAME=rhel-baseos-9.2-$(uname -m)-boot.iso
ISONAME=rhel-9.2-$(uname -m)-boot.iso

sudo -b bash -c " \
cd /var/lib/libvirt/images/ && \
Expand Down
4 changes: 2 additions & 2 deletions docs/devenv_setup_auto.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ As an example, run the following command to create a virtual machine named `micr
> See the [Recommended system swap size](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_storage_devices/getting-started-with-swap_managing-storage-devices#recommended-system-swap-space_getting-started-with-swap) document for more information.

```bash
ISONAME=rhel-baseos-9.2-$(uname -m)-dvd.iso
ISONAME=rhel-9.2-$(uname -m)-dvd.iso

./scripts/devenv-builder/create-vm.sh microshift-dev \
/var/lib/libvirt/images \
Expand All @@ -100,7 +100,7 @@ ISONAME=rhel-baseos-9.2-$(uname -m)-dvd.iso
or

```bash
ISONAME=rhel-baseos-9.2-$(uname -m)-dvd.iso
ISONAME=rhel-9.2-$(uname -m)-dvd.iso

export VMNAME=microshift-dev
export VMDISKDIR=/var/lib/libvirt/images
Expand Down
13 changes: 5 additions & 8 deletions scripts/devenv-builder/manage-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,16 @@ function get_base_isofile {

case ${rhel_version} in
8)
echo "rhel-8.7-x86_64-dvd.iso"
echo "rhel-8.7-$(uname -m)-dvd.iso"
;;
8.*)
echo "rhel-${rhel_version}-x86_64-dvd.iso"
echo "rhel-${rhel_version}-$(uname -m)-dvd.iso"
;;
9)
echo "rhel-9.2-beta-x86_64-dvd.iso"
echo "rhel-9.2-$(uname -m)-dvd.iso"
;;
9.1)
echo "rhel-baseos-9.1-x86_64-dvd.iso"
;;
9.2-beta)
echo "rhel-9.2-beta-x86_64-dvd.iso"
9.*)
echo "rhel-${rhel_version}-$(uname -m)-dvd.iso"
;;
*)
echo "unknown RHEL version ${rhel_version}" 1>&2
Expand Down