Questions tagged [virsh]
22 questions
31
votes
10 answers
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
- 665
7
votes
2 answers
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 it doesn't work, as I am not able to reallocate…
Pensu
- 813
5
votes
1 answer
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 made sense to somebody, and I would like to understand the…
foo
- 198
4
votes
3 answers
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
- 3,514
2
votes
0 answers
(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
- 51
2
votes
1 answer
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 selinux
Traceback (most recent call last):
File…
nelaaro
- 14,139
- 30
- 88
- 115
1
vote
1 answer
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 in python-libvirt library, that would help me in…
1
vote
1 answer
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 networking (page 33)
QUESTION: How can I create a network (lan_n)…
Eduardo Lúcio
- 1,314
1
vote
2 answers
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, however many of these virtual machines have host…
ThorSummoner
- 1,240
1
vote
0 answers
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 Vagrant and im using KVM/libvirt as the provider.…
siem.yahshua
- 11
1
vote
2 answers
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 machine I don't see anything. This is the network…
ignasivt
- 11
1
vote
1 answer
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 works fine till the last step where I get an error…
Ranjan Dhar
0
votes
0 answers
Expanding libvirt VM storage? (zfs volume as VM storage)
So I’m running a bunch of VM’s in a NixOS hypervisor. I am using libvirt (virsh) and using zfs volumes as the VM storage (using virtIO). I’ve just tried to expand one of the volumes on the hipervisor, however even after a guest reboot, the expanded…
0
votes
0 answers
How to view boot logs for debugging the virsh shutdown
I am using virsh start guest which starts the domain, but soon the guest goes into the shutdown state which can be confirmed using the below command:
virsh list --all
Id Name State
------------------------------
- guest shut…
NewUser
- 1
0
votes
1 answer
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 disk but when I launch it it's stuck on booting…