Commit Graph

607 Commits

Author SHA1 Message Date
Phil Clifford 1f0dc50194 fix: extend search for smbd 2024-08-27 10:41:42 +01:00
Gitsarry 18cdda254b fix: make function ignore_msrs_always work
With the previous version the file was never written if it not existed before, logic bug.
2024-08-27 10:38:41 +01:00
Liam 35f8e9333d fix: Use 1 as default sockets value 2024-08-27 10:37:54 +01:00
Chase Covello 070514d449
Fix: set RTC to localtime only for Windows/ReactOS/DOS and UTC for all others (#1429)
* Set RTC to localtime only for Windows/ReactOS/DOS and UTC for all other OS

Windows/ReactOS/DOS conventionally set the system RTC to local time, but Linux/UNIX/macOS use UTC. Guest systems that expect UTC and have the time zone set to local time will have the wrong system clock time at startup until they set the clock with NTP. This is especially an issue for disk images imported from or shared with another VM configuration that uses UTC for non-Windows guests.

* Removed RTC driftfix option for non-Windows/ReactOS/DOS guests

According to the QEMU man page:

    Enable driftfix (i386 targets only) if you experience time
    drift problems, specifically with Windows' ACPI HAL. This
    option will try to figure out how many timer interrupts were
    not processed by the Windows guest and will re-inject them.

This option thus seems unnecessary for other systems and may cause
performance or timekeeping issues, so enable only for
Windows/ReactOS/DOS.
2024-08-27 10:37:21 +01:00
Martin Wimpress ca8f81f7fb refactor: display socket hints based on what tools are available 2024-07-04 16:24:26 +01:00
Martin Wimpress 8cf007f8eb fix: requesting --help is not an error 2024-07-02 13:37:16 +01:00
Phil Clifford 1cf80e7d81 fix: get rounded integer RAM_HOST values 2024-07-02 02:26:41 +01:00
Luke Yelavich e18b7ed591 feat: Disable copy on write for qcow2 disk images on btrfs
According to qemu-img documentation, it is a no-op for other filesystems.
2024-06-30 13:23:33 +01:00
Luke Yelavich 5d1c8dfc4c fix: Do not set the lazy_refcounts option for raw disk images 2024-06-30 13:23:33 +01:00
Martin Wimpress 811b48cc4e fix: pass relevant arguments to Exec when creating shortcuts. close #1285 2024-06-30 13:14:58 +01:00
Martin Wimpress 52e50f9815 fix: get VM PID early so kill_vm() works reliably 2024-06-30 12:13:58 +01:00
Martin Wimpress 589f2c9a5c refactor: attempt to press any key 5 times during Window boot from CD/DVD 2024-06-30 12:06:54 +01:00
Martin Wimpress 8c10b20fb7
fix: correctly run VMs when PWD is not relative to the VM directory 2024-06-30 12:05:46 +01:00
Martin Wimpress 5e90e336fe fix(windows-server): default to e1000 network device. fixes #1315 2024-06-30 11:52:25 +01:00
Martin Wimpress 5f8c40f7ab chore: bump version to 4.9.6 2024-06-26 21:52:18 +01:00
Martin Wimpress 1c89f520f2 style: indent RAM allocation warnings/errors 2024-06-25 12:55:13 +01:00
Martin Wimpress a4860869ee style: update warnings/errors for insufficient RAM allocation 2024-06-25 11:41:24 +01:00
takase1121 3a07d353b9 feat(quickemu): allow overriding insufficient RAM error
When RAM is not specified in the config and the min RAM is not met, quickemu tells the user to override the RAM amount and exits.
If the user overrides the RAM, the script should allow the user to continue with a warning.
2024-06-25 11:13:37 +01:00
Martin Wimpress 4b30ea21f4 fix: correct typo in max_outputs conditional 2024-06-25 10:54:35 +01:00
Martin Wimpress b8aabcb892
fix: correctly check for passthrough smartcard support. close #888 (#1293) 2024-06-24 10:07:35 +01:00
Martin Wimpress 9303b73ebe fix: running quickemu and quickreport in zsh. close #1268
Due to zsh auto completion of piping to `grep [0-9]` does not work. This patch fixes this problem by quoting `"[0-9]"`.
2024-06-24 09:02:43 +01:00
Martin Joerg a7271034cf fix: don't declare SPICE as local within configure_ports. close #1240
Functionality was split across several functions in
e29173a16d, so SPICE cannot be local
anymore as it is also referenced in vm_boot.
2024-06-24 08:50:25 +01:00
Martin Wimpress 7f250ed1b0 fix: make sure all use of head and tail is portable. close #1238 2024-05-24 09:38:58 -04:00
Martin Wimpress dbe9f612fb fix: handle multiple CPU models returned via lscpu; Asahi Linux for example 2024-05-17 23:18:54 +01:00
Martin Wimpress b009e5cef5 feat: improve compatibility of macOS on non-Intel host CPUs
Adapted from https://github.com/quickemu-project/quickemu/issues/1114#issuecomment-2115516935

Tested full installs of Mojave, Catalina, Big Sur, Monterey, Ventura and Sonoma on AMD Ryzen 5950X. Performed updates post-install and installed Revolutionator.
2024-05-17 23:18:54 +01:00
Martin Wimpress 023a7355db doc: add comments about improving detection of running in a VM 2024-05-17 23:18:54 +01:00
Martin Wimpress 1b6cf0ad69 fix(wsl): suppress error getting sys_vendor when running on WSL2 2024-05-17 23:18:54 +01:00
Martin Wimpress 3e6acd8c98 feat: best guess for arach64 VMs on aarch64/arm64 hosts 2024-05-17 23:18:54 +01:00
Martin Wimpress ff02a7b2cb refactor: move all CPU related configuration to configure_cpu() 2024-05-17 23:18:54 +01:00
Martin Wimpress db04a6686a refactor(macos): tidy up the guest CPU configuration for macOS 2024-05-17 23:18:54 +01:00
Martin Wimpress 4a7f4a4932 refactor: enable topoext on AuthenticAMD for everything except macOS 2024-05-17 23:18:54 +01:00
Martin Wimpress aaeb413e3e refactor: consolidate KVM_GUEST_TWEAKS into GUEST_TWEAKS 2024-05-17 23:18:54 +01:00
Martin Wimpress 8d8c31e136 fix: remove Intel extended page table (ept) flag from macOS 2024-05-17 23:18:54 +01:00
Martin Wimpress da42a211d6 fix(darwin): emulate a CPU if attempting to run macOS in a VM 2024-05-17 23:18:54 +01:00
Martin Wimpress 6985a5f135 fix(darwin): workaround machdep.cpu.vendor being invalid on Apple silicon 2024-05-17 23:18:54 +01:00
Martin Wimpress b7ab6f6d36 feat: refactor virtualisation accelerators 2024-05-17 23:18:54 +01:00
Martin Wimpress 587d218f14 fix: use host cpu for macos if it is a GenuineIntel cpu on the host 2024-05-17 23:18:54 +01:00
Martin Wimpress 62377a77c0 style: show CPU_MODEL in quickemu output 2024-05-17 23:18:54 +01:00
Martin Wimpress d7fe13356c fix(darwin): allow display of 'none' 2024-05-17 23:18:54 +01:00
Martin Wimpress 5ab447e18e fix(darwin): update DISPLAY_DEVICE configuration to support cocoa 2024-05-17 23:18:54 +01:00
Martin Wimpress 98802b4891 refactor(darwin): overhaul CPU configuration 2024-05-17 23:18:54 +01:00
Martin Wimpress 83c16dad2c feat: add host and VM architecture; host is hard coded to x86_64 2024-05-17 23:18:54 +01:00
Martin Wimpress cefa2556f3 refactor: get QEMU version from qemu-img; avoids architecture complications 2024-05-17 23:18:54 +01:00
Martin Wimpress 6c07e3acdc fix(darwin): disable huge pages 2024-05-17 23:18:54 +01:00
Martin Wimpress a4818025d8 fix(darwin): convert CPU flags from Linux format to Darwin format 2024-05-17 23:18:54 +01:00
Martin Wimpress c3792c61f4 fix(darwin): call sw_vers with single switch for improved compatibility 2024-05-17 23:18:54 +01:00
Martin Wimpress 085dfea742 refactor(darwin): change DARWIN to OS_KERNEL for clear conditionals 2024-05-17 23:18:54 +01:00
Martin Wimpress 7e5d26daab refactor: rename HOST_OS to OS_RELEASE 2024-05-17 23:18:54 +01:00
Martin Wimpress eb661221ef refactor: change IN_VM to HYPERVISOR; 2024-05-17 23:18:54 +01:00
Martin Wimpress f14eed78ce fix(darwin): default display to cocoa on darwin 2024-05-17 23:18:54 +01:00