virtui-manager 2.4.3__tar.gz → 2.4.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. {virtui_manager-2.4.3/src/virtui_manager.egg-info → virtui_manager-2.4.4}/PKG-INFO +4 -2
  2. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/README.md +3 -1
  3. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/pyproject.toml +1 -1
  4. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/requirements.txt +1 -0
  5. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/setup.cfg +1 -1
  6. {virtui_manager-2.4.3 → virtui_manager-2.4.4/src/virtui_manager.egg-info}/PKG-INFO +4 -2
  7. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/virtui_manager.egg-info/SOURCES.txt +3 -0
  8. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/appdocs/howto_virtiofs.md +5 -4
  9. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/constants.py +1 -1
  10. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/libvirt_utils.py +96 -0
  11. virtui_manager-2.4.4/src/vmanager/provisioning/providers/generic_provider.py +50 -0
  12. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vm_actions.py +23 -0
  13. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vm_provisioner.py +77 -13
  14. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/webconsole_manager.py +66 -8
  15. virtui_manager-2.4.4/tests/test_auto_install_reboot_handling.py +325 -0
  16. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_constants.py +1 -1
  17. virtui_manager-2.4.4/tests/test_direct_kernel_boot_cmdline.py +254 -0
  18. virtui_manager-2.4.4/tests/test_generic_provider.py +17 -0
  19. virtui_manager-2.4.4/tests/test_machine_type_detection.py +135 -0
  20. virtui_manager-2.4.3/src/vmanager/provisioning/providers/generic_provider.py +0 -131
  21. virtui_manager-2.4.3/tests/test_generic_provider.py +0 -67
  22. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/LICENSE +0 -0
  23. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/MANIFEST.in +0 -0
  24. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/virtui_manager.egg-info/dependency_links.txt +0 -0
  25. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/virtui_manager.egg-info/entry_points.txt +0 -0
  26. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/virtui_manager.egg-info/requires.txt +0 -0
  27. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/virtui_manager.egg-info/top_level.txt +0 -0
  28. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/__init__.py +0 -0
  29. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/appdocs/howto_disk.md +0 -0
  30. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/appdocs/howto_network.md +0 -0
  31. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/appdocs/howto_overlay.md +0 -0
  32. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/appdocs/howto_ssh.md +0 -0
  33. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/auto_http_server.py +0 -0
  34. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/backup_manager.py +0 -0
  35. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/config.py +0 -0
  36. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/connection_manager.py +0 -0
  37. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/dialog.css +0 -0
  38. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/events.py +0 -0
  39. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/firmware_manager.py +0 -0
  40. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/gui_wrapper.py +0 -0
  41. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/i18n.py +0 -0
  42. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/libvirt_error_handler.py +0 -0
  43. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/locale/de/LC_MESSAGES/virtui-manager.po +0 -0
  44. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/locale/fr/LC_MESSAGES/virtui-manager.po +0 -0
  45. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/locale/it/LC_MESSAGES/virtui-manager.po +0 -0
  46. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/locale/virtui-manager.pot +0 -0
  47. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/__init__.py +0 -0
  48. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/about_modal.py +0 -0
  49. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/base_modals.py +0 -0
  50. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/bulk_modals.py +0 -0
  51. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/cache_stats_modal.py +0 -0
  52. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/capabilities_modal.py +0 -0
  53. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/config_modal.py +0 -0
  54. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/cpu_mem_pc_modals.py +0 -0
  55. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/custom_migration_modal.py +0 -0
  56. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/disk_pool_modals.py +0 -0
  57. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/host_dashboard_modal.py +0 -0
  58. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/host_stats.py +0 -0
  59. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/howto_disk_modal.py +0 -0
  60. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/howto_network_modal.py +0 -0
  61. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/howto_overlay_modal.py +0 -0
  62. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/howto_ssh_modal.py +0 -0
  63. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/howto_virtiofs_modal.py +0 -0
  64. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/input_modals.py +0 -0
  65. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/log_modal.py +0 -0
  66. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/migration_modals.py +0 -0
  67. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/network_modals.py +0 -0
  68. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/provisioning_modals.py +0 -0
  69. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/select_server_modals.py +0 -0
  70. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/selection_modals.py +0 -0
  71. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/server_modals.py +0 -0
  72. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/server_prefs_modals.py +0 -0
  73. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/template_modals.py +0 -0
  74. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/utils_modals.py +0 -0
  75. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/virsh_modals.py +0 -0
  76. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/virtiofs_modals.py +0 -0
  77. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/vm_type_info_modal.py +0 -0
  78. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/vmanager_modals.py +0 -0
  79. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/vmcard_dialog.py +0 -0
  80. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/vmdetails_modals.py +0 -0
  81. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/modals/xml_modals.py +0 -0
  82. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/network_manager.py +0 -0
  83. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/pipeline.py +0 -0
  84. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/__init__.py +0 -0
  85. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/os_provider.py +0 -0
  86. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/provider_registry.py +0 -0
  87. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/providers/__init__.py +0 -0
  88. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/providers/alpine_provider.py +0 -0
  89. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/providers/archlinux_provider.py +0 -0
  90. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/providers/debian_provider.py +0 -0
  91. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/providers/fedora_provider.py +0 -0
  92. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/providers/opensuse_provider.py +0 -0
  93. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/providers/ubuntu_provider.py +0 -0
  94. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/README.md +0 -0
  95. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/agama-basic.json +0 -0
  96. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/agama-desktop.json +0 -0
  97. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/agama-development.json +0 -0
  98. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/agama-minimal.json +0 -0
  99. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/agama-server-sles.json +0 -0
  100. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/agama-server.json +0 -0
  101. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/alpine-answers-basic.txt +0 -0
  102. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/alpine-answers-gnome.txt +0 -0
  103. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/alpine-answers-lxqt.txt +0 -0
  104. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/alpine-answers-mate.txt +0 -0
  105. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/alpine-answers-plasma.txt +0 -0
  106. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/alpine-answers-sway.txt +0 -0
  107. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/alpine-answers-xfce.txt +0 -0
  108. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/archinstall-basic.json +0 -0
  109. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/auto_template_manager.py +0 -0
  110. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/autoinstall-basic.yaml +0 -0
  111. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/autoinstall-desktop.yaml +0 -0
  112. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/autoinstall-minimal.yaml +0 -0
  113. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/autoyast-basic.xml +0 -0
  114. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/autoyast-desktop.xml +0 -0
  115. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/autoyast-development.xml +0 -0
  116. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/autoyast-minimal.xml +0 -0
  117. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/autoyast-server-sle.xml +0 -0
  118. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/autoyast-server.xml +0 -0
  119. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/autoyast-skeleton.xml +0 -0
  120. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/kickstart-basic.cfg +0 -0
  121. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/kickstart-desktop.cfg +0 -0
  122. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/kickstart-development.cfg +0 -0
  123. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/kickstart-minimal.cfg +0 -0
  124. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/kickstart-server.cfg +0 -0
  125. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/preseed-basic.cfg +0 -0
  126. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/preseed-desktop.cfg +0 -0
  127. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/provisioning/templates/preseed-minimal.cfg +0 -0
  128. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/storage_manager.py +0 -0
  129. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/utils.py +0 -0
  130. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/__init__.py +0 -0
  131. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/constants.py +0 -0
  132. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/display_manager.py +0 -0
  133. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/handlers/__init__.py +0 -0
  134. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/handlers/clipboard.py +0 -0
  135. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/handlers/display.py +0 -0
  136. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/handlers/power.py +0 -0
  137. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/handlers/vm_state.py +0 -0
  138. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/ssh_tunnel.py +0 -0
  139. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/ui/__init__.py +0 -0
  140. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/ui/console_tab.py +0 -0
  141. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/ui/main_window.py +0 -0
  142. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/ui/menus.py +0 -0
  143. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/ui/snapshot_tab.py +0 -0
  144. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/ui/usb_tab.py +0 -0
  145. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/utils/__init__.py +0 -0
  146. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/utils/config.py +0 -0
  147. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/utils/notifications.py +0 -0
  148. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/viewer/viewer_app.py +0 -0
  149. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/virtui_dev.py +0 -0
  150. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vm_cache.py +0 -0
  151. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vm_migration.py +0 -0
  152. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vm_queries.py +0 -0
  153. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vm_service.py +0 -0
  154. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vmanager.css +0 -0
  155. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vmanager.py +0 -0
  156. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vmanager_cmd.py +0 -0
  157. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vmcard.css +0 -0
  158. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vmcard.py +0 -0
  159. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/vmcard_pool.py +0 -0
  160. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/src/vmanager/wrapper.py +0 -0
  161. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_alpine_kernel_extraction.py +0 -0
  162. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_alpine_provider.py +0 -0
  163. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_cmdline_generation.py +0 -0
  164. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_config.py +0 -0
  165. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_firmware_manager.py +0 -0
  166. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_opensuse_agama_product.py +0 -0
  167. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_pipeline.py +0 -0
  168. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_provider_selection.py +0 -0
  169. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_provisioning_registry.py +0 -0
  170. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_sles_fix.py +0 -0
  171. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_template_editing.py +0 -0
  172. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_template_management.py +0 -0
  173. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_ubuntu_kernel_extraction.py +0 -0
  174. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_utils.py +0 -0
  175. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_vm_actions.py +0 -0
  176. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_vm_provisioner_download.py +0 -0
  177. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_vm_provisioner_nvram.py +0 -0
  178. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_vm_queries.py +0 -0
  179. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_vm_service.py +0 -0
  180. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_vmanager.py +0 -0
  181. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_vmanager_cmd.py +0 -0
  182. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_vmcard.py +0 -0
  183. {virtui_manager-2.4.3 → virtui_manager-2.4.4}/tests/test_worker_manager.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: virtui-manager
