Questions tagged [virsh]

The virsh program is the main interface for managing virsh guest domains. Virtualization of the Linux Operating System means the ability to run multiple instances of Operating Systems concurrently on a single hardware system where the basic resources are driven by a Linux instance. The library aims at providing a long term stable C API .

The virsh program is the main interface for managing virsh guest domains. The program can be used to create, pause, and shutdown domains. It can also be used to list current domains. Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes). It is free software available under the GNU Lesser General Public License. Virtualization of the Linux Operating System means the ability to run multiple instances of Operating Systems concurrently on a single hardware system where the basic resources are driven by a Linux instance. The library aims at providing a long term stable C API . It currently supports Xen, QEmu, KVM , LXC , OpenVZ, VirtualBox, OpenNebula, and VMware ESX .

You can find all info and options on virsh on this page.

155 questions
2
votes
3 answers

virsh console hangs whenever I connect to Virtual Machine

Whenever I try to connect to VM using virsh console my screen hangs and displays: Connected to domain Escape character is ^] I have found many solutions on the internet but nothing has worked for me and I am even not able to…
sachin
  • 21
  • 1
  • 1
  • 4
2
votes
0 answers

virsh (xen) not listing dom0 nor domU

I have Xen 4.4.2 installed on Ubuntu. xl list shows Dom0 and all DomU but virsh -c xen:/// list --all doesn't return anything. virsh version returns Compiled against library: libvirt 1.2.2 Using library: libvirt 1.2.2 Using API: Xen 1.2.2 Running…
dstrbad
  • 21
  • 3
2
votes
1 answer

virsh auto restart after vm died

We have several VMs on our system. Sometimes there seems to be an issue with RAM management on the host system and one system dies quietly. We have setup the VMs to autostart on host start, which works fine. But what about this scenario: Host…
paskl
  • 123
  • 3
2
votes
1 answer

Activate Intel VT-d in the kernel on CentOS7

Following many tutorials, they ask you to alter the grup file at the /boot/grup/grup.conf.. but in Centos7 there is no /boot/grup/grup.conf ... Activate Intel VT-d in the kernel Activate Intel VT-d in the kernel by appending the intel_iommu=on…
2
votes
2 answers

how to enable L3 cache on kvm guest?

I start a kvm guest(centos6.5) on a Intel machine(centos6.5),use libvirt, the guest's xml as follow test-1
jython.li
  • 84
  • 2
  • 10
2
votes
1 answer

Installing VM on CentOS 6.6 with virt-install hangs

I'm trying to install a Centos 6.6 VM on a CentOS 6.6 host with the following command. virt-install \ --name vm-queue \ --description "Queue Server" \ --ram 2048 \ --disk path=/var/kvm/images/vm-queue.img,size=30 \ --vcpus 2 \ --os-type linux…
castis
  • 175
  • 1
  • 2
  • 11
2
votes
1 answer

libvirt - Restart VMs after return from power failure?

Is there any way to make KVM automatically restart any VMs that have been shut down due to power failure? Here is my scenario: I run a small VM tank, mostly with development VMs on it. I now have a VM that is set to autostart on system boot, which…
Gargravarr
  • 493
  • 5
  • 14
2
votes
1 answer

Can no longer add VMs on Xen/DRBD/Pacemaker Cluster

OS: Debian 7.3 & 7.6 Problem: Every attempt to manipulate (create, migrate or even list) the VM's with virsh causes this "Failed to get host power capabilities" warning. I manage a standalone Xen virtual host which produces the same warning &…
Eamonn Travers
  • 614
  • 4
  • 11
2
votes
1 answer

Modifying xml definition of a running KVM domain via script

How can I modify the xml definition of a VM over ssh? I know that I can do this interactively by logging into the host and using: virsh edit But I want to automate this modification of xml using a script that runs on a remote host and…
2
votes
2 answers

Virsh domain has space in it, can not remove

I'm having trouble starting, or destroying a domain: virsh # list --all Id Name State ---------------------------------------------------- 1 pxe running - Centos_6.5_64 …
DevOops
  • 315
  • 4
  • 13
2
votes
1 answer

Detailed explanation of how virtual machine snapshots work

I would like to fully understand how virtual machine snapshots work. Although I have researched this subject I cannot seem to find a "high-level" overview of how snapshots work practically. My questions are: Example scenario: I have an Ubuntu 12.04…
sardean
  • 833
  • 3
  • 15
  • 34
2
votes
3 answers

libvirtd: kvm: User Permissions Centos 6

I need to have user access control over how they can use the Virtual machines and what they can do via Virsh on a KVM based hypervisor. So far what I learned from http://wiki.libvirt.org is that I have to enable the unix socket permissions at…
chandank
  • 847
  • 3
  • 14
  • 31
2
votes
2 answers

Adding Virtio block devices at runtime in Libvirt KVM

I'm running Debian Wheezy Beta 4 with KVM based guest systems which run the same operating system. I'm using LibVirt to manage the virtualisation. What I would like to do is to attach an LVM based block device to a running guest system through…
aef
  • 1,745
  • 4
  • 25
  • 43
2
votes
1 answer

Where are RAM snapshots stored by libvirt?

My understanding is that when I run this command to create a snapshot of a running domain: virsh snapshot-create-as myvm snapshot1 that not only are internal snapshots created in each disk image file, but that the RAM state is also saved somewhere.…
cm08
  • 23
  • 3
2
votes
1 answer

Migrate a QEMU/KVM VM from qemu:///system to qemu:///session

I have a created a Windows 10 VM using virt-manager as user (not root). However, when try to list the VMs with virsh list --all, My VM is not listed? And, if I specify the system URI with by running virsh -c qemu:///system list --all, I see my VM…
1 2
3
10 11