Questions tagged [virsh]
The virsh tag has no summary.
80 questions
2
votes
1
answer
113
views
having trouble detecting user (qemu:///session) VMs from root account
I am trying to write a bash script that detects if there are any running VMs and performs a set of actions only when no VMs are running.
The system in question has several virtual machines (all from ...
1
vote
0
answers
127
views
Backup of KVM/virsh VM
I want to create backups of my running KVM VMs using virsh (qcow2). The VMs don't have snapshots, but in order to create a clean backup I want to create a snapshot, back up the backing file then ...
0
votes
0
answers
79
views
How to migrate snapshots QEMU KVM?
$ sudo virsh migrate --domain domname --desturi qemu+ssh://user@ip/system --migrateuri tcp://ip --live --auto-converge --verbose
error: Requested operation is not valid: cannot migrate domain with 1 ...
1
vote
0
answers
150
views
connect to console only of VM created by virt-manager?
I have perfectly working ubuntu 24.04 VM running. My host machine is ubuntu 24.04 as well. I made my vm using virt-manager, which launches a full desktop GUI.
But I want to connect to it's console ...
0
votes
1
answer
96
views
Edit value of "domain" tag seen in XML output of "virsh domcapabilities"
How do I change the domain parameter displayed by virsh domcapabilities from qemu to kvm?
<domainCapabilities>
<path>/usr/bin/qemu-system-x86_64</path>
<domain>qemu</...
1
vote
0
answers
203
views
Running VMs and virsh command from qemu build from source
I am trying to build QEMU from source using the instructions given here. I am trying to implement a research paper which adds features to the migration mechanism of QEMU and so I need a custom build(...
0
votes
1
answer
2k
views
qemu-system-x86_64 not found when moving VMs between computers
I am moving GNOME Boxes virtual machines from Fedora to Guix following the guide on Fedora wiki.
On the Fedora workstation:
$ virsh list --all
Id Name State
-------------------------------...
1
vote
0
answers
1k
views
keyboard/mouse not working in VMM thru VNC
i remotely connect to my Virtual Machine Manager thru VNC client (MobaXTerm) to TightVNC (on the Debian host) on Win10. however, when i spin up a vm, the guest does not respond to any keyboard or ...
0
votes
0
answers
98
views
`virsh start` crashes CentOS 7 host
This just began yesterday after the host system was shutdown and booted back up.
Upon running virsh start [guest-name], it immediately dumps this output and forcibly reboots the host:
The only thing ...
4
votes
1
answer
846
views
Why don't I see any KVM domains when I run virsh through ssh?
I'm trying to automate checking several nodes running KVM domains. I was simply using ssh to run the commands directly instead of doing a full login:
ssh user@kvmhost "virsh list --all"
But ...
1
vote
1
answer
4k
views
How to fix (several) VM start-up issues in gnome-boxes?
in short: My virtual machine named CONAN01 is not starting up in gnome-boxes, I receive/see different errors and do not know what the real issues behind them are:
Error 1:
When starting gnome-boxes ...
1
vote
0
answers
63
views
Re-image disks of an existing vm
I am using the libvirt utility to manage vms and I had a specific requirement to restart a vm from scratch i.e. like a fresh bootup, wipe disks clean and restart.
Is that possible with any of the ...
1
vote
1
answer
240
views
Limited permissions in tmux session
I am using a tmux session to run a script that runs some Python code (which uses a virtual environment stored at /opts/...; Python binaries have been copied not linked) that creates virtual machines ...
2
votes
1
answer
2k
views
How to export *all* VMs from KVM host
Searching for a good way to export all VMs from KVM nodes so I have some backups while doing in place OS upgrade of the KVM hosts.
So far, I am using a hacky bash oneliner in order to dump all VMs as ...
1
vote
1
answer
2k
views
debian virt-install with import not working No 'bridge' attribute specified
new to Debian from Centos
I'm trying to import an image
Does anyone have any idea what I would be doing wrong?
Debian VERSION="10 (buster)"
packages installed:
apt-get install --no-install-...