3
- Version: 2.4.3
3
+ Version: 2.4.4
4
4
  Summary: Terminal-based interface to manage virtual machines using libvirt
5
5
  Home-page: https://aginies.github.io/virtui-manager/
6
6
  Author: Antoine Ginies
@@ -50,6 +50,8 @@ Dynamic: license-file
50
50
 
51
51
  # VirtUI Manager
52
52
 
53
+ [Project Website](https://aginies.github.io/virtui-manager/)
54
+
53
55
  A powerful, text-based Terminal User Interface (TUI) application for managing QEMU/KVM virtual machines using the libvirt Python API.
54
56
 
55
57
  ![Main](documentation/manual/images/main.png)
@@ -79,7 +81,7 @@ VirtUI Manager solves these challenges with:
79
81
  - **Bulk Operations**: Execute commands across multiple VMs at once (including configuration)
80
82
  - **Web Console Access**: Integrated VNC support with novnc over ssh tunnel for remote server
81
83
  - **CMD line interface**: improved command line to manage VMs: multi hypervisors, VMs selection, clone operation, bulk command, etc...
82
- - **Auto installtion**: Support auto installation for Debian, Ubuntu, Fedora, Archlinux (WIP), OpenSUSE and SLES (with SCC registration)
84
+ - **Auto Installation**: Support auto installation for Debian, Ubuntu, Fedora, Archlinux (WIP), Alpine, OpenSUSE and SLES (with SCC registration)
83
85
 
84
86
  ## Documentation
85
87
 
@@ -1,5 +1,7 @@
1
1
  # VirtUI Manager
2
2
 
3
+ [Project Website](https://aginies.github.io/virtui-manager/)
4
+
3
5
  A powerful, text-based Terminal User Interface (TUI) application for managing QEMU/KVM virtual machines using the libvirt Python API.
4
6
 
5
7
  ![Main](documentation/manual/images/main.png)
@@ -29,7 +31,7 @@ VirtUI Manager solves these challenges with:
29
31
  - **Bulk Operations**: Execute commands across multiple VMs at once (including configuration)
30
32
  - **Web Console Access**: Integrated VNC support with novnc over ssh tunnel for remote server
31
33
  - **CMD line interface**: improved command line to manage VMs: multi hypervisors, VMs selection, clone operation, bulk command, etc...
32
- - **Auto installtion**: Support auto installation for Debian, Ubuntu, Fedora, Archlinux (WIP), OpenSUSE and SLES (with SCC registration)
34
+ - **Auto Installation**: Support auto installation for Debian, Ubuntu, Fedora, Archlinux (WIP), Alpine, OpenSUSE and SLES (with SCC registration)
33
35
 
34
36
  ## Documentation
35
37
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "virtui-manager"
7
- version = "2.4.3"
7
+ version = "2.4.4"
8
8
  description = "Terminal-based interface to manage virtual machines using libvirt"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -7,3 +7,4 @@ pytest-cov
7
7
  packaging
8
8
  netifaces
9
9
  requests
10
+ linkify-it-py
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = virtui-manager
3
- version = 2.4.3
3
+ version = 2.4.4
4
4
  description = Terminal-based interface to manage virtual machines using libvirt
5
5
  long_description = file: README.md
6
6
  long_description_content_type = text/markdown
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: virtui-manager
3
- Version: 2.4.3
3
+ Version: 2.4.4
4
4
  Summary: Terminal-based interface to manage virtual machines using libvirt
5
5
  Home-page: https://aginies.github.io/virtui-manager/
6
6
  Author: Antoine Ginies
@@ -50,6 +50,8 @@ Dynamic: license-file
50
50
 
51
51
  # VirtUI Manager
52
52
 
53
+ [Project Website](https://aginies.github.io/virtui-manager/)
54
+
53
55
  A powerful, text-based Terminal User Interface (TUI) application for managing QEMU/KVM virtual machines using the libvirt Python API.
54
56
 
55
57
  ![Main](documentation/manual/images/main.png)
@@ -79,7 +81,7 @@ VirtUI Manager solves these challenges with:
79
81
  - **Bulk Operations**: Execute commands across multiple VMs at once (including configuration)
80
82
  - **Web Console Access**: Integrated VNC support with novnc over ssh tunnel for remote server
81
83
  - **CMD line interface**: improved command line to manage VMs: multi hypervisors, VMs selection, clone operation, bulk command, etc...
82
- - **Auto installtion**: Support auto installation for Debian, Ubuntu, Fedora, Archlinux (WIP), OpenSUSE and SLES (with SCC registration)
84
+ - **Auto Installation**: Support auto installation for Debian, Ubuntu, Fedora, Archlinux (WIP), Alpine, OpenSUSE and SLES (with SCC registration)
83
85
 
84
86
  ## Documentation
85
87
 
@@ -152,11 +152,14 @@ src/vmanager/viewer/utils/config.py
152
152
  src/vmanager/viewer/utils/notifications.py
153
153
  tests/test_alpine_kernel_extraction.py
154
154
  tests/test_alpine_provider.py
155
+ tests/test_auto_install_reboot_handling.py
155
156
  tests/test_cmdline_generation.py
156
157
  tests/test_config.py
157
158
  tests/test_constants.py
159
+ tests/test_direct_kernel_boot_cmdline.py
158
160
  tests/test_firmware_manager.py
159
161
  tests/test_generic_provider.py
162
+ tests/test_machine_type_detection.py
160
163
  tests/test_opensuse_agama_product.py
161
164
  tests/test_pipeline.py
162
165
  tests/test_provider_selection.py
@@ -50,10 +50,11 @@ your-target-path /mnt/my_host_share virtiofs defaults,nofail 0 0
50
50
  ### Mounting in a Windows Guest
51
51
 
52
52
  **1. Install Drivers:**
53
- You must install the VirtIO-FS drivers in the Windows guest. These are included in the **"VirtIO-Win Guest Tools"** package, which you can typically download as an ISO file.
54
- - Download the latest stable `virtio-win.iso` from the [Fedora VirtIO-Win project](https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md).
55
- - Attach the ISO to your VM as a CD-ROM.
56
- - Open the CD-ROM in Windows and run the `virtio-win-guest-tools.exe` installer, ensuring the **"VirtIO-FS"** feature is selected.
53
+ You must install the VirtIO-FS drivers in the Windows guest. These are included in the **"VirtIO-Win Guest Tools"** package or the **"Virtual Machine Driver Pack (VMDP)"**.
54
+ - **Option A (SUSE VMDP):** Use the [Virtual Machine Driver Pack (VMDP)](https://github.com/SUSE/vmdp) for a comprehensive set of optimized drivers.
55
+ - **Option B (Fedora):** Download the latest stable `virtio-win.iso` from the [Fedora VirtIO-Win project](https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md).
56
+ - Attach the chosen ISO to your VM as a CD-ROM.
57
+ - Open the CD-ROM in Windows and run the installer, ensuring the **"VirtIO-FS"** feature is selected.
57
58
 
58
59
  **2. Access the Share:**
59
60
  After installation and a reboot, the VirtIO-FS service will start. The shared folder will automatically appear as a network drive in **This PC** (or My Computer). The drive will be named after the **Target Path (mount tag)** you set.
@@ -47,7 +47,7 @@ class AppInfo: # pylint: disable=too-few-public-methods
47
47
 
48
48
  name = "virtui-manager"
49
49
  namecase = "VirtUI Manager"
50
- version = "2.4.3"
50
+ version = "2.4.4"
51
51
  author = "Antoine Ginies"
52
52
 
53
53
 
@@ -752,3 +752,99 @@ def get_host_domain_capabilities(conn: libvirt.virConnect) -> Optional[str]:
752
752
  except libvirt.libvirtError as e:
753
753
  logging.error(f"Error getting host capabilities: {e}")
754
754
  return None
755
+
756
+
757
+ @lru_cache(maxsize=4)
758
+ def get_latest_machine_types(conn: libvirt.virConnect, arch: str = "x86_64") -> Dict[str, str]:
759
+ """Get the latest available pc-i440fx and pc-q35 machine types from the hypervisor.
760
+
761
+ Args:
762
+ conn: The libvirt connection object
763
+ arch: The architecture to query (default: x86_64)
764
+
765
+ Returns:
766
+ Dictionary with 'pc-i440fx' and 'pc-q35' keys containing the latest versions,
767
+ or default fallback values if detection fails
768
+ """
769
+ defaults = {
770
+ "pc-i440fx": "pc-i440fx",
771
+ "pc-q35": "pc-q35",
772
+ }
773
+
774
+ if not conn:
775
+ return defaults
776
+
777
+ try:
778
+ caps_xml = conn.getCapabilities()
779
+ if not caps_xml:
780
+ return defaults
781
+
782
+ root = ET.fromstring(caps_xml)
783
+
784
+ # Find the guest element for the specified architecture
785
+ guest = None
786
+ for guest_elem in root.findall("guest"):
787
+ arch_elem = guest_elem.find("arch")
788
+ if arch_elem is not None and arch_elem.get("name") == arch:
789
+ guest = guest_elem
790
+ break
791
+
792
+ if guest is None:
793
+ logging.warning(f"No guest capabilities found for architecture {arch}")
794
+ return defaults
795
+
796
+ # Extract all machine types for this architecture
797
+ arch_elem = guest.find("arch")
798
+ if arch_elem is None:
799
+ return defaults
800
+
801
+ i440fx_machines = []
802
+ q35_machines = []
803
+
804
+ for machine_elem in arch_elem.findall("machine"):
805
+ machine_name = machine_elem.text
806
+ if not machine_name:
807
+ continue
808
+
809
+ # Parse machine type name
810
+ canonical = machine_elem.get("canonical")
811
+ if canonical:
812
+ machine_name = canonical
813
+
814
+ if machine_name.startswith("pc-i440fx"):
815
+ i440fx_machines.append(machine_name)
816
+ elif machine_name.startswith("pc-q35"):
817
+ q35_machines.append(machine_name)
818
+
819
+ # Sort and get the latest versions
820
+ def extract_version(machine_name: str) -> Tuple[int, int]:
821
+ """Extract version number from machine type name."""
822
+ try:
823
+ parts = machine_name.split("-")
824
+ if len(parts) >= 3:
825
+ version_str = parts[-1]
826
+ # Handle version format like "8.2" or just "8"
827
+ version_parts = version_str.split(".")
828
+ major = int(version_parts[0])
829
+ minor = int(version_parts[1]) if len(version_parts) > 1 else 0
830
+ return (major, minor)
831
+ except (ValueError, IndexError):
832
+ pass
833
+ return (0, 0)
834
+
835
+ # Get the latest versions
836
+ if i440fx_machines:
837
+ i440fx_machines.sort(key=extract_version, reverse=True)
838
+ defaults["pc-i440fx"] = i440fx_machines[0]
839
+ logging.info(f"Detected latest pc-i440fx machine type: {defaults['pc-i440fx']}")
840
+
841
+ if q35_machines:
842
+ q35_machines.sort(key=extract_version, reverse=True)
843
+ defaults["pc-q35"] = q35_machines[0]
844
+ logging.info(f"Detected latest pc-q35 machine type: {defaults['pc-q35']}")
845
+
846
+ return defaults
847
+
848
+ except Exception as e:
849
+ logging.error(f"Error detecting latest machine types: {e}")
850
+ return defaults
@@ -0,0 +1,50 @@
1
+ """Generic OS Provider for VirtUI Manager.
2
+
3
+ This module provides a generic OS provider that can use any available template
4
+ with a custom ISO (local path or URL).
5
+ """
6
+
7
+ import logging
8
+ from pathlib import Path
9
+ from typing import Any, Dict, List, Optional
10
+
11
+ from ..os_provider import OSProvider, OSType, OSVersion
12
+ from ..provider_registry import get_registry
13
+
14
+
15
+ class GenericProvider(OSProvider):
16
+ """Provider for any OS using custom ISOs and all available templates."""
17
+
18
+ def __init__(self):
19
+ super().__init__()
20
+ self.logger = logging.getLogger(__name__)
21
+
22
+ @property
23
+ def os_type(self) -> OSType:
24
+ """Return the OS type for Generic/Custom ISO."""
25
+ return OSType.GENERIC
26
+
27
+ def get_supported_versions(self) -> List[OSVersion]:
28
+ """Get list of supported generic versions."""
29
+ return [
30
+ OSVersion(
31
+ os_type=OSType.GENERIC,
32
+ version_id="custom",
33
+ display_name="Custom ISO (Generic)",
34
+ )
35
+ ]
36
+
37
+ def get_iso_list(self, version: Optional[str] = None) -> List[Dict[str, Any]]:
38
+ """Return empty list, as user will provide path/URL."""
39
+ return []
40
+
41
+ def generate_automation_file(
42
+ self,
43
+ version: Optional[OSVersion],
44
+ vm_name: str,
45
+ user_config: Dict[str, Any],
46
+ output_path: Path,
47
+ template_name: str | None = None,
48
+ ) -> Path:
49
+ """Generic provider does not support automation file generation."""
50
+ raise NotImplementedError("Generic provider does not support auto-installation.")
@@ -1416,6 +1416,9 @@ def strip_installation_assets(domain: libvirt.virDomain):
1416
1416
  Removes installation-only elements from the VM configuration.
1417
1417
  Specifically removes <kernel>, <initrd>, <cmdline> from <os>
1418
1418
  and any <disk device='floppy'>.
1419
+
1420
+ Also adjusts on_reboot from "destroy" to "restart" for auto-installation VMs,
1421
+ except for SECURE VMs (those with SEV enabled) which keep "destroy".
1419
1422
  """
1420
1423
  if not domain:
1421
1424
  raise ValueError("Invalid domain object.")
@@ -1441,6 +1444,26 @@ def strip_installation_assets(domain: libvirt.virDomain):
1441
1444
  if disk.get("device") == "floppy":
1442
1445
  devices.remove(disk)
1443
1446
 
1447
+ # 3. Adjust on_reboot behavior for auto-installation
1448
+ # If on_reboot is currently "destroy" (set for auto-installation), change it to "restart"
1449
+ # UNLESS this is a SECURE VM (has SEV enabled), which should keep "destroy"
1450
+ on_reboot_elem = root.find("on_reboot")
1451
+ if on_reboot_elem is not None and on_reboot_elem.text == "destroy":
1452
+ # Check if this is a SECURE VM by looking for SEV
1453
+ is_secure_vm = root.find("launchSecurity[@type='sev']") is not None
1454
+
1455
+ if not is_secure_vm:
1456
+ # Change on_reboot to restart for non-SECURE VMs
1457
+ on_reboot_elem.text = "restart"
1458
+ logging.info(
1459
+ f"Auto-installation complete for {domain.name()}: "
1460
+ f"changed on_reboot from 'destroy' to 'restart'"
1461
+ )
1462
+ else:
1463
+ logging.info(
1464
+ f"SECURE VM {domain.name()}: keeping on_reboot as 'destroy' (SEV enabled)"
1465
+ )
1466
+
1444
1467
  new_xml = ET.tostring(root, encoding="unicode")
1445
1468
  conn.defineXML(new_xml)
1446
1469
 
@@ -35,7 +35,7 @@ from .auto_http_server import AutoHTTPServer
35
35
  from .config import load_config
36
36
  from .constants import AppInfo, StaticText
37
37
  from .firmware_manager import get_uefi_files, select_best_firmware
38
- from .libvirt_utils import get_host_architecture
38
+ from .libvirt_utils import get_host_architecture, get_latest_machine_types
39
39
  from .provisioning.provider_registry import ProviderRegistry
40
40
  from .provisioning.os_provider import OSType, OSVersion
41
41
  from .provisioning.providers.alpine_provider import AlpineProvider, AlpineDistro
@@ -992,17 +992,33 @@ class VMProvisioner:
992
992
  disk_format: str | None = None,
993
993
  os_type: OSType = OSType.LINUX,
994
994
  graphics_type: str = "spice",
995
+ is_auto_install: bool = False,
995
996
  ) -> Dict[str, Any]:
996
997
  """
997
998
  Returns a dictionary of VM settings based on type and options.
999
+
1000
+ Args:
1001
+ vm_type: The type of VM (SECURE, COMPUTATION, DESKTOP, etc.)
1002
+ boot_uefi: Whether to use UEFI boot
1003
+ disk_format: Optional disk format override
1004
+ os_type: The OS type being installed
1005
+ graphics_type: Graphics type (spice, vnc, etc.)
1006
+ is_auto_install: Whether this is an auto-installation (sets on_reboot to 'destroy')
1007
+
1008
+ Returns:
1009
+ Dictionary of VM settings including machine type, video, network, etc.
998
1010
  """
1011
+ # Detect latest machine types available on the hypervisor
1012
+ machine_types = get_latest_machine_types(self.conn, self.host_arch)
1013
+ default_machine = machine_types["pc-q35"] if boot_uefi else machine_types["pc-i440fx"]
1014
+
999
1015
  settings = {
1000
1016
  # Storage
1001
1017
  "disk_bus": "virtio",
1002
1018
  "disk_format": "qcow2",
1003
1019
  "disk_cache": "none",
1004
1020
  # Guest
1005
- "machine": "pc-q35-10.1" if boot_uefi else "pc-i440fx-10.1",
1021
+ "machine": default_machine,
1006
1022
  "video": "virtio",
1007
1023
  "graphics_type": graphics_type,
1008
1024
  "network_model": "e1000",
@@ -1057,7 +1073,7 @@ class VMProvisioner:
1057
1073
  "mem_backing": "memfd", # memfd/shared
1058
1074
  "watchdog": True,
1059
1075
  "on_poweroff": "restart",
1060
- "on_reboot": "destroy",
1076
+ "on_reboot": "restart",
1061
1077
  "on_crash": "restart",
1062
1078
  }
1063
1079
  )
@@ -1096,7 +1112,8 @@ class VMProvisioner:
1096
1112
  }
1097
1113
  )
1098
1114
  if vm_type == VMType.WLDESKTOP:
1099
- settings["machine"] = "pc-i440fx-10.1"
1115
+ # Use latest pc-i440fx for WLDESKTOP (legacy Windows desktop)
1116
+ settings["machine"] = machine_types["pc-i440fx"]
1100
1117
  settings["input_bus"] = "usb"
1101
1118
 
1102
1119
  elif vm_type == VMType.SERVER:
@@ -1123,6 +1140,15 @@ class VMProvisioner:
1123
1140
  if os_type == OSType.ALPINE:
1124
1141
  settings["network_model"] = "virtio"
1125
1142
 
1143
+ # For auto-installation, ensure on_reboot is "destroy" so the VM stops after installation
1144
+ # This allows the app to detect completion, cleanup HTTP server, and strip installation assets
1145
+ # The on_reboot will be changed back to "restart" (except for SECURE VMs) by strip_installation_assets
1146
+ if is_auto_install and vm_type != VMType.SECURE:
1147
+ self.logger.info(
1148
+ f"Auto-installation mode: setting on_reboot to 'destroy' for {vm_type.value} VM"
1149
+ )
1150
+ settings["on_reboot"] = "destroy"
1151
+
1126
1152
  return settings
1127
1153
 
1128
1154
  def generate_xml(
@@ -1154,8 +1180,12 @@ class VMProvisioner:
1154
1180
  provider = self.provider_registry.get_provider(os_type)
1155
1181
  boot_uefi = provider.preferred_boot_uefi if provider else True
1156
1182
 
1183
+ # Determine if this is an auto-installation (has auto_url)
1184
+ is_auto_install = bool(auto_url)
1185
+
1157
1186
  settings = self._get_vm_settings(
1158
- vm_type, boot_uefi, disk_format, os_type=os_type, graphics_type=graphics_type
1187
+ vm_type, boot_uefi, disk_format, os_type=os_type, graphics_type=graphics_type,
1188
+ is_auto_install=is_auto_install
1159
1189
  )
1160
1190
 
1161
1191
  # Boot order: if kernel_path is provided, we are doing a direct kernel boot for install
@@ -1240,13 +1270,33 @@ class VMProvisioner:
1240
1270
  # OpenSUSE AutoYaST automation (XML format)
1241
1271
  # Add netsetup=dhcp to ensure network is configured
1242
1272
  cmdline = f"autoyast={auto_url} netsetup=dhcp"
1243
- elif os_type == OSType.ARCHLINUX:
1244
- # Manual Arch Linux UEFI boot needs these parameters even without automation
1245
- cmdline = "archisobasedir=arch archisodevice=/dev/sr0"
1273
+ else:
1274
+ # Default cmdline for direct kernel boot without automation
1275
+ if os_type == OSType.UBUNTU:
1276
+ cmdline = "boot=casper"
1277
+ elif os_type == OSType.DEBIAN:
1278
+ cmdline = "boot=live"
1279
+ elif os_type == OSType.FEDORA:
1280
+ cmdline = "inst.stage2"
1281
+ elif os_type == OSType.OPENSUSE:
1282
+ cmdline = "install=cd:/"
1283
+ elif os_type == OSType.ARCHLINUX:
1284
+ cmdline = "archisobasedir=arch archisodevice=/dev/sr0"
1285
+ elif os_type == OSType.ALPINE:
1286
+ ver = os_version if os_version else "v3.23"
1287
+ if not ver.startswith("v"):
1288
+ ver = f"v{ver}"
1289
+ cmdline = f"alpine_repo=http://dl-cdn.alpinelinux.org/alpine/{ver}/main ip=dhcp"
1290
+ else:
1291
+ # Fallback for other Linux distros
1292
+ cmdline = "quiet"
1293
+
1294
+ if serial_console:
1295
+ if cmdline:
1296
+ cmdline += " "
1297
+ cmdline += "console=tty0 console=ttyS0,115200"
1246
1298
 
1247
1299
  if cmdline:
1248
- if serial_console:
1249
- cmdline += " console=tty0 console=ttyS0,115200"
1250
1300
  xml += f" <cmdline>{cmdline}</cmdline>\n"
1251
1301
  xml += " </os>"
1252
1302
  # Standard UEFI/BIOS boot
@@ -2795,7 +2845,8 @@ class VMProvisioner:
2795
2845
  # Generate the XML configuration that would be used
2796
2846
  if is_virt_install_available:
2797
2847
  settings = self._get_vm_settings(
2798
- vm_type, boot_uefi, disk_format, os_type=os_type, graphics_type=graphics_type
2848
+ vm_type, boot_uefi, disk_format, os_type=os_type, graphics_type=graphics_type,
2849
+ is_auto_install=bool(auto_url)
2799
2850
  )
2800
2851
  xml_desc = self._run_virt_install(
2801
2852
  vm_name,
@@ -2909,7 +2960,8 @@ class VMProvisioner:
2909
2960
  )
2910
2961
 
2911
2962
  settings = self._get_vm_settings(
2912
- vm_type, boot_uefi, disk_format, os_type=os_type, graphics_type=graphics_type
2963
+ vm_type, boot_uefi, disk_format, os_type=os_type, graphics_type=graphics_type,
2964
+ is_auto_install=bool(auto_url)
2913
2965
  )
2914
2966
  self._run_virt_install(
2915
2967
  vm_name,
@@ -3130,8 +3182,20 @@ class VMProvisioner:
3130
3182
  )
3131
3183
  else:
3132
3184
  logger.info(
3133
- f"VM {name} stopped (Stage 1 complete, reason={reason}). Restarting in 3 seconds..."
3185
+ f"VM {name} stopped (Stage 1 complete, reason={reason}). Cleaning up and restarting..."
3134
3186
  )
3187
+
3188
+ # Strip installation assets from persistent config and update on_reboot
3189
+ try:
3190
+ logger.info(
3191
+ f"Stripping installation assets from {name} persistent config"
3192
+ )
3193
+ strip_installation_assets(domain)
3194
+ except Exception as e:
3195
+ logger.warning(
3196
+ f"Failed to strip installation assets from {name}: {e}"
3197
+ )
3198
+
3135
3199
  time.sleep(3)
3136
3200
  try:
3137
3201
  domain.create()
@@ -10,6 +10,7 @@ import shlex
10
10
  import signal
11
11
  import socket
12
12
  import subprocess
13
+ import time
13
14
  import xml.etree.ElementTree as ET
14
15
  from datetime import datetime
15
16
  from functools import partial
@@ -395,13 +396,14 @@ wp.websockify_init()
395
396
  end_port = int(self.app.WC_PORT_RANGE_END)
396
397
 
397
398
  # Initialize variable to avoid UnboundLocalError
399
+ # Make websockify listen on all interfaces (0.0.0.0:port format) so SSH tunnel can reach it
398
400
  remote_websockify_cmd_list = [
399
401
  "python3",
400
402
  "-c",
401
403
  self._OPTIMIZED_WEBSOCKIFY_WRAPPER.format(buf_size=buf_size),
402
404
  "--run-once",
403
405
  "--verbose",
404
- str(web_port),
406
+ f"0.0.0.0:{web_port}", # Listen on all interfaces
405
407
  f"{vnc_target_host}:{vnc_port}",
406
408
  "--web",
407
409
  remote_novnc_path,
@@ -518,9 +520,9 @@ else:
518
520
  try:
519
521
  web_port = int(remote_port_found)
520
522
  logging.info(f"Found free port on remote host: {web_port}")
521
- # Update the port in the command list
522
- # It's after --verbose which is at index 4
523
- remote_websockify_cmd_list[5] = str(web_port)
523
+ # Update the port in the command list (format: 0.0.0.0:port)
524
+ # Index: [0]=python3, [1]=-c, [2]=wrapper, [3]=--run-once, [4]=--verbose, [5]=port
525
+ remote_websockify_cmd_list[5] = f"0.0.0.0:{web_port}"
524
526
  except (ValueError, IndexError):
525
527
  logging.warning(f"Failed to parse remote port: {remote_port_found}")
526
528
 
@@ -689,16 +691,26 @@ else:
689
691
  )
690
692
  return
691
693
 
694
+ logging.info(
695
+ f"Remote websockify port: {web_port}, Local tunnel port: {local_tunnel_port}"
696
+ )
697
+
692
698
  # Create control socket for the tunnel
693
699
  raw_uuid = uuid.split("@")[0] if "@" in uuid else uuid
694
700
  socket_name = f"wc_tunnel_{raw_uuid}_{datetime.now().strftime('%Y%m%d%H%M%S')}.sock"
695
701
  control_socket = os.path.join("/tmp", socket_name)
696
702
 
697
703
  # SSH tunnel command: forward local_tunnel_port to remote web_port
704
+ # Explicitly bind to 127.0.0.1 on local side to avoid IPv6 issues
705
+ # Remote side connects to 127.0.0.1:web_port where websockify is listening on 0.0.0.0
698
706
  tunnel_cmd = ["ssh", "-M", "-S", control_socket, "-f", "-N"]
699
707
  if ssh_port != 22:
700
708
  tunnel_cmd.extend(["-p", str(ssh_port)])
701
- tunnel_cmd.extend(["-L", f"{local_tunnel_port}:127.0.0.1:{web_port}", remote_user_host])
709
+ tunnel_cmd.extend(["-L", f"127.0.0.1:{local_tunnel_port}:127.0.0.1:{web_port}", remote_user_host])
710
+
711
+ logging.info(
712
+ f"Creating SSH tunnel: ssh -L 127.0.0.1:{local_tunnel_port}:127.0.0.1:{web_port} {remote_user_host}"
713
+ )
702
714
 
703
715
  try:
704
716
  subprocess.run(
@@ -710,8 +722,15 @@ else:
710
722
  stderr=subprocess.DEVNULL,
711
723
  )
712
724
  logging.info(
713
- f"SSH tunnel created: localhost:{local_tunnel_port} -> {remote_user_host}:{web_port}"
725
+ f"SSH tunnel established: local 127.0.0.1:{local_tunnel_port} -> remote 127.0.0.1:{web_port} (via {remote_user_host})"
726
+ )
727
+ logging.info(
728
+ f"Websockify on remote: 0.0.0.0:{web_port} -> VNC {vnc_target_host}:{vnc_port}"
714
729
  )
730
+
731
+ # Verify the tunnel is listening on the local port
732
+ if not self._verify_tunnel_port(local_tunnel_port):
733
+ logging.warning("SSH tunnel may have configuration issues, but proceeding anyway")
715
734
  except (subprocess.CalledProcessError, subprocess.TimeoutExpired, FileNotFoundError) as e:
716
735
  # Clean up remote websockify
717
736
  try:
@@ -803,10 +822,11 @@ else:
803
822
  ]
804
823
  if ssh_port != 22:
805
824
  ssh_cmd.extend(["-p", str(ssh_port)])
825
+ # Explicitly bind to 127.0.0.1 on local side to avoid IPv6 issues
806
826
  ssh_cmd.extend(
807
827
  [
808
828
  "-L",
809
- f"{tunnel_port}:{vnc_target_host}:{vnc_port}",
829
+ f"127.0.0.1:{tunnel_port}:{vnc_target_host}:{vnc_port}",
810
830
  remote_user_host,
811
831
  ]
812
832
  )
@@ -821,7 +841,14 @@ else:
821
841
  stdout=subprocess.DEVNULL,
822
842
  stderr=subprocess.DEVNULL,
823
843
  )
824
- logging.info(f"SSH tunnel created for VM {vm_name} via {control_socket}")
844
+ logging.info(
845
+ f"SSH tunnel created for VM {vm_name}: local 127.0.0.1:{tunnel_port} -> remote {vnc_target_host}:{vnc_port} (via {remote_user_host})"
846
+ )
847
+
848
+ # Verify the tunnel is listening on the local port
849
+ if not self._verify_tunnel_port(tunnel_port):
850
+ logging.warning("SSH tunnel may have configuration issues, but proceeding anyway")
851
+
825
852
  return (
826
853
  "127.0.0.1",
827
854
  tunnel_port,
@@ -929,6 +956,37 @@ else:
929
956
  self.app.push_screen, WebConsoleDialog(url), on_dialog_dismiss
930
957
  )
931
958
 
959
+ def _verify_tunnel_port(self, port: int, max_attempts: int = 5, timeout_per_attempt: float = 0.2) -> bool:
960
+ """
961
+ Verify that a local port is accessible by attempting to connect to it.
962
+
963
+ Args:
964
+ port: The local port to verify
965
+ max_attempts: Maximum number of connection attempts (default: 5)
966
+ timeout_per_attempt: Timeout in seconds for each attempt (default: 0.2)
967
+
968
+ Returns:
969
+ True if port is accessible, False otherwise
970
+ """
971
+ for attempt in range(max_attempts):
972
+ try:
973
+ test_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
974
+ test_sock.settimeout(timeout_per_attempt)
975
+ test_sock.connect(("127.0.0.1", port))
976
+ test_sock.close()
977
+ logging.info(f"Port {port} verified accessible (attempt {attempt + 1}/{max_attempts})")
978
+ return True
979
+ except (socket.error, socket.timeout):
980
+ if attempt < max_attempts - 1: # Don't sleep on last attempt
981
+ time.sleep(timeout_per_attempt)
982
+ continue
983
+
984
+ logging.warning(
985
+ f"Port {port} not responding after {max_attempts} attempts "
986
+ f"({max_attempts * timeout_per_attempt:.1f}s total)"
987
+ )
988
+ return False
989
+
932
990
  def _stop_ssh_tunnel(self, vm_name: str, ssh_info: dict):
933
991
  """Stops the SSH tunnel using its control socket."""
934
992
  control_socket = ssh_info.get("control_socket")