Questions tagged [virsh]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

How to configure user mode networking via xml in virt-install

I want to specify options for user mode networking such as port forwarding, smb share, dhcp, etc... with virt-install. I don't see a way to configure this via command line except for the default basic ...
ift-436t's user avatar
0 votes
0 answers
236 views

QEMU not saving CPU Pinning for a virtual machine

I installed a Windows 10 and Windows Server 2019 virtual machine under my Rocky Linux 9.1 KVM hypervisor. My plan for this setup is to practice system administration, and I'd like to be able to run ...
drwyatt's user avatar
2 votes
1 answer
1k views

Why was the forced-shutdown function in virsh named "destroy"?

Year after year, I keep wondering (to put it lightly), who did name the restart function of virsh "destroy", and why. It seems to me to be a complete 💩-head thing to do; but it must have ...
foo's user avatar
  • 160
0 votes
1 answer
609 views

Setting up kvm to use partition on the current disk not working

I am using libvirt kvm with virt manager, my purpose to have a os that can be used on bare metal and through kvm. I already have a windows partition on my disk, and I created a vm with it added as a ...
Danny Mills's user avatar
0 votes
1 answer
1k views

Unable to detach PCI device from running virtual machine ("Device is already in the process of unplug")

I'm forwarding a host USB hub using this virsh config: <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x13' slot='0x00' function='0x3'/&...
Hubro's user avatar
  • 5,786
2 votes
0 answers
254 views

(Why) should I disable libvirt networks?

After shutting down a virtual-machine using QEMU/KVM with libvirt the libvirt default network is still active e.g. $ virsh net-list --all Name State Autostart Persistent --------...
bird-dancer's user avatar
1 vote
1 answer
2k views

KVM Virtual Machine Network - Guest-guest/VM-VM only network (no host/hypervisor access, no outbound connectivity)

I know that with the virsh command I can create several types of networks (a "NAT network", for example) as we can see in these URLs... KVM network management KVM default NAT-based ...
Eduardo Lucio's user avatar
0 votes
0 answers
4k views

Virsh error, Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

I am trying to setup KVM, but when running certain wirsh commands like: $ sudo virsh net-define br10.xml or $ sudo virsh pool-define-as debian_pool dir - - - - "/home/$USER/VM" I get this: ...
Turnix's user avatar
  • 1
1 vote
2 answers
6k views

virsh - list all mac addresses for all network interfaces of any type

I'm trying to identify one of a few dozen virtual machines by a given mac address (52:54:00:: OUI, mapping to QEMU), the following lists the dhcp table from the NAT based virtual machine adapters, ...
ThorSummoner's user avatar
  • 1,170
0 votes
0 answers
44 views

virt-manager: Group 14 is not suitable

I followed this tutorial (here: https://passthroughpo.st/new-and-improved-mac-os-tutorial-part-1-the-basics/) but when I pass through my GPU, it errors out with something along the lines of Group 14 ...
zurgeg's user avatar
  • 103
1 vote
0 answers
1k views

Proper way to move a pool with virsh to another partition?

The root partition is running out of space so i'd like to move the machines to another directory. They are currently on /var/lib/libvirt/images/, the pool is called images. The VMs are spun up with ...
siem.yahshua's user avatar
0 votes
2 answers
2k views

Create snapshot in virsh for domain with two or more disks

I would like to back up the disks of a VM following the Live-disk-backup-with-active-blockcommit procedure at Libvirt Wiki. I create an external snapshot with virsh snapshot-create-as --domain ...
Michele's user avatar
0 votes
1 answer
1k views

KVM Online-Backup of a Windows-Machine

I implemented a bash script which is backing up my VMs. Basically I am doing the following steps: Create a snapshot of the target VM Backup the disk of the target VM Merge the changes back to the ...
SevenOfNine's user avatar
1 vote
2 answers
1k views

How to sniff a virsh virtual bridge from a virtual machine

So I want to sniff the traffic from a virtual bridge (virbr2) from a virtual machine. I can successfully sniff virbr2 directly from the host machine, but when setting that interface to the virtual ...
ignasivt's user avatar
0 votes
1 answer
99 views

CentOS virsh : how to inactive a container?

I am maintaining a legacy system(redmine). It is on CentOS7 x86 and running on virsh. I got a container(I do not know exact terms) with named centos7-redmine. [root@ice]# virsh list --all Id ...
Juneyoung Oh's user avatar
2 votes
1 answer
15k views

kvm Error starting domain: unsupported configuration: Unable to find security driver for model selinux

Trying to start our kvm virtual machines and getting this error after rebooting the physical host machine. Error starting domain: unsupported configuration: Unable to find security driver for model ...
nelaaro's user avatar
  • 13.6k
1 vote
1 answer
1k views

Live Migration without shared storage

I am new to Ubuntu and virtualization and I have been working on live migration of KVM machines without a shared storage. I have followed all the steps as described in the following link everything ...
user avatar
0 votes
1 answer
386 views

systemd service to set virsh default storage pool

I'm trying to run a script on system boot after an kickstart automated installation, the script just changes the default storage pool for KVM. But for some reason the changes don't take effect, if I ...
Alex Zel's user avatar
  • 182
7 votes
2 answers
13k views

How to increase size of an ubuntu cloud image

I have been trying to start a VM using ubuntu cloud images. Now, the image size is very less, I am getting around only 2GB of space. Is there any way to increase the size? I tried qemu-img resize, but ...
Pensu's user avatar
  • 813
1 vote
1 answer
2k views

Does Libvirt have any commands to find out disk i/o information?

Disk i/o information like throughput,activity or latency, or at least some disk related data, by which the throughput, activity or latency can be calculated. Is there any virsh command or some method ...
niladri chakrabarty's user avatar
3 votes
3 answers
9k views

Show qemu command line from virsh

I am debugging a problem with a libvirt VM starting, and I want to see the exact command line that it is going to use to start qemu. Is this possible using virsh or some other utility?
Jonathon Reinhart's user avatar
30 votes
10 answers
59k views

How to exit a "virsh console" connection?

Is there any special characters involved? I want to be able to open a console connection in my application and exit upon completion of a task
user2066671's user avatar