Инструменты пользователя

Инструменты сайта


virt-manager:virt-manager

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
virt-manager:virt-manager [2018-06-19 16:02]
GreyWolf [Установка]
virt-manager:virt-manager [2022-11-07 11:38] (текущий)
GreyWolf [virt-viewer]
Строка 1: Строка 1:
 ====== Virtual Machine Manager ====== ====== Virtual Machine Manager ======
  
-The virt-manager application is a desktop user interface for managing virtual machines through 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.+{{:​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/​ https://​virt-manager.org/​
Строка 7: Строка 9:
 FIXME FIXME
   * virt-install — is a command line tool which provides an easy way to provision operating systems into virtual machines.   * 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 to lookup the graphical connection details.+  * 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-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 domain XML using virt-install’s command line options. +  * 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. +  * 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-based containers.+  * virt-bootstrap — is a command tool providing an easy way to setup the root file system for [[libvirt:​libvirt|libvirt]]-based containers.
  
 ====== Установка ====== ====== Установка ======
  
 <code bash> <code bash>
-apt-get install virt-manager ​ssh-askpass+apt install virt-manager
 </​code>​ </​code>​
 +
 +
 +Для авторизации по [[ssh:​ssh|SSH]] нужно дополнительно поставить пакет ''​ssh-askpass''​
 +<code bash>
 +apt install ssh-askpass
 +</​code>​
 +
 +<WRAP center round important 60%>
 +Если на компьютере не предполагаться запускать виртуальные машины (компьютер администратора),​ то лучше отключить ''​libvirt-guests''​
 +<code bash>
 +systemctl disable libvirt-guests
 +</​code>​
 +</​WRAP>​
 +
 +
 +<WRAP center round important>​
 +
 +Чтобы избежать ошибок типа:
 +<​code>​
 +USB redirection error
 +spice-client-error-quark:​ Could not redirect
 +Error setting USB device node ACL: 'Not authorized'​ (0)
 +</​code>​
 +   
 +Для перенаправления USB нужно вызывать программу так:
 +<code bash>
 +sudo -E virt-manager
 +</​code>​
 +Подробнее [[sudo:​sudo#​preserve_env|здесь]].
 +</​WRAP>​
 +
 +====== Сборка ======
 +FIXME
 +
 +Для сборки из исходных текстов могут понадобится следующие пакеты: ​
 +<code bash>
 +apt install intltool libxml2-dev libgtk-3-dev libspice-client-gtk-3.0-dev libgtk-vnc-2.0-dev
 +</​code>​
 +====== Настройка ======
 +Пользователя который будет использовать программу нужно добавить в группу ''​libvirt'':​
 +<code bash>
 +usermod --append --groups libvirt ПОЛЬЗОВАТЕЛЬ
 +</​code>​
 +
 +Для авторизации по TLS нужно выполнить [[libvirt:​libvirt#​TLS|настройку]],​ а для работы по [[spice:​spice|SPICE]] нужно указать в настройках гостевого домена (виртуальной машины) в разделе ''​Дисплей SPICE''​
 +  * в поле ''​Тип:''​ выбрать ''​Сервер SPICE''​
 +  * в поле ''​Адрес''​ нужно выбрать нужный адрес
 +  * в поле ''​Порт''​ установить ''​✔ Auto''​
 +  * в поле ''​Порт TLS''​ установить ''​✔ Auto''​
 +
 +
 +Подключение:​
 +<​code>​
 +qemu+tls://​ИМЯ_СЕРВЕРА/​system
 +</​code>​
 +
 +====== virt-viewer ======
 +
 +Установка
 +<code bash>
 +apt install virt-viewer
 +</​code>​
 +
 +Варианты подключения:​
 +  * <​WRAP>''​qemu+tls'':​ <code bash>​virt-viewer --connect qemu+tls://​server/​system vm</​code>​
 +где:
 +  * ''​server''​ — имя(адрес) сервера
 +  * ''​vm''​ — имя виртуальной машины
 +</​WRAP>​
 +  * <​WRAP>​[[spice:​spice|]]:​ <code bash>​virt-viewer --connect qemu+tls://​server/​system vm</​code>​
 +где:
 +  * ''​server''​ — имя(адрес) сервера
 +  * ''​port''​ — ноомер порта виртуальной машины
 +</​WRAP>​
 +
 +----
 +
 +  * 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 https://​ru.wikipedia.org/​wiki/​Virtual_Machine_Manager
virt-manager/virt-manager.1529413365.txt.gz · Последние изменения: 2018-06-19 16:02 — GreyWolf