Commit Graph

8752 Commits

Author SHA1 Message Date
Andrea Bolognani
c3debb4eda cli, man: Always list --osinfo before --os-variant
The former is the preferred spelling and it should always be
presented first to the user.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2024-12-10 14:06:12 +01:00
Lin Ma
f92c25749b addhardware: panic: Fill in model combo with advertised values by libvirt
The commit c5a46646 asks libvirt to fill in a default panic model for us.
Now libvirt domcaps can advertise panic models, Let's fill in the panic
model combo with the advertised values.

Signed-off-by: Lin Ma <lma@suse.de>
2024-12-10 14:05:20 +01:00
Lin Ma
f9ceec2b14 tests: Update capabilities for advertisting panic device models
Signed-off-by: Lin Ma <lma@suse.de>
2024-12-10 14:05:20 +01:00
Lin Ma
c859c7acec domcaps: get list of supported panic device models
libvirt commit a52cd504 added support for advertisting panic device models.
Let's use it in domcapabilities.

Signed-off-by: Lin Ma <lma@suse.de>
2024-12-10 14:05:20 +01:00
Andrea Bolognani
8af438dd58 cpu: Prefer maximum mode for many emulated guests
The actual default CPU at the QEMU level is often a relatively
poor choice, which is stuck with just baseline functionality
and can sometimes not run modern guests at all.

Whenever possible, prefer maximum mode for a much nicer out of
the box experience.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2024-12-10 14:01:32 +01:00
Andrea Bolognani
11b70218d3 gui: Support maximum CPU mode
Allow the user to set it and recognize it correctly when the
domain is already using it.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2024-12-10 14:01:32 +01:00
Andrea Bolognani
fca41cfaa9 cli: Support --cpu maximum
This mode has been introduced in libvirt 7.1.0 (March 2021) and
can be already used today with

  --cpu mode=maximum

This is however slightly inconvenient to type and is not
consistent with the special treatment that the other modes
(host-passthrough, host-model) get.

Introduce a proper special mode for it.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2024-12-10 14:01:32 +01:00
Cole Robinson
ebf5d5f491 spec: rhel: drop spice dep, default to VNC
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-12-09 13:53:55 +01:00
Cole Robinson
ffc7d2bb1b spec: Remove unused with_guestfs
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-12-09 13:53:55 +01:00
Cole Robinson
94271b429e spec: Skip dconf dep if building for flatpak
Host dconf is apparently used in this case, and installing dconf
inside the flatpak is not necessary

