I was thrown into a management box that virtually the person before me was using virtually, so trying to upgrade. As a test, make a virtual installation of this:
virt-install --virt-type = kvm --name kosmos-icc --ram 1000 --os-variant = centos7.0 --cdrom = / var / lib / libvirt / boot / CentOS-7-x86_64-Minimal- 1810.iso --network = bridge = virbr0, model = virtio --graphics vnc - disk path = / var / lib / libvirt / images / centos7.qcow2, size = 8, bus = virtio, format = qcow2 --boot userserial = on
It works with this:
WARNING Charts requested but DISPLAY is not set. Do not run virt-viewer. WARNING No console to launch for the guest, default --wait -1 Start the installation ... Allocation of & centos7.qcow2 & # 39; | 8.0 GB 00:00:00 The installation of the domain is still in progress. Waiting for the end of the installation.
Then I block, I can press ctrl-c and get my prompt, make a list virsh shows that it is running, but do a virsh domifaddr kosmos-icc shows nothing (the other that is generic and which was installed with the mistletoe) shows the IP address (which I can ssh in) of the machine.
So, I do not know why it does not finish or if it is silent and if I miss a switch. I assumed virbr0 was the way to go with the network. So we must continue to learn virsh / virt and see if I can via a command line install a virtual machine and then replicate the process on an untested machine.
The installation logs in /root/.cache/virt-manager do not show any real errors … in fact, they indicate:
[Wed, 19 Jun 2019 11:28:38 virt-install 351] DEBUG (guest: 441) XML retrieved from the libvirt object: ... the xml ... [Wed, 19 Jun 2019 11:28:38 virt-install 351] DEBUG (virt-install: 744) State of the domain after installation: 1
This state after installation is the last line before the log shows the interruption of my ctrl-c keyboard.