Compare commits

..

755 Commits

Author SHA1 Message Date
Phil Clifford
c7e91a0ea0 docs: windows automation return changes reflected and documentation regenerated 2023-06-21 08:57:16 +01:00
Martin Wimpress
513a1b18c9
chore: bump version to 4.8 2023-06-14 12:33:25 +01:00
Martin Wimpress
8bf84986b9
Merge remote-tracking branch 'origin/master' 2023-06-14 12:30:57 +01:00
Martin Wimpress
008478d85e
feat: add automatic Windows 10 and 11 iso downloads. Close #563 2023-06-14 12:30:45 +01:00
Martin Wimpress
4ce607e681
fix: remov trailing period from vmlinux releases 2023-06-14 12:25:23 +01:00
Phil Clifford
51a6502a79 docs: additional note explaining --screenpct
Co-authored-by: dabrown645 dabrown645@users.noreply.github.com
2023-06-14 11:55:12 +01:00
Phil Clifford
4221302936 docs: regenerated to auto-update 2023-06-14 11:31:06 +01:00
Martin Wimpress
5d26df5443
fix: detect the 1920x1080 OpenCore firmware 2023-06-14 10:33:05 +01:00
Martin Wimpress
d79dfb7240
chore: white space clean up 2023-06-14 10:10:52 +01:00
Martin Wimpress
2c0b1f59b7
feat: change default OpenCore resolution to 1920x1080 2023-06-14 10:10:33 +01:00
Martin Wimpress
b938e9e9e8
feat: add quickemu macOS Ventura support 2023-06-14 10:09:55 +01:00
Martin Wimpress
3468c3a4d8
feat: add quickget support for macOS Ventura 2023-06-14 10:09:37 +01:00
zenobit
031660cb4b XeroLinux 2023-06-14 09:47:13 +01:00
Aaron Honeycutt
dc313fe383 Update to NixOS 23.05 2023-06-14 09:46:34 +01:00
Carl George
387d05615a Use geo-distributed mirror for Alma URL
Rackspace's mirror network is geographically distributed.  Requesting
the mirror.rackspace.com endpoint will point you at the closest mirror
to your location.  It will even route you to the next nearest mirror in
the case of an outage.  Hard coding this to the lon.mirror.rackspace.com
endpoint forces every user to route through London, regardless of their
location.
2023-06-14 09:45:38 +01:00
Wojciech Bernatek
0762a2abd6 fix url and iso name for rockylinux versions 2023-06-14 09:45:13 +01:00
David Brown
a6217167b4 issu590: fixed typo in change that was missing continuing \ 2023-06-14 09:44:42 +01:00
David Brown
8e9fba398d Issue: 591 - line breaks in generated scrip 2023-06-14 09:44:42 +01:00
David Brown
d431d91618 Issue 650 - Allow --screenpct which will scale VM's screen size 2023-06-14 09:44:15 +01:00
Phil Clifford
44a8c68aef The daily isos demand a minimum of 18G
Otherwise they refuse to install. Added some overhead to allow for trying package updating and installation as well.
daily-canary appears to have returned as well
2023-06-14 09:42:34 +01:00
Phil Clifford
92371b60c3 Correction of release naming
They should always have respected the RELEASE
Add new daily-legacy release
2023-06-14 09:42:34 +01:00
Phil Clifford
11dff38fa6 updated with upstream merges 2023-06-14 09:41:39 +01:00
Phil Clifford
eb8d4ec173
Add ubuntu server (#702)
* merged 577

fixed conflicts and readme


Co-authored-by: funk-on-code  <funk-on-code@users.noreply.github.com>

* Corrected ubuntu-server implementation

naming aligned
releases corrected
implemented daily-live

maybe some more alignement and refactoring possible

---------

Co-authored-by: funk-on-code  <funk-on-code@users.noreply.github.com>
2023-06-14 09:40:47 +01:00
Dom
8ee0d3a207 Correct disk to format in Big Sur and up
On Big Sur and up apple includes the VirtIO driver and therefore the install disk is named
Apple Inc. VirtIO Block Device instead of  QEMU HARDDISK Media.
This PR lets the documentation reflect that.
2023-04-30 11:53:04 +01:00
Phil Clifford
ddc23b9f77
Fix: Account for BlendOS 23.04 images moving to sourceforge (#699)
* Fix: initial correction for 23.04 moving to sourceforge
and also now having 2 editions

* tested and tidied
2023-04-30 11:52:23 +01:00
Chase Covello
215633947e
Add initial Solaris/Illumos/OpenIndiana support (#697)
* Add initial Solaris/Illumos support

* Fix OpenIndiana kernel panic on boot

The OpenIndiana kernel panics on boot in the AHCI driver. Switching the
machine type from "q35" to "pc" seems to fix the issue.

* Fix Illumos/OpenIndiana USB controller issue.

* Add openindiana support

* Updated quickget with current OpenIndiana release

* Change OpenIndiana video card to vmware-svga

OpenIndiana's default Xorg configuration doesn't work with QXL, virtio,
or VGA, but it does with vmware-svga.

* Updated man pages for OpenIndiana support

* Changed default Solaris/OpenIndiana boot to legacy

The OpenIndiana installer defaults to MBR partition table and BIOS boot
code even in EFI mode, so changed quickget to set 'boot="legacy"' in the
configuration file.

---------

Co-authored-by: Phil Clifford <philip.clifford@gmail.com>
2023-04-30 11:51:54 +01:00
Phil Clifford
53a4100905 Add Vanilla OS 2023-04-30 11:49:26 +01:00
Phil Clifford
b9ba135884 whitespace cleanup 2023-04-30 11:49:26 +01:00
Phil Clifford
ce1cadb09b Lose empty echo 2023-04-30 11:49:26 +01:00
Phil Clifford
9d3e7dd4d5 remove cog stutter
one day I'll find the magic or remember to do this while chasing the stream
2023-04-30 11:48:18 +01:00
zenobit
6e9405a42f SteamOS 2023-04-30 11:47:45 +01:00
Phil Clifford
7a87d5ac7e updated for new release 2023-04-26 11:58:09 +01:00
Martin Wimpress
cb6d6d2ad7
chore: bump version to 4.7 2023-04-26 11:46:18 +01:00
zenobit
994de923a8 Added vxlinux 6.1.2 2023-04-26 11:34:27 +01:00
zenobit
ba7621944d VX-Linux 2023-04-26 11:34:27 +01:00
deraffe
6a612bd104 Fix aria2 using wrong destination directory
If you have set a download directory in aria2's config, quickget will
download files to the wrong directory. This overwrites that setting and
downloads files to the correct location.

Quote from `aria2c(1)`:
> `-o, --out=<FILE>`
>   The file name of the downloaded file. It is
>   always relative to the directory given in
>   `--dir` option.
2023-04-26 11:32:58 +01:00
zenobit
8b256bb57d
Update cachyos to latest version (#666) 2023-04-26 11:31:43 +01:00
Phil Clifford
31bba1073b
Add Endless OS (#642)
Co-authored-by: Martin Wimpress <304639+flexiondotorg@users.noreply.github.com>
2023-04-26 11:28:36 +01:00
Phil Clifford
aba13b77d4 Added BlendOS by regenerating docs 2023-04-26 11:26:08 +01:00
Phil Clifford
6f8f99dc17 dynamic fetching of release tags
also swap wgets for curls
2023-04-26 11:26:08 +01:00
Phil Clifford
a99ca998f5 added BlendOS 2023-04-26 11:26:08 +01:00
Phil Clifford
564a252585 Correction of debian dependencies
Taken from :
eagavi/quickemu@88682d2

Co-authored-by: eagavi <eagavi@users.noreply.github.com>
2023-04-26 11:24:47 +01:00
zenobit
6e827af6f2 siduction 2023-04-26 11:22:20 +01:00
Phil Clifford
4d712e440c Make dragonfly releases dynamic
Also support their .bz2 compressed isos, giving access to all releases
back to 2017.
Removing (or making optional) the .bz2 in the search
will just return the current iso
2023-04-26 11:21:16 +01:00
Phil Clifford
ecdfa193a3 Make NetBSD releases dynamic
This obsoletes #675 but in case that gets closed
here's an attempt to acknowlege a valuable heads-up.

Co-authored-by: Kurt Kremitzki <kremitzki@users.noreply.github.com>
2023-04-26 11:20:40 +01:00
Aaron Honeycutt
c4b71195c1 Move resize value 2023-04-26 11:18:02 +01:00
Aaron Honeycutt
eb608fb5ef Add custom size for NixOS as with the default a fresh install has 3% disk space left 2023-04-26 11:18:02 +01:00
Aaron Honeycutt
245900df66 Add Fedora 38 and other spins/editions 2023-04-26 11:16:43 +01:00
Phil Clifford
54d19096ad Prepare for 23.04 and add Ubuntu Cinnamon 2023-04-26 11:16:11 +01:00
Phil Clifford
c69fa6b430 Win notes added to man pages 2023-02-04 00:28:51 +00:00
Martin Wimpress
bacb7b1a8f
Bump the version to 4.6 2023-02-04 00:24:24 +00:00
Martin Wimpress
61b73b6377
Update README 2023-02-04 00:16:01 +00:00
Martin Wimpress
8d3cf4c1a7
Prompt the user to download the Windows iso manually. Closes #612 2023-02-04 00:06:37 +00:00
Martin Wimpress
4286405639
Revert "Acknowledgement that Windows downloads are not working automatically #6123"
This reverts commit 809ad68fd8.
2023-02-03 23:09:56 +00:00
Martin Wimpress
f407fc9e2f
Merge WIP build-docs 2023-02-03 23:09:34 +00:00
Phil Clifford
5da140262a Updated for release of Rocky Linux 9.1 2023-02-03 22:52:53 +00:00
Phil Clifford
9a3e5b3e01 Update mxlinux to current release 2023-02-03 22:51:18 +00:00
Phil Clifford
eaa5f1cad2 Update drgaonfly release to current
Older isos are bzipped so until we handle that only current is available
2023-02-03 22:50:34 +00:00
Phil Clifford
d4d9558892 Remove old release from elementary - they only present current release 2023-02-03 22:50:02 +00:00
Phil Clifford
9ab21571d0 updated cachyos release 2023-02-03 22:48:55 +00:00
Phil Clifford
40221ffe71 Alma 9.1 is released 2023-02-03 22:48:15 +00:00
Phil Clifford
206c93d8e5 Aligned config file options with current list 2023-02-03 22:47:18 +00:00
Phil Clifford
9f1c3af122 chore: regenerated docs for release 2023-02-03 22:47:18 +00:00
Phil Clifford
e7480e1820 comment out non-supported lines aimed at the conf 2023-01-31 17:44:44 +00:00
Phil Clifford
ce04397793 Correct basic error to get to downloading isos 2023-01-31 17:44:44 +00:00
hi-phile
b46aca69c9 Added support for RebornOS in quickget
Added support for RebornOS, tested and working.
2023-01-31 17:40:23 +00:00
Alan Pope
75c80d89fd Add elementary 7.0
Hopefully I did this right. I tested locally, and it appears to download the 7.0 ISO correctly.
2023-01-31 17:38:45 +00:00
Martin Wimpress
809ad68fd8
Acknowledgement that Windows downloads are not working automatically #6123
We'll investigate more robust solution to this issue.
2023-01-23 11:00:28 +00:00
Martin Wimpress
462987cf21
Merge remote-tracking branch 'origin/master' 2023-01-23 10:47:31 +00:00
Martin Wimpress
66703ddd6c
Fix more syntax errors in TrueNAS function 2023-01-23 10:47:14 +00:00
Luca Weiss
f97ceeabe9 Add Mageia 2023-01-23 10:42:27 +00:00
Ryan Barth
ce38ebdada add endeavouros releases up to 22_12 2023-01-23 10:38:54 +00:00
Martin Wimpress
b1fc537332
White space clean up 2023-01-23 10:36:43 +00:00
Martin Wimpress
b97ae01243
Fix syntax error 2023-01-23 10:36:29 +00:00
Matus Mastena
66c5ff86b7 Added initial support for TrueNAS 2023-01-23 10:27:41 +00:00
TenTypekMatus
d2a7eff80e Update quickget 2023-01-23 10:27:41 +00:00
goosepirate
e64f54ad52 Allocate 32G disk_size to popos 2023-01-23 10:22:31 +00:00
George Sokianos
4b1bb51c55 Added Haiku r1beta4 2023-01-23 10:16:58 +00:00
DimitrisPa
9c9dcf65c0 Linux Mint 22.1 released 2023-01-23 10:15:59 +00:00
Donny Kurnia
23982c3f9d use long hv-* attributes for qemu 6.0.0 2022-12-14 16:37:06 +00:00
Phil Clifford
c3d21b9029 docs: Regenerated man pages for 4.5 2022-12-12 00:45:09 +00:00
Martin Wimpress
d13509b5a7
Bump version to 4.5 2022-12-11 20:47:44 +00:00
Dani Llewellyn
28b549c886
Revert "README.md: drop mention of VirtIO Block Media in macOS docs"
This reverts commit 6f3bc41750.
2022-12-11 20:40:10 +00:00
Dani Llewellyn
9a7ee71804
Revert "macOS: swap disk controller from virtio-blk-pci to ahci"
This reverts commit 881adb289a.
2022-12-11 20:39:46 +00:00
Dani Llewellyn
332f5b59f9
Revert "Defaults: Switch default disk from virtio-blk-pci to virtio-scsi-pci"
This reverts commit fb8deb10e8.
2022-12-11 20:39:29 +00:00
DimitrisPa
24c01a0d18 NixOS-22.11 released 2022-12-11 20:29:16 +00:00
Yannick Mauray
050d8d740c
fix : update for CachyOS 2022-11-22 10:03:29 +01:00
interorbital
41b1e11cfe
Adding ubuntu unity (#584)
* ubuntu unity

* hiding previous releases from echo output

* displaying ubuntu-unity releases more effectively

* added ubuntu-unity to README

* switch from if-not to else

* remove redundant whitespace

* added fedora 37

* removed fedora 37

* removed LTS_SUPPORT definitions
2022-11-20 19:00:27 +00:00
interorbital
116923d7a8 added fedora 37 2022-11-20 18:59:28 +00:00
Phil Clifford
c32e290ba3 Alma released 8.7 and 9.1-beta 2022-11-20 17:59:12 +00:00
szorfein
19248f783b links for base 2022-11-20 17:57:29 +00:00
Phil Clifford
7dee1a37db
make OpenBSD release list dynamic (#574)
* make OpenBSD release list dynamic

* Regenerated docs for 4.4 Release

README and man pages regenerated incorporating documentation updates from Release 4.4

* FreeBSD 13.1 released

Release avaiability made dynamic
2022-11-20 17:56:47 +00:00
Phil Clifford
61772a5b89 FreeBSD 13.1 released
Release avaiability made dynamic
2022-10-26 10:20:06 +01:00
DimitrisPa
813292e305 OpenBSD 7.2 released 2022-10-26 10:18:24 +01:00
Phil Clifford
1fb683dd48 Regenerated docs for 4.4 Release
README and man pages regenerated incorporating documentation updates from Release 4.4
2022-10-26 10:17:15 +01:00
Martin Wimpress
215597eead
Bump version to 4.4 2022-10-21 08:49:14 +01:00
Dani Llewellyn
a437bc8a99 README.md: Add instructions for enabling macOS TRIM support
macOS refuses to enable TRIM on any disk models that are not in Apple's verified approval list. However, there is a command that you can run via `sudo` to forcibly tell macOS to enable TRIM even though the disk model is unsupported by Apple.

Here we add the instructions to `README.md` for forcibly enabling TRIM support.
2022-10-21 08:44:23 +01:00
Dani Llewellyn
dba3bb61c6 README.md: Update macOS install steps with correct hard disk naming
In a previous commit we dropped usage of VirtIO Block Media from backing the hard disk device in macOS guests. The instructions therefore are updated here to drop the split between macOS versions that we had previously enabled VirtIO Block Media disks and those we didn't. This simplifies the instructions to a single hard disk name for all supported macOS version installations.
2022-10-21 08:44:23 +01:00
Dani Llewellyn
6f3bc41750 README.md: drop mention of VirtIO Block Media in macOS docs
The previous commit removes our usage of VirtIO Block Media as a backing for the macOS hard disk. We therefore need to drop our descriptions of this functionality now we're not using it any more.
2022-10-21 08:44:23 +01:00
Dani Llewellyn
881adb289a macOS: swap disk controller from virtio-blk-pci to ahci
Currently, the virtio specification does not include provision for the TRIM (aka DISCARD) command that allows a guest operating system to signal the disk hardware that blocks have become unused so that the underlying device may clear the physical data.

The TRIM/DISCARD command was introduced for SSD disks as an extension to the AHCI specification that is used in SATA systems.

With Virtual Machines we can use this command to tell QEMU's Qcow2 driver to reclaim unused space in the disk image. This ensures the disk image file is kept to the smallest size possible where without the TRIM/DISCARD command it grows to it's maximum configured size and never shrinks again when data is deleted.

Let's swap our default disk driver from `virtio-blk-pci` which does not support TRIM to `ahci` which does.

(We cannot use `virtio-scsi-pci` when running macOS, like we do in our default disk device,  because macOS does not support SCSI disks at all on x86_64 systems.)
2022-10-21 08:44:23 +01:00
Dani Llewellyn
fb8deb10e8 Defaults: Switch default disk from virtio-blk-pci to virtio-scsi-pci
Currently, the virtio specification does not include provision for the TRIM (aka DISCARD) command that allows a guest operating system to signal the disk hardware that blocks have become unused so that the underlying device may clear the physical data.

The TRIM/DISCARD command was introduced for SSD disks as an extension to the AHCI specification that is used in SATA systems.

With Virtual Machines we can use this command to tell QEMU's Qcow2 driver to reclaim unused space in the disk image. This ensures the disk image file is kept to the smallest size possible where without the TRIM/DISCARD command it grows to it's maximum configured size and never shrinks again when data is deleted.

Let's swap our default disk driver from `virtio-blk-pci` which does not support TRIM to `virtio-scsi-pci` which does.
2022-10-21 08:44:23 +01:00
Dani Llewellyn
bfd7a05ff1 OpenBSD: Fix download of versions 6.8 & 6.9
The CDN we were using in QuickGet only carries version 7.0 and 7.1. By switching to a different CDN provided for the OpenBSD Community (listed on https://www.openbsd.org/ftp.html) we can regain access to version 6.8 and 6.9.
2022-10-21 08:42:16 +01:00
interorbital
c28db24184 added the 22.10 version for ubuntu and all quickemu-supported ubuntu flavors 2022-10-21 08:41:36 +01:00
Mikael Bak
72432bfad7 Add Archcraft 2022-10-05 22:52:59 +01:00
Martin Wimpress
7db5167cac
Bump version to 4.3 2022-09-22 09:18:25 +01:00
Martin Wimpress
399fc26c10
Merge remote-tracking branch 'origin/master' 2022-09-22 09:17:05 +01:00
Martin Wimpress
40bc25fe87
Correct permissions 2022-09-22 09:16:57 +01:00
Martin Wimpress
ddbbc23d34
Replace discrete Hyper-V Enlightenments with hv_passthrough
https://www.qemu.org/docs/master/system/i386/hyperv.html#supplementary-features
2022-09-22 09:16:41 +01:00
Martin Wimpress
62b258c296
Refactor GUEST_TWEAKS for Windows 2022-09-22 09:13:48 +01:00
Martin Wimpress
19b9e8e910
Drop -smbios 2022-09-22 09:12:46 +01:00
Phil Clifford
747aaf6b45 Make quickget executable again
somwhere an executable bit or three dropped off
2022-09-22 09:10:37 +01:00
Phil Clifford
3b893afbe7 Add later and missed documentation updates in 4.2 to builder
Include change from PR 548
 - replace shallow with unblobby clone
Catch up with macOS note from merged PR 559
 - note on macOS filesystems

Co-authored-by: giladwo <giladwo@users.noreply.github.com>
Co-authored-by:  tinsami1 <tinsami1@users.noreply.github.com>
2022-09-22 09:10:11 +01:00
Martin Wimpress
8c1d867110
Enable grab-on-hover for SDL. Fixes #541 2022-09-20 14:18:19 +01:00
Martin Wimpress
e97b57352c
Do not use SDL for audio. Close #542
The QEMU manpage states: "This backend is available on most systems, but you should use your platform’s native backend if possible."
2022-09-20 13:53:59 +01:00
Martin Wimpress
e6b9954050
Merge remote-tracking branch 'origin/master' 2022-09-20 13:03:08 +01:00
Martin Wimpress
a29dcef6ed
Apply display= if set in the VM configuration. Close #520 2022-09-20 13:02:48 +01:00
Michael Tinsay
ed7bffda8d Additional note on filesystem to use 2022-09-20 11:37:23 +01:00
Phil Clifford
5a711439da updated docs for release 4.2 2022-09-20 11:36:46 +01:00
giladwo
bf3fb16921 Replace shallow clone with partial clone
As recommended in https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/#user-content-quick-summary.
2022-09-20 11:36:11 +01:00
Phil Clifford
c4565b77f9
fix for dynamically selecting debian releases (#547)
* fix for dynamically selecting debian releases

* MX 21.2 released

* devuan chimaera 4.0.2 released

* deepin releases 20.6 and 20.7 added

* fix for dynamically selecting debian releases
2022-09-20 11:35:38 +01:00
Martin Wimpress
dc86cd6098
Add macOS Ventura placeholder to quickget 2022-09-20 11:34:02 +01:00
Martin Wimpress
d07b719429
Suppress warnings 2022-09-19 13:25:09 +01:00
Martin Wimpress
5b14be93e0
Bump version to 4.2 2022-09-19 11:32:44 +01:00
Martin Wimpress
9793041b89
Fix MX Linux and ReactOS download. Close #557 2022-09-19 11:26:00 +01:00
Martin Wimpress
ddfc806435
Drop Regolith. Close #551 2022-09-19 11:21:36 +01:00
Martin Wimpress
71b4505e1e
Fix Windows download on IPv6 enabled hosts. Close #537 2022-09-19 11:01:43 +01:00
Martin Wimpress
31d3c1ac01
Merge remote-tracking branch 'origin/master' 2022-09-19 10:45:49 +01:00
Martin Wimpress
0ef66eb0e7
Add socat to requirements. Close #556 2022-09-19 10:43:14 +01:00
Phil Clifford
1a238de113 deepin releases 20.6 and 20.7 added 2022-09-19 10:36:08 +01:00
Phil Clifford
0317b5e75d devuan chimaera 4.0.2 released 2022-09-19 10:35:57 +01:00
Phil Clifford
7641ab5038 MX 21.2 released 2022-09-19 10:35:47 +01:00
Phil Clifford
e03c5e76ba debian 11.5 and 10.13 released 2022-09-19 10:34:33 +01:00
Phil Clifford
0185369632 Removed spurious duplication from documentation
Co-authored-by: mk3z <mk3z@users.noreply.github.com>
2022-09-07 10:02:18 +01:00
Phil Clifford
cc62b5ac78 Incorporate additional changes into generation 2022-08-20 00:07:19 +01:00
Martin Wimpress
d1d7920f0a
Bump version to 4.1 2022-08-19 23:46:51 +01:00
Martin Wimpress
b19188c2dd
Update comment 2022-08-19 23:46:31 +01:00
Martin Wimpress
b05208c892
Catch reconfigured USB devices for pass-through. Close #433 2022-08-19 22:39:43 +01:00
Martin Wimpress
2e15b1219f
Allow persist MAC addresses for bridged interfaces. Fixes #287 2022-08-19 21:15:36 +01:00
Phil Clifford
8bb24f69c0 Updated for commits direct to README 2022-08-19 20:56:03 +01:00
Phil Clifford
d669c4ca2a parent ef4ca6b676
author Phil Clifford <philip.clifford@gmail.com> 1645494694 +0000
committer Phil Clifford <philip.clifford@gmail.com> 1645926095 +0000

rebasing upstream while trying to keep up
2022-08-19 20:56:03 +01:00
Martin Wimpress
ae57996d54
Configure network via VM configuration file. Fixes #478 #418 2022-08-19 18:47:38 +01:00
Robin Edser
c1c9aacaa8 Small README Typo in first example
Very subtle but important typo.
2022-08-19 18:02:12 +01:00
Martin Wimpress
0ee102dc4b
Do not enable SPICE when GTK or SDL are the selected display. Fixes #466
QEMU 7.0 introduces a change/regression where it is not possible to use GL accerlation via GTK/SDL displays and also bring up SPICE: https://gitlab.com/qemu-project/qemu/-/issues/1036

This patch prevents Quickemu from bringing up SPICE when GTK or SDK are selected as the display.
2022-08-19 17:56:39 +01:00
Martin Wimpress
1b151955b0
Refactor DISPLAY_RENDERER configuration 2022-08-19 17:49:59 +01:00
Martin Wimpress
eba2d52ba0
Optimise GPU acceleration for Windows guests 2022-08-19 17:49:08 +01:00
Martin Wimpress
b6dbfcbc35
Optimise GPU acceleration for Linux guests 2022-08-19 17:48:26 +01:00
Martin Wimpress
c22d0355b9
Refactor Display: status message 2022-08-19 17:42:58 +01:00
Martin Wimpress
92f3466d08
Make shellcheck happy 2022-08-19 17:40:57 +01:00
Martin Wimpress
55384b70b7
White space and comments 2022-08-19 17:40:22 +01:00
Martin Wimpress
d94f0403c2
Consolidate macOS BOARD_IDs and MLBs 2022-08-19 17:39:13 +01:00
Martin Wimpress
d0a59e161d
Configure audio device to best match the display 2022-08-19 17:35:08 +01:00
Martin Wimpress
9b5a6a44ac
Ensure only one scanout is present. Ref #222
Run QEMU with '-vga none' to avoid having two scanouts, one for VGA and another for virtio-vga-gl.

 - Workaround for a GTK assertion failure in gtk_widget_get_realized().
 - Allows seamless mouse in macOS when using the qxl-vga device.
 - Enables sane default resolutions in all support macOS versions.
2022-08-19 17:33:50 +01:00
Martin Wimpress
2071816ede
Add initial support for macOS Ventura 2022-08-19 17:20:06 +01:00
Martin Wimpress
02e0a9e55a
Document how to enable audio in macOS guests. Close #337 2022-08-19 17:17:58 +01:00
Martin Wimpress
c147560731
Refactor guest tweak for Batocera, KolobriOS, ReactOS, Haiku & FreeDOS 2022-08-19 17:16:54 +01:00
Martin Wimpress
d8417a6abe
Make shellcheck happy 2022-08-18 17:51:55 +01:00
Martin Wimpress
13abd0c5a7
Move MSR warning to an appropriate section of the status messages 2022-08-18 17:51:31 +01:00
Martin Wimpress
3f05e41e13
Clean up status messages 2022-08-18 16:02:59 +01:00
Martin Wimpress
74e72404b4
Automatically press any key when booting Windows install. Close #231 2022-08-18 16:02:35 +01:00
Martin Wimpress
fd105ab8f5
White space clean up 2022-08-18 12:57:24 +01:00
Martin Wimpress
275f057cdd
Limit macOS Monterey to 2 CPU cores. Close #438
Post-install the cpu_cores=2 can be removed from the virtual machine configuration file.
2022-08-18 12:55:47 +01:00
Martin Wimpress
10c35369a1
Don't pass-through the CPU for macOS guest on Intel CPU hosts. Close #502 2022-08-18 10:50:29 +01:00
Martin Wimpress
94ee99a48e
Add notes to work around MacOS App Store logins #474
This work around may work in some situations.
2022-08-18 10:48:16 +01:00
Phil Clifford
477d35dad7 try to support jammy daily testing 2022-08-18 09:57:26 +01:00
interorbital
0a7a38b915 added linuxmint 21 to quickget 2022-08-18 09:57:14 +01:00
Jake Halaska
1522e4b1a4 Force IPv4 on android mirror 2022-08-18 09:56:59 +01:00
Deihim Poornader
309057f984 Add udp port forward
Add udp port forward, which can be useful for windows rdp udp acceleration.
2022-08-18 09:48:35 +01:00
Deihim Poornader
6474505dc2 Update quickemu
Limit spice to localhost, preventing potential unauthorized access.
2022-08-18 09:48:22 +01:00
Phil Clifford
573b2566cb
Add super-size for some Zorin options (#522)
test the EDITION for those that need a large disk

Co-authored-by: Martin Wimpress <304639+flexiondotorg@users.noreply.github.com>
2022-08-18 09:47:59 +01:00
Dani Llewellyn
e19a2ce837 Remove duplicate option (usb_controller)
the default for `usb_controller` is set twice in `quickemu` script.

Remove the second `usb_controller` default setting.
2022-08-18 09:46:29 +01:00
3nprob
8e8c65eac6
Allow overriding some VM arguments via env vars (#519)
* allow overriding MACHINE_TYPE,MAC_DISK_DEV,NET_DEVICE,SMM via env vars

* allow overriding EFI_CODE,EFI_EXTRA_VARS
2022-08-18 09:45:10 +01:00
Graham Ashton
1b1bd84e6a Add script to retrieve Windows product keys 2022-08-18 09:44:43 +01:00
Mikael Bak
600ada52ae
Add reactos (#423)
* Add initial support for ReactOS

* Move code block to be able to override default cdrom settings
2022-08-18 09:44:09 +01:00
Martin Wimpress
52f298ba8b
Merge remote-tracking branch 'origin/master' 2022-08-01 11:21:53 +01:00
Martin Wimpress
54908fa3da
Bump the version to 4.0 2022-08-01 11:21:47 +01:00
Phil Clifford
7e0c00bfe7 Last change hopefully 2022-08-01 11:17:14 +01:00
Phil Clifford
2e5785286f doc refresh to include option 2022-08-01 11:17:14 +01:00
Martin Wimpress
ab2e7e5300
Create a known local user account for Windows. Closes #312
Username: Quickemu
Password: quickemu
2022-08-01 11:04:22 +01:00
Martin Wimpress
4e836b78fe
Collapse component in unattended.xml 2022-08-01 10:16:51 +01:00
MatejSpindler
7ce97daf27
Add multiscreen mode (#473)
Enable multiscreen with max_outputs for the virtio-vga if user configures max_outputs in the .conf file
2022-08-01 09:23:19 +01:00
infokiller
e8b1b7cb3e
Add support for spice-app (#510)
* Add spice-app as display option

* Rework how we set the default OUTPUT
variable display is never set and display_param_check is already checked when parsing options

* enable overriding the gl param

3d acceleration is not stable on some setups (looking at you, nvidia)

Co-authored-by: Matej <spindler.matej@gmail.com>
2022-08-01 09:22:12 +01:00
Vladislav Nepogodin
f65b8e328b new release 2022-08-01 09:15:35 +01:00
Phil Clifford
45722ac1f8
Oracle Linux 9.0 added (#513)
* chore: docs submodule

* Oracle Linux Release 9.0 added

also removed some early obsoleted 8.x releases
2022-08-01 09:14:53 +01:00
Phil Clifford
b7e1fba117
Correct batocera for release 34 (#512)
* chore: docs submodule

* check for current batocera release at runtime
2022-08-01 09:14:21 +01:00
Phil Clifford
d0c2bb228a
New release docs with cogged README (#508) 2022-07-30 07:56:23 +01:00
Martin Wimpress
39da52a3bf
Bump the version to 3.16 2022-07-29 11:45:59 +01:00
Martin Wimpress
974c9ab5fa
White space clean up 2022-07-29 09:31:10 +01:00
Martin Wimpress
02b09416d5
Drop Alma 8.5. Close #500 2022-07-24 01:28:18 +01:00
Abe Hanoka
76bb64035d
fix window 11 config example (#497) 2022-07-24 01:23:04 +01:00
kaikikokuke
601273de40
Updates MSRs alert comment to include windows (#507)
Adds windows to MSRs alert comment in addition to macOS
2022-07-24 01:22:01 +01:00
Phil Clifford
b540471acc
Update latest Rocky to 9.0 release (#506)
also reflect changed name for dvd iso
2022-07-24 01:21:41 +01:00
Phil Clifford
cfadfde2b7
Add 11.4.0 current live release (#503)
* Add 11.4.0 current live release

* move latest debian on so last switches to archive
2022-07-24 01:20:49 +01:00
Phil Clifford
da30757832
Remove Impish at EOL 14/7/2022 (#495) 2022-07-24 01:19:19 +01:00
Philip Crockett
677b3e3874
Support Pop!_OS 22.04 (#493) 2022-07-24 01:19:04 +01:00
Phil Clifford
cb0922de20
Add OpenSuSE 15.4 release (#489) 2022-07-24 01:17:54 +01:00
Phil Clifford
0390dcf652
add LMDE (#484)
requested in #482
2022-07-24 01:17:23 +01:00
Phil Clifford
f127cca13b
add Release 20.3 (#483)
requested in #482
2022-07-24 01:16:37 +01:00
Dimitris
95c72d3eef
Update NixOS releases (#479) 2022-07-24 01:16:24 +01:00
Philipp Kiemle
fe46fffeff
Make Fedora 36 available (#477)
Closes #471
2022-07-24 01:16:05 +01:00
Heysion
f061991b67
feat: add deepin support (#475)
add deepin v20 support

Log:

Co-authored-by: Heysion Y <heysion@deepin.com>
2022-07-24 01:15:52 +01:00
Scott Travis
790c626993
Add support for CentOS Stream (#464)
* Add support for CentOS Stream

Supports CentOS Stream releases 8 and 9, editions 'dvd1' and 'boot'.

* Rename 'centos' to 'centos-stream' for clarity
2022-07-24 01:13:00 +01:00
Phil Clifford
4f3f5f2b58
updated mxlinux release to 21.1 (#462) 2022-07-24 01:12:33 +01:00
Phil Clifford
dea192b785
add warning for unsupported fedora spins (#461) 2022-07-24 01:11:46 +01:00
Phil Clifford
35b90f77e0
changed haiku mirror as cdn no longer resolves (#460)
NY set as it seemed good enough.  Other working options left in comments in case
2022-07-24 01:11:03 +01:00
Phil Clifford
a5b792de21
update openBSD releases (#459) 2022-07-24 01:10:35 +01:00
Phil Clifford
349b9df81c
removed obsolete 12.2 version (#458) 2022-07-24 01:10:21 +01:00
Phil Clifford
3f0dfaf9a0
Update Alma releases (#457)
* Update Alma for available releases

8.4 removed and current  betas added

* fixed for beta paths

* Alma 9.0 released
2022-07-24 01:09:40 +01:00
Steffen Dirkwinkel
c1c5e27538
quickget: get_windows: validate that download url leads to microsoft cdn (#455)
For windows downloads hashes aren't validated via hashes. Let's at least
validate that downloads are coming from microsoft via https.

Signed-off-by: Steffen Dirkwinkel <me@steffen.cc>
2022-07-24 01:09:19 +01:00
dabrown645
68729159cb
Update Garuda to Release: latest & get Editions from web site (#453) 2022-07-24 01:08:54 +01:00
Phil Clifford
582dd448fa
add support for EndeavourOS (#449) 2022-07-24 01:07:33 +01:00
goosepirate
ace75eee9d
Mention SPICE Windows guest tools in README (#440) 2022-07-24 01:07:08 +01:00
Eli Array Minkoff
ac0ad82752 Add shebang to conf and mark it as executable 2022-07-24 01:06:09 +01:00
Phil Clifford
ab1d9672ac
Add filter to choose iso files in daily-live (#430)
fix: #429
2022-07-24 01:03:37 +01:00
Phil Clifford
ecc37fa329
Additional OVMF paths for recently updated Solus hosts (#422)
* Extra OVMF search paths needed for Solus
who have moved things around

also spotted a possible typo to investigate in the void additions

* Revert "updated submodule position"

This reverts commit 9648f79b81b5e72465785993bc62469130ac848f.

* minor cleanup

* try realign submodule backwards
2022-07-24 00:59:39 +01:00
Phil Clifford
7d1e909088
Cleanly Add Batocera (#403)
just batocera

removed leakage from ludos
2022-07-24 00:59:15 +01:00
Radomir Ochtyra
9e368b64bc Add support for "extra_args" in commandline 2022-07-24 00:58:14 +01:00
Radomir Ochtyra
1174282660 fix code duplication 2022-07-24 00:58:14 +01:00
Radomir Ochtyra
29efdbbdc0 Improve support for keyboard, mouse and usb-controller
- add support to choose preferred usb-controller either ehci (USB2.0) or xhci (USB 3.0)
- add support to choose preferred keyboard either ps2, usb or virtio
- add support to choose preferred keyboard-layout
- add support to choose preferred mouse either ps2, usb, tablet, virtio
- fix some bugs regarding missing variables - releated to MONTITOR_TELNET_* and SERIAL_TELNET_*
- Support implemented on commandline as well as for configuration file
2022-07-24 00:58:14 +01:00
Radomir Ochtyra
a13e6735e7 Add support to connect guest-console via serial
- support commandline parameter --serial, --serial-telnet-host and
  --serial-telnet-port
- support serial options: 'socket', 'telnet' and 'none'
- add support to find free ports for monitor-telnet and serial-telnet
- replace nc with socat
- change default port for monitor-telnet to 4440
- some bugfix
2022-07-24 00:58:14 +01:00
Radomir Ochtyra
bd00b34067 Add support to send command to QEMU-Monitor
- Add commandline parameter --monitor-cmd
- Support implemented on commandline as well as for configuration file
2022-07-24 00:58:14 +01:00
Radomir Ochtyra
21788f525d Add support for qemu-monitor and custom public-directory
- Add commandline parameter --public-dir for custom directory
- Add commandline parameter --monitor for qemu-monitor support
- Add commandline parameter --monitor-telnet-host and --monitor-telnet-port to configure qemu-monitor via telnet
- <VMNAME>.ports enhanced to provide data for monitor-telnet
- Support implemented on commandline as well as for configuration file
- Fixed bug regarding extra_args
2022-07-24 00:58:14 +01:00
Radomir Ochtyra
8a2057715c Add support to reuse remote-client when call command again and support for other clients
- add suport for custom ssh-port and spice-port
- add suport for alternate viewer: 'remote-viewer' and 'none'
- support implemented on commandline as well as for configuration file
2022-07-24 00:58:14 +01:00
Martin Wimpress
187da46c3b
Bump version to 3.15 2022-04-22 09:53:12 +01:00
Heysion
71a1efaceb
fix: update debian upstream version 11.3.0 (#436)
update debian upstream version 11.3.0

Log:

Co-authored-by: Heysion <heysion@deepin.com>
2022-04-22 09:45:14 +01:00
franksmcb
4e196d57b0
Add 22.04 support for Ubuntu and flavours (#441) 2022-04-22 09:44:23 +01:00
Martin Wimpress
6cea15885b
Bump version to 3.14 2022-03-11 16:17:22 +00:00
Martin Wimpress
6c77698c92
Make Ubuntu daily-live VM_PATH consistent with the config filename 2022-03-11 16:15:44 +00:00
Phil Clifford
09a707846c
Fixed boot problems and logic correction in FreeDOS support. Fixes #382 (#421)
* minor correction in freedos

* freedos fix - boot problems needed smm on
2022-03-11 15:25:36 +00:00
Ranjan Purbey
5bc27ee469
Respect edition param when quickgetting freebsd (#418) 2022-03-11 15:23:45 +00:00
Martin Wimpress
3940f7b452
Drop Manjaro Deeping. CLoses #405 2022-03-01 11:14:01 +00:00
takov751
0c487682d9
fix get_opensuse and get_rockylinux hash (#404)
* fix get_opensuse hash

* fix rockylinux hash

there was a iso.manifast in the hash file as well which caused issue with hash output

Co-authored-by: takov751 <takov751@protonmail.com>
2022-03-01 11:11:36 +00:00
Phil Clifford
a6073dfd5b
Tidy flavour lts (#401)/ Closes #402
Filter ubuntu flavour LTS availability
2022-03-01 11:10:53 +00:00
Phil Clifford
9725cb186f
Fix Garuda targets (#400) Fixes #399
Corrected Garuda sources
2022-03-01 11:07:50 +00:00
Phil Clifford
bdfbf9b66f
Latest re-generated docs (#397) 2022-03-01 11:06:05 +00:00
Dale Visser
ef4ca6b676
A little help for SSH access into a headless VM (#388)
As I learned today on the Discord server.
2022-02-25 23:04:29 +00:00
Phil Clifford
31783f3b95
add build-doc submodule (#371)
* add build-doc submodule

* updated generated README.md via submodule

* trying to keep up... re-generating

* updated submodule position

* regenerated with fixed braille parameter

* keeping up

* revert README.md to upstream for noise-suppression

* merged prettyname fixes

* update ubuntu releases from name to number
2022-02-25 23:04:10 +00:00
Phil Clifford
47b2479d92
Add docs folder (#366)
* generated man pages added

* updated dates and tidy footers

* reflect removal of localiso feature

* trying to keep up... re-generating

* merged up to 4ec224c and regenerated

* minor removal ommission fixed

* Regenerated README.md added

only significant difference is Slackware display name is
 as per quickget

* change variant to edition per refactoring

* updated manuals with new braille parameter

* updated generated Readme with new braille parameter

* keepeing up

* revert README.md to upstream for noise-suppression

* fixed pretty name issue in manuals

* fixed pretty name issues in Readme

* fixed conflict

* update ubuntu releases from name to number
2022-02-25 23:03:58 +00:00
Phil Clifford
03c5b9fc52
Workaround zsync http-only failures (#396)
* trying to keep up... re-generating

* revert README.md to upstream for noise-suppression

* regenerated Readme for 3.13

* Fix for zsync https failure
2022-02-25 23:01:51 +00:00
Martin Wimpress
fb771265f1
Minor clean up of FreeDOS support 2022-02-24 23:04:35 +00:00
nqvrg
ebc83ebacf
Add FreeDOS support (#374)
* Add support for FreeDOS 1.2 to quickget

* Add support for freedos guests to quickemu

* Add support for FreeDOS 1.3 to quickget

* Force qemu to keep booting from cd after formatting disk

* Adjust VM settings

* Refactor FreeDOS to use create_vm

* Add FreeDOS to README

* Add unzip to README as a dependency
2022-02-24 22:31:23 +00:00
Dani Llewellyn
38b086244d
Add old/obsolete/eol Ubuntu releases (hidden by default) (#393)
* Ensure Ubuntu releases are all downloaded via HTTPS URLs
* Add eol-4.10 thru to eol-21.10 releases for Ubuntu
* Add special handling of MD5SUMS-only Ubuntu releases on old-releases.ubuntu.com
* Add detection of Ubuntu `*-install.iso` files for very early Ubuntu releases

Signed-off-by: Dani Llewellyn <diddledani@ubuntu.com>
2022-02-24 22:28:29 +00:00
Yannick Mauray
85cb70745d
Send progress to stderr (#394)
By default, progress is sent to stdout, which is buffered and cannot be proerly processed by `quickgui`
2022-02-24 22:23:41 +00:00
Phil Clifford
22e95b4e74
Debian netinst nonsed (#385)
* trying to keep up... re-generating

* revert README.md to upstream for noise-suppression

* replace the debian netinst seds per stream
2022-02-23 22:21:44 +00:00
Phil Clifford
8b86ee83da
Pretty name corrections (#387)
* trying to keep up... re-generating

* revert README.md to upstream for noise-suppression

* Changed os names also changed for PRETTY_NAMEs

Fixes #386
2022-02-23 22:21:32 +00:00
Martin Wimpress
f4701ed154
Update .editorconfig with correct spacing for quickget (4) and quickemu (2)
Sorry, I managed to create these with different spacing. Something to address in the future perhaps.
2022-02-23 11:50:31 +00:00
nqvrg
480b916398
Add some whitespace-formatting rules (#379)
* Embed whitespace rules for vim at the end of quickemu and quickget files

* Add .editorconfig file with some basic whitepace rules
2022-02-23 11:45:39 +00:00
Martin Wimpress
5ac9a848eb
Refactor get_dragonflybsd() to support create_vm() 2022-02-23 11:42:08 +00:00
nqvrg
4f201949cd
Add support for DragonFlyBSD (#378)
* Add support for DragonFlyBSD

* Add DragonFlyBSD to README
2022-02-23 11:39:11 +00:00
Martin Wimpress
86f3d46802
Use correct Slackware naming. Closes #380 2022-02-23 11:36:41 +00:00
Martin Wimpress
a2db7348a0
Add Debian netinst to the editions. Closes #381 2022-02-23 11:32:55 +00:00
Martin Wimpress
19d62c45f2
Add editions to FreeBSD to support disc1 and dvd1. Closes #383 2022-02-23 11:18:41 +00:00
Martin Wimpress
ddae16280f
Refactor get_zorin() to add create_vm() compatibility 2022-02-23 11:06:51 +00:00
Martin Wimpress
23b8e42374
Refactor get_void() to add create_vm() compatibility 2022-02-23 11:06:33 +00:00
Martin Wimpress
ffac1da503
Refactor get_tails() to add create_vm() compatibility 2022-02-23 11:05:55 +00:00
Martin Wimpress
fa49bf2e0d
Refactor get_solus() to add create_vm() compatibility 2022-02-23 11:03:45 +00:00
Martin Wimpress
7ec0751591
Refactor get_slackware() to add create_vm() compatibility 2022-02-23 11:01:39 +00:00
Martin Wimpress
455b9e723c
Refactor get_rockylinux() to add create_vm() compatibility 2022-02-23 11:00:29 +00:00
Martin Wimpress
687da83b00
Refactor get_regolith() to add create_vm() compatibility 2022-02-23 10:59:49 +00:00
Martin Wimpress
1310daeeaa
Refactor get_popos() to add create_vm() compatibility 2022-02-23 10:56:59 +00:00
Martin Wimpress
c553e404c9
Refactor get_oraclelinux() to add create_vm() compatibility 2022-02-23 10:55:29 +00:00
Martin Wimpress
3e5af6378a
Refactor get_opensuse() to add create_vm() compatibility 2022-02-23 10:54:49 +00:00
Martin Wimpress
294a0c0893
Refactor get_openbsd() to add create_vm() compatibility 2022-02-23 10:53:17 +00:00
Martin Wimpress
5483823651
Refactor get_nixos() to add create_vm() compatibility 2022-02-23 10:52:45 +00:00
Martin Wimpress
68609f11e8
Refactor get_netbsd() to add create_vm() compatibility 2022-02-23 10:51:01 +00:00
Martin Wimpress
c928d6caee
Refactor get_netboot() to add create_vm() compatibility 2022-02-23 10:49:11 +00:00
Martin Wimpress
512aa14fe2
Refactor get_mxlinux() to add create_vm() compatibility 2022-02-23 10:48:25 +00:00
Martin Wimpress
e57307e54a
Refactor get_manjaro() to add create_vm() compatibility 2022-02-23 10:42:57 +00:00
Martin Wimpress
9073c5f280
Refactor get_linuxmint() to add create_vm() compatibility 2022-02-23 10:41:59 +00:00
Martin Wimpress
6ab206783b
Refactor get_kolibrios() to add create_vm() compatibility 2022-02-23 10:41:03 +00:00
Martin Wimpress
facb15b0d2
Refactor get_kdeneon() to add create_vm() compatibility 2022-02-23 10:40:31 +00:00
Martin Wimpress
11aa53d64d
Refactor get_kali() to add create_vm() compatibility 2022-02-23 10:39:45 +00:00
Martin Wimpress
723a185346
Refactor get_haiku() to add create_vm() compatibility 2022-02-23 10:37:17 +00:00
Martin Wimpress
c36463d85d
Refactor get_ghostbsd() to add create_vm() compatibility 2022-02-23 10:36:07 +00:00
Martin Wimpress
0ea2d1b3aa
Refactor get_gentoo() to add create_vm() compatibility 2022-02-23 10:34:59 +00:00
Martin Wimpress
039d1773e4
Refactor get_garuda() to add create_vm() compatibility 2022-02-23 10:33:49 +00:00
Martin Wimpress
6941a797d4
Refactor get_freebsd() to add create_vm() compatibility 2022-02-23 10:32:53 +00:00
Martin Wimpress
8af32ca26c
Refactor get_fedora() to add create_vm() compatibility 2022-02-23 10:31:53 +00:00
Martin Wimpress
0a1877d4c3
Refactor get_elementary() to add create_vm() compatibility 2022-02-23 10:30:45 +00:00
Martin Wimpress
cf231a8e2c
Refactor get_devuan() to add create_vm() compatibility 2022-02-23 10:30:15 +00:00
Martin Wimpress
e96fc18f1f
Refactor get_debian() to add create_vm() compatibility 2022-02-23 10:29:25 +00:00
Martin Wimpress
3b3f005ae9
Refactor get_cachyos() to add create_vm() compatibility 2022-02-23 10:20:55 +00:00
Martin Wimpress
c31fa21cb9
Refactor get_arcolinux() to add create_vm() compatibility 2022-02-23 10:20:09 +00:00
Martin Wimpress
b67c272d19
Refactor get_archlinux() to add create_vm() compatibility 2022-02-23 10:11:01 +00:00
Martin Wimpress
5ba5847d21
Refactor get_android() to add create_vm() compatibility 2022-02-23 10:09:07 +00:00
Martin Wimpress
4f5752bb0d
Refactor get_alpine() to add create_vm() compatibility 2022-02-23 10:04:05 +00:00
Martin Wimpress
7dc6572bdf
Refactor get_alma() to add create_vm() compatibility 2022-02-23 10:02:25 +00:00
Martin Wimpress
30ebabab04
Enable create_vm() for most OSs 2022-02-23 09:59:27 +00:00
Martin Wimpress
7fe2980b13
Bump version to 3.13 2022-02-23 09:53:41 +00:00
Martin Wimpress
d1a984ff12
Minor code cleanup 2022-02-23 09:53:27 +00:00
Martin Wimpress
958ef84931
White space cleanup 2022-02-23 03:37:28 +00:00
Martin Wimpress
921d06e025
Minor code clean up 2022-02-23 03:33:32 +00:00
Martin Wimpress
85cb9251a0
Collapse releases_() and editions_() where reasonable to do so 2022-02-23 03:33:00 +00:00
Martin Wimpress
368b24936e
Refactor Ubuntu support
Use release and project labels found on cdimage.
2022-02-23 03:31:04 +00:00
Martin Wimpress
eaae0f72e8
Fiz get_zsync() so it correctly falls back to web_get() 2022-02-23 03:24:56 +00:00
Martin Wimpress
6b86e81e72
macOS, Windows & Ubuntu do not use create_vm()
The get_() function for macOS, Windows and Ubuntu are more complete because they do not solely use wget/aria2.

Their get_() functions include the code to create VMs and therefore do not use the generic create_vm() helper.
2022-02-22 18:48:42 +00:00
Martin Wimpress
d20ad7aa1c
Add create_vm()
create_vm() is a helper function that will make it possible to remove boiler plate from (most) get_() functions.
2022-02-22 18:44:02 +00:00
Martin Wimpress
29c2829534
Clean up variable assignment in get_windows() 2022-02-22 18:42:12 +00:00
Martin Wimpress
15ff54d208
releases_() generators are always ascending order 2022-02-22 18:40:42 +00:00
Martin Wimpress
45cdc5e217
Refactor get_popos() 2022-02-22 15:29:46 +00:00
Martin Wimpress
ee0a25472f
Drop 21.04 (Hirsute) based releases. They are EOL. 2022-02-22 15:19:34 +00:00
Martin Wimpress
1dc780b9e2
Remove EDITION boiler plate from all get_() functions 2022-02-22 15:16:30 +00:00
Martin Wimpress
8050abc6f0
Refactor get_elementary() 2022-02-22 15:16:30 +00:00
Martin Wimpress
0fe5232a01
Refactor Android support and add editions 2022-02-22 15:16:30 +00:00
Alan Pope
3ef1bfa003
switch to version numbers fixes #376 (#377) 2022-02-22 12:53:05 +00:00
Martin Wimpress
5cf883a73a
Use consistent ISO derivation in get_tails() 2022-02-22 09:44:56 +00:00
Martin Wimpress
df4442a638
White space clean up 2022-02-22 09:43:54 +00:00
Martin Wimpress
6694a3af5f
Test for Windows and macOS before calculating available RAM
Prevents throwing a syntax error when launching KolibriOS.
2022-02-22 02:37:44 +00:00
Martin Wimpress
2d271e3176
Tidy up the KolibriOS support 2022-02-22 02:28:04 +00:00
Martin Wimpress
9443931dbb
Fix get_windows()
Use the passed LANG as LANG_EDITION. Simpler INDEX tweaking, make shellcheck happy.
2022-02-22 02:03:42 +00:00
Martin Wimpress
4ec224cde8
Tune KolibriOS 2022-02-22 00:53:36 +00:00
Martin Wimpress
310027f17d
Remove excessive disk_size requirement from various distros 2022-02-22 00:52:48 +00:00
Martin Wimpress
7ef1f5bc49
Fix get_garuda() 2022-02-22 00:51:54 +00:00
Martin Wimpress
bd87f98224
Add NetBSD 2022-02-22 00:51:34 +00:00
Martin Wimpress
45eaaa08c2
Add GhostBSD
Includes MATE and XFCE editions.
2022-02-21 23:32:50 +00:00
Martin Wimpress
283927577e
Add more OpenBSD releases 2022-02-21 22:57:40 +00:00
Martin Wimpress
545b44763a
Refactor get_freebsd() 2022-02-21 22:56:58 +00:00
Martin Wimpress
36ea016fb3
Refactor Fedora support to add editions, including Fedora Spins
This also removes all hardcoding in ISO filenames.
2022-02-21 22:18:50 +00:00
Martin Wimpress
dabdfa49cc
Refactor Arco Linux support releases and editions 2022-02-21 21:12:20 +00:00
Martin Wimpress
96287f369e
Refactor get_alpine() 2022-02-21 20:37:40 +00:00
Martin Wimpress
12d33eabcf
Refactor make_vm_config() to create distinctive VM config filenames 2022-02-21 20:29:22 +00:00
Martin Wimpress
a939206288
Refactor Garuda support to properly implement releases and editions 2022-02-21 20:08:50 +00:00
Martin Wimpress
6b54c58173
Refactor Debian support to enable past releases 2022-02-21 20:07:58 +00:00
Martin Wimpress
614ea2f4c3
Improve the quickget quick 'n dirty dev guide 2022-02-21 18:02:24 +00:00
Martin Wimpress
9bf14c5bc0
Refactor Zorin support to add editions 2022-02-21 17:48:32 +00:00
Martin Wimpress
338a03c571
Refactor Haiku support to add editions 2022-02-21 17:40:50 +00:00
Martin Wimpress
4cee4d3d63
Make listing supported OSs consistent with releases and editions 2022-02-21 17:34:30 +00:00
Martin Wimpress
e13b931538
Refactor Regolith support to add editions 2022-02-21 17:33:36 +00:00
Martin Wimpress
596ffa86a6
Add netboot.xyz. Closes #351 2022-02-21 16:41:26 +00:00
Martin Wimpress
b9ca7a39f8
Remove duplication of other guests from README.md 2022-02-21 16:40:32 +00:00
Martin Wimpress
21344246b8
Update README.md 2022-02-21 16:35:54 +00:00
Martin Wimpress
35216cef15
Reorder get_() and releases_() functions 2022-02-21 16:29:42 +00:00
Martin Wimpress
3f72f79e59
Update adding a new OS to quickget guide 2022-02-21 15:58:12 +00:00
Martin Wimpress
46c7805ad1
Refactor OS tweaks in make_vm_config() 2022-02-21 15:57:32 +00:00
Martin Wimpress
5d7d9ec350
Display available editions alongside releases 2022-02-21 15:40:08 +00:00
Martin Wimpress
5ef7a85687
Fix validate_release() for Ubuntu flavours 2022-02-21 15:35:10 +00:00
Martin Wimpress
8924d5cac4
Refactor Void Linux support to add editions 2022-02-21 15:24:25 +00:00
Martin Wimpress
6e92a8e0d9
Minor clean up of various get_() functions 2022-02-21 15:08:09 +00:00
Martin Wimpress
bbcc470751
Refactor Pop!_OS support to be consistent with other OSs with editions 2022-02-21 15:07:15 +00:00
Martin Wimpress
830c38818a
Refactor Rocky Linux support to add editions 2022-02-21 15:05:55 +00:00
Martin Wimpress
a78ab882d3
Refactor Alma Linux support to add editions 2022-02-21 15:05:15 +00:00
Martin Wimpress
04e65d953a
Call validate_release() automatically
validate_release() is called automatically before get_(), this removes some bioler plate that every get_() function requires and makes quickget easier to maintain.
2022-02-21 15:04:03 +00:00
Martin Wimpress
ba91b7965d
Refactor Solus support to add editions 2022-02-21 14:57:11 +00:00
Martin Wimpress
a4080559d6
Cleanup get_zorin() 2022-02-21 10:13:11 +00:00
Martin Wimpress
344c7f93a5
Make Windows LANGS consistent with other OS EDITIONS 2022-02-21 10:11:25 +00:00
Martin Wimpress
6ddf92c772
Refactor get_zorin() 2022-02-21 09:47:47 +00:00
Martin Wimpress
93a5a49d52
Refactor OS and releases parser
Makes quickget much easier to maintain.

Add "editions" generators for those OSs that have editions, such as Linux Mint and MX Linux.

Use introspection to automatically parse editions and call the appropriate get_() and  releases_() functions.
2022-02-21 09:19:07 +00:00
Martin Wimpress
2490060192
Refactor Braille support 2022-02-21 07:10:13 +00:00
Martin Wimpress
559e2ae886
Refactor aria2c and zsync support
If aria2 is installed, it will now be listed in the csv/json
2022-02-21 07:06:06 +00:00
Martin Wimpress
5f26733687
Update adding an OS to quickget guide 2022-02-21 07:03:53 +00:00
Martin Wimpress
5bfec8a9d3
Consolidate BSD, Haiku and Linux guests 2022-02-21 05:57:59 +00:00
Martin Wimpress
8f41c4c90f
Drop shorthand options 2022-02-21 05:33:23 +00:00
Martin Wimpress
22c664ad93
Bump the version to 3.12 2022-02-21 05:30:27 +00:00
Martin Wimpress
056afa9575
Fix SPICE audio. Close #272 2022-02-21 05:23:43 +00:00
Martin Wimpress
105aea46ef
Correct conditionals for Tails 2022-02-21 05:12:11 +00:00
Martin Wimpress
f93a7249a8
Refactor Linux Mint support
Cinnamon is the default download. MATE and XFCE can be selected as editions.
2022-02-21 05:08:33 +00:00
Martin Wimpress
7e397ced4e
Clean up list_csv() 2022-02-21 05:02:21 +00:00
Martin Wimpress
28b48c7b8e
Refactor KDE Neon support
No longer uses zsync
2022-02-21 05:01:35 +00:00
Martin Wimpress
7d71a28547
Refactor NixOS support
GNOME is the default download, but Plasma5 and Minimal can be selected as editions.
2022-02-21 04:49:19 +00:00
Martin Wimpress
d6c9d5d359
Fix Devuan csv/json 2022-02-21 04:37:37 +00:00
Martin Wimpress
b5dc52265f
Refactor MX Linux support
MX Linux is listed once. XFCE is the default desktop, but KDE and FLuxbox can be selected as editions.
2022-02-21 04:35:33 +00:00
Martin Wimpress
21f7c0fa51
Refactor Manjaro support
Treat the desktop editions as release since Manjaro is rolling. Drop support for Minimal and Minimal LTS selection.
2022-02-21 04:23:29 +00:00
Martin Wimpress
2dbbe869d0
Refactor Rocky Linux support
Uses the minimal image only.
2022-02-21 04:01:47 +00:00
Martin Wimpress
e0308b4957
Refactor Alma Linux support
Uses the minimal image only.
2022-02-21 04:01:03 +00:00
Martin Wimpress
67d07dfb89
White space clean up 2022-02-21 03:53:19 +00:00
Martin Wimpress
2d72601fbf
Refactor Debian support
Drop non-free support, that is irrelevant in a VM. releases_debian() lists actual releases and get_debian() support the different desktop edition, which are exposed in the csv/json lists.
2022-02-21 03:52:39 +00:00
Martin Wimpress
da3fe3b8f3
Refactor gentoo and haiku in pretty_name()
The catch all works for Gentoo and Haiku.
2022-02-21 03:21:57 +00:00
Martin Wimpress
af7ed8c2d6
Add Devuan. Closes #345 2022-02-21 03:20:13 +00:00
Martin Wimpress
a4b7b33aaf
Refactor get_slackware() 2022-02-21 02:44:01 +00:00
Lanius
be48d663bd
Add Slackware (#369)
* add Slackware as supported OS

* fix checksum check for Slackware

* add Slackware as supported OS

* fix checksum check for Slackware

* fix case with new format
2022-02-21 02:36:19 +00:00
Blaz
167be4da1d
Add extra_args option in vm conf file (#280)
* Add extra_args option in vm conf file

I added this simple piece of code for any extra arguments one wants to use.
You just add extra_args variable to your vm conf file.

ex. add host disk partition
extra_args="-drive file=/dev/sdb2,cache=none,if=virtio"

This is the easiest way to "extend" quickemu functionality.

* add missing variable
2022-02-21 02:33:25 +00:00
Blaz
99af8f9923
Update quickemu (#279) 2022-02-21 02:32:45 +00:00
Martin Wimpress
0073ba2880
Refactor get_cachyos() 2022-02-21 02:18:27 +00:00
Martin Wimpress
174600a615
Refactor get_haiku() 2022-02-21 02:12:35 +00:00
Martin Wimpress
8ad252295b
Refactor get_garuda() 2022-02-21 02:05:09 +00:00
Martin Wimpress
4bafb49e0a
Refactor get_tails() 2022-02-21 02:04:23 +00:00
Martin Wimpress
ea509ac5e0
Refactor get_regolith() 2022-02-21 02:04:05 +00:00
Martin Wimpress
652eaba6b0
Refactor get_oraclelinux() 2022-02-21 02:03:21 +00:00
Martin Wimpress
bed546556a
Refactor get_solus() 2022-02-21 02:02:51 +00:00
Martin Wimpress
ddb1f30d4f
Refactor get_rocky() 2022-02-21 02:02:23 +00:00
Martin Wimpress
ecb0afbcce
Refactor get_zorin() 2022-02-21 02:01:55 +00:00
Martin Wimpress
71c7542dcb
Refactor get_void() 2022-02-21 02:01:13 +00:00
Martin Wimpress
bee4d52457
Refactor get_openbsd() 2022-02-21 02:00:45 +00:00
Martin Wimpress
fb39f67a5b
Refactor get_nixos() 2022-02-21 02:00:17 +00:00
Martin Wimpress
eb23f010aa
Refactor get_mxlinux() 2022-02-21 01:59:35 +00:00
Martin Wimpress
0e6ad3d1f7
Refactor get_manjaro() 2022-02-21 01:58:35 +00:00
Martin Wimpress
b9eb58e95c
Refactor get_linuxmint() 2022-02-21 01:57:11 +00:00
Martin Wimpress
68fe9348ba
Refactor get_kolibrios() 2022-02-21 01:56:23 +00:00
Martin Wimpress
05d40e1170
Refactor get_kali() 2022-02-21 01:55:51 +00:00
Martin Wimpress
71d63d2ea2
Refactor get_gentoo() 2022-02-21 01:55:29 +00:00
Martin Wimpress
98fe5899d0
Refactor get_elementary() 2022-02-21 01:55:01 +00:00
Martin Wimpress
dc5cc54af5
Refactor get_debian() 2022-02-21 01:54:39 +00:00
Martin Wimpress
a1f02e6b3a
Refactor get_arcolinux() 2022-02-21 01:53:09 +00:00
Martin Wimpress
41afadd809
Refactor get_alpine() 2022-02-21 01:52:37 +00:00
Martin Wimpress
bbdd66d7d1
Refactor get_alma() 2022-02-21 01:51:49 +00:00
Martin Wimpress
15bb82501c
Update web_get() errors with the downloader used 2022-02-21 01:51:15 +00:00
Martin Wimpress
3d0a1b5453
Revert localiso feature
Mixing an option parser with the existing argv/arvc style parser creates a confusing set of conditionals with large if/then inside a case statement.

On reflection, I don't think this feature has a place in quickget. For anyone with existing iso image, quickemu configurations can be hand crafted. Perhaps the additional of a "quickconf" would be a better way to quickly create VM configs from existing ISO images.
2022-02-21 01:50:37 +00:00
Martin Wimpress
c74a8fd4d1
Update Zorin releases 2022-02-21 01:42:10 +00:00
Martin Wimpress
fe5dfce322
White space clean up 2022-02-21 01:40:23 +00:00
Martin Wimpress
d67f864957
Tidy unattended.xml 2022-02-20 09:38:03 +00:00
Martin Wimpress
0d6cd87494
Fix SkipAutoActivation for Windows 10/11 2022-02-20 09:37:09 +00:00
Martin Wimpress
2dc2fe271a
Add SkipAutoActivation true to unattened.xml for Windows 2022-02-19 15:24:21 +00:00
Phil Clifford
737bc7ff19
Generated readme (#357)
* Readme regenerated

Generated version includes missing parts of  the
now extensive supported guest catalogue.

* A little markdown linting

* some of the lint was better

* missing BSD bit replaced

* Accessibility enhancement noted

* # This is a combination of 3 commits.
# This is the 1st commit message:

Readme regenerated

Generated version includes missing parts of  the
now extensive supported guest catalogue.

# This is the commit message #2:

A little markdown linting

# This is the commit message #3:

some of the lint was better
2022-02-19 15:17:08 +00:00
zenobit
ee2cb19bbf
revert to default mirror (#350) 2022-02-19 12:03:47 +00:00
Phil Clifford
86068f039a
Fixes #250 (#362)
Quotes needed to  allow bracketed langs to match.
User still needs to wrap the LANG parameter in quotes.
2022-02-19 11:50:34 +00:00
Phil Clifford
da8d0c7899
Use local isos fixed (#361)
* Start adding params for existing isos

* Merge parameter handling code

* initial testing seems reasonable

Note that if copying files in, "wget -c " will assume

smaller-than-remote files are parts and continue
so likely will cause hashing failures
or if no hash check then corrupt isos.

* Added usage for --help

* Usage enhanced and added to Readme

* spurios unused cruft removed

* Fixed race

adding belts and braces

* Removed debugging and cruft

* Not yet able to cache windows because windows

* Working for cached macos

with limitations
2022-02-19 11:49:09 +00:00
Phil Clifford
65b78eb8a4
Reduce future pain (#358)
* Removed big list of itemised defaults

There are list() functions and docs  - spelling out the list of
OS options here just adds work and maintenance overhead.

* Removed misleading chatter

Already took out the incorrect phrasing.  With most now
being default the output is over-noisy and probably unhelpful.
2022-02-19 11:47:10 +00:00
Phil Clifford
87c9cdb690
Ovmf secure firmware dedupe (#356)
* Remove duplicate elif option

This option ended up in twice

* white space
2022-02-19 11:45:02 +00:00
Phil Clifford
e7d034fbf4
Replace BSD note. (#349) 2022-02-19 11:44:12 +00:00
Phil Clifford
ace017236c
Add support for braille terminal (#310)
* Add support for braille terminal

fixes #307

* Add braille to Readme

* quote tidying

* currently requires sdl display

noted in the docs rather than forcing so if Qemu and/or brtty provide
a solution we will get immediate or easy benefit.

* add needed sdl to braille examples
2022-02-17 10:35:40 +00:00
Phil Clifford
949dff275f
Add convenient external repository packaging info (#318) 2022-02-17 10:20:16 +00:00
Phil Clifford
8caded9e5c
Project links updated to new common home (#300) 2022-02-17 10:19:05 +00:00
Phil Clifford
328b109cff
Use local isos (#314)
* Start adding params for existing isos

* Merge parameter handling code

* initial testing seems reasonable

Note that if copying files in, "wget -c " will assume

smaller-than-remote files are parts and continue
so likely will cause hashing failures
or if no hash check then corrupt isos.

* Added usage for --help

* Usage enhanced and added to Readme

* spurios unused cruft removed
2022-02-17 10:18:00 +00:00
Martin Wimpress
14ae0d53a2
White space cleanup 2022-02-17 10:14:17 +00:00
Martin Wimpress
83da5351d9
Fix guest config for Haiku Kolibrios 2022-02-17 10:14:03 +00:00
Jai A P
4c85cf5596
Add suport for aria2c for faster downloading if installed (#299)
* Add suport for aria2c for faster downloading if installed

* Fix newlines in aria2c output
2022-02-17 10:06:47 +00:00
Avri Chen-Roth
bb6b4fe597
Replace multiple if statements with case and OR (#295)
* Replace multiple if statements with case and OR

* Fix case statement per review suggestion

* Added default fallback for undefined OSs

Co-authored-by: Martin Wimpress <304639+flexiondotorg@users.noreply.github.com>
2022-02-17 10:03:31 +00:00
Martin Wimpress
a624bf69a7
Merge pull request #323 from philclifford/merging-fixes
Merging fixes - Consolidated PR of some pending bug fixes
2022-02-17 09:50:34 +00:00
Martin Wimpress
b933bf77d5
Merge branch 'master' into merging-fixes 2022-02-17 09:49:19 +00:00
Martin Wimpress
f2f0c11ed6
Merge pull request #322 from philclifford/merging-updated-distros
Merging updated distros - Consolidated 15 PRs
2022-02-17 09:44:10 +00:00
Phil
506ddff59b Moved MX-Linux source to official sourceforge
As requested by @SwampRabbit
2022-01-31 11:00:02 +00:00
Phil
1560060d62 correction to secureboot firmware 2022-01-31 03:19:45 +00:00
Phil
daa730a2d9 Merge branch 'void' into mud-plus-void 2022-01-31 02:19:19 +00:00
zenobit
6de821561c
Update quickget 2022-01-31 01:25:02 +01:00
zenobit
3d30f8b1d7
Update quickget 2022-01-31 01:15:53 +01:00
zenobit
18f92bc785
fix 2022-01-30 18:46:55 +01:00
Phil Clifford
5e8d6d97d3 fixed mxlinux list bug 2022-01-30 03:56:24 +00:00
Phil Clifford
ee6daedb4e
Fixes #330 (#13)
erroneous and confusing release outputs fixed
2022-01-29 15:24:12 +00:00
Phil Clifford
1e98fa7a92
Fixes #330 (#12)
erroneous and confusing release outputs fixed
2022-01-29 15:10:57 +00:00
Phil
dbd0a7dc33 Fewer future collissions 2022-01-17 06:26:36 +00:00
Phil
5e7dce6d82 Fixes to kolibrios
removed 7z dependency and corrected errors.
2022-01-17 05:38:57 +00:00
Phil
2dcc05abac Merge remote-tracking branch 'nqvrg/add-haiku'
into merging-updated-distros
2022-01-17 04:50:03 +00:00
Phil
641f6f8a7f Merge remote-tracking branch 'guyosi/master' into merging-updated-distros 2022-01-17 03:51:59 +00:00
Phil
a8f9a8d703 Merge remote-tracking branch 'nvepogodin/master'
into merging-updated-distros

Also updated release and ISO name
as that had changed with an updated release
2022-01-17 03:43:53 +00:00
Phil
5decab7009 Merge remote-tracking branch 'giorgiga/patch-1' into pending-fixes 2022-01-17 02:45:31 +00:00
Phil
86a614cdea Merge remote-tracking branch 'FriDay/leap-fix' into merging-updated-distros 2022-01-17 02:18:50 +00:00
Phil
a7de776741 Merge remote-tracking branch 'sebcode/task/add-tails-linux-support' into merging-updated-distros 2022-01-17 02:15:21 +00:00
Phil
fbec9cf21c Merge remote-tracking branch 'vpnmahawar/mxlinux-support' into merging-updated-distros 2022-01-17 02:13:53 +00:00
Phil
f232fdfb4e Merge remote-tracking branch 'jai-JAP/patch-1' into merging-updated-distros 2022-01-17 02:03:22 +00:00
Phil
5e58fd4e56 Merge remote-tracking branch 'jai-JAP/alpine' into merging-updated-distros 2022-01-17 01:58:29 +00:00
Phil
f1604ee722 Merge remote-tracking branch 'guinuxbr/master' into merging-updated-distros 2022-01-17 01:52:23 +00:00
Phil
f15f011ad1 Merge remote-tracking branch 'abe101/master' into merging-updated-distros 2022-01-17 01:47:40 +00:00
Phil
1d0312f430 Merge remote-tracking branch 'kolibri/master' into merging-updated-distros 2022-01-17 01:16:25 +00:00
Phil
dc901fa932 Merge remote-tracking branch 'erikdubois/master' into merging-updated-distros 2022-01-17 01:13:10 +00:00
Phil
48fbbb584f Merge branch 'new-elementary-release' into merging-updated-distros 2022-01-17 01:12:34 +00:00
Phil
8adbae8e23 slight tweak after confirming only latest release is available 2022-01-17 01:03:43 +00:00
Phil
d06681506f updated elementary to 6.1 2022-01-17 00:48:40 +00:00
Phil
7ecd33bf6d Merge new-elementary-release' into merging-updated-distros
attempting to pull all the new and updated distros into a single branch
with any conflicts resolved.
2022-01-17 00:29:38 +00:00
zenobit
32bad0ebc7
Merge pull request #1 from oSoWoSo/master 2022-01-16 04:40:58 +01:00
zenobit
3ef5ff47bc added initial support for void linux 2022-01-16 04:38:45 +01:00
Sebastian Volland
ad3332ab37 Add support for Tails Linux 2022-01-07 10:25:45 +01:00
Ian2020
18278288d7 Fix #306 - supply dir to web_get when using wget 2022-01-06 11:09:25 +00:00
Giorgio Gallo
3bcf36f625
Check for both qemu-system-x86_64 and qemu-img 2022-01-03 22:34:39 +01:00
Jai A P
7c21235ce8
fix Manjaro unable to download iso 2022-01-01 11:58:38 +05:30
Jai A P
e33900a81e
Auto Update Manjaro 2022-01-01 11:50:17 +05:30
Jai A P
35d174d241
Update README.md 2022-01-01 11:05:25 +05:30
Vipin Mahawar
cff1c450b7 fix typo 2021-12-31 22:54:57 +05:30
Jai A P
3454f4fae0
Update quickget 2021-12-31 17:05:00 +05:30
Jai A P
82885ef8c4
Update quickget 2021-12-30 16:06:22 +05:30
Jai A P
b4c940e789
Update quickget 2021-12-30 15:53:40 +05:30
Jai A P
435e427c9c
Add Alpine Linux support 2021-12-30 15:53:04 +05:30
Jai A P
545fd39392
Update README.md 2021-12-29 23:48:06 +05:30
Jai A P
599aa07696
Add manjaro support 2021-12-29 18:06:58 +05:30
Vipin Mahawar
4fc02da75e Added MX-Linux support 2021-12-27 12:36:28 +05:30
abe-101
c3b08411a9
Update Debian version to 11.2.0 2021-12-26 22:38:11 -05:00
nqvrg
aee9ea296c Add more info about Haiku to README.md
Replacing second "BSD Guests" section, because it was duplicated above.
2021-12-26 19:22:14 +01:00
nqvrg
935b83a490 Set an explicit disk size of 32G for Haiku 2021-12-26 19:22:14 +01:00
nqvrg
1f917c85c1 Add Haiku to README 2021-12-26 19:22:14 +01:00
nqvrg
98266009f0 Allow using a different chipset on quickemu
Haiku is incompatible with the q35 machine type, as it emulates a ICH9
host chipset. Instad, the "pc" machine type needs to be used (emulates
I44FX).

https://wiki.qemu.org/Features/Q35
2021-12-26 19:22:14 +01:00
nqvrg
9f27cbffa2 Add Haiku R1 Beta 3 to quickget script 2021-12-26 19:22:14 +01:00
Vitaliy Krylov
82be8d324c Improved support of KolibriOS:
CD-ROM (iso), Disk, Internet and Audio are working now.
Also added forced LiveCD booting (because release named latest-iso, not latest-img).
Did some tweaks with '-machine' and '-cpu'. Now these VMs will run with 'qemu32' processor since KolibriOS throw an MTRR error (I didnt get how to fix it by any other way).
2021-12-23 20:36:34 +03:00
Vitaliy Krylov
310d2d3aa1 Adding KolibriOS support
It can download and boot this OS. There is one requirement: 7z.
Its not completed yet (at least internet and sound dont work)
2021-12-22 00:13:47 +03:00
guinuxbr
74068d240b Added openSUSE path for OVMF 2021-12-20 21:51:38 +00:00
arcolinuxz
a5f9b282c9 readme added 2021-12-20 13:33:44 +01:00
arcolinuxz
a487d9a952 readme added 2021-12-20 13:20:21 +01:00
arcolinuxz
cc7caab80e readme added 2021-12-20 13:18:50 +01:00
arcolinuxz
c1ded4df4d add arcolinux 2021-12-20 11:35:54 +01:00
Phil Clifford
4a048626ff New release of elementaryOS 6.0 2021-12-17 01:44:38 +00:00
Christian Mayer
b3f3545a99 Pop!_OS: add 21.10 2021-12-16 13:00:01 +01:00
Jordan Day
3cdfe211b4
Set URL to 'Current' ISO for Leap >= 15.2 2021-12-13 10:31:37 -06:00
guyosi
b3edcfcc1c
Merge branch 'master' into master 2021-12-09 20:29:50 -05:00
Martin Wimpress
12fbf6b02f
Bump version to 3.11 2021-12-08 10:54:41 +00:00
Martin Wimpress
9cf2d9ac3c Correct OSK location 2021-12-08 10:50:50 +00:00
Martin Wimpress
5eb6a20402 Change USB controller for Big Sur and Monterey to nec-usb-xhci 2021-12-08 10:50:50 +00:00
Martin Wimpress
4325a1e79a Disable S3 for macOS to try and prevent installs suspending 2021-12-08 10:50:50 +00:00
0x4A6F
eff4463efc NixOS: add 21.11 2021-12-08 10:44:29 +00:00
Martin Wimpress
8bfe13f5c5 Bypass some system checks, such as TPM and SecureBoot. Close #233
This should help users of Quickemu on distros where OVMF/EDK2/QEMU don't provide a complete SecureBoot with SMM capability, such as Arch Linux, to successfully install Windows 11.
2021-12-08 10:42:54 +00:00
Martin Wimpress
9750a9291a Reorder windowsPE 2021-12-08 10:42:54 +00:00
Martin Wimpress
b40f1d8925 Update OEM fields in quickemu to match unattended
Change references to Quickemu Project, instead of Wimpys World
2021-12-08 10:42:54 +00:00
Martin Wimpress
957f453acd Do not attempt an upgrade 2021-12-08 10:42:54 +00:00
Martin Wimpress
7cce7a2303 Do not OptIn to sharing diagnostics data 2021-12-08 10:42:54 +00:00
Martin Wimpress
2b3e3a88c3 Autogenerate ComputerName in offlineServicing
Prevents Windows 11 prompting for a computer name during install
2021-12-08 10:42:54 +00:00
Martin Wimpress
c15872bfb4 Consolidate specialize 2021-12-08 10:42:54 +00:00
Martin Wimpress
ca1c5fd33b Drop NetworkLocation; not required 2021-12-08 10:42:54 +00:00
Martin Wimpress
810000d785 Clean up 2021-12-08 10:42:54 +00:00
Martin Wimpress
c72b0fa417 Update link to unattended documentation 2021-12-08 10:42:54 +00:00
Martin Wimpress
80cbaf56fa Move unattened_windows() near get_windows() 2021-12-08 10:42:54 +00:00
Martin Wimpress
8cec043b1d Add a complete OOBE configuration to unattend.xml
ProtectYourPC=3 enforces the most privacy respecting options, without prompting the user during install.

The combination of HideOEMRegistrationScreen=true and NeworkLocation=Home with HideLocalAccountScreen=false and HideOnlineAccounts=false allows for local and online account creation but prevents scenarios where online account only authentication is made a hard requirement.

SkipUserOOBE and SkipMachineOOBE are documented as deprecated, but both must be set to false otherwise the install will complete automatically without creating any user accounts, of any kind.
2021-12-08 10:42:54 +00:00
Martin Wimpress
fac46863c3 Consistent <component> formatting in unattend.xml 2021-12-08 10:42:54 +00:00
Martin Wimpress
2a5e4537eb Update Windows disk partitions to include WinRE, EFI, MSR and OS 2021-12-08 10:42:54 +00:00
Martin Wimpress
2a0ba4d10a Enable network during Windows installs 2021-12-08 10:42:54 +00:00
Martin Wimpress
9210054c05 Enable VirtIO for Windows disks 2021-12-08 10:42:54 +00:00
Phil
8c2f2d0adc Some new features needed adding to the README 2021-12-06 11:46:04 +00:00
Martin Wimpress
20ca3aff8d
Bump version to 2.3.4 2021-12-06 11:44:22 +00:00
Martin Wimpress
ace30551fc
Always disable S3 on WIndows
This should prevent fresh installs from failing during the multiple reboots
2021-12-06 11:38:26 +00:00
Phil
f8aee430ec Re-disabled network for re-appearance of #115 2021-12-06 11:00:08 +00:00
Martin Wimpress
98ee949a6b
Disable CEIP
https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-sqmapi-ceipenabled
2021-12-06 10:58:24 +00:00
Martin Wimpress
acd9cfde81
Formatting unattaned.xml 2021-12-06 10:56:58 +00:00
Martin Wimpress
126e2d3aa0
Add debug for get_windows() 2021-12-06 10:55:54 +00:00
Martin Wimpress
5408979da5
New WIndows 10 & 11 ISO are available 2021-12-06 10:54:46 +00:00
Martin Wimpress
edd9216775
Make shellcheck happy 2021-12-06 10:22:58 +00:00
Martin Wimpress
59e9a73e4c
Clairfy QEMU not found messages 2021-12-03 16:54:33 +00:00
Martin Wimpress
6167f30c93
Update OS support in README 2021-12-03 16:54:33 +00:00
Jinming Wu, Patrick
194b303a54 add a display setting in the conf file 2021-12-03 13:49:34 +00:00
Phil Clifford
0af524e3e5
Add Alma Linux (#259)
* temp working files to build function

* remove working dross

* inital Alma Linux support

* Added option for dvd or minimal iso to Alma

* corrections

* temp working files to build function

* remove working dross

* inital Alma Linux support

* Added option for dvd or minimal iso to Alma

* corrections
2021-12-03 13:42:04 +00:00
Martin Wimpress
ca0f144351
Bump version to 2.3.3 2021-12-03 11:33:56 +00:00
Martin Wimpress
e6823edde7
Make port scans non-blocking 2021-12-03 11:33:41 +00:00
Martin Wimpress
4f0bbfc667
Add --delete-disk and --delete-vm options. Close #227 2021-12-03 11:33:17 +00:00
Phil
2af2b9c34d Missing rocky appearance in final catalog 2021-12-03 10:16:30 +00:00
Phil
92878c27df some shellcheck fixes 2021-12-03 10:16:00 +00:00
Cowboy General
9ba10f91df Turn off Hibernation in Windows autounattend.xml
Turn off Hibernation in Windows to correct issue #162
2021-12-03 10:10:20 +00:00
Phil Clifford
b9a1405917 missed Debian from the features section 2021-12-03 10:05:51 +00:00
Phil Clifford
765355c4d3 Added option support for debian nonfree 2021-12-03 10:05:51 +00:00
Phil Clifford
8369e170df Added debian to readme 2021-12-03 10:05:51 +00:00
Phil Clifford
7afc9bf710 Add debian current support 2021-12-03 10:05:51 +00:00
Charles Hood
0fe5717447 Add version 8.5 support Oracle Linux
Just released 11/16/2021
2021-12-03 10:05:10 +00:00
Charles Hood
bccabad4fd Add Oracle Linux version 7.9, 7.8, 7.7 support
Add Oracle Linux version 7.9, 7.8, 7.7 support
Note different ISO naming pattern from 8.x
2021-12-03 10:05:10 +00:00
Charles Hood
93cafe7bf7 Remove extra comma
Between Oracle Linux and Rocky Linux
2021-12-03 10:05:10 +00:00
Charles Hood
3d2924d913 Add Oracle Linux and Rocky Linux to README
Add Oracle Linux as supported Linux
Add Rocky Linux as supported Linux
2021-12-03 10:05:10 +00:00
Charles Hood
8df11258f0 2nd attempt at OracleLinux HASH checking 2021-12-03 10:05:10 +00:00
Charles Hood
f7ead7e815 Attempt get HASH for OracleLinux and check it 2021-12-03 10:05:10 +00:00
Charles Hood
e5e40ba77c Restrict OracleLinux support 8.x for now
7.x and 6.x use a different naming scheme
2021-12-03 10:05:10 +00:00
Charles Hood
b2971e0dd3 Adjusting OracleLinux start disk size
20G seems good
2021-12-03 10:05:10 +00:00
Charles Hood
95e05c5af4 Clean up OracleLinux debugging
Still no HASH checking yet
2021-12-03 10:05:10 +00:00
Charles Hood
b1f4c08704 Even more OracleLinux debugging
add more disk space by default
2021-12-03 10:05:10 +00:00
Charles Hood
3bfd7e1ad9 OracleLinux debugging
more echo statements
2021-12-03 10:05:10 +00:00
Charles Hood
8449e40a47 Debugging OracleLinux support
echo variables for debugging
2021-12-03 10:05:10 +00:00
Charles Hood
6245b654dc Add OracleLinux Support
No checksum checking yet
2021-12-03 10:05:10 +00:00
guyosi
8a47ad721e
Update README.md 2021-11-29 07:54:59 -05:00
guyosi
e8434516a6
Update README.md 2021-11-29 07:50:24 -05:00
guyosi
ca6fac8c7a
Merge pull request #1 from philclifford/help-guyosi
Attempt to get gentoo
2021-11-29 07:48:32 -05:00
Phil
ae6f2f9d17 Attempt to get gentoo
Some tweaks towards getting the latest release iso
2021-11-29 04:00:55 +00:00
guyosi
7c48090b18
Merge branch 'quickemu-project:master' into master 2021-11-28 18:06:44 -05:00
guyosi
726d32a025
Adding gentoo support
This code is for adding gentoo support, its not complete yet
2021-11-28 18:06:23 -05:00
Vladislav Nepogodin
b46c8e4f54
use url from mirror 2021-11-24 00:17:37 +04:00
Vladislav Nepogodin
c0ea6963ac
sort the changes 2021-11-23 00:32:38 +04:00
Vladislav Nepogodin
f8fe496df2
Add CachyOS support 2021-11-21 23:54:34 +04:00
Lukewh
4080bf8048 png != svg. Causes 404 for image urls 2021-11-18 21:36:58 +00:00
cowboygeneral
9779af371c Add version 8.5 to Rocky Linux
New version posted by Rocky Linux on November 15, 2021
2021-11-17 18:16:39 +00:00
Lukewh
468cf309bc Update icon urls from lukewh -> quickemu-project 2021-11-17 18:15:59 +00:00
Phil
5e4cd1c397 Go back one Win11 version 2021-11-17 18:10:42 +00:00
Leonardo Brondani Schenkel
566faa97d8 Fix case statement
The correct separator is "|" and not ",".
2021-11-15 12:33:32 +00:00
Martin Wimpress
084b632eae
Disable S3 when booting Windows with SecureBoot #162
Disabling S3 is required while booting Windows with SecureBoot enable. Disabling S3 is not the cause of #162
2021-11-15 10:41:08 +00:00
Martin Wimpress
951c8a6379 Add .png and .svg icons to the CSV and JSON lists. Close #183
https://github.com/Lukewh/quickemu-icons
2021-11-13 21:13:59 +00:00
Martin Wimpress
f8e7f10ffd
Consistent formatting of GUEST_TWEAKS 2021-11-13 19:07:50 +00:00
Martin Wimpress
20e5b02e43
Disable S3 when SecureBooting Windows on Arch Linux. Close #220 2021-11-13 19:07:30 +00:00
Martin Wimpress
1036cd7ec9
Tune all display devices to have 64MB VRAM. Close #211
64MB VRAM is sufficient to run 3840 x 2160 with page flipping., even though qemu support a max of 2560x1600. No need to tune this since 64MB is relatively small in the great scheme of things.

References:
  - https://www.ovirt.org/develop/internal/video-ram.html
  - https://stafwag.github.io/blog/blog/2018/04/22/high-screen-resolution-on-a-kvm-virtual-machine-with-qxl/
  -
2021-11-13 18:52:10 +00:00
Martin Wimpress
95748059b9
Update comments about macOS VirtIO support 2021-11-13 18:18:24 +00:00
Zach Bacon
6d7b87254c This adds OMVF support in solus
however secureboot in OMVF isn't enabled in solus.
2021-11-13 18:17:21 +00:00
Martin Wimpress
e53021d029
When SPICE is requested, also use SPICE for audio. Close #209 2021-11-13 16:30:56 +00:00
Martin Wimpress
16f379e044
Bump version to 2.3.2 2021-11-13 15:57:50 +00:00
Martin Wimpress
5c490be79a
Correct comment indentation 2021-11-13 15:56:58 +00:00
Martin Wimpress
743b051526
Make shellcheck happy 2021-11-13 15:56:36 +00:00
Martin Wimpress
1423b272c3
Merge remote-tracking branch 'origin/master' 2021-11-13 15:54:36 +00:00
Martin Wimpress
72704684dd
Replace incorrect references to AuthenticIntel with GenuineIntel #223 2021-11-13 15:53:18 +00:00
Martin Wimpress
e5053ec566
Add USB pass-through and WebDAV via SPICE for macOS. Close #223 Close #196 2021-11-13 15:51:58 +00:00
Martin Wimpress
cff40f8db0
Allocate VRAM for all display devices #211 2021-11-13 15:31:40 +00:00
Martin Wimpress
9197e0c981
Fix seamless mouse via SPICE for macOS by only using VGA. Close #222 2021-11-13 15:30:36 +00:00
navycat
ff0559f0cf Removed overhead virtio-serial-pci 2021-11-13 14:08:03 +00:00
Phil Clifford
31b485db44
Android option working (#221)
* Correct generation of android config

Missing android sections replaced.
Fixes #219#

* whitespace
2021-11-13 10:51:16 +00:00
Phil Clifford
f19b84afeb
Fix 212 Fallback to wget if zsync not available (#214)
* first shot at falling back to wget

* add fallback to list function

* whitespace

* Better message and shellcheck pacification
2021-11-13 10:50:49 +00:00
Martin Wimpress
d3506d1c4a
Remove disabling S3 (Suspend to RAM). Close #162 2021-11-08 15:11:25 +00:00
Martin Wimpress
78e07bad89
White space cleanup 2021-11-08 00:51:02 +00:00
Martin Wimpress
3848bbf597
Add closing fi to fix syntax error 2021-11-08 00:50:38 +00:00
Phil Clifford
854226bd50
Garuda support added (#197)
* Support for Garuda

* remove debugging

* more debug removal

* damn intellisense typo de-autocorrected

* whitespace

* more fun finding patterns that work

* enabled zsync for Garuda (#5)
2021-11-08 00:32:57 +00:00
Phil Clifford
b44d6228ce
Added support for Regolith Linux (#190)
* Added support for Regolith Linux

* merge conflicts resolved

* small tidy of dross and whitespace
2021-11-08 00:10:02 +00:00
Martin Wimpress
55b3b1a2dd
White space clean up 2021-11-08 00:03:50 +00:00
Martin Wimpress
c893638b16
Solus pretty name is accounted for in the catch all 2021-11-08 00:03:30 +00:00
Martin Wimpress
b9fa4f365d
KDENeon is available via zsync only 2021-11-08 00:03:08 +00:00
Martin Wimpress
b38e220f6c
Do not prevent macOS running when AVX2 is absent. Close #201 2021-11-07 23:51:50 +00:00
Phil Clifford
d434235afd
Support for Solus added (#208)
* Support for Solus added

* of course we have to get the hash name
2021-11-07 23:41:39 +00:00
Philipp Kiemle
9903bec582
Add KDE Neon to quickget (#207)
* WIP - Add KDE Neon to quickget

* Get the KDE Neon ISO from a local mirror

Co-authored-by: Phil Clifford <philip.clifford@gmail.com>

Co-authored-by: Phil Clifford <philip.clifford@gmail.com>
2021-11-07 23:39:20 +00:00
Philipp Kiemle
9aa4166324 Fix typos 2021-11-07 23:33:48 +00:00
Phil Clifford
2a86681bb0
nasty version hack for quickget (#205)
* nasty version hack for quickget

* handle path to self better
2021-11-07 23:28:56 +00:00
Gary Graham
979a11ca1b confused file names
added secboot file to non-secboot. whoops. fixed.
2021-11-07 23:26:58 +00:00
Gary Graham
c5e8a8e8e2 ovmf_path_gentoo
Add Gentoo's paths for OVMF.
2021-11-07 23:26:58 +00:00
Phil Clifford
574ed073ba Fedora 35 released 2021-11-07 23:25:37 +00:00
Phil Clifford
2f8b14d2c7 fix for shortcut presumption 2021-11-07 23:24:08 +00:00
Dani Llewellyn
87fea6c845
Re-enable networking during Windows installation (#193)
* Force Windows VMs to use AHCI for the cdrom and hard disk devices.
* Re-enable networking during Windows installation.
2021-11-07 23:20:50 +00:00
Phil Clifford
0a619985af
Added support for Zorin OS (#185)
* Zorin support added to Quickget

* Added Zorin Educational releases

* Update README

* tidy up

* Found stupid bug so zorin should be a linux now

* get sizing for zorin educational large enough to install (#2)

* get sizing for zorin educational large enough to install
2021-11-07 23:18:29 +00:00
Martin Wimpress
8f832a843b
Revert "Rename swtpm socket". Close #192
This reverts commit c5efb7d79d.
2021-11-01 18:31:57 +00:00
Martin Wimpress
1a8e161e87
Tweak ANdroid x86 support 2021-11-01 18:31:39 +00:00
Guy Swowden
257a63ca66
Rocky Linux Support (#184)
* Rocky Linux Support

* Update quickget
2021-11-01 18:10:55 +00:00
Dani Llewellyn
ada72ca5b2 Add a waving hand emoji to greetings GitHub Action
Make the name of the Greetings GitHub Action more friendly by adding a waving hand emoji.
2021-11-01 18:06:52 +00:00
Guy Sowden
7ac2768784 android support 2021-10-30 09:02:09 +01:00
Blaz
82ea95918d fix for virtio-vga-gl to be usable
See https://github.com/wimpysworld/quickemu/issues/107#issuecomment-951943497
2021-10-30 08:58:35 +01:00
Lukewh
70f3d835d4 Use the pink version of the logo 2021-10-30 08:55:14 +01:00
Lukewh
37ac340127 Add quickemu logo and update README 2021-10-29 16:04:32 +01:00
Martin Wimpress
81e8a8db9c
Bump version to 2.3.1 2021-10-29 11:27:02 +01:00
Martin Wimpress
464c13ac17
Add braces to variables 2021-10-29 11:26:44 +01:00
Martin Wimpress
4a91cdcfda
Update README 2021-10-29 11:26:10 +01:00
Martin Wimpress
4a301f111a
Correct NixOS docs 2021-10-29 11:00:25 +01:00
Philipp Kiemle
fb832b2c8a
Add Arch Linux to Quickget (#146)
* quickget: Add Arch Linux

* Update README to include Arch Linux

* Use JSON API to determine SHA1 hash and Arch ISO name

* Use wget instead of curl
2021-10-29 10:36:31 +01:00
Martin Wimpress
cd908c5a85
Bump version to 2.3.0 2021-10-29 09:51:05 +01:00
Martin Wimpress
d7fd4df03e
Fix index reference for Windows 11. Close #171 2021-10-29 09:50:23 +01:00
Martin Wimpress
66fb440359
Bump version to 2.2.9 2021-10-28 22:44:13 +01:00
Martin Wimpress
5e5edc9a82
White space clean up 2021-10-28 22:42:31 +01:00
Martin Wimpress
df53c3be0a
Ignore the most recent Windows 10 release for now. Close #170 2021-10-28 22:42:17 +01:00
Martin Wimpress
0bfdfe36a0
Make sure there are job for quickget to kill. Close #169 2021-10-28 22:41:35 +01:00
Martin Wimpress
2948bac27e
Fix NixOS CSV/JSON output 2021-10-28 22:36:41 +01:00
Philipp Kiemle
ec14a88f40
Update .gitignore (#168)
Ignore partially downloaded files
2021-10-28 22:14:02 +01:00
Martin Wimpress
3cbb07c3af
Update README 2021-10-28 16:07:14 +01:00
Martin Wimpress
f3c955822c
Add *.sock to .gitignore 2021-10-28 12:12:12 +01:00
Yannick Mauray
aa7ebc1528
fix : kill all background processes when exiting (#165) 2021-10-28 07:28:19 +01:00
Phil Clifford
d0ffb6f4cb
Generate elementary link (#167) 2021-10-28 07:27:40 +01:00
Martin Wimpress
dcd5039629
White space cleanup 2021-10-27 22:28:05 +01:00
Martin Wimpress
1589c76846
Consistent use of OPTION in quickget 2021-10-27 22:28:05 +01:00
Martin Wimpress
01dc9c9742
Make shellcheck happy 2021-10-27 22:28:05 +01:00
Martin Wimpress
584c855ec3
Add Downloader field to quickget
This will inform frontend GUIs what download mechanism will be used to get the requested OS.
2021-10-27 22:28:05 +01:00
Martin Wimpress
528064383b
Add support for QEMU Guest Agent 2021-10-27 22:20:57 +01:00
Martin Wimpress
c5efb7d79d
Rename swtpm socket 2021-10-27 22:20:57 +01:00
Adam Fairbrother
6e851ff1c8
Added support for Bridge mode networking. (#160)
* Added support for Bridge mode networking.

added config file option "bridge"
set to a correctly configured bridge device to enable qemu-bridge-helper

* Added Docs for Bridge network feature
2021-10-27 22:07:14 +01:00
Phil Clifford
255873c05a working link for elementary
The current download link returns an html file with a message about an expired link.  Ideally this needs to be fixed more elegantly by collaboration with the elementary team to get a stable/non-expiring link or find an alternate source ( or de-support elementary)
2021-10-27 21:59:14 +01:00
Martin Wimpress
70c2930336
Fix Ubuntu Canary support 2021-10-27 16:25:53 +01:00
Martin Wimpress
60641a4b62
Fix cleaning up .zs-old files 2021-10-27 16:25:11 +01:00
Martin Wimpress
8b2d7cc348
Add *.zs-old to .gitignore 2021-10-27 16:24:31 +01:00
Martin Wimpress
39d962ee8c
Add *.msi to .gitignore 2021-10-27 15:59:09 +01:00
Martin Wimpress
26fc4a2e8c
Sort .gitignore and drop obsolete references to SHA files 2021-10-27 15:57:23 +01:00
Martin Wimpress
776d05aa59
Ignore macOS recovery images, pid file and ports file 2021-10-27 15:55:21 +01:00
Martin Wimpress
95b5f84816
Bump version to 2.2.8 2021-10-27 15:46:37 +01:00
Martin Wimpress
1117fbb84a
Update README 2021-10-27 15:45:45 +01:00
Martin Wimpress
78233a50ce
Fallback to macrecovery from Quickemu project 2021-10-27 15:45:33 +01:00
Martin Wimpress
5fd8271a79
Add missing local variable declarations 2021-10-27 15:44:53 +01:00
Martin Wimpress
61e2930999
Fix Big Sur download. Close #161 2021-10-27 15:44:29 +01:00
Martin Wimpress
bf4e597d0f
Update README 2021-10-27 12:47:10 +01:00
Martin Wimpress
ea8f459977
Make shellcheck happy 2021-10-27 12:18:10 +01:00
Martin Wimpress
1421492f87
Add initial support for macOS Monterey 2021-10-27 11:56:56 +01:00
Martin Wimpress
3459aa8325
Merge remote-tracking branch 'origin/master' 2021-10-27 11:42:42 +01:00
Martin Wimpress
5367286915
Unify process related status messages 2021-10-27 11:42:28 +01:00
Alexander Potemkin
b7202e8a8b adding apt update in readme
to prevent:
```
$ sudo apt install quickemu
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package quickemu
```
2021-10-27 11:32:35 +01:00
Martin Wimpress
a5f27dc68d
Only set secureboot=on for Windows 11 on non-Debian/Ubuntu 2021-10-25 16:13:53 +01:00
Martin Wimpress
5c0a7885c9
Reduce wait for swtpm initialisation 2021-10-25 15:57:15 +01:00
Martin Wimpress
835ce6bce5
Minor cleanup 2021-10-25 15:42:33 +01:00
Martin Wimpress
61ac7ad809
Correct typo 2021-10-25 15:42:01 +01:00
Martin Wimpress
fa0cc05917
Update headless operation docs 2021-10-25 15:41:45 +01:00
Martin Wimpress
205023fd50
Add -display none option. Close #110
Using the -display none option will start the VM with SPICE enabled but no display attached. The .ports file in the VM directory can be used to lookup the SSH and SPICE ports used by the VM.
2021-10-25 15:37:17 +01:00
Martin Wimpress
0567229405
Fix VMNAME 2021-10-25 15:14:59 +01:00
Martin Wimpress
ed2ba41cb5
Bump version to 2.2.7 2021-10-25 14:38:33 +01:00
Martin Wimpress
0c381dec37
Update README 2021-10-25 14:38:17 +01:00
Martin Wimpress
c6659a5b77
Fix shortcuts. Close #141 2021-10-25 14:32:19 +01:00
Martin Wimpress
33adadc988
Make shellcheck happy 2021-10-25 14:31:45 +01:00
Martin Wimpress
3257768677
Derive the absolute VMPATH 2021-10-25 14:31:07 +01:00
Martin Wimpress
91e7e18955
Add support for virtio-vga-gl on QEMU 6.1 and newer. Close #107 2021-10-25 14:03:59 +01:00
Martin Wimpress
4003144cf6
Add ports file. Close #156 2021-10-25 13:40:35 +01:00
Martin Wimpress
2c513a1823
Add QEMU requirements. Close #89 2021-10-25 13:28:19 +01:00
Martin Wimpress
7111cb5d7b
Fix Linux Mint and NixOS argument parsing 2021-10-25 13:23:43 +01:00
Martin Wimpress
90045e8363
Correct NixOS support 2021-10-25 13:23:05 +01:00
Martin Wimpress
cf71b7aeb5
Refactor Kali support 2021-10-25 13:22:33 +01:00
Martin Wimpress
5c53dec449
Increase disk_size for macOS and display MSR alerts more often. Close #153 2021-10-25 12:54:41 +01:00
Martin Wimpress
cf20a3268b
Merge remote-tracking branch 'origin/master' 2021-10-25 11:55:43 +01:00
Martin Wimpress
7d9a38cf33
Fix hash checking to jumping Ubuntu devel series. Close #151 2021-10-25 11:55:25 +01:00
fedx-sudo
6bfc80715d update README.md 2021-10-25 11:33:21 +01:00
fedx-sudo
8602ba8e85 add NixOS to quickget
add NixOS to quickget

add NixOS to quickget
2021-10-25 11:33:21 +01:00
takov751
f1114974c0
Added Kali support (#148)
* Added Kali support

* Support for Kali

* remove link left in quickget

* made changes to get latest release.

* Added weekly iso as well

* few typo and clearing up choosing release version

* fixing readme about version
2021-10-25 11:32:22 +01:00
Martin Wimpress
330c238792
Merge branch 'fix-102' 2021-10-25 11:18:31 +01:00
Martin Wimpress
db855be6ed
Fallback to /etc/os-release if lsb_release is not available 2021-10-25 11:17:32 +01:00
Martin Wimpress
23e3da40e3
Remove erroneous EFI_VARS references 2021-10-25 11:17:32 +01:00
Martin Wimpress
0598fb3321
Make sure Legacy boot is in legacy mode 2021-10-25 11:17:32 +01:00
Martin Wimpress
145dc472af
Show full $EFI_CODE path in boot status 2021-10-25 11:17:32 +01:00
Martin Wimpress
207ebde501
Remove test stub 2021-10-25 11:17:32 +01:00
Martin Wimpress
44673e94c6
Add guards for $EFI_CODE and $EFI_VARS
Make sure that $EFI_VARS references an actual writable file.

Check if $EFI_CODE reference a symlink, if so resolve the the real file.
2021-10-25 11:17:32 +01:00
Martin Wimpress
ca03a4dada
If EFI boot was requested an no EFI firmware is available, hard stop. 2021-10-25 11:17:32 +01:00
Martin Wimpress
444616022e
Improve error message when no SecureBoot firmware was found. 2021-10-25 11:17:32 +01:00
Martin Wimpress
7a0cf72213
Add reference for Fedora 2021-10-25 11:17:32 +01:00
Martin Wimpress
44bc5faec0
Use the paths to actual firmware on Fedora, rather than to symlinks.
Useful reference in this comment: https://bugzilla.redhat.com/show_bug.cgi?id=1929357#c5
2021-10-25 11:17:32 +01:00
Martin Wimpress
9b96f899ad
Make sure cfi.pflash01always has the secure property set 2021-10-25 11:17:32 +01:00
Martin Wimpress
b9f90d12c3
Disable Suspend to RAM (S3) if SecureBoot or SMM are enabled 2021-10-25 11:17:32 +01:00
Martin Wimpress
a4eddaa9e5
Add SMM support, enabled by default for Windows guests 2021-10-25 11:17:32 +01:00
Martin Wimpress
b6db417b81
Refactor OVMF detection and add SecureBoot support
Add 'secureboot="on"' to a VM configuration to enable SecureBoot.
2021-10-25 11:16:35 +01:00
Martin Wimpress
aeb2a64720
Add efi_vars() for copying EFI variable store templates to the VM dir 2021-10-25 11:16:35 +01:00
Martin Wimpress
b8d6b02796
Refactor swtpm support to catch when it is missing
Also adds the swtpm laucher to the debug shell script.
2021-10-25 11:16:35 +01:00
Martin Wimpress
f23ace745a
Update download URL for OpenCore 2021-10-25 11:13:53 +01:00
Jed Spraul
454f13f8a9 Update macrecovery
Update from OpenCorePkg/Utilities/macrecovery/macrecovery.py
master branch 6107d573eb535c7708f66cebb83c767863dfd107
2021-10-25 11:10:42 +01:00
Dani Llewellyn
d62d739e8a [UBUNTU]: Add canary release to test the new installer
* Add `canary` as supported Ubuntu release

Signed-off-by: Dani Llewellyn <diddledani@ubuntu.com>
2021-10-21 21:29:29 +01:00
Jed Spraul
8bb9003f5a Halt unless bash 4 or newer 2021-10-21 21:28:13 +01:00
Martin Wimpress
4634212f65
Bump version to 2.2.6 2021-10-21 01:47:03 +01:00
Martin Wimpress
d4e099edb0
Remove test stub 2021-10-21 01:46:41 +01:00
Martin Wimpress
e06c6119ec
Update README 2021-10-21 01:14:05 +01:00
Martin Wimpress
271f3472af
Add hash checking for FreeBSD 2021-10-21 01:13:43 +01:00
Martin Wimpress
cae95e5b14
Add hash checking for openSUSE 2021-10-21 00:56:25 +01:00
Martin Wimpress
ffeabdabf2
Add hash checking for Linux Mint 2021-10-21 00:54:45 +01:00
Martin Wimpress
3c2249934a
Disable all disk tuning, for the sake of compatibility. Close #98 2021-10-21 00:33:01 +01:00
Martin Wimpress
32da324717 Correct typo in --ignore-msrs-always argument 2021-10-21 00:28:03 +01:00
Martin Wimpress
936f79590c Minor comment edit 2021-10-21 00:28:03 +01:00
Martin Wimpress
b915d8d797 Only display MSR alerts when required 2021-10-21 00:28:03 +01:00
Martin Wimpress
a94541c5aa Order the argument parser 2021-10-21 00:28:03 +01:00
Martin Wimpress
d052d913f9 Order the usage 2021-10-21 00:28:03 +01:00
Martin Wimpress
acf6ef32fa Add --ignore-msrs-always argument 2021-10-21 00:28:03 +01:00
Martin Wimpress
e493112688 Refactor ignore_msrs_alert to make in non-blocking 2021-10-21 00:28:03 +01:00
Martin Wimpress
119e4dd7ad White space clean up 2021-10-21 00:28:03 +01:00
Martin Wimpress
af7348caf6
Refactor, and enable, OpenBSD support 2021-10-20 23:22:35 +01:00
Fabian Schmidt
94ecb1b3ec
added openbsd 7 support (#129)
Co-authored-by: Fabian Schmidt <fabian85@protonmail.com>
2021-10-20 22:07:07 +01:00
Phil Clifford
78b9a3f7f2
Politely offer to set ignore_msrs (#134)
* attempt to offer appropriate setting of ignore_msrs if needed

* Removed done TODO

* Revert "Removed done TODO"
to resolve merge conflict since all TODOS removed upstream
This reverts commit eb18fcf829.
2021-10-20 01:22:45 +01:00
Martin Wimpress
ecd4ed043e Add list_json()
As we now have valid CSV, pipe that into a jq filter to generate JSON.

https://stackoverflow.com/a/67359273
2021-10-20 00:39:58 +01:00
Martin Wimpress
6cba256d79 Rename list_all() to list_csv() 2021-10-20 00:39:58 +01:00
Martin Wimpress
f542e798c5 Make CSV output valid 2021-10-20 00:39:58 +01:00
Martin Wimpress
4eb11caa10
Store the pid of the VM 2021-10-19 20:49:57 +01:00
Martin Wimpress
e9f26f7758 Update Pop!_OS support to use their API. Close #137
Also adds support for downloading the intel or nvidia versions and checks the hash.
2021-10-19 20:41:24 +01:00
Martin Wimpress
31a089d465 Update calls to check_hash() 2021-10-19 20:41:24 +01:00
Martin Wimpress
ef94ff64ff check_hash() will automatically add the VM_PATH and derive the hash algorithm 2021-10-19 20:41:24 +01:00
Martin Wimpress
e24f34ad9d Swallow zsync stderr 2021-10-19 20:41:24 +01:00
Martin Wimpress
14d3b99ad8 Correct openSUSE pretty name 2021-10-19 20:41:24 +01:00
Martin Wimpress
b7fcb954d4 Update README.md 2021-10-19 20:41:24 +01:00
Martin Wimpress
62b7713a6d Make pretty_name() pretty 2021-10-19 20:41:24 +01:00
Martin Wimpress
cf177160c2 Remove mk_vm_dir() Make sure web_get() & zsync_get() make directories 2021-10-19 20:41:24 +01:00
Martin Wimpress
b71fab5798 Refactor existing hash checking to use check_hash() 2021-10-19 20:41:24 +01:00
Martin Wimpress
e1d15d4f04 Add check_hash() function 2021-10-19 20:41:24 +01:00
Martin Wimpress
dacc7913e1 Add quick 'n dirty docs explaining how to add a new OS 2021-10-19 20:41:24 +01:00
Martin Wimpress
635765dcfc Call start_vm_info() from make_vm_info() 2021-10-19 20:41:24 +01:00
Martin Wimpress
ec490d489a Always recreate unattended.iso 2021-10-19 20:41:24 +01:00
Martin Wimpress
029a218bc9 Add missing double quote 2021-10-19 20:41:24 +01:00
Martin Wimpress
f34434e4ad Refactor get_*() functions to use validate_release() 2021-10-19 20:41:24 +01:00
Martin Wimpress
1b9eb20ba6 Add validate_release() function 2021-10-19 20:41:24 +01:00
Martin Wimpress
7d003eda88 Add pretty_name() function 2021-10-19 20:41:24 +01:00
Martin Wimpress
7a4a09f9bc Refactor Ubuntu support 2021-10-19 20:41:24 +01:00
Martin Wimpress
25b89573e5 Refactor Windows support 2021-10-19 20:41:24 +01:00
Martin Wimpress
4ed68f2174 Refactor Fedora support 2021-10-19 20:41:24 +01:00
Martin Wimpress
ced69c3303 Refactor Pop!_OS support 2021-10-19 20:41:24 +01:00
Martin Wimpress
807ef7c0c1 Fix Linux Mint releases generator 2021-10-19 20:41:24 +01:00
Martin Wimpress
20b7478f31 Refactor openSUSE support 2021-10-19 20:41:24 +01:00
Martin Wimpress
9b1dba263b Refactor FreeBSD support 2021-10-19 20:41:24 +01:00
Martin Wimpress
3870fe68cf Refactor elementary OS support 2021-10-19 20:41:24 +01:00
Martin Wimpress
68213b89e7 Correct conditionals in make_vm_config() 2021-10-19 20:41:24 +01:00
Martin Wimpress
9cc489608c Refactor argument evaluation 2021-10-19 20:41:24 +01:00
Martin Wimpress
ca57afa111 Refactor Linux Mint support. Treat DE variants as an OS use actual versions 2021-10-19 20:41:24 +01:00
Martin Wimpress
59bd1ca309 Add missing double quotes 2021-10-19 20:41:24 +01:00
Yannick Mauray
516ececfbd
Added elementary OS support (#130)
* Added elementary OS support

* Updated README.md

* Added pretty name for elementary OS
2021-10-19 12:04:16 +01:00
Yannick Mauray
9eb455c295
Added Pop!_OS support (#131)
* Added Pop!_OS support

* Updated README.md

* Added pretty name for Pop!_OS
2021-10-19 12:04:00 +01:00
Martin Wimpress
b7493cee10 Add list argument to quickget. Close #97
For UI creators, `quickget list` will print to strdout asll the support operating systems and releases.
2021-10-19 11:44:22 +01:00
Martin Wimpress
abd5e99c47
Highlight both GUIs for Quickemu 2021-10-19 09:03:14 +01:00
Martin Wimpress
6abdd0e7a5
Update README.md 2021-10-19 02:17:42 +01:00
Martin Wimpress
380451df4c
Clean up status messages 2021-10-19 02:17:23 +01:00
Yannick Mauray
91f2abdeab Housekeeping
Removed unnecessary wildcards for non-ubuntu operating systems.
2021-10-19 01:42:16 +01:00
Martin Wimpress
fd901a987c Disable all network interfaces during Windows install. Close #115
During the Windows install network interfaces are completely disabled! This is to allow those users who want to create local accounts to do so.

A side affect is that the first time Windows boots with the QEMU network enabled it will blue screen, 
automatically restart and then boot normally with fully functioning networking.,
2021-10-19 01:35:25 +01:00
Martin Wimpress
45457c8808 Replace the use of which with command -v 2021-10-18 16:35:48 +01:00
Martin Wimpress
d785c89a38 Add distro, kernel and CPU details to start up messages. Close #96 2021-10-18 16:26:48 +01:00
Martin Wimpress
c3b3f4ee86 Get partial USB SPICE redirection working on macOS. Close #120 2021-10-18 15:33:06 +01:00
Martin Wimpress
c0f03e6c9c Improve greetings messages 2021-10-18 13:01:18 +01:00
Martin Wimpress
15c1635a15 Add issue template 2021-10-18 13:01:18 +01:00
Martin Wimpress
d403df3e50 Update greetings workflow 2021-10-18 13:01:18 +01:00
Attila Pinter
f33892c62d adding openSUSE MicroOS only 2021-10-18 13:01:04 +01:00
Philipp Kiemle
a421c65351 Github Actions: Add Greeter for 1st Issue and 1st PR 2021-10-18 12:29:51 +01:00
Cat Lee Ball
92adf69847 Add shallow clone flag to install section
Just adding `--depth=1` to the git clone command for folks copy-pasting the install directions. Figured it might save users a few bits of disk and network usage that they might not otherwise think about.
2021-10-18 11:48:18 +01:00
Yannick Mauray
2911835187 Added linuxmint support
quickget supports linuxmint cinnamon 20.2, MATE 20.2, and xfce 20.2
2021-10-18 11:44:23 +01:00
Yannick Mauray
b4b69b8574
Added openSUSE support (#113) 2021-10-16 19:27:45 +01:00
Yannick Mauray
c5cdb44325
Show list of fedora releases (#112) 2021-10-16 19:09:39 +01:00
20 changed files with 7441 additions and 1177 deletions

20
.editorconfig Normal file
View File

@ -0,0 +1,20 @@
root = true
[quickemu]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
[quickget]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false

24
.github/issue_template.md vendored Normal file
View File

@ -0,0 +1,24 @@
#### Expected behaviour
Describe the your expected behaviour.
#### Actual behaviour
Describe the actual behaviour.
#### Steps to reproduce the behaviour
Outline the step to reproduce the issue you've encountered.
#### Quickemu output
Run `quickemu` or `quickget` and paste the output here.
#### Linux Distribution & Kernel
Run the following and paste the output.
```bash
lsb_release --all
uname -a
```

BIN
.github/logo.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 24 KiB

25
.github/workflows/greetings.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: 👋 Greetings
on: [pull_request, issues]
jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
Hello there 👋
Thanks for submitting your first issue to the Quickemu project 🐛 We'll try and take a look at your issue soon ⏲
In the meantime you might want to join the [Wimpys World Discord](https://wimpysworld.io/discord) 🗣 where we have a large community of Linux 🐧 enthusiasts and passionate open source developers 🧑‍💻
You might also be interested in following [Wimpys World Twitch 📡 channel](https://twitch.tv/WimpysWorld) where Wimpy streams let's code video, including this project, several times a week. A back catalog of past live stream and other Linux related content is available on [Wimpys World YouTube 📺 channel](https://youtube.com/WimpysWorld).
pr-message: |
Hello there 👋
Thanks for submitting your first pull request to the Quickemu project 💪 We'll try to review your pull request soon ⏲
In the meantime you might want to join the [Wimpys World Discord](https://wimpysworld.io/discord) 🗣 where we have a large community of Linux 🐧 enthusiasts and passionate open source developers 🧑‍💻
You might also be interested in following [Wimpys World Twitch 📡 channel](https://twitch.tv/WimpysWorld) where Wimpy streams let's code video, including this project, several times a week. A back catalog of past live stream and other Linux related content is available on [Wimpys World YouTube 📺 channel](https://youtube.com/WimpysWorld).

23
.gitignore vendored
View File

@ -1,11 +1,18 @@
*.qcow2 *.chunklist
*.iso
*.conf *.conf
*.sh *.dmg
*.log
*.fd *.fd
*.xml *.img
*.iso
*.lock
*.log
*.msi
*.part
*.permall *.permall
.lock *.pid
SHA* *.ports
sha* *.qcow2
*.sh
*.sock
*.xml
*.zs-old

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "build-docs"]
path = build-docs
url = git@github.com:philclifford/quickemu-docs.git

960
README.md

File diff suppressed because it is too large Load Diff

1
build-docs Submodule

@ -0,0 +1 @@
Subproject commit 5bd40cb6bfbf21493c2cde258d09d0cab9ad3ff8

42
docs/Makefile Normal file
View File

@ -0,0 +1,42 @@
include pandoc-man.mk
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
datarootdir := $(PREFIX)/share
datadir := $(datarootdir)
mandir := $(datarootdir)/man
bindir := $(PREFIX)/bin
all: quickget.1 quickemu.1 quickemu_conf.1
clean:
rm *.1
install_docs: all
install -d $(DESTDIR)$(mandir)/man1
install -m 644 quickget.1 $(DESTDIR)$(mandir)/man1
install -m 644 quickemu.1 $(DESTDIR)$(mandir)/man1
install -m 644 quickemu_conf.1 $(DESTDIR)$(mandir)/man1
# install -m 644 quickgui.1 $(DESTDIR)$(mandir)/man1
install_bins:
install -d $(DESTDIR)$(bindir)
install -m 755 ../quickget $(DESTDIR)$(bindir)
install -m 755 ../quickemu $(DESTDIR)$(bindir)
install -m 755 ../macrecovery $(DESTDIR)$(bindir)
install: install_bins install_docs
uninstall::
rm -f $(DESTDIR)$(mandir)/man1/quickget.1
rm -f $(DESTDIR)$(mandir)/man1/quickemu.1
rm -f $(DESTDIR)$(mandir)/man1/quickemu_conf.1
rm -f $(DESTDIR)$(bindir)/quickget
rm -f $(DESTDIR)$(bindir)/quickemu
rm -f $(DESTDIR)$(bindir)/macrecovery
.PHONY: all

8
docs/pandoc-man.mk Normal file
View File

@ -0,0 +1,8 @@
PANDOC ?= pandoc
MANSECTION ?= 1
MANPAGE.md = $(PANDOC) --standalone $(PANDOCFLAGS) --to man
%.$(MANSECTION): %.$(MANSECTION).md
$(MANPAGE.md) $< -o $@

950
docs/quickemu.1 Normal file
View File

@ -0,0 +1,950 @@
.\" Automatically generated by Pandoc 3.1.1
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "QUICKEMU" "1" "June 14, 2023" "quickemu" "Quickemu User Manual"
.hy
.SH NAME
.PP
quickemu - A quick VM builder and manager
.SH SYNOPSIS
.PP
\f[B]quickemu\f[R] [\f[I]OPTION\f[R]]\&...
.SH DESCRIPTION
.PP
\f[B]quickemu\f[R] will create and run highly optimised desktop virtual
machines for Linux, macOS and Windows
.SH OPTIONS
.TP
\f[B]\[en]vm\f[R]
vm configuration file
.PP
You can also pass optional parameters
.TP
\f[B]\[en]braille\f[R]
Enable braille support.
Requires SDL.
.TP
\f[B]\[en]delete\f[R]
Delete the disk image.
.TP
\f[B]\[en]display\f[R]
Select display backend.
`sdl' (default), `gtk', `none' or `spice'
.TP
\f[B]\[en]fullscreen\f[R]
Starts VM in full screen mode (Ctl+Alt+f to exit)
.TP
\f[B]\[en]ignore-msrs-always\f[R]
Configure KVM to always ignore unhandled machine-specific registers
.TP
\f[B]\[en]screen <screen>\f[R]
Use specified screen to determine the window size.
.TP
\f[B]\[en]shortcut\f[R]
Create a desktop shortcut
.TP
\f[B]\[en]snapshot apply <tag>\f[R]
Apply/restore a snapshot.
.TP
\f[B]\[en]snapshot create <tag>\f[R]
Create a snapshot.
.TP
\f[B]\[en]snapshot delete <tag>\f[R]
Delete a snapshot.
.TP
\f[B]\[en]snapshot info\f[R]
Show disk/snapshot info.
.TP
\f[B]\[en]status-quo\f[R]
Do not commit any changes to disk/snapshot.
.TP
\f[B]\[en]version\f[R]
Print version
.SH EXAMPLES
.TP
\f[B]quickemu \[en]vm ubuntu-mate-22.04.conf\f[R]
Launches the VM specified in the file \f[I]ubuntu-mate-22.04.conf\f[R]
.SS Introduction
.PP
Quickly create and run highly optimised desktop virtual machines for
Linux, macOS and Windows; with just two commands.
You decide what operating system you want to run and Quickemu will
figure out the best way to do it for you.
For example:
.IP
.nf
\f[C]
quickget ubuntu-mate 22.04
quickemu --vm ubuntu-mate-22.04.conf
\f[R]
.fi
.PP
The original objective of the project was to enable quick testing of
Linux distributions where the virtual machine configurations can be
stored anywhere, such as external USB storage or your home directory,
and no elevated permissions are required to run the virtual machines.
\f[B]Quickemu now also includes comprehensive support for macOS and
Windows\f[R].
.SS Features
.IP \[bu] 2
\f[B]macOS\f[R] Monterey, Big Sur, Catalina, Mojave & High Sierra
.IP \[bu] 2
\f[B]Windows\f[R] 10 and 11 including TPM 2.0
.IP \[bu] 2
Ubuntu (https://ubuntu.com/desktop) and all the \f[B]official Ubuntu
flavours (https://ubuntu.com/download/flavours)\f[R]
.IP \[bu] 2
\f[B]Over 360 operating system editions are supported!\f[R]
.IP \[bu] 2
Full SPICE support including host/guest clipboard sharing
.IP \[bu] 2
VirtIO-webdavd file sharing for Linux and Windows guests
.IP \[bu] 2
VirtIO-9p file sharing for Linux and macOS guests
.IP \[bu] 2
QEMU Guest Agent support (https://wiki.qemu.org/Features/GuestAgent);
provides access to a system-level agent via standard QMP commands
.IP \[bu] 2
Samba file sharing for Linux, macOS and Windows guests (\f[I]if
\f[VI]smbd\f[I] is installed on the host\f[R])
.IP \[bu] 2
VirGL acceleration
.IP \[bu] 2
USB device pass-through
.IP \[bu] 2
Smartcard pass-through
.IP \[bu] 2
Automatic SSH port forwarding to guests
.IP \[bu] 2
Network port forwarding
.IP \[bu] 2
Full duplex audio
.IP \[bu] 2
Braille support
.IP \[bu] 2
EFI (with or without SecureBoot) and Legacy BIOS boot
.IP \[bu] 2
Graphical user interfaces available
.PP
Quickemu is a wrapper for the excellent QEMU (https://www.qemu.org/)
that attempts to automatically \f[I]\[lq]do the right thing\[rq]\f[R],
rather than expose exhaustive configuration options.
.PP
We have a Discord for this project:
[IMAGE: Discord (https://img.shields.io/discord/712850672223125565?color=0C306A&label=WimpysWorld%20Discord&logo=Discord&logoColor=ffffff&style=flat-square)] (https://discord.gg/sNmz3uw)
.PP
See this (old) video where I explain some of my motivations for creating
Quickemu.
.PP
[IMAGE: Replace VirtualBox with Bash &
QEMU (https://img.youtube.com/vi/AOTYWEgw0hI/0.jpg)] (https://www.youtube.com/watch?v=AOTYWEgw0hI)
.SS Requirements
.IP \[bu] 2
QEMU (https://www.qemu.org/) (\f[I]6.0.0 or newer\f[R]) \f[B]with GTK,
SDL, SPICE & VirtFS support\f[R]
.IP \[bu] 2
bash (https://www.gnu.org/software/bash/) (\f[I]4.0 or newer\f[R])
.IP \[bu] 2
Coreutils (https://www.gnu.org/software/coreutils/)
.IP \[bu] 2
EDK II (https://github.com/tianocore/edk2)
.IP \[bu] 2
grep (https://www.gnu.org/software/grep/)
.IP \[bu] 2
jq (https://stedolan.github.io/jq/)
.IP \[bu] 2
LSB (https://wiki.linuxfoundation.org/lsb/start)
.IP \[bu] 2
procps (https://gitlab.com/procps-ng/procps)
.IP \[bu] 2
python3 (https://www.python.org/)
.IP \[bu] 2
macrecovery (https://github.com/acidanthera/OpenCorePkg/tree/master/Utilities/macrecovery)
.IP \[bu] 2
mkisofs (http://cdrtools.sourceforge.net/private/cdrecord.html)
.IP \[bu] 2
usbutils (https://github.com/gregkh/usbutils)
.IP \[bu] 2
util-linux (https://github.com/karelzak/util-linux)
.IP \[bu] 2
sed (https://www.gnu.org/software/sed/)
.IP \[bu] 2
socat (http://www.dest-unreach.org/socat/)
.IP \[bu] 2
spicy (https://gitlab.freedesktop.org/spice/spice-gtk)
.IP \[bu] 2
swtpm (https://github.com/stefanberger/swtpm)
.IP \[bu] 2
Wget (https://www.gnu.org/software/wget/)
.IP \[bu] 2
xdg-user-dirs (https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)
.IP \[bu] 2
xrandr (https://gitlab.freedesktop.org/xorg/app/xrandr)
.IP \[bu] 2
zsync (http://zsync.moria.org.uk/)
.IP \[bu] 2
unzip (http://www.info-zip.org/UnZip.html)
.SS Installing Requirements
.PP
For Ubuntu, Arch and nixos systems the
ppa (https://launchpad.net/~flexiondotorg/+archive/ubuntu/quickemu),
AUR (https://aur.archlinux.org/packages/quickemu) or
nix (https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/quickemu)
packaging will take care of the dependencies.
For other host distributions or operating systems it will be necessary
to install the above requirements or their equivalents.
.PP
These examples may save a little typing
.PP
Debian (and direct derivatives such as MX Linux):
.IP
.nf
\f[C]
sudo apt install qemu bash coreutils ovmf grep jq lsb-base procps python3 genisoimage usbutils util-linux sed spice-client-gtk libtss2-tcti-swtpm0 wget xdg-user-dirs zsync unzip
\f[R]
.fi
.PP
Fedora:
.IP
.nf
\f[C]
sudo dnf install qemu bash coreutils edk2-tools grep jq lsb procps python3 genisoimage usbutils util-linux sed spice-gtk-tools swtpm wget xdg-user-dirs xrandr unzip
\f[R]
.fi
.PP
MacOS:
.PP
This is a work in progress (see issue
248 (https://github.com/quickemu-project/quickemu/issues/248) for other
steps and changes that may enable running on MacOS)
.IP
.nf
\f[C]
brew install qemu bash coreutils grep jq python\[at]3.10 cdrtools gnu-sed spice-gtk wget zsync
\f[R]
.fi
.SH Usage
.SS Graphical User Interfaces
.PP
While \f[V]quickemu\f[R] and \f[V]quickget\f[R] are designed for the
terminal, a graphical user interface is also available:
.IP \[bu] 2
\f[B]Quickgui (https://github.com/quickgui/quickgui)\f[R] by Mark
Johnson (https://github.com/marxjohnson) and Yannick
Mauray (https://github.com/ymauray).
.PP
Many thanks to Luke Wesley-Holley (https://github.com/Lukewh) and
Philipp Kiemle (https://github.com/daPhipz) for creating the
\f[B]Quickemu icons (https://github.com/Lukewh/quickemu-icons)\f[R] 🎨
.SS Quickgui for Ubuntu
.IP
.nf
\f[C]
sudo add-apt-repository ppa:yannick-mauray/quickgui
sudo apt update
sudo apt install quickgui
\f[R]
.fi
.SS Ubuntu Guest
.PP
\f[V]quickget\f[R] will automatically download an Ubuntu release and
create the virtual machine configuration.
.IP
.nf
\f[C]
quickget ubuntu 22.04
quickemu --vm ubuntu-22.04.conf
\f[R]
.fi
.IP \[bu] 2
Complete the installation as normal.
.IP \[bu] 2
Post-install:
.RS 2
.IP \[bu] 2
Install the SPICE agent (\f[V]spice-vdagent\f[R]) in the guest to enable
copy/paste and USB redirection
.RS 2
.IP \[bu] 2
\f[V]sudo apt install spice-vdagent\f[R]
.RE
.IP \[bu] 2
Install the SPICE WebDAV agent (\f[V]spice-webdavd\f[R]) in the guest to
enable file sharing.
.RS 2
.IP \[bu] 2
\f[V]sudo apt install spice-webdavd\f[R]
.RE
.RE
.SS Ubuntu devel (daily-live) images
.PP
\f[V]quickget\f[R] can also download/refresh devel images via
\f[V]zsync\f[R] for Ubuntu developers and testers.
.IP
.nf
\f[C]
quickget ubuntu devel
quickemu --vm ubuntu-devel.conf
\f[R]
.fi
.PP
You can run \f[V]quickget ubuntu devel\f[R] to refresh your daily
development image as often as you like, it will even automatically
switch to a new series.
.SS Ubuntu Flavours
.PP
All the official Ubuntu flavours are supported, just replace
\f[V]ubuntu\f[R] with your preferred flavour.
.IP \[bu] 2
\f[V]kubuntu\f[R] (Kubuntu)
.IP \[bu] 2
\f[V]lubuntu\f[R] (Lubuntu)
.IP \[bu] 2
\f[V]ubuntu-budgie\f[R] (Ubuntu Budgie)
.IP \[bu] 2
\f[V]ubuntucinnamon\f[R] (Ubuntu Cinnamon)
.IP \[bu] 2
\f[V]ubuntukylin\f[R] (Ubuntu Kylin)
.IP \[bu] 2
\f[V]ubuntu-mate\f[R] (Ubuntu MATE)
.IP \[bu] 2
\f[V]ubuntu-server\f[R] (Ubuntu Server)
.IP \[bu] 2
\f[V]ubuntustudio\f[R] (Ubuntu Studio)
.IP \[bu] 2
\f[V]ubuntu\f[R] (Ubuntu)
.IP \[bu] 2
\f[V]ubuntu-unity\f[R] (Ubuntu Unity)
.IP \[bu] 2
\f[V]xubuntu\f[R] (Xubuntu)
.SS Other Operating Systems
.PP
\f[V]quickget\f[R] also supports:
.IP \[bu] 2
\f[V]alma\f[R] (Alma Linux)
.IP \[bu] 2
\f[V]alpine\f[R] (Alpine Linux)
.IP \[bu] 2
\f[V]android\f[R] (Android x86)
.IP \[bu] 2
\f[V]archcraft\f[R] (Archcraft)
.IP \[bu] 2
\f[V]archlinux\f[R] (Arch Linux)
.IP \[bu] 2
\f[V]arcolinux\f[R] (Arco Linux)
.IP \[bu] 2
\f[V]batocera\f[R] (Batocera)
.IP \[bu] 2
\f[V]blendos\f[R] (BlendOS)
.IP \[bu] 2
\f[V]cachyos\f[R] (CachyOS)
.IP \[bu] 2
\f[V]centos-stream\f[R] (CentOS Stream)
.IP \[bu] 2
\f[V]debian\f[R] (Debian)
.IP \[bu] 2
\f[V]deepin\f[R] (Deepin)
.IP \[bu] 2
\f[V]devuan\f[R] (Devuan)
.IP \[bu] 2
\f[V]dragonflybsd\f[R] (DragonFlyBSD)
.IP \[bu] 2
\f[V]elementary\f[R] (elementary OS)
.IP \[bu] 2
\f[V]endeavouros\f[R] (EndeavourOS)
.IP \[bu] 2
\f[V]endless\f[R] (Endless OS)
.IP \[bu] 2
\f[V]fedora\f[R] (Fedora)
.IP \[bu] 2
\f[V]freebsd\f[R] (FreeBSD)
.IP \[bu] 2
\f[V]freedos\f[R] (FreeDOS)
.IP \[bu] 2
\f[V]gentoo\f[R] (Gentoo)
.IP \[bu] 2
\f[V]ghostbsd\f[R] (GhostBSD)
.IP \[bu] 2
\f[V]haiku\f[R] (Haiku)
.IP \[bu] 2
\f[V]holoiso\f[R] (HoloISO)
.IP \[bu] 2
\f[V]kali\f[R] (Kali)
.IP \[bu] 2
\f[V]kdeneon\f[R] (KDE Neon)
.IP \[bu] 2
\f[V]kolibrios\f[R] (KolibriOS)
.IP \[bu] 2
\f[V]linuxmint\f[R] (Linux Mint)
.IP \[bu] 2
\f[V]lmde\f[R] (Linux Mint Debian Edition)
.IP \[bu] 2
\f[V]mageia\f[R] (Mageia)
.IP \[bu] 2
\f[V]manjaro\f[R] (Manjaro)
.IP \[bu] 2
\f[V]mxlinux\f[R] (MX Linux)
.IP \[bu] 2
\f[V]netboot\f[R] (netboot.xyz)
.IP \[bu] 2
\f[V]netbsd\f[R] (NetBSD)
.IP \[bu] 2
\f[V]nixos\f[R] (NixOS)
.IP \[bu] 2
\f[V]openbsd\f[R] (OpenBSD)
.IP \[bu] 2
\f[V]openindiana\f[R] (OpenIndiana)
.IP \[bu] 2
\f[V]opensuse\f[R] (openSUSE)
.IP \[bu] 2
\f[V]oraclelinux\f[R] (Oracle Linux)
.IP \[bu] 2
\f[V]popos\f[R] (Pop!_OS)
.IP \[bu] 2
\f[V]reactos\f[R] (ReactOS)
.IP \[bu] 2
\f[V]rebornos\f[R] (RebornOS)
.IP \[bu] 2
\f[V]rockylinux\f[R] (Rocky Linux)
.IP \[bu] 2
\f[V]siduction\f[R] (Siduction)
.IP \[bu] 2
\f[V]slackware\f[R] (Slackware)
.IP \[bu] 2
\f[V]solus\f[R] (Solus)
.IP \[bu] 2
\f[V]tails\f[R] (Tails)
.IP \[bu] 2
\f[V]truenas-core\f[R] (TrueNAS Core)
.IP \[bu] 2
\f[V]truenas-scale\f[R] (TrueNAS Scale)
.IP \[bu] 2
\f[V]vanillaos\f[R] (Vanilla OS)
.IP \[bu] 2
\f[V]void\f[R] (Void Linux)
.IP \[bu] 2
\f[V]vxlinux\f[R] (VX Linux)
.IP \[bu] 2
\f[V]xerolinux\f[R] (XeroLinux)
.IP \[bu] 2
\f[V]zorin\f[R] (Zorin OS)
.PP
Or you can download a Linux image and manually create a VM
configuration.
.IP \[bu] 2
Download a .iso image of a Linux distribution
.IP \[bu] 2
Create a VM configuration file; for example
\f[V]debian-bullseye.conf\f[R]
.IP
.nf
\f[C]
guest_os=\[dq]linux\[dq]
disk_img=\[dq]debian-bullseye/disk.qcow2\[dq]
iso=\[dq]debian-bullseye/firmware-11.0.0-amd64-DVD-1.iso\[dq]
\f[R]
.fi
.IP \[bu] 2
Use \f[V]quickemu\f[R] to start the virtual machine:
.IP
.nf
\f[C]
quickemu --vm debian-bullseye.conf
\f[R]
.fi
.IP \[bu] 2
Complete the installation as normal.
.IP \[bu] 2
Post-install:
.RS 2
.IP \[bu] 2
Install the SPICE agent (\f[V]spice-vdagent\f[R]) in the guest to enable
copy/paste and USB redirection.
.IP \[bu] 2
Install the SPICE WebDAV agent (\f[V]spice-webdavd\f[R]) in the guest to
enable file sharing.
.RE
.SS macOS Guest
.PP
\f[V]quickget\f[R] automatically downloads a macOS recovery image and
creates a virtual machine configuration.
.IP
.nf
\f[C]
quickget macos catalina
quickemu --vm macos-catalina.conf
\f[R]
.fi
.PP
macOS \f[V]high-sierra\f[R], \f[V]mojave\f[R], \f[V]catalina\f[R],
\f[V]big-sur\f[R] and \f[V]monterey\f[R] are supported.
.IP \[bu] 2
Use cursor keys and enter key to select the \f[B]macOS Base System\f[R]
.IP \[bu] 2
From \f[B]macOS Utilities\f[R]
.RS 2
.IP \[bu] 2
Click \f[B]Disk Utility\f[R] and \f[B]Continue\f[R]
.RS 2
.IP \[bu] 2
Select \f[V]QEMU HARDDISK Media\f[R] (\[ti]103.08GB) from the list (on
Big Sur and above use \f[V]Apple Inc. VirtIO Block Device\f[R]) and
click \f[B]Erase\f[R].
.IP \[bu] 2
Enter a \f[V]Name:\f[R] for the disk
.IP \[bu] 2
If you are installing macOS Mojave or later (Catalina, Big Sur, and
Monterey), choose any of the APFS options as the filesystem.
MacOS Extended may not work.
.RE
.IP \[bu] 2
Click \f[B]Erase\f[R].
.IP \[bu] 2
Click \f[B]Done\f[R].
.IP \[bu] 2
Close Disk Utility
.RE
.IP \[bu] 2
From \f[B]macOS Utilities\f[R]
.RS 2
.IP \[bu] 2
Click \f[B]Reinstall macOS\f[R] and \f[B]Continue\f[R]
.RE
.IP \[bu] 2
Complete the installation as you normally would.
.RS 2
.IP \[bu] 2
On the first reboot use cursor keys and enter key to select \f[B]macOS
Installer\f[R]
.IP \[bu] 2
On the subsequent reboots use cursor keys and enter key to select the
disk you named
.RE
.IP \[bu] 2
Once you have finished installing macOS you will be presented with an
the out-of-the-box first-start wizard to configure various options and
set up your username and password
.IP \[bu] 2
OPTIONAL: After you have concluded the out-of-the-box wizard, you may
want to enable the TRIM feature that the computer industry created for
SSD disks.
This feature in our macOS installation will allow QuickEmu to compact
(shrink) your macOS disk image whenever you delete files inside the
Virtual Machine.
Without this step your macOS disk image will only ever get larger and
will not shrink even when you delete lots of data inside macOS.
.RS 2
.IP \[bu] 2
To enable TRIM, open the Terminal application and type the following
command followed by pressing enter to tell macos to use the TRIM command
on the hard disk when files are deleted:
.RE
.IP
.nf
\f[C]
sudo trimforce enable
\f[R]
.fi
.PP
You will be prompted to enter your account\[cq]s password to gain the
privilege needed.
Once you\[cq]ve entered your password and pressed enter the command will
request confirmation in the form of two questions that require you to
type y (for a \[lq]yes\[rq] response) followed by enter to confirm.
If you press enter without first typing y the system will consider that
a negative response as though you said \[lq]no\[rq]:
.IP
.nf
\f[C]
IMPORTANT NOTICE: This tool force-enables TRIM for all relevant attached devices, even though such devices may not have been validated for data integrity while using TRIM. Use of this tool to enable TRIM may result in unintended data loss or data corruption. It should not be used in a commercial operating environment or with important data. Before using this tool, you should back up all of your data and regularly back up data while TRIM is enabled. This tool is provided on an \[dq]as is\[dq] basis. APPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THIS TOOL OR ITS USE ALONE OR IN COMBINATION WITH YOUR DEVICES, SYSTEMS, OR SERVICES. BY USING THIS TOOL TO ENABLE TRIM, YOU AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE TOOL IS AT YOUR SOLE RISK AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND EFFORT IS WITH YOU.
Are you sure you with to proceed (y/N)?
\f[R]
.fi
.PP
And a second confirmation once you\[cq]ve confirmed the previous one:
.IP
.nf
\f[C]
Your system will immediately reboot when this is complete.
Is this OK (y/N)?
\f[R]
.fi
.PP
As the last message states, your system will automatically reboot as
soon as the command completes.
.PP
The default macOS configuration looks like this:
.IP
.nf
\f[C]
guest_os=\[dq]macos\[dq]
img=\[dq]macos-catalina/RecoveryImage.img\[dq]
disk_img=\[dq]macos-catalina/disk.qcow2\[dq]
macos_release=\[dq]catalina\[dq]
\f[R]
.fi
.IP \[bu] 2
\f[V]guest_os=\[dq]macos\[dq]\f[R] instructs Quickemu to optimise for
macOS.
.IP \[bu] 2
\f[V]macos_release=\[dq]catalina\[dq]\f[R] instructs Quickemu to
optimise for a particular macOS release.
.RS 2
.IP \[bu] 2
For example VirtIO Network and Memory Ballooning are available in Big
Sur and newer, but not previous releases.
.IP \[bu] 2
And VirtIO Block Media (disks) are supported/stable in Catalina and
newer.
.RE
.SS macOS compatibility
.PP
There are some considerations when running macOS via Quickemu.
.IP \[bu] 2
Supported macOS releases:
.RS 2
.IP \[bu] 2
High Sierra
.IP \[bu] 2
Mojave
.IP \[bu] 2
Catalina \f[B](Recommended)\f[R]
.IP \[bu] 2
Big Sur
.IP \[bu] 2
Monterey
.RE
.IP \[bu] 2
\f[V]quickemu\f[R] will automatically download the required
OpenCore (https://github.com/acidanthera/OpenCorePkg) bootloader and
OVMF firmware from OSX-KVM (https://github.com/kholia/OSX-KVM).
.IP \[bu] 2
Optimised by default, but no GPU acceleration is available.
.RS 2
.IP \[bu] 2
Host CPU vendor is detected and guest CPU is optimised accordingly.
.IP \[bu] 2
VirtIO Block
Media (https://www.kraxel.org/blog/2019/06/macos-qemu-guest/) is used
for the system disk where supported.
.IP \[bu] 2
VirtIO \f[V]usb-tablet\f[R] (http://philjordan.eu/osx-virt/) is used for
the mouse.
.IP \[bu] 2
VirtIO Network (\f[V]virtio-net\f[R]) is supported and enabled on macOS
Big Sur and newer but previous releases use \f[V]vmxnet3\f[R].
.IP \[bu] 2
VirtIO Memory Ballooning is supported and enabled on macOS Big Sur and
newer but disabled for other support macOS releases.
.RE
.IP \[bu] 2
USB host and SPICE pass-through is:
.RS 2
.IP \[bu] 2
UHCI (USB 2.0) on macOS Catalina and earlier.
.IP \[bu] 2
XHCI (USB 3.0) on macOS Big Sur and newer.
.RE
.IP \[bu] 2
Display resolution can only be changed via macOS System Preferences.
.IP \[bu] 2
\f[B]Full Duplex audio requires VoodooHDA
OC (https://github.com/chris1111/VoodooHDA-OC) or pass-through a USB
audio-device to the macOS guest VM\f[R].
.IP \[bu] 2
NOTE!
Gatekeeper (https://disable-gatekeeper.github.io/) and System Integrity
Protection
(SIP) (https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection)
need to be disabled to install VoodooHDA OC
.IP \[bu] 2
File sharing between guest and host is available via
virtio-9p (https://wiki.qemu.org/Documentation/9psetup) and SPICE
webdavd (https://gitlab.gnome.org/GNOME/phodav/-/merge_requests/24).
.IP \[bu] 2
Copy/paste via SPICE agent is \f[B]not available on macOS\f[R].
.SS macOS App Store
.PP
If you see \f[I]\[lq]Your device or computer could not be
verified\[rq]\f[R] when you try to login to the App Store, make sure
that your wired ethernet device is \f[V]en0\f[R].
Use \f[V]ifconfig\f[R] in a terminal to verify this.
.PP
If the wired ethernet device is not \f[V]en0\f[R], then then go to
\f[I]System Preferences\f[R] -> \f[I]Network\f[R], delete all the
network devices and apply the changes.
Next, open a terminal and run the following:
.IP
.nf
\f[C]
sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
\f[R]
.fi
.PP
Now reboot, and the App Store should work.
.SS Windows 10 & 11 Guests
.PP
\f[V]quickget\f[R] can download
Windows10 (https://www.microsoft.com/software-download/windows10) and
Windows 11 (https://www.microsoft.com/software-download/windows11)
automatically and create an optimised virtual machine configuration.
This configuration also includes the VirtIO drivers for
Windows (https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/).
.IP
.nf
\f[C]
quickget windows 11
quickemu --vm windows-11-22H2.conf
\f[R]
.fi
.IP \[bu] 2
Complete the installation as you normally would.
.IP \[bu] 2
All relevant drivers and services should be installed automatically.
.IP \[bu] 2
A local adminstrator user account is automatically created, with these
credentials:
.RS 2
.IP \[bu] 2
Username: \f[V]Quickemu\f[R]
.IP \[bu] 2
Password: \f[V]quickemu\f[R]
.RE
.PP
The default Windows 11 configuration looks like this:
.IP
.nf
\f[C]
guest_os=\[dq]windows\[dq]
disk_img=\[dq]windows-11/disk.qcow2\[dq]
iso=\[dq]windows-11/windows-11.iso\[dq]
fixed_iso=\[dq]windows-11/virtio-win.iso\[dq]
tpm=\[dq]on\[dq]
secureboot=\[dq]on\[dq]
\f[R]
.fi
.IP \[bu] 2
\f[V]guest_os=\[dq]windows\[dq]\f[R] instructs \f[V]quickemu\f[R] to
optimise for Windows.
.IP \[bu] 2
\f[V]fixed_iso=\f[R] specifies the ISO image that provides VirtIO
drivers.
.IP \[bu] 2
\f[V]tpm=\[dq]on\[dq]\f[R] instructs \f[V]quickemu\f[R] to create a
software emulated TPM device using \f[V]swtpm\f[R].
.SH All the options
.PP
Here are the usage instructions:
.IP
.nf
\f[C]
Usage
quickemu --vm ubuntu.conf
You can also pass optional parameters
--braille : Enable braille support. Requires SDL.
--delete-disk : Delete the disk image and EFI variables
--delete-vm : Delete the entire VM and it\[aq]s configuration
--display : Select display backend. \[aq]sdl\[aq] (default), \[aq]gtk\[aq], \[aq]none\[aq], \[aq]spice\[aq] or \[aq]spice-app\[aq]
--fullscreen : Starts VM in full screen mode (Ctl+Alt+f to exit)
--ignore-msrs-always : Configure KVM to always ignore unhandled machine-specific registers
--screen <screen> : Use specified screen to determine the window size.
--screenpct <percent> : Percent of fullscreen for VM if --fullscreen is not specified.
--shortcut : Create a desktop shortcut
--snapshot apply <tag> : Apply/restore a snapshot.
--snapshot create <tag> : Create a snapshot.
--snapshot delete <tag> : Delete a snapshot.
--snapshot info : Show disk/snapshot info.
--status-quo : Do not commit any changes to disk/snapshot.
--viewer <viewer> : Choose an alternative viewer. \[at]Options: \[aq]spicy\[aq] (default), \[aq]remote-viewer\[aq], \[aq]none\[aq]
--ssh-port <port> : Set ssh-port manually
--spice-port <port> : Set spice-port manually
--public-dir <path> : expose share directory. \[at]Options: \[aq]\[aq] (default: xdg-user-dir PUBLICSHARE), \[aq]<directory>\[aq], \[aq]none\[aq]
--monitor <type> : Set monitor connection type. \[at]Options: \[aq]socket\[aq] (default), \[aq]telnet\[aq], \[aq]none\[aq]
--monitor-telnet-host <ip/host> : Set telnet host for monitor. (default: \[aq]localhost\[aq])
--monitor-telnet-port <port> : Set telnet port for monitor. (default: \[aq]4440\[aq])
--monitor-cmd <cmd> : Send command to monitor if available. (Example: system_powerdown)
--serial <type> : Set serial connection type. \[at]Options: \[aq]socket\[aq] (default), \[aq]telnet\[aq], \[aq]none\[aq]
--serial-telnet-host <ip/host> : Set telnet host for serial. (default: \[aq]localhost\[aq])
--serial-telnet-port <port> : Set telnet port for serial. (default: \[aq]6660\[aq])
--keyboard <type> : Set keyboard. \[at]Options: \[aq]usb\[aq] (default), \[aq]ps2\[aq], \[aq]virtio\[aq]
--keyboard_layout <layout> : Set keyboard layout.
--mouse <type> : Set mouse. \[at]Options: \[aq]tablet\[aq] (default), \[aq]ps2\[aq], \[aq]usb\[aq], \[aq]virtio\[aq]
--usb-controller <type> : Set usb-controller. \[at]Options: \[aq]ehci\[aq] (default), \[aq]xhci\[aq], \[aq]none\[aq]
--extra_args <arguments> : Pass additional arguments to qemu
--version : Print version
\f[R]
.fi
.SS Desktop shortcuts
.PP
Desktop shortcuts can be created for a VM, the shortcuts are saved in
\f[V]\[ti]/.local/share/applications\f[R].
Here is an example of how to create a shortcut.
.IP
.nf
\f[C]
quickemu --vm ubuntu-22.04-desktop.conf --shortcut
\f[R]
.fi
.SS Screen and window size (Linux guests only)
.PP
\f[V]qemu\f[R] will always default to the primary monitor to display the
VM\[cq]s window.
.PP
Without the \f[V]--screen\f[R] option, \f[V]quickemu\f[R] will look for
the size of the smallest monitor, and use a size that fits on said
monitor.
.PP
The \f[V]--screen\f[R] option forces \f[V]quickemu\f[R] to use the size
of the given monitor to compute the size of the window.
\f[B]It won\[cq]t use that monitor to display the VM\[cq]s window if
it\[cq]s not the primary monitor\f[R].
This is useful if the primary monitor if not the smallest one, and if
the VM\[cq]s window doesn\[cq]t need to be moved around.
.PP
The \f[V]--screen\f[R] option is also useful with the
\f[V]--fullscreen\f[R] option, again because \f[V]qemu\f[R] will always
use the primary monitor.
In order for the fullscreen mode to work properly, the resolution of the
VM\[cq]s window must match the resolution of the screen.
.PP
To know which screen to use, type:
.IP
.nf
\f[C]
xrandr --listmonitors | grep -v Monitors
\f[R]
.fi
.PP
The command will output something like this:
.IP
.nf
\f[C]
0: +*HDMI-0 2560/597x1440/336+1920+0 HDMI-0
1: +DVI-D-0 1920/527x1080/296+0+0 DVI-D-0
\f[R]
.fi
.PP
The first number is what needs to be passed to the \f[V]--screen\f[R]
option.
.PP
For example:
.IP
.nf
\f[C]
quickemu --vm vm.conf --screen 0
\f[R]
.fi
.PP
The above uses the 2560x1440 screen to compute the size of the window,
which Quickemu sizes to 2048x1152.
Without the \f[V]--screen\f[R] option, Quickemu would have used the
1920x1080 monitor which results in a window size of 1664x936.
.PP
The `\[en]screenpct' is an optional interger value between 25 <= pct <
100 which will override system default screen sizes.
The VM size will be `pct' of the chosen screen.
\f[B]If \[en]fullscreen is chosen screen will be fullsize instead of
being scaled down by \[en]screenpct value.\f[R]
.SH References
.PP
Useful reference that assisted the development of Quickemu.
.IP \[bu] 2
General
.RS 2
.IP \[bu] 2
QEMU\[cq]s documentation! (https://qemu.readthedocs.io/en/latest/)
.IP \[bu] 2
<https://pve.proxmox.com/wiki/Qemu/KVM_Virtual_Machines>
.IP \[bu] 2
<https://www.kraxel.org/blog/2020/01/qemu-sound-audiodev/>
.RE
.IP \[bu] 2
macOS
.RS 2
.IP \[bu] 2
<https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/>
.IP \[bu] 2
<https://passthroughpo.st/mac-os-adds-early-support-for-virtio-qemu/>
.IP \[bu] 2
<https://github.com/kholia/OSX-KVM>
.IP \[bu] 2
<https://github.com/thenickdude/KVM-Opencore>
.IP \[bu] 2
<https://github.com/acidanthera/OpenCorePkg/tree/master/Utilities/macrecovery>
.IP \[bu] 2
<https://www.kraxel.org/blog/2017/09/running-macos-as-guest-in-kvm/>
.IP \[bu] 2
<https://www.nicksherlock.com/2017/10/passthrough-of-advanced-cpu-features-for-macos-high-sierra-guests/>
.IP \[bu] 2
<http://philjordan.eu/osx-virt/>
.IP \[bu] 2
<https://github.com/Dids/clover-builder>
.IP \[bu] 2
OpenCore Configurator (https://mackie100projects.altervista.org)
.RE
.IP \[bu] 2
Windows
.RS 2
.IP \[bu] 2
<https://www.heiko-sieger.info/running-windows-10-on-linux-using-kvm-with-vga-passthrough/>
.IP \[bu] 2
<https://leduccc.medium.com/improving-the-performance-of-a-windows-10-guest-on-qemu-a5b3f54d9cf5>
.IP \[bu] 2
<https://frontpagelinux.com/tutorials/how-to-use-linux-kvm-to-optimize-your-windows-10-virtual-machine/>
.IP \[bu] 2
<https://turlucode.com/qemu-command-line-args/>
.IP \[bu] 2
<https://github.com/pbatard/Fido>
.IP \[bu] 2
<https://www.catapultsystems.com/blogs/create-zero-touch-windows-10-iso/>
.RE
.IP \[bu] 2
TPM
.RS 2
.IP \[bu] 2
<https://qemu-project.gitlab.io/qemu/specs/tpm.html>
.IP \[bu] 2
<https://www.tecklyfe.com/how-to-create-a-windows-11-virtual-machine-in-qemu/>
.RE
.IP \[bu] 2
9p & virtiofs
.RS 2
.IP \[bu] 2
<https://wiki.qemu.org/Documentation/9p>
.IP \[bu] 2
<https://wiki.qemu.org/Documentation/9psetup>
.IP \[bu] 2
<https://www.kraxel.org/blog/2019/06/macos-qemu-guest/>
.IP \[bu] 2
<https://superuser.com/questions/628169/how-to-share-a-directory-with-the-host-without-networking-in-qemu>
.IP \[bu] 2
<https://virtio-fs.gitlab.io/>
.RE
.SH AUTHORS
.PP
Written by Martin Wimpress.
.SH BUGS
.PP
Submit bug reports online at:
<https://github.com/quickemu-project/quickemu/issues>
.SH SEE ALSO
.PP
Full sources at: <https://github.com/quickemu-project/quickemu>
.PP
quickemu_conf(1), quickget(1), quickgui(1)
.SH AUTHORS
Martin Wimpress.

681
docs/quickemu.1.md Normal file
View File

@ -0,0 +1,681 @@
---
author: Martin Wimpress
date: June 14, 2023
footer: quickemu
header: Quickemu User Manual
section: 1
title: QUICKEMU
---
# NAME
quickemu - A quick VM builder and manager
# SYNOPSIS
**quickemu** \[*OPTION*\]...
# DESCRIPTION
**quickemu** will create and run highly optimised desktop virtual
machines for Linux, macOS and Windows
# OPTIONS
**--vm**
: vm configuration file
You can also pass optional parameters
**--braille**
: Enable braille support. Requires SDL.
**--delete**
: Delete the disk image.
**--display**
: Select display backend. 'sdl' (default), 'gtk', 'none' or 'spice'
**--fullscreen**
: Starts VM in full screen mode (Ctl+Alt+f to exit)
**--ignore-msrs-always**
: Configure KVM to always ignore unhandled machine-specific registers
**--screen \<screen\>**
: Use specified screen to determine the window size.
**--shortcut**
: Create a desktop shortcut
**--snapshot apply \<tag\>**
: Apply/restore a snapshot.
**--snapshot create \<tag\>**
: Create a snapshot.
**--snapshot delete \<tag\>**
: Delete a snapshot.
**--snapshot info**
: Show disk/snapshot info.
**--status-quo**
: Do not commit any changes to disk/snapshot.
**--version**
: Print version
# EXAMPLES
**quickemu --vm ubuntu-mate-22.04.conf**
: Launches the VM specified in the file *ubuntu-mate-22.04.conf*
## Introduction
Quickly create and run highly optimised desktop virtual machines for
Linux, macOS and Windows; with just two commands. You decide what
operating system you want to run and Quickemu will figure out the best
way to do it for you. For example:
``` bash
quickget ubuntu-mate 22.04
quickemu --vm ubuntu-mate-22.04.conf
```
The original objective of the project was to enable quick testing of
Linux distributions where the virtual machine configurations can be
stored anywhere, such as external USB storage or your home directory,
and no elevated permissions are required to run the virtual machines.
**Quickemu now also includes comprehensive support for macOS and
Windows**.
## Features
- **macOS** Monterey, Big Sur, Catalina, Mojave & High Sierra
- **Windows** 10 and 11 including TPM 2.0
- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu
flavours](https://ubuntu.com/download/flavours)**
- **Over 360 operating system editions are supported!**
- 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
- [QEMU Guest Agent
support](https://wiki.qemu.org/Features/GuestAgent); provides access
to a system-level agent via standard QMP commands
- Samba file sharing for Linux, macOS and Windows guests (*if `smbd`
is installed on the host*)
- VirGL acceleration
- USB device pass-through
- Smartcard pass-through
- Automatic SSH port forwarding to guests
- Network port forwarding
- Full duplex audio
- Braille support
- EFI (with or without SecureBoot) and Legacy BIOS boot
- Graphical user interfaces available
Quickemu is a wrapper for the excellent [QEMU](https://www.qemu.org/)
that attempts to automatically *"do the right thing"*, rather than
expose exhaustive configuration options.
We have a Discord for this project:
[![Discord](https://img.shields.io/discord/712850672223125565?color=0C306A&label=WimpysWorld%20Discord&logo=Discord&logoColor=ffffff&style=flat-square)](https://discord.gg/sNmz3uw)
See this (old) video where I explain some of my motivations for creating
Quickemu.
[![Replace VirtualBox with Bash &
QEMU](https://img.youtube.com/vi/AOTYWEgw0hI/0.jpg)](https://www.youtube.com/watch?v=AOTYWEgw0hI)
## Requirements
- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL,
SPICE & VirtFS support**
- [bash](https://www.gnu.org/software/bash/) (*4.0 or newer*)
- [Coreutils](https://www.gnu.org/software/coreutils/)
- [EDK II](https://github.com/tianocore/edk2)
- [grep](https://www.gnu.org/software/grep/)
- [jq](https://stedolan.github.io/jq/)
- [LSB](https://wiki.linuxfoundation.org/lsb/start)
- [procps](https://gitlab.com/procps-ng/procps)
- [python3](https://www.python.org/)
- [macrecovery](https://github.com/acidanthera/OpenCorePkg/tree/master/Utilities/macrecovery)
- [mkisofs](http://cdrtools.sourceforge.net/private/cdrecord.html)
- [usbutils](https://github.com/gregkh/usbutils)
- [util-linux](https://github.com/karelzak/util-linux)
- [sed](https://www.gnu.org/software/sed/)
- [socat](http://www.dest-unreach.org/socat/)
- [spicy](https://gitlab.freedesktop.org/spice/spice-gtk)
- [swtpm](https://github.com/stefanberger/swtpm)
- [Wget](https://www.gnu.org/software/wget/)
- [xdg-user-dirs](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)
- [xrandr](https://gitlab.freedesktop.org/xorg/app/xrandr)
- [zsync](http://zsync.moria.org.uk/)
- [unzip](http://www.info-zip.org/UnZip.html)
### Installing Requirements
For Ubuntu, Arch and nixos systems the
[ppa](https://launchpad.net/~flexiondotorg/+archive/ubuntu/quickemu),
[AUR](https://aur.archlinux.org/packages/quickemu) or
[nix](https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/quickemu)
packaging will take care of the dependencies. For other host
distributions or operating systems it will be necessary to install the
above requirements or their equivalents.
These examples may save a little typing
Debian (and direct derivatives such as MX Linux):
sudo apt install qemu bash coreutils ovmf grep jq lsb-base procps python3 genisoimage usbutils util-linux sed spice-client-gtk libtss2-tcti-swtpm0 wget xdg-user-dirs zsync unzip
Fedora:
sudo dnf install qemu bash coreutils edk2-tools grep jq lsb procps python3 genisoimage usbutils util-linux sed spice-gtk-tools swtpm wget xdg-user-dirs xrandr unzip
MacOS:
This is a work in progress (see [issue
248](https://github.com/quickemu-project/quickemu/issues/248) for other
steps and changes that may enable running on MacOS)
brew install qemu bash coreutils grep jq python@3.10 cdrtools gnu-sed spice-gtk wget zsync
# Usage
## Graphical User Interfaces
While `quickemu` and `quickget` are designed for the terminal, a
graphical user interface is also available:
- **[Quickgui](https://github.com/quickgui/quickgui)** by [Mark
Johnson](https://github.com/marxjohnson) and [Yannick
Mauray](https://github.com/ymauray).
Many thanks to [Luke Wesley-Holley](https://github.com/Lukewh) and
[Philipp Kiemle](https://github.com/daPhipz) for creating the
**[Quickemu icons](https://github.com/Lukewh/quickemu-icons)** 🎨
### Quickgui for Ubuntu
``` bash
sudo add-apt-repository ppa:yannick-mauray/quickgui
sudo apt update
sudo apt install quickgui
```
## Ubuntu Guest
`quickget` will automatically download an Ubuntu release and create the
virtual machine configuration.
``` bash
quickget ubuntu 22.04
quickemu --vm ubuntu-22.04.conf
```
- Complete the installation as normal.
- Post-install:
- Install the SPICE agent (`spice-vdagent`) in the guest to enable
copy/paste and USB redirection
- `sudo apt install spice-vdagent`
- Install the SPICE WebDAV agent (`spice-webdavd`) in the guest to
enable file sharing.
- `sudo apt install spice-webdavd`
### Ubuntu devel (daily-live) images
`quickget` can also download/refresh devel images via `zsync` for Ubuntu
developers and testers.
``` bash
quickget ubuntu devel
quickemu --vm ubuntu-devel.conf
```
You can run `quickget ubuntu devel` to refresh your daily development
image as often as you like, it will even automatically switch to a new
series.
### Ubuntu Flavours
All the official Ubuntu flavours are supported, just replace `ubuntu`
with your preferred flavour.
- `kubuntu` (Kubuntu)
- `lubuntu` (Lubuntu)
- `ubuntu-budgie` (Ubuntu Budgie)
- `ubuntucinnamon` (Ubuntu Cinnamon)
- `ubuntukylin` (Ubuntu Kylin)
- `ubuntu-mate` (Ubuntu MATE)
- `ubuntu-server` (Ubuntu Server)
- `ubuntustudio` (Ubuntu Studio)
- `ubuntu` (Ubuntu)
- `ubuntu-unity` (Ubuntu Unity)
- `xubuntu` (Xubuntu)
## Other Operating Systems
`quickget` also supports:
- `alma` (Alma Linux)
- `alpine` (Alpine Linux)
- `android` (Android x86)
- `archcraft` (Archcraft)
- `archlinux` (Arch Linux)
- `arcolinux` (Arco Linux)
- `batocera` (Batocera)
- `blendos` (BlendOS)
- `cachyos` (CachyOS)
- `centos-stream` (CentOS Stream)
- `debian` (Debian)
- `deepin` (Deepin)
- `devuan` (Devuan)
- `dragonflybsd` (DragonFlyBSD)
- `elementary` (elementary OS)
- `endeavouros` (EndeavourOS)
- `endless` (Endless OS)
- `fedora` (Fedora)
- `freebsd` (FreeBSD)
- `freedos` (FreeDOS)
- `gentoo` (Gentoo)
- `ghostbsd` (GhostBSD)
- `haiku` (Haiku)
- `holoiso` (HoloISO)
- `kali` (Kali)
- `kdeneon` (KDE Neon)
- `kolibrios` (KolibriOS)
- `linuxmint` (Linux Mint)
- `lmde` (Linux Mint Debian Edition)
- `mageia` (Mageia)
- `manjaro` (Manjaro)
- `mxlinux` (MX Linux)
- `netboot` (netboot.xyz)
- `netbsd` (NetBSD)
- `nixos` (NixOS)
- `openbsd` (OpenBSD)
- `openindiana` (OpenIndiana)
- `opensuse` (openSUSE)
- `oraclelinux` (Oracle Linux)
- `popos` (Pop!\_OS)
- `reactos` (ReactOS)
- `rebornos` (RebornOS)
- `rockylinux` (Rocky Linux)
- `siduction` (Siduction)
- `slackware` (Slackware)
- `solus` (Solus)
- `tails` (Tails)
- `truenas-core` (TrueNAS Core)
- `truenas-scale` (TrueNAS Scale)
- `vanillaos` (Vanilla OS)
- `void` (Void Linux)
- `vxlinux` (VX Linux)
- `xerolinux` (XeroLinux)
- `zorin` (Zorin OS)
Or you can download a Linux image and manually create a VM
configuration.
- Download a .iso image of a Linux distribution
- Create a VM configuration file; for example `debian-bullseye.conf`
``` bash
guest_os="linux"
disk_img="debian-bullseye/disk.qcow2"
iso="debian-bullseye/firmware-11.0.0-amd64-DVD-1.iso"
```
- Use `quickemu` to start the virtual machine:
``` bash
quickemu --vm debian-bullseye.conf
```
- Complete the installation as normal.
- Post-install:
- Install the SPICE agent (`spice-vdagent`) in the guest to enable
copy/paste and USB redirection.
- Install the SPICE WebDAV agent (`spice-webdavd`) in the guest to
enable file sharing.
## macOS Guest
`quickget` automatically downloads a macOS recovery image and creates a
virtual machine configuration.
``` bash
quickget macos catalina
quickemu --vm macos-catalina.conf
```
macOS `high-sierra`, `mojave`, `catalina`, `big-sur` and `monterey` are
supported.
- Use cursor keys and enter key to select the **macOS Base System**
- From **macOS Utilities**
- Click **Disk Utility** and **Continue**
- Select `QEMU HARDDISK Media` (\~103.08GB) from the list (on
Big Sur and above use `Apple Inc. VirtIO Block Device`) and
click **Erase**.
- Enter a `Name:` for the disk
- If you are installing macOS Mojave or later (Catalina, Big
Sur, and Monterey), choose any of the APFS options as the
filesystem. MacOS Extended may not work.
- Click **Erase**.
- Click **Done**.
- Close Disk Utility
- From **macOS Utilities**
- Click **Reinstall macOS** and **Continue**
- Complete the installation as you normally would.
- On the first reboot use cursor keys and enter key to select
**macOS Installer**
- On the subsequent reboots use cursor keys and enter key to
select the disk you named
- Once you have finished installing macOS you will be presented with
an the out-of-the-box first-start wizard to configure various
options and set up your username and password
- OPTIONAL: After you have concluded the out-of-the-box wizard, you
may want to enable the TRIM feature that the computer industry
created for SSD disks. This feature in our macOS installation will
allow QuickEmu to compact (shrink) your macOS disk image whenever
you delete files inside the Virtual Machine. Without this step your
macOS disk image will only ever get larger and will not shrink even
when you delete lots of data inside macOS.
- To enable TRIM, open the Terminal application and type the
following command followed by pressing
`<kbd>`{=html}enter`</kbd>`{=html} to tell macos to use the TRIM
command on the hard disk when files are deleted:
``` bash
sudo trimforce enable
```
You will be prompted to enter your account's password to gain the
privilege needed. Once you've entered your password and pressed
`<kbd>`{=html}enter`</kbd>`{=html} the command will request confirmation
in the form of two questions that require you to type
`<kbd>`{=html}y`</kbd>`{=html} (for a "yes" response) followed by
`<kbd>`{=html}enter`</kbd>`{=html} to confirm. If you press
`<kbd>`{=html}enter`</kbd>`{=html} without first typing
`<kbd>`{=html}y`</kbd>`{=html} the system will consider that a negative
response as though you said "no":
``` plain
IMPORTANT NOTICE: This tool force-enables TRIM for all relevant attached devices, even though such devices may not have been validated for data integrity while using TRIM. Use of this tool to enable TRIM may result in unintended data loss or data corruption. It should not be used in a commercial operating environment or with important data. Before using this tool, you should back up all of your data and regularly back up data while TRIM is enabled. This tool is provided on an "as is" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THIS TOOL OR ITS USE ALONE OR IN COMBINATION WITH YOUR DEVICES, SYSTEMS, OR SERVICES. BY USING THIS TOOL TO ENABLE TRIM, YOU AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE TOOL IS AT YOUR SOLE RISK AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND EFFORT IS WITH YOU.
Are you sure you with to proceed (y/N)?
```
And a second confirmation once you've confirmed the previous one:
``` plain
Your system will immediately reboot when this is complete.
Is this OK (y/N)?
```
As the last message states, your system will automatically reboot as
soon as the command completes.
The default macOS configuration looks like this:
``` bash
guest_os="macos"
img="macos-catalina/RecoveryImage.img"
disk_img="macos-catalina/disk.qcow2"
macos_release="catalina"
```
- `guest_os="macos"` instructs Quickemu to optimise for macOS.
- `macos_release="catalina"` instructs Quickemu to optimise for a
particular macOS release.
- For example VirtIO Network and Memory Ballooning are available
in Big Sur and newer, but not previous releases.
- And VirtIO Block Media (disks) are supported/stable in Catalina
and newer.
### macOS compatibility
There are some considerations when running macOS via Quickemu.
- Supported macOS releases:
- High Sierra
- Mojave
- Catalina **(Recommended)**
- Big Sur
- Monterey
- `quickemu` will automatically download the required
[OpenCore](https://github.com/acidanthera/OpenCorePkg) bootloader
and OVMF firmware from [OSX-KVM](https://github.com/kholia/OSX-KVM).
- Optimised by default, but no GPU acceleration is available.
- Host CPU vendor is detected and guest CPU is optimised
accordingly.
- [VirtIO Block
Media](https://www.kraxel.org/blog/2019/06/macos-qemu-guest/) is
used for the system disk where supported.
- [VirtIO `usb-tablet`](http://philjordan.eu/osx-virt/) is used
for the mouse.
- VirtIO Network (`virtio-net`) is supported and enabled on macOS
Big Sur and newer but previous releases use `vmxnet3`.
- VirtIO Memory Ballooning is supported and enabled on macOS Big
Sur and newer but disabled for other support macOS releases.
- USB host and SPICE pass-through is:
- UHCI (USB 2.0) on macOS Catalina and earlier.
- XHCI (USB 3.0) on macOS Big Sur and newer.
- Display resolution can only be changed via macOS System Preferences.
- **Full Duplex audio requires [VoodooHDA
OC](https://github.com/chris1111/VoodooHDA-OC) or pass-through a USB
audio-device to the macOS guest VM**.
- NOTE! [Gatekeeper](https://disable-gatekeeper.github.io/) and
[System Integrity Protection
(SIP)](https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection)
need to be disabled to install VoodooHDA OC
- File sharing between guest and host is available via
[virtio-9p](https://wiki.qemu.org/Documentation/9psetup) and [SPICE
webdavd](https://gitlab.gnome.org/GNOME/phodav/-/merge_requests/24).
- Copy/paste via SPICE agent is **not available on macOS**.
### macOS App Store
If you see *"Your device or computer could not be verified"* when you
try to login to the App Store, make sure that your wired ethernet device
is `en0`. Use `ifconfig` in a terminal to verify this.
If the wired ethernet device is not `en0`, then then go to *System
Preferences* -\> *Network*, delete all the network devices and apply the
changes. Next, open a terminal and run the following:
``` bash
sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
```
Now reboot, and the App Store should work.
## Windows 10 & 11 Guests
`quickget` can download
[Windows10](https://www.microsoft.com/software-download/windows10) and
[Windows 11](https://www.microsoft.com/software-download/windows11)
automatically and create an optimised virtual machine configuration.
This configuration also includes the [VirtIO drivers for
Windows](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/).
``` bash
quickget windows 11
quickemu --vm windows-11-22H2.conf
```
- Complete the installation as you normally would.
- All relevant drivers and services should be installed automatically.
- A local adminstrator user account is automatically created, with
these credentials:
- Username: `Quickemu`
- Password: `quickemu`
The default Windows 11 configuration looks like this:
``` bash
guest_os="windows"
disk_img="windows-11/disk.qcow2"
iso="windows-11/windows-11.iso"
fixed_iso="windows-11/virtio-win.iso"
tpm="on"
secureboot="on"
```
- `guest_os="windows"` instructs `quickemu` to optimise for Windows.
- `fixed_iso=` specifies the ISO image that provides VirtIO drivers.
- `tpm="on"` instructs `quickemu` to create a software emulated TPM
device using `swtpm`.
# All the options
Here are the usage instructions:
Usage
quickemu --vm ubuntu.conf
You can also pass optional parameters
--braille : Enable braille support. Requires SDL.
--delete-disk : Delete the disk image and EFI variables
--delete-vm : Delete the entire VM and it's configuration
--display : Select display backend. 'sdl' (default), 'gtk', 'none', 'spice' or 'spice-app'
--fullscreen : Starts VM in full screen mode (Ctl+Alt+f to exit)
--ignore-msrs-always : Configure KVM to always ignore unhandled machine-specific registers
--screen <screen> : Use specified screen to determine the window size.
--screenpct <percent> : Percent of fullscreen for VM if --fullscreen is not specified.
--shortcut : Create a desktop shortcut
--snapshot apply <tag> : Apply/restore a snapshot.
--snapshot create <tag> : Create a snapshot.
--snapshot delete <tag> : Delete a snapshot.
--snapshot info : Show disk/snapshot info.
--status-quo : Do not commit any changes to disk/snapshot.
--viewer <viewer> : Choose an alternative viewer. @Options: 'spicy' (default), 'remote-viewer', 'none'
--ssh-port <port> : Set ssh-port manually
--spice-port <port> : Set spice-port manually
--public-dir <path> : expose share directory. @Options: '' (default: xdg-user-dir PUBLICSHARE), '<directory>', 'none'
--monitor <type> : Set monitor connection type. @Options: 'socket' (default), 'telnet', 'none'
--monitor-telnet-host <ip/host> : Set telnet host for monitor. (default: 'localhost')
--monitor-telnet-port <port> : Set telnet port for monitor. (default: '4440')
--monitor-cmd <cmd> : Send command to monitor if available. (Example: system_powerdown)
--serial <type> : Set serial connection type. @Options: 'socket' (default), 'telnet', 'none'
--serial-telnet-host <ip/host> : Set telnet host for serial. (default: 'localhost')
--serial-telnet-port <port> : Set telnet port for serial. (default: '6660')
--keyboard <type> : Set keyboard. @Options: 'usb' (default), 'ps2', 'virtio'
--keyboard_layout <layout> : Set keyboard layout.
--mouse <type> : Set mouse. @Options: 'tablet' (default), 'ps2', 'usb', 'virtio'
--usb-controller <type> : Set usb-controller. @Options: 'ehci' (default), 'xhci', 'none'
--extra_args <arguments> : Pass additional arguments to qemu
--version : Print version
## Desktop shortcuts
Desktop shortcuts can be created for a VM, the shortcuts are saved in
`~/.local/share/applications`. Here is an example of how to create a
shortcut.
``` bash
quickemu --vm ubuntu-22.04-desktop.conf --shortcut
```
## Screen and window size (Linux guests only)
`qemu` will always default to the primary monitor to display the VM's
window.
Without the `--screen` option, `quickemu` will look for the size of the
smallest monitor, and use a size that fits on said monitor.
The `--screen` option forces `quickemu` to use the size of the given
monitor to compute the size of the window. **It won't use that monitor
to display the VM's window if it's not the primary monitor**. This is
useful if the primary monitor if not the smallest one, and if the VM's
window doesn't need to be moved around.
The `--screen` option is also useful with the `--fullscreen` option,
again because `qemu` will always use the primary monitor. In order for
the fullscreen mode to work properly, the resolution of the VM's window
must match the resolution of the screen.
To know which screen to use, type:
``` bash
xrandr --listmonitors | grep -v Monitors
```
The command will output something like this:
``` bash
0: +*HDMI-0 2560/597x1440/336+1920+0 HDMI-0
1: +DVI-D-0 1920/527x1080/296+0+0 DVI-D-0
```
The first number is what needs to be passed to the `--screen` option.
For example:
``` bash
quickemu --vm vm.conf --screen 0
```
The above uses the 2560x1440 screen to compute the size of the window,
which Quickemu sizes to 2048x1152. Without the `--screen` option,
Quickemu would have used the 1920x1080 monitor which results in a window
size of 1664x936.
The '--screenpct' is an optional interger value between 25 \<= pct \<
100 which will override system default screen sizes. The VM size will be
'pct' of the chosen screen. **If --fullscreen is chosen screen will be
fullsize instead of being scaled down by --screenpct value.**
# References
Useful reference that assisted the development of Quickemu.
- General
- [QEMU's documentation!](https://qemu.readthedocs.io/en/latest/)
- <https://pve.proxmox.com/wiki/Qemu/KVM_Virtual_Machines>
- <https://www.kraxel.org/blog/2020/01/qemu-sound-audiodev/>
- macOS
- <https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/>
- <https://passthroughpo.st/mac-os-adds-early-support-for-virtio-qemu/>
- <https://github.com/kholia/OSX-KVM>
- <https://github.com/thenickdude/KVM-Opencore>
- <https://github.com/acidanthera/OpenCorePkg/tree/master/Utilities/macrecovery>
- <https://www.kraxel.org/blog/2017/09/running-macos-as-guest-in-kvm/>
- <https://www.nicksherlock.com/2017/10/passthrough-of-advanced-cpu-features-for-macos-high-sierra-guests/>
- <http://philjordan.eu/osx-virt/>
- <https://github.com/Dids/clover-builder>
- [OpenCore
Configurator](https://mackie100projects.altervista.org)
- Windows
- <https://www.heiko-sieger.info/running-windows-10-on-linux-using-kvm-with-vga-passthrough/>
- <https://leduccc.medium.com/improving-the-performance-of-a-windows-10-guest-on-qemu-a5b3f54d9cf5>
- <https://frontpagelinux.com/tutorials/how-to-use-linux-kvm-to-optimize-your-windows-10-virtual-machine/>
- <https://turlucode.com/qemu-command-line-args/>
- <https://github.com/pbatard/Fido>
- <https://www.catapultsystems.com/blogs/create-zero-touch-windows-10-iso/>
- TPM
- <https://qemu-project.gitlab.io/qemu/specs/tpm.html>
- <https://www.tecklyfe.com/how-to-create-a-windows-11-virtual-machine-in-qemu/>
- 9p & virtiofs
- <https://wiki.qemu.org/Documentation/9p>
- <https://wiki.qemu.org/Documentation/9psetup>
- <https://www.kraxel.org/blog/2019/06/macos-qemu-guest/>
- <https://superuser.com/questions/628169/how-to-share-a-directory-with-the-host-without-networking-in-qemu>
- <https://virtio-fs.gitlab.io/>
# AUTHORS
Written by Martin Wimpress.
# BUGS
Submit bug reports online at:
<https://github.com/quickemu-project/quickemu/issues>
# SEE ALSO
Full sources at: <https://github.com/quickemu-project/quickemu>
quickemu_conf(1), quickget(1), quickgui(1)

327
docs/quickemu_conf.1 Normal file
View File

@ -0,0 +1,327 @@
.\" Automatically generated by Pandoc 3.1.1
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "QUICKEMU_CONF" "1" "June 14, 2023" "quickemu_conf" "Quickemu Configuration Manual"
.hy
.SH NAME
.PP
quickemu_conf - Options and parameters in the quickemu <vm>.conf
.SH DESCRIPTION
.PP
\f[B]quickemu\f[R] will create and run highly optimised desktop virtual
machines for Linux, macOS and Windows.
It uses sensible defaults, but many configuration options can be
overridden in the required configuration file, which will as a minimum
specify the path to the installation ISO and QEMU disk for the installed
VM
.SH OPTIONS
.PP
These are the options and defaults for the <vm>.conf file
.IP
.nf
\f[C]
# Lowercase variables are used in the VM config file only
boot=\[dq]efi\[dq]
cpu_cores=\[dq]\[dq]
disk_img=\[dq]\[dq]
disk_size=\[dq]\[dq]
display=\[dq]\[dq]
extra_args=\[dq]\[dq]
fixed_iso=\[dq]\[dq]
floppy=\[dq]\[dq]
guest_os=\[dq]linux\[dq]
img=\[dq]\[dq]
iso=\[dq]\[dq]
macaddr=\[dq]\[dq]
macos_release=\[dq]\[dq]
network=\[dq]\[dq]
port_forwards=()
preallocation=\[dq]off\[dq]
ram=\[dq]\[dq]
secureboot=\[dq]off\[dq]
tpm=\[dq]off\[dq]
usb_devices=()
viewer=\[dq]spicy\[dq]
ssh_port=\[dq]\[dq]
spice_port=\[dq]\[dq]
public_dir=\[dq]\[dq]
monitor=\[dq]socket\[dq]
monitor_telnet_port=\[dq]4440\[dq]
monitor_telnet_host=\[dq]localhost\[dq]
monitor_cmd=\[dq]\[dq]
serial=\[dq]socket\[dq]
serial_telnet_port=\[dq]6660\[dq]
serial_telnet_host=\[dq]localhost\[dq]
# options: ehci(USB2.0), xhci(USB3.0)
usb_controller=\[dq]ehci\[dq]
# options: ps2, usb, virtio
keyboard=\[dq]usb\[dq]
keyboard_layout=\[dq]en-us\[dq]
# options: ps2, usb, tablet, virtio
mouse=\[dq]tablet\[dq]
\f[R]
.fi
.SH EXAMPLES
.IP
.nf
\f[C]
guest_os=\[dq]linux\[dq]
disk_img=\[dq]debian-bullseye/disk.qcow2\[dq]
iso=\[dq]debian-bullseye/firmware-11.0.0-amd64-DVD-1.iso\[dq]
\f[R]
.fi
.PP
The default macOS configuration looks like this:
.IP
.nf
\f[C]
guest_os=\[dq]macos\[dq]
img=\[dq]macos-catalina/RecoveryImage.img\[dq]
disk_img=\[dq]macos-catalina/disk.qcow2\[dq]
macos_release=\[dq]catalina\[dq]
\f[R]
.fi
.IP \[bu] 2
\f[V]guest_os=\[dq]macos\[dq]\f[R] instructs Quickemu to optimise for
macOS.
.IP \[bu] 2
\f[V]macos_release=\[dq]catalina\[dq]\f[R] instructs Quickemu to
optimise for a particular macOS release.
.RS 2
.IP \[bu] 2
For example VirtIO Network and Memory Ballooning are available in Big
Sur and newer, but not previous releases.
.IP \[bu] 2
And VirtIO Block Media (disks) are supported/stable in Catalina and
newer.
.RE
.PP
The default Windows 11 configuration looks like this:
.IP
.nf
\f[C]
guest_os=\[dq]windows\[dq]
disk_img=\[dq]windows-11/disk.qcow2\[dq]
iso=\[dq]windows-11/Win11_EnglishInternational_x64.iso\[dq]
fixed_iso=\[dq]windows-11/virtio-win.iso\[dq]
tpm=\[dq]on\[dq]
secureboot=\[dq]on\[dq]
\f[R]
.fi
.IP \[bu] 2
\f[V]guest_os=\[dq]windows\[dq]\f[R] instructs \f[V]quickemu\f[R] to
optimise for Windows.
.IP \[bu] 2
\f[V]fixed_iso=\f[R] specifies the ISO image that provides VirtIO
drivers.
.IP \[bu] 2
\f[V]tpm=\[dq]on\[dq]\f[R] instructs \f[V]quickemu\f[R] to create a
software emulated TPM device using \f[V]swtpm\f[R].
.SH BIOS and EFI
.PP
Since Quickemu 2.1.0 \f[V]efi\f[R] is the default boot option.
If you want to override this behaviour then add the following line to
you VM configuration to enable legacy BIOS.
.IP \[bu] 2
\f[V]boot=\[dq]legacy\[dq]\f[R] - Enable Legacy BIOS boot
.SH Tuning CPU cores, RAM & disks
.PP
By default, Quickemu will calculate the number of CPUs cores and RAM to
allocate to a VM based on the specifications of your host computer.
You can override this default behaviour and tune the VM configuration to
your liking.
.PP
Add additional lines to your virtual machine configuration:
.IP \[bu] 2
\f[V]cpu_cores=\[dq]4\[dq]\f[R] - Specify the number of CPU cores
allocated to the VM
.IP \[bu] 2
\f[V]ram=\[dq]4G\[dq]\f[R] - Specify the amount of RAM to allocate to
the VM
.IP \[bu] 2
\f[V]disk_size=\[dq]16G\[dq]\f[R] - Specify the size of the virtual disk
allocated to the VM
.SS Disk preallocation
.PP
Preallocation mode (allowed values: \f[V]off\f[R] (default),
\f[V]metadata\f[R], \f[V]falloc\f[R], \f[V]full\f[R]).
An image with preallocated metadata is initially larger but can improve
performance when the image needs to grow.
.PP
Specify what disk preallocation should be used, if any, when creating
the system disk image by adding a line like this to your VM
configuration.
.IP \[bu] 2
\f[V]preallocation=\[dq]metadata\[dq]\f[R]
.SS CD-ROM disks
.PP
If you want to expose an ISO image from the host to guest add the
following line to the VM configuration:
.IP \[bu] 2
\f[V]fixed_iso=\[dq]/path/to/image.iso\[dq]\f[R]
.SS Floppy disks
.PP
If you\[cq]re like Alan Pope (https://popey.com) you\[cq]ll probably
want to mount a floppy disk image in the guest.
To do so add the following line to the VM configuration:
.IP \[bu] 2
\f[V]floppy=\[dq]/path/to/floppy.img\[dq]\f[R]
.SH File Sharing
.PP
All File Sharing options will only expose \f[V]\[ti]/Public\f[R] (or
localised variations) for the current user to the guest VMs.
.SS Samba 🐧 🍏 🪟
.PP
If \f[V]smbd\f[R] is available on the host, Quickemu will automatically
enable the built-in QEMU support for exposing a Samba share from the
host to the guest.
.PP
You can install the minimal Samba components on Ubuntu using:
.IP
.nf
\f[C]
sudo apt install --no-install-recommends samba
\f[R]
.fi
.PP
If everything is set up correctly, the \f[V]smbd\f[R] address will be
printed when the virtual machine is started.
For example:
.IP
.nf
\f[C]
- smbd: On guest: smb://10.0.2.4/qemu
\f[R]
.fi
.PP
If using a Windows guest, right-click on \[lq]This PC\[rq], click
\[lq]Add a network location\[rq], and paste this address, removing
\f[V]smb:\f[R] and replacing forward slashes with backslashes (in this
example \f[V]\[rs]\[rs]10.0.2.4\[rs]qemu\f[R]).
.SS SPICE WebDAV 🐧 🪟
.IP \[bu] 2
TBD
.SS VirtIO-9P 🐧 🍏
.IP \[bu] 2
TBD
.SH Network port forwarding
.PP
Add an additional line to your virtual machine configuration.
For example:
.IP \[bu] 2
\f[V]port_forwards=(\[dq]8123:8123\[dq] \[dq]8888:80\[dq])\f[R]
.PP
In the example above:
.IP \[bu] 2
Port 8123 on the host is forwarded to port 8123 on the guest.
.IP \[bu] 2
Port 8888 on the host is forwarded to port 80 on the guest.
.SH Disable networking
.PP
To completely disable all network interfaces in a guest VM add this
additional line to your virtual machine configuration:
.IP \[bu] 2
\f[V]network=\[dq]none\[dq]\f[R]
.SH Restricted networking
.PP
You can isolate the guest from the host (and broader network) using the
restrict option, which will restrict networking to just the guest and
any virtual devices.
.PP
This can be used to prevent software running inside the guest from
phoning home while still providing a network inside the guest.
Add this additional line to your virtual machine configuration:
.IP \[bu] 2
\f[V]network=\[dq]restrict\[dq]\f[R]
.SH Bridged networking
.PP
Connect your virtual machine to a preconfigured network bridge.
Add an additional line to your virtual machine configuration:
.IP \[bu] 2
\f[V]network=\[dq]br0\[dq]\f[R]
.PP
If you want to have a persistent MAC address for your bridged network
interface in the guest VM you can add \f[V]macaddr\f[R] to the virtual
machine configuration.
QEMU requires that the MAC address is in the range:
\f[B]52:54:00:AB:00:00 - 52:54:00:AB:FF:FF\f[R]
.PP
So you can generate your own MAC addresses with:
.IP \[bu] 2
\f[V]macaddr=\[dq]52:54:00:AB:51:AE\[dq]\f[R]
.SH USB redirection
.PP
Quickemu supports USB redirection via SPICE pass-through and host
pass-through.
.SS SPICE redirection (recommended)
.PP
Using SPICE for USB pass-through is easiest as it doesn\[cq]t require
any elevated permission, start Quickemu with \f[V]--display spice\f[R]
and then select \f[V]Input\f[R] ->
\f[V]Select USB Device for redirection\f[R] from the menu to choose
which device(s) you want to attach to the guest.
.SS Host redirection \f[B]NOT Recommended\f[R]
.PP
\f[B]USB host redirection is not recommended\f[R], it is provided purely
for backwards compatibility to older versions of Quickemu.
Using SPICE is preferred, see above.
.PP
Add an additional line to your virtual machine configuration.
For example:
.IP \[bu] 2
\f[V]usb_devices=(\[dq]046d:082d\[dq] \[dq]046d:085e\[dq])\f[R]
.PP
In the example above:
.IP \[bu] 2
The USB device with vendor_id 046d and product_id 082d will be exposed
to the guest.
.IP \[bu] 2
The USB device with vendor_id 046d and product_id 085e will be exposed
to the guest.
.PP
If the USB devices are not writable, \f[V]quickemu\f[R] will display the
appropriate commands to modify the USB device(s) access permissions,
like this:
.IP
.nf
\f[C]
- USB: Host pass-through requested:
- Sennheiser Communications EPOS GTW 270 on bus 001 device 005 needs permission changes:
sudo chown -v root:user /dev/bus/usb/001/005
ERROR! USB permission changes are required 👆
\f[R]
.fi
.SH TPM
.PP
Since Quickemu 2.2.0 a software emulated TPM device can be added to
guest virtual machines.
Just add \f[V]tpm=\[dq]on\[dq]\f[R] to your VM configuration.
\f[V]quickget\f[R] will automatically add this line to Windows 11
virtual machines.
.SH AUTHORS
.PP
Written by Martin Wimpress.
.SH BUGS
.PP
Submit bug reports online at:
<https://github.com/quickemu-project/quickemu/issues>
.SH SEE ALSO
.PP
Full sources at: <https://github.com/quickemu-project/quickemu>
.PP
quickget(1), quickemu(1), quickgui(1)
.SH AUTHORS
Martin Wimpress.

299
docs/quickemu_conf.1.md Normal file
View File

@ -0,0 +1,299 @@
---
author: Martin Wimpress
date: June 14, 2023
footer: quickemu_conf
header: Quickemu Configuration Manual
section: 1
title: QUICKEMU_CONF
---
# NAME
quickemu_conf - Options and parameters in the quickemu \<vm\>.conf
# DESCRIPTION
**quickemu** will create and run highly optimised desktop virtual
machines for Linux, macOS and Windows. It uses sensible defaults, but
many configuration options can be overridden in the required
configuration file, which will as a minimum specify the path to the
installation ISO and QEMU disk for the installed VM
# OPTIONS
These are the options and defaults for the \<vm\>.conf file
``` bash
# Lowercase variables are used in the VM config file only
boot="efi"
cpu_cores=""
disk_img=""
disk_size=""
display=""
extra_args=""
fixed_iso=""
floppy=""
guest_os="linux"
img=""
iso=""
macaddr=""
macos_release=""
network=""
port_forwards=()
preallocation="off"
ram=""
secureboot="off"
tpm="off"
usb_devices=()
viewer="spicy"
ssh_port=""
spice_port=""
public_dir=""
monitor="socket"
monitor_telnet_port="4440"
monitor_telnet_host="localhost"
monitor_cmd=""
serial="socket"
serial_telnet_port="6660"
serial_telnet_host="localhost"
# options: ehci(USB2.0), xhci(USB3.0)
usb_controller="ehci"
# options: ps2, usb, virtio
keyboard="usb"
keyboard_layout="en-us"
# options: ps2, usb, tablet, virtio
mouse="tablet"
```
# EXAMPLES
``` bash
guest_os="linux"
disk_img="debian-bullseye/disk.qcow2"
iso="debian-bullseye/firmware-11.0.0-amd64-DVD-1.iso"
```
The default macOS configuration looks like this:
``` bash
guest_os="macos"
img="macos-catalina/RecoveryImage.img"
disk_img="macos-catalina/disk.qcow2"
macos_release="catalina"
```
- `guest_os="macos"` instructs Quickemu to optimise for macOS.
- `macos_release="catalina"` instructs Quickemu to optimise for a
particular macOS release.
- For example VirtIO Network and Memory Ballooning are available
in Big Sur and newer, but not previous releases.
- And VirtIO Block Media (disks) are supported/stable in Catalina
and newer.
The default Windows 11 configuration looks like this:
``` bash
guest_os="windows"
disk_img="windows-11/disk.qcow2"
iso="windows-11/Win11_EnglishInternational_x64.iso"
fixed_iso="windows-11/virtio-win.iso"
tpm="on"
secureboot="on"
```
- `guest_os="windows"` instructs `quickemu` to optimise for Windows.
- `fixed_iso=` specifies the ISO image that provides VirtIO drivers.
- `tpm="on"` instructs `quickemu` to create a software emulated TPM
device using `swtpm`.
# BIOS and EFI
Since Quickemu 2.1.0 `efi` is the default boot option. If you want to
override this behaviour then add the following line to you VM
configuration to enable legacy BIOS.
- `boot="legacy"` - Enable Legacy BIOS boot
# Tuning CPU cores, RAM & disks
By default, Quickemu will calculate the number of CPUs cores and RAM to
allocate to a VM based on the specifications of your host computer. You
can override this default behaviour and tune the VM configuration to
your liking.
Add additional lines to your virtual machine configuration:
- `cpu_cores="4"` - Specify the number of CPU cores allocated to the
VM
- `ram="4G"` - Specify the amount of RAM to allocate to the VM
- `disk_size="16G"` - Specify the size of the virtual disk allocated
to the VM
## Disk preallocation
Preallocation mode (allowed values: `off` (default), `metadata`,
`falloc`, `full`). An image with preallocated metadata is initially
larger but can improve performance when the image needs to grow.
Specify what disk preallocation should be used, if any, when creating
the system disk image by adding a line like this to your VM
configuration.
- `preallocation="metadata"`
## CD-ROM disks
If you want to expose an ISO image from the host to guest add the
following line to the VM configuration:
- `fixed_iso="/path/to/image.iso"`
## Floppy disks
If you're like [Alan Pope](https://popey.com) you'll probably want to
mount a floppy disk image in the guest. To do so add the following line
to the VM configuration:
- `floppy="/path/to/floppy.img"`
# File Sharing
All File Sharing options will only expose `~/Public` (or localised
variations) for the current user to the guest VMs.
## Samba 🐧 🍏 🪟
If `smbd` is available on the host, Quickemu will automatically enable
the built-in QEMU support for exposing a Samba share from the host to
the guest.
You can install the minimal Samba components on Ubuntu using:
``` bash
sudo apt install --no-install-recommends samba
```
If everything is set up correctly, the `smbd` address will be printed
when the virtual machine is started. For example:
- smbd: On guest: smb://10.0.2.4/qemu
If using a Windows guest, right-click on "This PC", click "Add a network
location", and paste this address, removing `smb:` and replacing forward
slashes with backslashes (in this example `\\10.0.2.4\qemu`).
## SPICE WebDAV 🐧 🪟
- TBD
## VirtIO-9P 🐧 🍏
- TBD
# Network port forwarding
Add an additional line to your virtual machine configuration. For
example:
- `port_forwards=("8123:8123" "8888:80")`
In the example above:
- Port 8123 on the host is forwarded to port 8123 on the guest.
- Port 8888 on the host is forwarded to port 80 on the guest.
# Disable networking
To completely disable all network interfaces in a guest VM add this
additional line to your virtual machine configuration:
- `network="none"`
# Restricted networking
You can isolate the guest from the host (and broader network) using the
restrict option, which will restrict networking to just the guest and
any virtual devices.
This can be used to prevent software running inside the guest from
phoning home while still providing a network inside the guest. Add this
additional line to your virtual machine configuration:
- `network="restrict"`
# Bridged networking
Connect your virtual machine to a preconfigured network bridge. Add an
additional line to your virtual machine configuration:
- `network="br0"`
If you want to have a persistent MAC address for your bridged network
interface in the guest VM you can add `macaddr` to the virtual machine
configuration. QEMU requires that the MAC address is in the range:
**52:54:00:AB:00:00 - 52:54:00:AB:FF:FF**
So you can generate your own MAC addresses with:
- `macaddr="52:54:00:AB:51:AE"`
# USB redirection
Quickemu supports USB redirection via SPICE pass-through and host
pass-through.
## SPICE redirection (recommended)
Using SPICE for USB pass-through is easiest as it doesn't require any
elevated permission, start Quickemu with `--display spice` and then
select `Input` -\> `Select USB Device for redirection` from the menu to
choose which device(s) you want to attach to the guest.
## Host redirection **NOT Recommended**
**USB host redirection is not recommended**, it is provided purely for
backwards compatibility to older versions of Quickemu. Using SPICE is
preferred, see above.
Add an additional line to your virtual machine configuration. For
example:
- `usb_devices=("046d:082d" "046d:085e")`
In the example above:
- The USB device with vendor_id 046d and product_id 082d will be
exposed to the guest.
- The USB device with vendor_id 046d and product_id 085e will be
exposed to the guest.
If the USB devices are not writable, `quickemu` will display the
appropriate commands to modify the USB device(s) access permissions,
like this:
- USB: Host pass-through requested:
- Sennheiser Communications EPOS GTW 270 on bus 001 device 005 needs permission changes:
sudo chown -v root:user /dev/bus/usb/001/005
ERROR! USB permission changes are required 👆
# TPM
Since Quickemu 2.2.0 a software emulated TPM device can be added to
guest virtual machines. Just add `tpm="on"` to your VM configuration.
`quickget` will automatically add this line to Windows 11 virtual
machines.
# AUTHORS
Written by Martin Wimpress.
# BUGS
Submit bug reports online at:
<https://github.com/quickemu-project/quickemu/issues>
# SEE ALSO
Full sources at: <https://github.com/quickemu-project/quickemu>
quickget(1), quickemu(1), quickgui(1)

544
docs/quickget.1 Normal file
View File

@ -0,0 +1,544 @@
.\" Automatically generated by Pandoc 3.1.1
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "QUICKGET" "1" "June 14, 2023" "quickget" "Quickget User Manual"
.hy
.SH NAME
.PP
quickget - download and prepare materials for building a quickemu VM
.SH SYNOPSIS
.PP
\f[B]quickget\f[R] [\f[I]os\f[R]] [\f[I]release\f[R]]
[\f[I]edition\f[R]] | [\f[I]OPTION\f[R]]*
.SH DESCRIPTION
.PP
\f[B]quickget\f[R] will download the requisite materials and prepare a
configuration for \f[V]quickemu\f[R] to use to build and run
.SH OPTIONS
.TP
\f[B]version | -version | \[en]version\f[R]
show version (from Quickemu)
.TP
\f[B]list | list_csv | list_json\f[R]
provide a csv list of all supported guest OSes, versions and variants.
.TP
\f[B][OS] [Release] [Edition]\f[R]
specify the OS and release (and optional edition) if insufficient input
is provided a list of missing options will be reported and the script
will exit.
Editions may not apply and will be defaulted if not provided.
.SH NOTES
.SS Ubuntu Guest
.PP
\f[V]quickget\f[R] will automatically download an Ubuntu release and
create the virtual machine configuration.
.IP
.nf
\f[C]
quickget ubuntu 22.04
quickemu --vm ubuntu-22.04.conf
\f[R]
.fi
.IP \[bu] 2
Complete the installation as normal.
.IP \[bu] 2
Post-install:
.RS 2
.IP \[bu] 2
Install the SPICE agent (\f[V]spice-vdagent\f[R]) in the guest to enable
copy/paste and USB redirection
.RS 2
.IP \[bu] 2
\f[V]sudo apt install spice-vdagent\f[R]
.RE
.IP \[bu] 2
Install the SPICE WebDAV agent (\f[V]spice-webdavd\f[R]) in the guest to
enable file sharing.
.RS 2
.IP \[bu] 2
\f[V]sudo apt install spice-webdavd\f[R]
.RE
.RE
.SS Ubuntu devel (daily-live) images
.PP
\f[V]quickget\f[R] can also download/refresh devel images via
\f[V]zsync\f[R] for Ubuntu developers and testers.
.IP
.nf
\f[C]
quickget ubuntu devel
quickemu --vm ubuntu-devel.conf
\f[R]
.fi
.PP
You can run \f[V]quickget ubuntu devel\f[R] to refresh your daily
development image as often as you like, it will even automatically
switch to a new series.
.SS Ubuntu Flavours
.PP
All the official Ubuntu flavours are supported, just replace
\f[V]ubuntu\f[R] with your preferred flavour.
.IP \[bu] 2
\f[V]kubuntu\f[R] (Kubuntu)
.IP \[bu] 2
\f[V]lubuntu\f[R] (Lubuntu)
.IP \[bu] 2
\f[V]ubuntu-budgie\f[R] (Ubuntu Budgie)
.IP \[bu] 2
\f[V]ubuntucinnamon\f[R] (Ubuntu Cinnamon)
.IP \[bu] 2
\f[V]ubuntukylin\f[R] (Ubuntu Kylin)
.IP \[bu] 2
\f[V]ubuntu-mate\f[R] (Ubuntu MATE)
.IP \[bu] 2
\f[V]ubuntu-server\f[R] (Ubuntu Server)
.IP \[bu] 2
\f[V]ubuntustudio\f[R] (Ubuntu Studio)
.IP \[bu] 2
\f[V]ubuntu\f[R] (Ubuntu)
.IP \[bu] 2
\f[V]ubuntu-unity\f[R] (Ubuntu Unity)
.IP \[bu] 2
\f[V]xubuntu\f[R] (Xubuntu)
.SS Other Operating Systems
.PP
\f[V]quickget\f[R] also supports:
.IP \[bu] 2
\f[V]alma\f[R] (Alma Linux)
.IP \[bu] 2
\f[V]alpine\f[R] (Alpine Linux)
.IP \[bu] 2
\f[V]android\f[R] (Android x86)
.IP \[bu] 2
\f[V]archcraft\f[R] (Archcraft)
.IP \[bu] 2
\f[V]archlinux\f[R] (Arch Linux)
.IP \[bu] 2
\f[V]arcolinux\f[R] (Arco Linux)
.IP \[bu] 2
\f[V]batocera\f[R] (Batocera)
.IP \[bu] 2
\f[V]blendos\f[R] (BlendOS)
.IP \[bu] 2
\f[V]cachyos\f[R] (CachyOS)
.IP \[bu] 2
\f[V]centos-stream\f[R] (CentOS Stream)
.IP \[bu] 2
\f[V]debian\f[R] (Debian)
.IP \[bu] 2
\f[V]deepin\f[R] (Deepin)
.IP \[bu] 2
\f[V]devuan\f[R] (Devuan)
.IP \[bu] 2
\f[V]dragonflybsd\f[R] (DragonFlyBSD)
.IP \[bu] 2
\f[V]elementary\f[R] (elementary OS)
.IP \[bu] 2
\f[V]endeavouros\f[R] (EndeavourOS)
.IP \[bu] 2
\f[V]endless\f[R] (Endless OS)
.IP \[bu] 2
\f[V]fedora\f[R] (Fedora)
.IP \[bu] 2
\f[V]freebsd\f[R] (FreeBSD)
.IP \[bu] 2
\f[V]freedos\f[R] (FreeDOS)
.IP \[bu] 2
\f[V]gentoo\f[R] (Gentoo)
.IP \[bu] 2
\f[V]ghostbsd\f[R] (GhostBSD)
.IP \[bu] 2
\f[V]haiku\f[R] (Haiku)
.IP \[bu] 2
\f[V]holoiso\f[R] (HoloISO)
.IP \[bu] 2
\f[V]kali\f[R] (Kali)
.IP \[bu] 2
\f[V]kdeneon\f[R] (KDE Neon)
.IP \[bu] 2
\f[V]kolibrios\f[R] (KolibriOS)
.IP \[bu] 2
\f[V]linuxmint\f[R] (Linux Mint)
.IP \[bu] 2
\f[V]lmde\f[R] (Linux Mint Debian Edition)
.IP \[bu] 2
\f[V]mageia\f[R] (Mageia)
.IP \[bu] 2
\f[V]manjaro\f[R] (Manjaro)
.IP \[bu] 2
\f[V]mxlinux\f[R] (MX Linux)
.IP \[bu] 2
\f[V]netboot\f[R] (netboot.xyz)
.IP \[bu] 2
\f[V]netbsd\f[R] (NetBSD)
.IP \[bu] 2
\f[V]nixos\f[R] (NixOS)
.IP \[bu] 2
\f[V]openbsd\f[R] (OpenBSD)
.IP \[bu] 2
\f[V]openindiana\f[R] (OpenIndiana)
.IP \[bu] 2
\f[V]opensuse\f[R] (openSUSE)
.IP \[bu] 2
\f[V]oraclelinux\f[R] (Oracle Linux)
.IP \[bu] 2
\f[V]popos\f[R] (Pop!_OS)
.IP \[bu] 2
\f[V]reactos\f[R] (ReactOS)
.IP \[bu] 2
\f[V]rebornos\f[R] (RebornOS)
.IP \[bu] 2
\f[V]rockylinux\f[R] (Rocky Linux)
.IP \[bu] 2
\f[V]siduction\f[R] (Siduction)
.IP \[bu] 2
\f[V]slackware\f[R] (Slackware)
.IP \[bu] 2
\f[V]solus\f[R] (Solus)
.IP \[bu] 2
\f[V]tails\f[R] (Tails)
.IP \[bu] 2
\f[V]truenas-core\f[R] (TrueNAS Core)
.IP \[bu] 2
\f[V]truenas-scale\f[R] (TrueNAS Scale)
.IP \[bu] 2
\f[V]vanillaos\f[R] (Vanilla OS)
.IP \[bu] 2
\f[V]void\f[R] (Void Linux)
.IP \[bu] 2
\f[V]vxlinux\f[R] (VX Linux)
.IP \[bu] 2
\f[V]xerolinux\f[R] (XeroLinux)
.IP \[bu] 2
\f[V]zorin\f[R] (Zorin OS)
.PP
Or you can download a Linux image and manually create a VM
configuration.
.IP \[bu] 2
Download a .iso image of a Linux distribution
.IP \[bu] 2
Create a VM configuration file; for example
\f[V]debian-bullseye.conf\f[R]
.IP
.nf
\f[C]
guest_os=\[dq]linux\[dq]
disk_img=\[dq]debian-bullseye/disk.qcow2\[dq]
iso=\[dq]debian-bullseye/firmware-11.0.0-amd64-DVD-1.iso\[dq]
\f[R]
.fi
.IP \[bu] 2
Use \f[V]quickemu\f[R] to start the virtual machine:
.IP
.nf
\f[C]
quickemu --vm debian-bullseye.conf
\f[R]
.fi
.IP \[bu] 2
Complete the installation as normal.
.IP \[bu] 2
Post-install:
.RS 2
.IP \[bu] 2
Install the SPICE agent (\f[V]spice-vdagent\f[R]) in the guest to enable
copy/paste and USB redirection.
.IP \[bu] 2
Install the SPICE WebDAV agent (\f[V]spice-webdavd\f[R]) in the guest to
enable file sharing.
.RE
.SS macOS Guest
.PP
\f[V]quickget\f[R] automatically downloads a macOS recovery image and
creates a virtual machine configuration.
.IP
.nf
\f[C]
quickget macos catalina
quickemu --vm macos-catalina.conf
\f[R]
.fi
.PP
macOS \f[V]high-sierra\f[R], \f[V]mojave\f[R], \f[V]catalina\f[R],
\f[V]big-sur\f[R] and \f[V]monterey\f[R] are supported.
.IP \[bu] 2
Use cursor keys and enter key to select the \f[B]macOS Base System\f[R]
.IP \[bu] 2
From \f[B]macOS Utilities\f[R]
.RS 2
.IP \[bu] 2
Click \f[B]Disk Utility\f[R] and \f[B]Continue\f[R]
.RS 2
.IP \[bu] 2
Select \f[V]QEMU HARDDISK Media\f[R] (\[ti]103.08GB) from the list (on
Big Sur and above use \f[V]Apple Inc. VirtIO Block Device\f[R]) and
click \f[B]Erase\f[R].
.IP \[bu] 2
Enter a \f[V]Name:\f[R] for the disk
.IP \[bu] 2
If you are installing macOS Mojave or later (Catalina, Big Sur, and
Monterey), choose any of the APFS options as the filesystem.
MacOS Extended may not work.
.RE
.IP \[bu] 2
Click \f[B]Erase\f[R].
.IP \[bu] 2
Click \f[B]Done\f[R].
.IP \[bu] 2
Close Disk Utility
.RE
.IP \[bu] 2
From \f[B]macOS Utilities\f[R]
.RS 2
.IP \[bu] 2
Click \f[B]Reinstall macOS\f[R] and \f[B]Continue\f[R]
.RE
.IP \[bu] 2
Complete the installation as you normally would.
.RS 2
.IP \[bu] 2
On the first reboot use cursor keys and enter key to select \f[B]macOS
Installer\f[R]
.IP \[bu] 2
On the subsequent reboots use cursor keys and enter key to select the
disk you named
.RE
.IP \[bu] 2
Once you have finished installing macOS you will be presented with an
the out-of-the-box first-start wizard to configure various options and
set up your username and password
.IP \[bu] 2
OPTIONAL: After you have concluded the out-of-the-box wizard, you may
want to enable the TRIM feature that the computer industry created for
SSD disks.
This feature in our macOS installation will allow QuickEmu to compact
(shrink) your macOS disk image whenever you delete files inside the
Virtual Machine.
Without this step your macOS disk image will only ever get larger and
will not shrink even when you delete lots of data inside macOS.
.RS 2
.IP \[bu] 2
To enable TRIM, open the Terminal application and type the following
command followed by pressing enter to tell macos to use the TRIM command
on the hard disk when files are deleted:
.RE
.IP
.nf
\f[C]
sudo trimforce enable
\f[R]
.fi
.PP
You will be prompted to enter your account\[cq]s password to gain the
privilege needed.
Once you\[cq]ve entered your password and pressed enter the command will
request confirmation in the form of two questions that require you to
type y (for a \[lq]yes\[rq] response) followed by enter to confirm.
If you press enter without first typing y the system will consider that
a negative response as though you said \[lq]no\[rq]:
.IP
.nf
\f[C]
IMPORTANT NOTICE: This tool force-enables TRIM for all relevant attached devices, even though such devices may not have been validated for data integrity while using TRIM. Use of this tool to enable TRIM may result in unintended data loss or data corruption. It should not be used in a commercial operating environment or with important data. Before using this tool, you should back up all of your data and regularly back up data while TRIM is enabled. This tool is provided on an \[dq]as is\[dq] basis. APPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THIS TOOL OR ITS USE ALONE OR IN COMBINATION WITH YOUR DEVICES, SYSTEMS, OR SERVICES. BY USING THIS TOOL TO ENABLE TRIM, YOU AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE TOOL IS AT YOUR SOLE RISK AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND EFFORT IS WITH YOU.
Are you sure you with to proceed (y/N)?
\f[R]
.fi
.PP
And a second confirmation once you\[cq]ve confirmed the previous one:
.IP
.nf
\f[C]
Your system will immediately reboot when this is complete.
Is this OK (y/N)?
\f[R]
.fi
.PP
As the last message states, your system will automatically reboot as
soon as the command completes.
.PP
The default macOS configuration looks like this:
.IP
.nf
\f[C]
guest_os=\[dq]macos\[dq]
img=\[dq]macos-catalina/RecoveryImage.img\[dq]
disk_img=\[dq]macos-catalina/disk.qcow2\[dq]
macos_release=\[dq]catalina\[dq]
\f[R]
.fi
.IP \[bu] 2
\f[V]guest_os=\[dq]macos\[dq]\f[R] instructs Quickemu to optimise for
macOS.
.IP \[bu] 2
\f[V]macos_release=\[dq]catalina\[dq]\f[R] instructs Quickemu to
optimise for a particular macOS release.
.RS 2
.IP \[bu] 2
For example VirtIO Network and Memory Ballooning are available in Big
Sur and newer, but not previous releases.
.IP \[bu] 2
And VirtIO Block Media (disks) are supported/stable in Catalina and
newer.
.RE
.SS macOS compatibility
.PP
There are some considerations when running macOS via Quickemu.
.IP \[bu] 2
Supported macOS releases:
.RS 2
.IP \[bu] 2
High Sierra
.IP \[bu] 2
Mojave
.IP \[bu] 2
Catalina \f[B](Recommended)\f[R]
.IP \[bu] 2
Big Sur
.IP \[bu] 2
Monterey
.RE
.IP \[bu] 2
\f[V]quickemu\f[R] will automatically download the required
OpenCore (https://github.com/acidanthera/OpenCorePkg) bootloader and
OVMF firmware from OSX-KVM (https://github.com/kholia/OSX-KVM).
.IP \[bu] 2
Optimised by default, but no GPU acceleration is available.
.RS 2
.IP \[bu] 2
Host CPU vendor is detected and guest CPU is optimised accordingly.
.IP \[bu] 2
VirtIO Block
Media (https://www.kraxel.org/blog/2019/06/macos-qemu-guest/) is used
for the system disk where supported.
.IP \[bu] 2
VirtIO \f[V]usb-tablet\f[R] (http://philjordan.eu/osx-virt/) is used for
the mouse.
.IP \[bu] 2
VirtIO Network (\f[V]virtio-net\f[R]) is supported and enabled on macOS
Big Sur and newer but previous releases use \f[V]vmxnet3\f[R].
.IP \[bu] 2
VirtIO Memory Ballooning is supported and enabled on macOS Big Sur and
newer but disabled for other support macOS releases.
.RE
.IP \[bu] 2
USB host and SPICE pass-through is:
.RS 2
.IP \[bu] 2
UHCI (USB 2.0) on macOS Catalina and earlier.
.IP \[bu] 2
XHCI (USB 3.0) on macOS Big Sur and newer.
.RE
.IP \[bu] 2
Display resolution can only be changed via macOS System Preferences.
.IP \[bu] 2
\f[B]Full Duplex audio requires VoodooHDA
OC (https://github.com/chris1111/VoodooHDA-OC) or pass-through a USB
audio-device to the macOS guest VM\f[R].
.IP \[bu] 2
NOTE!
Gatekeeper (https://disable-gatekeeper.github.io/) and System Integrity
Protection
(SIP) (https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection)
need to be disabled to install VoodooHDA OC
.IP \[bu] 2
File sharing between guest and host is available via
virtio-9p (https://wiki.qemu.org/Documentation/9psetup) and SPICE
webdavd (https://gitlab.gnome.org/GNOME/phodav/-/merge_requests/24).
.IP \[bu] 2
Copy/paste via SPICE agent is \f[B]not available on macOS\f[R].
.SS macOS App Store
.PP
If you see \f[I]\[lq]Your device or computer could not be
verified\[rq]\f[R] when you try to login to the App Store, make sure
that your wired ethernet device is \f[V]en0\f[R].
Use \f[V]ifconfig\f[R] in a terminal to verify this.
.PP
If the wired ethernet device is not \f[V]en0\f[R], then then go to
\f[I]System Preferences\f[R] -> \f[I]Network\f[R], delete all the
network devices and apply the changes.
Next, open a terminal and run the following:
.IP
.nf
\f[C]
sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
\f[R]
.fi
.PP
Now reboot, and the App Store should work.
.SS Windows 10 & 11 Guests
.PP
\f[V]quickget\f[R] can download
Windows10 (https://www.microsoft.com/software-download/windows10) and
Windows 11 (https://www.microsoft.com/software-download/windows11)
automatically and create an optimised virtual machine configuration.
This configuration also includes the VirtIO drivers for
Windows (https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/).
.IP
.nf
\f[C]
quickget windows 11
quickemu --vm windows-11-22H2.conf
\f[R]
.fi
.IP \[bu] 2
Complete the installation as you normally would.
.IP \[bu] 2
All relevant drivers and services should be installed automatically.
.IP \[bu] 2
A local adminstrator user account is automatically created, with these
credentials:
.RS 2
.IP \[bu] 2
Username: \f[V]Quickemu\f[R]
.IP \[bu] 2
Password: \f[V]quickemu\f[R]
.RE
.PP
The default Windows 11 configuration looks like this:
.IP
.nf
\f[C]
guest_os=\[dq]windows\[dq]
disk_img=\[dq]windows-11/disk.qcow2\[dq]
iso=\[dq]windows-11/windows-11.iso\[dq]
fixed_iso=\[dq]windows-11/virtio-win.iso\[dq]
tpm=\[dq]on\[dq]
secureboot=\[dq]on\[dq]
\f[R]
.fi
.IP \[bu] 2
\f[V]guest_os=\[dq]windows\[dq]\f[R] instructs \f[V]quickemu\f[R] to
optimise for Windows.
.IP \[bu] 2
\f[V]fixed_iso=\f[R] specifies the ISO image that provides VirtIO
drivers.
.IP \[bu] 2
\f[V]tpm=\[dq]on\[dq]\f[R] instructs \f[V]quickemu\f[R] to create a
software emulated TPM device using \f[V]swtpm\f[R].
.SH AUTHORS
.PP
Written by Martin Wimpress.
.SH BUGS
.PP
Submit bug reports online at:
<https://github.com/quickemu-project/quickemu/issues>
.SH SEE ALSO
.PP
Full sources at: <https://github.com/quickemu-project/quickemu>
.PP
quickemu(1), quickemu_conf(1), quickgui(1)
.SH AUTHORS
Martin Wimpress.

375
docs/quickget.1.md Normal file
View File

@ -0,0 +1,375 @@
---
author: Martin Wimpress
date: June 14, 2023
footer: quickget
header: Quickget User Manual
section: 1
title: QUICKGET
---
# NAME
quickget - download and prepare materials for building a quickemu VM
# SYNOPSIS
**quickget** \[*os*\] \[*release*\] \[*edition*\] \| \[*OPTION*\]\*
# DESCRIPTION
**quickget** will download the requisite materials and prepare a
configuration for `quickemu` to use to build and run
# OPTIONS
**version \| -version \| --version**
: show version (from Quickemu)
**list \| list_csv \| list_json**
: provide a csv list of all supported guest OSes, versions and
variants.
**\[OS\] \[Release\] \[Edition\]**
: specify the OS and release (and optional edition) if insufficient
input is provided a list of missing options will be reported and the
script will exit. Editions may not apply and will be defaulted if
not provided.
# NOTES
## Ubuntu Guest
`quickget` will automatically download an Ubuntu release and create the
virtual machine configuration.
``` bash
quickget ubuntu 22.04
quickemu --vm ubuntu-22.04.conf
```
- Complete the installation as normal.
- Post-install:
- Install the SPICE agent (`spice-vdagent`) in the guest to enable
copy/paste and USB redirection
- `sudo apt install spice-vdagent`
- Install the SPICE WebDAV agent (`spice-webdavd`) in the guest to
enable file sharing.
- `sudo apt install spice-webdavd`
### Ubuntu devel (daily-live) images
`quickget` can also download/refresh devel images via `zsync` for Ubuntu
developers and testers.
``` bash
quickget ubuntu devel
quickemu --vm ubuntu-devel.conf
```
You can run `quickget ubuntu devel` to refresh your daily development
image as often as you like, it will even automatically switch to a new
series.
### Ubuntu Flavours
All the official Ubuntu flavours are supported, just replace `ubuntu`
with your preferred flavour.
- `kubuntu` (Kubuntu)
- `lubuntu` (Lubuntu)
- `ubuntu-budgie` (Ubuntu Budgie)
- `ubuntucinnamon` (Ubuntu Cinnamon)
- `ubuntukylin` (Ubuntu Kylin)
- `ubuntu-mate` (Ubuntu MATE)
- `ubuntu-server` (Ubuntu Server)
- `ubuntustudio` (Ubuntu Studio)
- `ubuntu` (Ubuntu)
- `ubuntu-unity` (Ubuntu Unity)
- `xubuntu` (Xubuntu)
## Other Operating Systems
`quickget` also supports:
- `alma` (Alma Linux)
- `alpine` (Alpine Linux)
- `android` (Android x86)
- `archcraft` (Archcraft)
- `archlinux` (Arch Linux)
- `arcolinux` (Arco Linux)
- `batocera` (Batocera)
- `blendos` (BlendOS)
- `cachyos` (CachyOS)
- `centos-stream` (CentOS Stream)
- `debian` (Debian)
- `deepin` (Deepin)
- `devuan` (Devuan)
- `dragonflybsd` (DragonFlyBSD)
- `elementary` (elementary OS)
- `endeavouros` (EndeavourOS)
- `endless` (Endless OS)
- `fedora` (Fedora)
- `freebsd` (FreeBSD)
- `freedos` (FreeDOS)
- `gentoo` (Gentoo)
- `ghostbsd` (GhostBSD)
- `haiku` (Haiku)
- `holoiso` (HoloISO)
- `kali` (Kali)
- `kdeneon` (KDE Neon)
- `kolibrios` (KolibriOS)
- `linuxmint` (Linux Mint)
- `lmde` (Linux Mint Debian Edition)
- `mageia` (Mageia)
- `manjaro` (Manjaro)
- `mxlinux` (MX Linux)
- `netboot` (netboot.xyz)
- `netbsd` (NetBSD)
- `nixos` (NixOS)
- `openbsd` (OpenBSD)
- `openindiana` (OpenIndiana)
- `opensuse` (openSUSE)
- `oraclelinux` (Oracle Linux)
- `popos` (Pop!\_OS)
- `reactos` (ReactOS)
- `rebornos` (RebornOS)
- `rockylinux` (Rocky Linux)
- `siduction` (Siduction)
- `slackware` (Slackware)
- `solus` (Solus)
- `tails` (Tails)
- `truenas-core` (TrueNAS Core)
- `truenas-scale` (TrueNAS Scale)
- `vanillaos` (Vanilla OS)
- `void` (Void Linux)
- `vxlinux` (VX Linux)
- `xerolinux` (XeroLinux)
- `zorin` (Zorin OS)
Or you can download a Linux image and manually create a VM
configuration.
- Download a .iso image of a Linux distribution
- Create a VM configuration file; for example `debian-bullseye.conf`
``` bash
guest_os="linux"
disk_img="debian-bullseye/disk.qcow2"
iso="debian-bullseye/firmware-11.0.0-amd64-DVD-1.iso"
```
- Use `quickemu` to start the virtual machine:
``` bash
quickemu --vm debian-bullseye.conf
```
- Complete the installation as normal.
- Post-install:
- Install the SPICE agent (`spice-vdagent`) in the guest to enable
copy/paste and USB redirection.
- Install the SPICE WebDAV agent (`spice-webdavd`) in the guest to
enable file sharing.
## macOS Guest
`quickget` automatically downloads a macOS recovery image and creates a
virtual machine configuration.
``` bash
quickget macos catalina
quickemu --vm macos-catalina.conf
```
macOS `high-sierra`, `mojave`, `catalina`, `big-sur` and `monterey` are
supported.
- Use cursor keys and enter key to select the **macOS Base System**
- From **macOS Utilities**
- Click **Disk Utility** and **Continue**
- Select `QEMU HARDDISK Media` (\~103.08GB) from the list (on
Big Sur and above use `Apple Inc. VirtIO Block Device`) and
click **Erase**.
- Enter a `Name:` for the disk
- If you are installing macOS Mojave or later (Catalina, Big
Sur, and Monterey), choose any of the APFS options as the
filesystem. MacOS Extended may not work.
- Click **Erase**.
- Click **Done**.
- Close Disk Utility
- From **macOS Utilities**
- Click **Reinstall macOS** and **Continue**
- Complete the installation as you normally would.
- On the first reboot use cursor keys and enter key to select
**macOS Installer**
- On the subsequent reboots use cursor keys and enter key to
select the disk you named
- Once you have finished installing macOS you will be presented with
an the out-of-the-box first-start wizard to configure various
options and set up your username and password
- OPTIONAL: After you have concluded the out-of-the-box wizard, you
may want to enable the TRIM feature that the computer industry
created for SSD disks. This feature in our macOS installation will
allow QuickEmu to compact (shrink) your macOS disk image whenever
you delete files inside the Virtual Machine. Without this step your
macOS disk image will only ever get larger and will not shrink even
when you delete lots of data inside macOS.
- To enable TRIM, open the Terminal application and type the
following command followed by pressing
`<kbd>`{=html}enter`</kbd>`{=html} to tell macos to use the TRIM
command on the hard disk when files are deleted:
``` bash
sudo trimforce enable
```
You will be prompted to enter your account's password to gain the
privilege needed. Once you've entered your password and pressed
`<kbd>`{=html}enter`</kbd>`{=html} the command will request confirmation
in the form of two questions that require you to type
`<kbd>`{=html}y`</kbd>`{=html} (for a "yes" response) followed by
`<kbd>`{=html}enter`</kbd>`{=html} to confirm. If you press
`<kbd>`{=html}enter`</kbd>`{=html} without first typing
`<kbd>`{=html}y`</kbd>`{=html} the system will consider that a negative
response as though you said "no":
``` plain
IMPORTANT NOTICE: This tool force-enables TRIM for all relevant attached devices, even though such devices may not have been validated for data integrity while using TRIM. Use of this tool to enable TRIM may result in unintended data loss or data corruption. It should not be used in a commercial operating environment or with important data. Before using this tool, you should back up all of your data and regularly back up data while TRIM is enabled. This tool is provided on an "as is" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THIS TOOL OR ITS USE ALONE OR IN COMBINATION WITH YOUR DEVICES, SYSTEMS, OR SERVICES. BY USING THIS TOOL TO ENABLE TRIM, YOU AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE TOOL IS AT YOUR SOLE RISK AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND EFFORT IS WITH YOU.
Are you sure you with to proceed (y/N)?
```
And a second confirmation once you've confirmed the previous one:
``` plain
Your system will immediately reboot when this is complete.
Is this OK (y/N)?
```
As the last message states, your system will automatically reboot as
soon as the command completes.
The default macOS configuration looks like this:
``` bash
guest_os="macos"
img="macos-catalina/RecoveryImage.img"
disk_img="macos-catalina/disk.qcow2"
macos_release="catalina"
```
- `guest_os="macos"` instructs Quickemu to optimise for macOS.
- `macos_release="catalina"` instructs Quickemu to optimise for a
particular macOS release.
- For example VirtIO Network and Memory Ballooning are available
in Big Sur and newer, but not previous releases.
- And VirtIO Block Media (disks) are supported/stable in Catalina
and newer.
### macOS compatibility
There are some considerations when running macOS via Quickemu.
- Supported macOS releases:
- High Sierra
- Mojave
- Catalina **(Recommended)**
- Big Sur
- Monterey
- `quickemu` will automatically download the required
[OpenCore](https://github.com/acidanthera/OpenCorePkg) bootloader
and OVMF firmware from [OSX-KVM](https://github.com/kholia/OSX-KVM).
- Optimised by default, but no GPU acceleration is available.
- Host CPU vendor is detected and guest CPU is optimised
accordingly.
- [VirtIO Block
Media](https://www.kraxel.org/blog/2019/06/macos-qemu-guest/) is
used for the system disk where supported.
- [VirtIO `usb-tablet`](http://philjordan.eu/osx-virt/) is used
for the mouse.
- VirtIO Network (`virtio-net`) is supported and enabled on macOS
Big Sur and newer but previous releases use `vmxnet3`.
- VirtIO Memory Ballooning is supported and enabled on macOS Big
Sur and newer but disabled for other support macOS releases.
- USB host and SPICE pass-through is:
- UHCI (USB 2.0) on macOS Catalina and earlier.
- XHCI (USB 3.0) on macOS Big Sur and newer.
- Display resolution can only be changed via macOS System Preferences.
- **Full Duplex audio requires [VoodooHDA
OC](https://github.com/chris1111/VoodooHDA-OC) or pass-through a USB
audio-device to the macOS guest VM**.
- NOTE! [Gatekeeper](https://disable-gatekeeper.github.io/) and
[System Integrity Protection
(SIP)](https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection)
need to be disabled to install VoodooHDA OC
- File sharing between guest and host is available via
[virtio-9p](https://wiki.qemu.org/Documentation/9psetup) and [SPICE
webdavd](https://gitlab.gnome.org/GNOME/phodav/-/merge_requests/24).
- Copy/paste via SPICE agent is **not available on macOS**.
### macOS App Store
If you see *"Your device or computer could not be verified"* when you
try to login to the App Store, make sure that your wired ethernet device
is `en0`. Use `ifconfig` in a terminal to verify this.
If the wired ethernet device is not `en0`, then then go to *System
Preferences* -\> *Network*, delete all the network devices and apply the
changes. Next, open a terminal and run the following:
``` bash
sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
```
Now reboot, and the App Store should work.
## Windows 10 & 11 Guests
`quickget` can download
[Windows10](https://www.microsoft.com/software-download/windows10) and
[Windows 11](https://www.microsoft.com/software-download/windows11)
automatically and create an optimised virtual machine configuration.
This configuration also includes the [VirtIO drivers for
Windows](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/).
``` bash
quickget windows 11
quickemu --vm windows-11-22H2.conf
```
- Complete the installation as you normally would.
- All relevant drivers and services should be installed automatically.
- A local adminstrator user account is automatically created, with
these credentials:
- Username: `Quickemu`
- Password: `quickemu`
The default Windows 11 configuration looks like this:
``` bash
guest_os="windows"
disk_img="windows-11/disk.qcow2"
iso="windows-11/windows-11.iso"
fixed_iso="windows-11/virtio-win.iso"
tpm="on"
secureboot="on"
```
- `guest_os="windows"` instructs `quickemu` to optimise for Windows.
- `fixed_iso=` specifies the ISO image that provides VirtIO drivers.
- `tpm="on"` instructs `quickemu` to create a software emulated TPM
device using `swtpm`.
# AUTHORS
Written by Martin Wimpress.
# BUGS
Submit bug reports online at:
<https://github.com/quickemu-project/quickemu/issues>
# SEE ALSO
Full sources at: <https://github.com/quickemu-project/quickemu>
quickemu(1), quickemu_conf(1), quickgui(1)

View File

@ -9,10 +9,14 @@ Copyright (c) 2019, vit9696
from __future__ import print_function from __future__ import print_function
import argparse import argparse
import binascii
import datetime import datetime
import hashlib
import json import json
import linecache
import os import os
import random import random
import struct
import sys import sys
import textwrap import textwrap
import time import time
@ -79,6 +83,54 @@ def mlb_from_eeee(eeee):
return '00000000000' + eeee + '00' return '00000000000' + eeee + '00'
def int_from_unsigned_bytes(bytes, byteorder):
if byteorder == 'little': bytes = bytes[::-1]
encoded = binascii.hexlify(bytes)
return int(encoded, 16)
# zhangyoufu https://gist.github.com/MCJack123/943eaca762730ca4b7ae460b731b68e7#gistcomment-3061078 2021-10-08
Apple_EFI_ROM_public_key_1 = 0xC3E748CAD9CD384329E10E25A91E43E1A762FF529ADE578C935BDDF9B13F2179D4855E6FC89E9E29CA12517D17DFA1EDCE0BEBF0EA7B461FFE61D94E2BDF72C196F89ACD3536B644064014DAE25A15DB6BB0852ECBD120916318D1CCDEA3C84C92ED743FC176D0BACA920D3FCF3158AFF731F88CE0623182A8ED67E650515F75745909F07D415F55FC15A35654D118C55A462D37A3ACDA08612F3F3F6571761EFCCBCC299AEE99B3A4FD6212CCFFF5EF37A2C334E871191F7E1C31960E010A54E86FA3F62E6D6905E1CD57732410A3EB0C6B4DEFDABE9F59BF1618758C751CD56CEF851D1C0EAA1C558E37AC108DA9089863D20E2E7E4BF475EC66FE6B3EFDCF
ChunkListHeader = struct.Struct('<4sIBBBxQQQ')
assert ChunkListHeader.size == 0x24
Chunk = struct.Struct('<I32s')
assert Chunk.size == 0x24
def verify_chunklist(cnkpath):
with open(cnkpath, 'rb') as f:
hash_ctx = hashlib.sha256()
data = f.read(ChunkListHeader.size)
hash_ctx.update(data)
magic, header_size, file_version, chunk_method, signature_method, chunk_count, chunk_offset, signature_offset = ChunkListHeader.unpack(data)
assert magic == b'CNKL'
assert header_size == ChunkListHeader.size
assert file_version == 1
assert chunk_method == 1
assert signature_method in [1, 2]
assert chunk_count > 0
assert chunk_offset == 0x24
assert signature_offset == chunk_offset + Chunk.size * chunk_count
for i in range(chunk_count):
data = f.read(Chunk.size)
hash_ctx.update(data)
chunk_size, chunk_sha256 = Chunk.unpack(data)
yield chunk_size, chunk_sha256
digest = hash_ctx.digest()
if signature_method == 1:
data = f.read(256)
assert len(data) == 256
signature = int_from_unsigned_bytes(data, 'little')
plaintext = 0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff003031300d0609608648016503040201050004200000000000000000000000000000000000000000000000000000000000000000 | int_from_unsigned_bytes(digest, 'big')
assert pow(signature, 0x10001, Apple_EFI_ROM_public_key_1) == plaintext
elif signature_method == 2:
data = f.read(32)
assert data == digest
raise RuntimeError('Chunklist missing digital signature')
else:
raise NotImplementedError
assert f.read(1) == b''
def get_session(args): def get_session(args):
headers = { headers = {
'Host' : 'osrecovery.apple.com', 'Host' : 'osrecovery.apple.com',
@ -173,6 +225,26 @@ def save_image(url, sess, filename='', dir=''):
sys.stdout.flush() sys.stdout.flush()
print('\rDownload complete!') print('\rDownload complete!')
return os.path.join(dir, os.path.basename(filename))
def verify_image(dmgpath, cnkpath):
print('Verifying image with chunklist...')
with open (dmgpath, 'rb') as dmgf:
cnkcount = 0
for cnksize, cnkhash in verify_chunklist(cnkpath):
cnkcount += 1
print('\rChunk {} ({} bytes)'.format(cnkcount, cnksize), end='')
sys.stdout.flush()
cnk = dmgf.read(cnksize)
if len(cnk) != cnksize:
raise RuntimeError('Invalid chunk {} size: expected {}, read {}'.format(cnkcount, cnksize, len(cnk)))
if hashlib.sha256(cnk).digest() != cnkhash:
raise RuntimeError('Invalid chunk {}: hash mismatch'.format(cnkcount))
if dmgf.read(1) != b'':
raise RuntimeError('Invalid image: larger than chunklist')
print('\rImage verification complete!')
def action_download(args): def action_download(args):
""" """
Reference information for queries: Reference information for queries:
@ -208,10 +280,23 @@ def action_download(args):
print(info) print(info)
print('Downloading ' + info[INFO_PRODUCT] + '...') print('Downloading ' + info[INFO_PRODUCT] + '...')
dmgname = '' if args.basename == '' else args.basename + '.dmg' dmgname = '' if args.basename == '' else args.basename + '.dmg'
save_image(info[INFO_IMAGE_LINK], info[INFO_IMAGE_SESS], dmgname, args.outdir) dmgpath = save_image(info[INFO_IMAGE_LINK], info[INFO_IMAGE_SESS], dmgname, args.outdir)
cnkname = '' if args.basename == '' else args.basename + '.chunklist' cnkname = '' if args.basename == '' else args.basename + '.chunklist'
save_image(info[INFO_SIGN_LINK], info[INFO_SIGN_SESS], cnkname, args.outdir) cnkpath = save_image(info[INFO_SIGN_LINK], info[INFO_SIGN_SESS], cnkname, args.outdir)
return 0 try:
verify_image(dmgpath, cnkpath)
return 0
except Exception as err:
if isinstance(err, AssertionError) and str(err)=='':
try:
tb = sys.exc_info()[2]
while tb.tb_next:
tb = tb.tb_next
err = linecache.getline(tb.tb_frame.f_code.co_filename, tb.tb_lineno, tb.tb_frame.f_globals).strip()
except:
err = "Invalid chunklist"
print('\rImage verification failed. ({})'.format(err))
return 1
def action_selfcheck(args): def action_selfcheck(args):
""" """

1471
quickemu

File diff suppressed because it is too large Load Diff

2689
quickget

File diff suppressed because it is too large Load Diff

85
windowskey Executable file
View File

@ -0,0 +1,85 @@
#!/usr/bin/env python3
import html.parser
import os
import sys
import urllib.request
"""
Download Windows product keys from MicroSoft
"""
key_page_url = "https://docs.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys"
def usage():
script = os.path.basename(sys.argv[0])
message = f"""Usage: {script} [windows-version]
To specify the version of Windows you'd like, pass a string that matches the
name of the operating system you'd like to download. Case doesn't matter, so
you can use "windows 10" or "Windows 10".
e.g.
{script} "Windows 10"
{script} "enterprise"
"""
print(message, file=sys.stderr)
sys.exit(0)
def download_page(url):
response = urllib.request.urlopen(url)
return response.read().decode("utf-8")
class WindowsKeyPageParser(html.parser.HTMLParser):
def __init__(self, *, convert_charrefs=True):
super().__init__(convert_charrefs=True)
self.product_keys = {}
self.parsing_os = False
def handle_starttag(self, tag, attrs):
self.parsing_os = tag == "td"
def handle_endtag(self, tag):
self.parsing_os = False
def handle_data(self, data):
if self.parsing_os:
self.stash_table_cell(data)
def stash_table_cell(self, data):
if "Windows" in data:
self.current_os = data
else:
product_key = data
self.product_keys[self.current_os] = product_key
def find_keys_for_all_versions(markup):
parser = WindowsKeyPageParser()
parser.feed(markup)
return parser.product_keys
if __name__ == "__main__":
try:
arg = sys.argv[1]
except IndexError:
windows_version = ""
else:
if arg in ["-h", "--help"]:
usage()
windows_version = arg
markup = download_page(key_page_url)
product_keys = find_keys_for_all_versions(markup)
for os_name, product_key in product_keys.items():
if windows_version.lower() in os_name.lower():
print(f"{os_name}: {product_key}")