https://src.fedoraproject.org/rpms/virt-manager/pull-request/4

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-12-09 13:53:55 +01:00
Cole Robinson
a4c84aa1bb spec: Add /usr/share/virt-manager/ui/ to RPM database (bz 2283244)
Using *.ui wildcard isn't necessary, just include the dir and all
its subfiles

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-12-09 13:53:55 +01:00
Pavel Hrdina
b74730ebb6 spec: update link to virt-manager sources
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2024-12-02 13:52:47 +01:00
dependabot[bot]
40d5804cdd ci: bump codecov/codecov-action from 4 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-29 18:36:38 +01:00
Pavel Hrdina
d17731aea1 Release of virt-manager 5.0.0
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2024-11-26 20:53:59 +01:00
Pavel Hrdina
cb2e5aa782 tests: urls: update old and obsolete OS versions
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2024-11-26 15:57:05 +01:00
Pavel Hrdina
06265f8013 tests: urls: replace Scientific Linux with AlmaLinux
Scientific Linux is no longer supported as it ended with version 7 so
change it to AlmaLinux that is mentioned to be used instead.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2024-11-26 15:54:45 +01:00
Weblate
4aa80f4c20 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/
2024-11-26 14:17:35 +01:00
Ettore Atalan
9efd05753d Translated using Weblate (German)
Currently translated at 88.0% (1300 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/de/
2024-11-26 14:17:35 +01:00
Jiri Grönroos
1ba412f362 Translated using Weblate (Finnish)
Currently translated at 98.7% (1457 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/fi/
2024-11-26 14:17:35 +01:00
Piotr Drąg
ff0b17e0b8 Translated using Weblate (Polish)
Currently translated at 100.0% (1476 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/pl/
2024-11-26 14:17:35 +01:00
김인수
cc6ddf4f43 Translated using Weblate (Korean)
Currently translated at 100.0% (1476 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/ko/
2024-11-26 14:17:35 +01:00
Yuri Chornoivan
160b8be21e Translated using Weblate (Ukrainian)
Currently translated at 100.0% (1476 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/uk/
2024-11-26 14:17:35 +01:00
Oğuz Ersen
34f990e32f Translated using Weblate (Turkish)
Currently translated at 100.0% (1476 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/tr/
2024-11-26 14:17:35 +01:00
Temuri Doghonadze
a6b6558cdb Translated using Weblate (Georgian)
Currently translated at 93.2% (1376 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/ka/
2024-11-26 14:17:35 +01:00
aa75b492a2 Translated using Weblate (Russian)
Currently translated at 100.0% (1476 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/ru/
2024-11-26 14:17:35 +01:00
Remus-Gabriel Chelu
89c98cdb97 Translated using Weblate (Romanian)
Currently translated at 100.0% (1476 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/ro/
2024-11-26 14:17:35 +01:00
Andika Triwidada
03e5e5369a Translated using Weblate (Indonesian)
Currently translated at 93.2% (1376 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/id/

Translated using Weblate (Indonesian)

Currently translated at 89.8% (1326 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/id/

Translated using Weblate (Indonesian)

Currently translated at 86.4% (1276 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/id/

Translated using Weblate (Indonesian)

Currently translated at 84.7% (1251 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/id/

Translated using Weblate (Indonesian)

Currently translated at 83.0% (1226 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/id/

Translated using Weblate (Indonesian)

Currently translated at 79.6% (1176 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/id/

Translated using Weblate (Indonesian)

Currently translated at 76.2% (1126 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/id/

Translated using Weblate (Indonesian)

Currently translated at 72.7% (1074 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/id/
2024-11-26 14:17:35 +01:00
Pavel Borecki
0a6cb73e90 Translated using Weblate (Czech)
Currently translated at 100.0% (1476 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/cs/
2024-11-26 14:17:35 +01:00
Luna Jernberg
d9b3b4dfd0 Translated using Weblate (Swedish)
Currently translated at 100.0% (1476 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/sv/

Translated using Weblate (Swedish)

Currently translated at 99.7% (1472 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/sv/
2024-11-26 14:17:35 +01:00
Pino Toscano
c70d8d6c06 Translated using Weblate (Italian)
Currently translated at 99.7% (1472 of 1476 strings)

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/it/
2024-11-26 14:17:35 +01:00
Weblate
e9ee09d8d1 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: virt-manager/virt-manager
Translate-URL: https://translate.fedoraproject.org/projects/virt-manager/virt-manager/
2024-11-26 14:17:35 +01:00
Pavel Hrdina
58c93f0e54 po: Refresh translation template
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2024-11-26 14:03:34 +01:00
Pavel Hrdina
14a6bd64ed po: meson: drop --join-existing from gettext arguments
With setup.py we cleared po/virt-manager.pot file and created a new
fresh content using gettext.

I missed that fact when converting to meson and with the --join-existing
argument the comments for each msgid were growing with references to
their location in source files.

There is no need to clear the file and generate it again because
removing the --join-existing will end up with the same result.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2024-11-26 14:03:26 +01:00
Cole Robinson
17f171cdb7 cli: add --network passt,portForward=8080:80 convenience syntax
Roughly mirroring `podman run -p` syntax. Examples:

--network passt,portForward=8080:80
--network passt,portForward0=7000-8000/udp,portForward1=127.0.0.1:2222:22

Resolves: https://github.com/virt-manager/virt-manager/issues/751

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-21 21:59:44 +01:00
Cole Robinson
2f8f0e8151 virt-xml: implement --edit --boot uefi=off
Disable all UEFI config bits for an existing VM

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-21 21:51:24 +01:00
Cole Robinson
cfcd63b74e virt-install: implement --boot uefi=off
Tells virt-install to not use UEFI, if it would normally default
to it.

This likely isn't too useful in practice, since all occasions we
default to UEFI require it. But it future proofs opt out in case
we ever start defaulting to UEFI in cases where BIOS still works.

Resolves: https://github.com/virt-manager/virt-manager/issues/692

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-21 21:51:24 +01:00
Cole Robinson
f082087348 cli: Add stub support for --boot uefi=on|off
The way `--boot uefi` is implemented allows a value to be passed,
but the value is completely ignored. So `--boot uefi=off` or
`--boot uefi=FOOBAR` is treated the same as `--boot uefi`

Lets fix this by making `--boot uefi` and `--boot uefi=on` the same,
`--boot uefi=off` will be implemented later, but any other value
throws an error. This is technically an CLI break but I don't
think it's anything to worry about

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-21 21:51:24 +01:00
Cole Robinson
f3aa24bd5d virt-install: use default --cpu mode more often
Currently we will only apply the default `--cpu mode=host-passthrough`
config when _no_ `--cpu` config is passed. But this means if a user
configures ex. cpu `<topology>`, we don't set `host-passthrough` and
they get the libvirt/qemu default baseline CPU.

Instead, only skip the default config if the user manually
specified a `mode` or `model` value directly

https://issues.redhat.com/browse/RHEL-65371

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-19 21:21:25 +01:00
Cole Robinson
8fb78739e7 virt-clone: try harder to allow nonexisting images with --preserve
Input XML can have non-existent disk images as long as `--preserve`
is used, or those disks are skipped for any reason. We already
handle that correctly in some cases, but others we fail. This
covers another one.

Resolves: https://github.com/virt-manager/virt-manager/issues/563

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-19 21:19:25 +01:00
Cole Robinson
058d8b4ccd storage: Add testsuite way to trigger StoragePool.install error
With the libvirt testdriver, we can create+start a directory
pool that points to any arbitrary host path. But this doesn't
match the behavior of the real storage driver, where pool start
will fail if the source directory doesn't exist.

Let's mock this by raising an exception if we are inside the
test suite and we see a special string in the pool XML

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-19 21:19:25 +01:00
Cole Robinson
3e47db67de virt-clone: document limits of --replace
`--replace` will attempt to remove any existing VM with the new
clone name before performing the clone operation. There's a report
that it will fail for an existing VM with nvram, since we need
aren't doing the equivalent of `virsh undefine --nvram`

https://issues.redhat.com/browse/RHEL-65105

Making `--replace` remove nvram is easy, but it kinda breaks some
Cloner assumptions about determining ahead of time whether we
need to clone nvram or not. It's fixable but it's messy.

Also, making changes here raises the question about how we should be
handling all the other `virsh undefine` flags that have appeared over
the years.

I think it's better to leave `--replace` as is, and just document
that it's doing the simplest equivalent of
`virsh destroy` + `virsh undefine`. Anything more complicated
than that will cause the clone operation to fail, the user needs
to handle VM removal themselves.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-19 21:19:25 +01:00
Cole Robinson
8eb87af411 cloner: Handle .qcow2 nvram extension
We were hardcoding .fd extension, but it can be different nowadays

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-19 21:19:25 +01:00
Cole Robinson
276aa4a72e virt-clone: only attempt --reflink for raw images
--reflink only works with raw images, since copying anything else
will hit the qemu-img code path in libvirt storage driver.
This can pop up more nowadays since UEFI support is using qcow2 as
well.

Let's only attempt --reflink for raw disk images. It's basically
an optimization anyways

https://bugzilla.redhat.com/show_bug.cgi?id=2256285

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-19 21:19:25 +01:00
Cole Robinson
a22ac0932e man: virt-clone: Fix typo
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-19 21:19:25 +01:00
Cole Robinson
625c99fbf4 guest: refactor _add_default_input_device
Default to adding tablet+keyboard if graphics and usb are configured.
This saves us from having to duplicate the arch list.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-19 19:41:19 +01:00
Cole Robinson
2835c250c7 virt-install: support --input none
Disables adding any default input devices

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-19 19:41:19 +01:00
Cole Robinson
c78ec96933 virt-install: let libvirt handle --input bus=default
Our logic here is poorly duplicating libvirt's postparse logic.
Notably it will try to add bus=ps2 on non-x86, and misses obscure
cases like parallels.

https://issues.redhat.com/browse/RHEL-66768

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-19 19:41:19 +01:00
Tomas Dabašinskas
fa927c7836 add a note that tpm can be effectively disabled by passing none 2024-11-19 10:24:33 -05:00
Emmanuel Ferdman
f211e1a566 update virt-manager.spec.in reference
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2024-11-14 17:17:39 +01:00
Cole Robinson
d93e3cb8d4 ci: fix libvirt upstream job after meson
Was erroring with 'Dist currently only works with Git or Mercurial
repos'. Seems like something about the libvirt checkout ordering
caused problems

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-11-13 10:49:38 -05:00