diff --git a/README.md b/README.md index b292706..3629825 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ comprehensive support for macOS and Windows**. * Windows 8.1, 10 and 11 including TPM 2.0 * Ubuntu, and all the official flavours, supported by `quickget` * Fedora, supported by `quickget` + * openSUSE Leap and Tumbleweed, supported by `quickget` * Full SPICE support including host/guest clipboard sharing * VirtIO-webdavd file sharing for Linux and Windows guests * VirtIO-9p file sharing for Linux and macOS guests @@ -295,6 +296,25 @@ quickget fedora 34 quickemu --vm fedora-34.conf ``` +## openSUSE Guest + +`quickemu` supports openSUSE Leap and Tumbleweed. + +For the installation to complete properly, on the "Installation Settings" screen, +you need to disable the "Update NVRAM" option. + +On that same screen, you may also want to enable SSH, and open the SSH port. + +```bash +quickget opensuse 15_3 +quickemu --vm opensuse-15_3.conf +``` + +```bash +quickget opensuse tumbleweed +quickemu --vm opensuse-tumbleweed +``` + # SPICE The following features are available while using the SPICE protocol: diff --git a/quickget b/quickget index ee3a4cf..b73645e 100755 --- a/quickget +++ b/quickget @@ -6,6 +6,7 @@ function os_support() { kubuntu \ lubuntu \ macos \ + opensuse \ ubuntu \ ubuntu-budgie \ ubuntu-kylin \ @@ -26,6 +27,14 @@ function releases_fedora(){ 35_beta } +function releases_opensuse(){ + echo 15_0 \ + 15_1 \ + 15_2 \ + 15_3 \ + tumbleweed +} + function releases_macos() { echo high-sierra \ mojave \ @@ -341,6 +350,9 @@ function make_vm_config() { elif [[ "${OS}" == *"fedora"* ]]; then GUEST="linux" IMAGE_TYPE="iso" + elif [[ "${OS}" == *"opensuse"* ]]; then + GUEST="linux" + IMAGE_TYPE="iso" elif [[ "${OS}" == *"ubuntu"* ]]; then GUEST="linux" IMAGE_TYPE="iso" @@ -450,6 +462,34 @@ function get_fedora() { start_vm_info } +function get_opensuse() { + # For future releases, use dvd1 iso files. + local URL="" + local DL_BASE="https://download.opensuse.org/" + local VERSION="" + + case ${RELEASE} in + 15_0|15_1|15_2|15_3|tumbleweed) VERSION=${RELEASE//_/.};; + *) + echo "ERROR! openSUSE ${RELEASE} is not a supported release." + releases_opensuse + exit 1 + ;; + esac + + if [ "${VERSION}" == "tumbleweed" ]; then + ISO="openSUSE-Tumbleweed-DVD-x86_64-Current.iso" + URL="${DL_BASE}/tumbleweed/iso/${ISO}" + else + ISO="openSUSE-Leap-${VERSION}-DVD-x86_64.iso" + URL="${DL_BASE}/distribution/leap/${VERSION}/iso/${ISO}" + fi + make_vm_dir + web_get ${URL} ${VM_PATH} + make_vm_config ${ISO} + start_vm_info +} + function get_macos() { local CWD="" local MACRECOVERY="" @@ -681,6 +721,8 @@ else releases_freebsd elif [ "${OS}" == "fedora" ]; then releases_fedora + elif [ "${OS}" == "opensuse" ]; then + releases_opensuse elif [ "${OS}" == "macos" ]; then releases_macos elif [[ "${OS}" == *"ubuntu"* ]]; then @@ -699,6 +741,8 @@ elif [[ "${OS}" == *"freebsd" ]]; then get_freebsd elif [[ "${OS}" == *"fedora"* ]]; then get_fedora +elif [[ "${OS}" == *"opensuse"* ]]; then + get_opensuse elif [[ "${OS}" == *"ubuntu"* ]]; then get_ubuntu elif [ "${OS}" == "windows" ]; then