- doc
- advanced topics
- virtualization
- virt-manager
virt-manager is a Free Software virtualization solution for Linux. virt-manager has a more complex interface than GNOME Boxes but it also has a more complete set of features.
Ejecutar Tails dentro de una máquina virtual tiene bastantes implicaciones de seguridad. Dependiendo del sistema operativo base y de tus necesidades de seguridad, ejecutar Tails en una máquina virtual podría ser peligroso.
virt-manager is the only virtualization solution that allows to use a Persistent Storage. See running Tails from a USB image.
The following instructions have been tested on Debian 12 (Bookworm).
Terminología
virt-manager está basando en un conjunto de herramientas de virtualización de bajo nivel, desde la interfaz de usuario a las interacciones de hardware con el procesador. Esta terminología es un poco con confusa y otra documentación puede mencionar las siguientes herramientas:
KVM es el módulo del kernel de Linux que interactúa con el las funcionalidades de virtualización del procesador.
QEMU es el software de virtualización que emula procesadores virtuales y periféricos basado en KVM y que inicia y detiene las máquinas virtuales.
libvirt es una biblioteca que permite que virt-manager interactúe con las capacidades de virtualización provistas por QEMU.
SPICE es un protocolo que permite ver el escritorio de las máquinas virtuales.
virt-manager es la interfaz gráfica que permite crear, configurar, y ejecutar máquinas virtuales.
Instalación
Para instalar virt-manager en Debian, ejecuta el siguiente comando:
sudo apt install virt-manager libvirt-daemon-system
Para instalar virt-manager en Ubuntu, ejecuta el siguiente comando:
sudo apt install virt-manager libvirt-bin qemu-kvm
Ejecutar Tails desde una imagen ISO
Descargar Tails como una imagen ISO, en vez de una imagen USB.
Inicia virt-manager.
Double-click on QEMU/KVM - Not Connected to connect to the QEMU system of your host.
To create a new virtual machine, choose
.En el paso 1, elige Medio de instalación local (Imagen ISO o CDROM).
En el paso 2:
Choose ISO image, then Browse..., and Browse Local to browse for the ISO image that you want to start from.
Unselect Automatically detected from the installation media / source.
Specify Debian 11 in the field Choose the operating system you are installing.
In step 3, allocate at least 2048 MB of RAM.
In step 4, unselect Enable storage for this virtual machine.
En el paso5:
Type a name of your choice for the new virtual machine.
Haz click en Finalizar para arrancar la máquina virtual.
- Click on QEMU/KVM - Not Connected.
- Choose QEMU system. to administer the connection to your local
- Click on Virtual Networks tab, then select the default virtual network in the left pane.
- Click on the icon on the bottom of the left pane to start the default virtual network.
Ejecutar Tails desde una imagen USB
Running Tails from a USB image is the only virtualization solution that allows you to use a Persistent Storage in a virtual machine.
Download Tails as a USB image, instead of an ISO image.
Increase the size of the USB image to be at least 8 GB. This creates space for automatic upgrades and the Persistent Storage.
truncate -s tamaño tails.img
size has to be at least
7200M
.tails.img es el nombre del archivo de la imagen USB que quieres redimensionar.
Inicia virt-manager.
Double-click on QEMU/KVM - Not Connected to connect to the QEMU system of your host.
To create a new virtual machine, choose
.In step 1, choose Import existing disk image.
En el paso 2:
Choose Browse..., and Browse Local to browse for the USB image that you want to start from.
Specify Debian 11 in the field Choose the operating system you are installing.
In step 3, allocate at least 2048 MB of RAM.
In step 4:
Type a name of your choice for the new virtual machine.
Choose Customize configuration before install.
Click Finish to open the configuration view.
In the configuration view, choose VirtIO Disk 1 or IDE Disk 1
Set Disk bus to USB.
Click Apply.
Expand the Advanced options.
Enable Removable.
Click Apply again.
Click Begin Installation in the top left corner to start the virtual machine.
After you start on the USB image, you can create a Persistent Storage on it.
Ejecutar Tails desde una memoria USB
To run Tails from a USB stick using virt-manager, first create a virtual machine running from an ISO image as described above.
Then do the following:
From the virtual machine window, choose Virtual Machine ▸ Shut Down ▸ Force Off to shut down the virtual machine.
Plug in the USB stick from which you want to run Tails.
Choose View ▸ Details to edit the configuration of the virtual machine.
Click on the Add Hardware button on the bottom of the left pane.
Select USB Host Device in the left pane.
In the right pane, click on the device from which you want to run Tails, and click Finish.
You can keep the original ISO image connected as a virtual DVD to install Tails onto the USB stick if needed.
You can also disconnect the original ISO image and start directly from the USB stick once Tails is already installed on it. To do so:
Apaga la máquina virtual.
In the configuration of the virtual machine, click on SATA CDROM 1 in the left pane.
Click on the Disconnect button in the right pane.
To enable the USB stick as a boot option:
Click on Boot Options in the left pane.
Select the USB boot option corresponding to your USB device.
Click Apply.
To start the virtual machine choose View ▸ Console and then Virtual Machine ▸ Run.
After you start on the USB device, you can create a Persistent Storage on it.
Solución de problemas
Problemas de gráficos
Issues with graphics support in Tails running inside a virtual machine with virt-manager are common. The best solution can vary depending on the version of the virtualization software and on the virtual machine configuration. For example:
The Auto resize VM with window feature does not work in all configurations.
The video device that provides optimal graphics performance can be different depending on the version of the host operating system.
To troubleshoot such issues:
Ensure the virtual machine has a Spice display and a Spice channel configured, as opposed to VNC ones.
Try various virtual video device models.
Start with Virtio and QXL video devices: they generally give the best results. If they don't perform well for you, try every other video device model.
Try enabling or disabling the OpenGL and 3D acceleration options of the display and video device.