QEMU/KVM: Changing the default connect URI in libvirt

All the libvirt related commands, like virsh, virt-viewer or virt-install take a connect URI as parameter. The connect URI can be thought as specifying which set of virtual machines you want to control with that command, which physical machine to control, and how.

For example:

1
virsh --connect "qemu+ssh://super@servers.arcade.click" start node011

“QEMU/KVM: Changing the default connect URI in libvirt”Continue reading

VIRSH:KVM – Запуск удаленного доступа VNC для гостевых операционных систем

Method # 1: Command Line Option

Normally, QEMU (/usr/libexec/qemu-kvm) uses SDL to display the VGA output. With the -vnc option option, you can have QEMU listen on VNC display display and redirect the VGA display over the VNC session. When using the VNC display, you must use the -k parameter to set the keyboard layout if you are not using en-us. Valid syntax for the display is as follows:

“VIRSH:KVM – Запуск удаленного доступа VNC для гостевых операционных систем”Continue reading

VIRSH:KVM – Перемещение дисков в другое хранилище

Migration of disks around is part of the life cycle of a guest. Disks in the storage pools (local or network) may fail or fill up due to bad capacity management. Ordinarily, one would have to shut down the guest, copy the storage volume file elsewhere (if it is a file), wait, update xML configuration, and launch it again. However, in mission-critical enterprises, this may not always be possible.

To get the source path, need check XML configuration file or storage volume. This requires to know which storage pool in use.

“VIRSH:KVM – Перемещение дисков в другое хранилище”Continue reading

Scroll to top