Skip to content

Add virt-viewer as an optdepend for virt-install

Bastien Traverse requested to merge neitsab/virt-manager:patch-1 into main

virt-install basic usage to install VMs soft fails without virt-viewer due to the lack of a graphical display to interact with the installer.

For example the command suggested in the wiki

virt-install  \
  --name arch-linux_testing \
  --memory 1024             \
  --vcpus=2,maxvcpus=4      \
  --cpu host                \
  --cdrom $HOME/Downloads/arch-linux_install.iso \
  --disk size=2,format=qcow2  \
  --network user            \
  --virt-type kvm

Results in

WARNING  Unable to connect to graphical console: virt-viewer not installed. Please install the 'virt-viewer' package.
WARNING  No console to launch for the guest, defaulting to --wait -1

Starting install...
Allocating 'arch-linux_testing.qcow2'                                                                                                                                  | 2.0 GB  00:00:00     
Creating domain...                                                                                                                                                     |         00:00:00     

Domain is still running. Installation may be in progress.
Waiting for the installation to complete.

And then of course nothing happens until we either find a way to connect to the display of kill the VM.

Merge request reports

Loading