Added openSUSE support

quickget supports openSUSE 15.0, 15.1, 15.2, 15.3, and Tumbleweed
This commit is contained in:
Yannick Mauray 2021-10-16 15:40:44 +02:00
parent 2009ffc103
commit 31ff251909
No known key found for this signature in database
GPG Key ID: 67C4AAC5E99CB909
2 changed files with 63 additions and 0 deletions

View File

@ -31,6 +31,7 @@ comprehensive support for macOS and Windows**.
* macOS High Sierra, Mojave, Catalina and Big Sur * macOS High Sierra, Mojave, Catalina and Big Sur
* Windows 8.1, 10 and 11 including TPM 2.0 * Windows 8.1, 10 and 11 including TPM 2.0
* Ubuntu, and all the official flavours, supported by `quickget` * Ubuntu, and all the official flavours, supported by `quickget`
* openSUSE Leap and Tumbleweed, supported by `quickget`
* Full SPICE support including host/guest clipboard sharing * Full SPICE support including host/guest clipboard sharing
* VirtIO-webdavd file sharing for Linux and Windows guests * VirtIO-webdavd file sharing for Linux and Windows guests
* VirtIO-9p file sharing for Linux and macOS guests * VirtIO-9p file sharing for Linux and macOS guests
@ -285,6 +286,25 @@ quickget freebsd 13_0
quickemu --vm freebsd-13_0.conf quickemu --vm freebsd-13_0.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 # SPICE
The following features are available while using the SPICE protocol: The following features are available while using the SPICE protocol:

View File

@ -26,6 +26,14 @@ function releases_fedora(){
35_beta 35_beta
} }
function releases_opensuse(){
echo 15_0 \
15_1 \
15_2 \
15_3 \
tumbleweed
}
function releases_macos() { function releases_macos() {
echo high-sierra \ echo high-sierra \
mojave \ mojave \
@ -341,6 +349,9 @@ function make_vm_config() {
elif [[ "${OS}" == *"fedora"* ]]; then elif [[ "${OS}" == *"fedora"* ]]; then
GUEST="linux" GUEST="linux"
IMAGE_TYPE="iso" IMAGE_TYPE="iso"
elif [[ "${OS}" == *"opensuse"* ]]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [[ "${OS}" == *"ubuntu"* ]]; then elif [[ "${OS}" == *"ubuntu"* ]]; then
GUEST="linux" GUEST="linux"
IMAGE_TYPE="iso" IMAGE_TYPE="iso"
@ -450,6 +461,34 @@ function get_fedora() {
start_vm_info 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() { function get_macos() {
local CWD="" local CWD=""
local MACRECOVERY="" local MACRECOVERY=""
@ -679,6 +718,8 @@ else
echo "ERROR! You must specify an OS release name." echo "ERROR! You must specify an OS release name."
if [ "${OS}" == "freebsd" ]; then if [ "${OS}" == "freebsd" ]; then
releases_freebsd releases_freebsd
elif [ "${OS}" == "opensuse" ]; then
releases_opensuse
elif [ "${OS}" == "macos" ]; then elif [ "${OS}" == "macos" ]; then
releases_macos releases_macos
elif [[ "${OS}" == *"ubuntu"* ]]; then elif [[ "${OS}" == *"ubuntu"* ]]; then
@ -697,6 +738,8 @@ elif [[ "${OS}" == *"freebsd" ]]; then
get_freebsd get_freebsd
elif [[ "${OS}" == *"fedora"* ]]; then elif [[ "${OS}" == *"fedora"* ]]; then
get_fedora get_fedora
elif [[ "${OS}" == *"opensuse"* ]]; then
get_opensuse
elif [[ "${OS}" == *"ubuntu"* ]]; then elif [[ "${OS}" == *"ubuntu"* ]]; then
get_ubuntu get_ubuntu
elif [ "${OS}" == "windows" ]; then elif [ "${OS}" == "windows" ]; then