Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virt-manager/libvirt: tunneled migration fails due to missing ssh #221815

Closed
bjornfor opened this issue Mar 18, 2023 · 0 comments · Fixed by #221902
Closed

virt-manager/libvirt: tunneled migration fails due to missing ssh #221815

bjornfor opened this issue Mar 18, 2023 · 0 comments · Fixed by #221902

Comments

@bjornfor
Copy link
Contributor

bjornfor commented Mar 18, 2023

Describe the bug

Trying to migrate a VM in virt-manager fails with Unable to migrate guest: Cannot find 'ssh' in path: No such file or directory:

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create a VM in virt-manager.
  2. Select Virtual Machine -> Migrate, chose Connectivity Mode Tunneled and click Migrate.
  3. Witness error.

Screenshot below, here is the traceback:

Unable to migrate guest: Cannot find 'ssh' in path: No such file or directory

Traceback (most recent call last):
  File "/nix/store/3gzf8zw320sicv392rwxv8p9ifn7dh8q-virt-manager-4.1.0/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/nix/store/3gzf8zw320sicv392rwxv8p9ifn7dh8q-virt-manager-4.1.0/share/virt-manager/virtManager/migrate.py", line 429, in _async_migrate
    vm.migrate(dstconn, migrate_uri, tunnel, unsafe, temporary, xml,
  File "/nix/store/3gzf8zw320sicv392rwxv8p9ifn7dh8q-virt-manager-4.1.0/share/virt-manager/virtManager/object/domain.py", line 1515, in migrate
    self._backend.migrateToURI3(dest_uri, params, flags)
  File "/nix/store/h5lb90r9aqmwp2cpfp5ay4fdgs6m090a-python3.10-libvirt-8.10.0/lib/python3.10/site-packages/libvirt.py", line 2168, in migrateToURI3
    raise libvirtError('virDomainMigrateToURI3() failed')
libvirt.libvirtError: Cannot find 'ssh' in path: No such file or directory

Expected behavior

ssh is in $PATH and migration succeeds.

Screenshots

image

Notify maintainers

Metadata

NixOS 22.11.

Kranzes pushed a commit that referenced this issue Mar 19, 2023
Fixes this error when trying to migrate a VM using Connectivity Mode
Tunneled:

  Unable to migrate guest: Cannot find 'ssh' in path: No such file or directory

Fixes #221815
github-actions bot pushed a commit that referenced this issue Mar 19, 2023
Fixes this error when trying to migrate a VM using Connectivity Mode
Tunneled:

  Unable to migrate guest: Cannot find 'ssh' in path: No such file or directory

Fixes #221815

(cherry picked from commit 81aca8f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant