====== Virtual Machine Manager ====== {{:virt-manager:virtual_machine_manager_logo.png}} The virt-manager application is a desktop user interface for managing virtual machines through [[libvirt:libvirt|libvirt]]. It primarily targets [[kernel-based_virtual_machine:kernel-based_virtual_machine|KVM]] VMs, but also manages [[xen:xen|Xen]] and LXC (linux containers). It presents a summary view of running domains, their live performance & resource utilization statistics. Wizards enable the creation of new domains, and configuration & adjustment of a domain’s resource allocation & virtual hardware. An embedded [[vnc:vnc|VNC]] and [[SPICE:SPICE|SPICE]] client viewer presents a full graphical console to the guest domain. https://virt-manager.org/ FIXME * virt-install — is a command line tool which provides an easy way to provision operating systems into virtual machines. * virt-viewer — is a lightweight UI interface for interacting with the graphical display of virtualized guest OS. It can display [[vnc:vnc|VNC]] or [[SPICE:SPICE|SPICE]], and uses [[libvirt:libvirt|libvirt]] to lookup the graphical connection details. * virt-clone — is a command line tool for cloning existing inactive guests. It copies the disk images, and defines a config with new name, UUID and MAC address pointing to the copied disks. * virt-xml — is a command line tool for easily editing [[libvirt:libvirt|libvirt]] domain XML using virt-install’s command line options. * virt-convert — is a command line tool for converting OVF and VMX VM configurations to run with [[libvirt:libvirt|libvirt]]. * virt-bootstrap — is a command tool providing an easy way to setup the root file system for [[libvirt:libvirt|libvirt]]-based containers. ====== Установка ====== apt install virt-manager Для авторизации по [[ssh:ssh|SSH]] нужно дополнительно поставить пакет ''ssh-askpass'' apt install ssh-askpass Если на компьютере не предполагаться запускать виртуальные машины (компьютер администратора), то лучше отключить ''libvirt-guests'' systemctl disable libvirt-guests Чтобы избежать ошибок типа: USB redirection error spice-client-error-quark: Could not redirect Error setting USB device node ACL: 'Not authorized' (0) Для перенаправления USB нужно вызывать программу так: sudo -E virt-manager Подробнее [[sudo:sudo#preserve_env|здесь]]. ====== Сборка ====== FIXME Для сборки из исходных текстов могут понадобится следующие пакеты: apt install intltool libxml2-dev libgtk-3-dev libspice-client-gtk-3.0-dev libgtk-vnc-2.0-dev ====== Настройка ====== Пользователя который будет использовать программу нужно добавить в группу ''libvirt'': usermod --append --groups libvirt ПОЛЬЗОВАТЕЛЬ Для авторизации по TLS нужно выполнить [[libvirt:libvirt#TLS|настройку]], а для работы по [[spice:spice|SPICE]] нужно указать в настройках гостевого домена (виртуальной машины) в разделе ''Дисплей SPICE'' * в поле ''Тип:'' выбрать ''Сервер SPICE'' * в поле ''Адрес'' нужно выбрать нужный адрес * в поле ''Порт'' установить ''✔ Auto'' * в поле ''Порт TLS'' установить ''✔ Auto'' Подключение: qemu+tls://ИМЯ_СЕРВЕРА/system ====== virt-viewer ====== Установка apt install virt-viewer Варианты подключения: * ''qemu+tls'': virt-viewer --connect qemu+tls://server/system vm где: * ''server'' — имя(адрес) сервера * ''vm'' — имя виртуальной машины * [[spice:spice|]]: virt-viewer --connect qemu+tls://server/system vm где: * ''server'' — имя(адрес) сервера * ''port'' — ноомер порта виртуальной машины ---- * https://releases.pagure.org/virt-viewer/ * Последняя версия в поддержкой Windows XP: * https://releases.pagure.org/virt-viewer/virt-viewer-2.0.tar.gz * https://releases.pagure.org/virt-viewer/virt-viewer-x86-2.0.msi * https://www.spice-space.org/download/windows/usbdk/ * https://gitlab.com/virt-viewer/virt-viewer/-/releases * [[https://topic.alibabacloud.com/a/virt-viewer-usbredir-usb-redirection_8_8_31297340.html|Virt Viewer Usbredir USB redirection]] ====== Ссылки ====== [[https://upload.wikimedia.org/wikipedia/commons/7/7f/Virtual_Machine_Manager_logo.png|Логотип]] https://ru.wikipedia.org/wiki/Virtual_Machine_Manager {{tag> Virtualization}}