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 ...

learn more… | top users | synonyms

0
votes
0answers
7 views

Virsh - Requested operation not valid: volume is still being allocated

I have a script setup to easily create domains in virsh. Part of the script involves creating a new volume from an existing one, to use as the domain's disk. However this error occurs when multiple ...
0
votes
1answer
83 views

virsh adding x2apic, cache specific options to kvm config

Anybody know the syntax how to add +x2apic to the virtual machines xml files when I edit them with "virsh edit vm"? From the command line it would be starting with this flag: qemu -cpu ...
1
vote
1answer
623 views

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 <domain name> But I want to automate this ...
1
vote
1answer
54 views

Unable create/access storage pool in a KVM

I have trouble using storage pools in my KVM setup. I get the following error message whenever I try to use a pool-* command in my virsh shell. virsh # pool-list error: Failed to get the number of ...
1
vote
0answers
19 views

How to create a new domain from an existing base image in virsh

Is there a way of creating a domain with virsh from a base image? I have looked around and found that it is possible using virt-install, however I would prefer it if this was done purely through ...
0
votes
1answer
18 views

Files left over after removing KVM guest

Looking at this post I ran the following commands to remove a VM: sudo rm /var/lib/libvirt/images/centos01.qcow2 sudo virsh undefine centos01 --managed-save --snapshots-metadata But it looks like I ...
3
votes
1answer
32 views

How can I increase vCPUs on VM without powering off in RHEL 7

I am trying to increase vCPUs on a VM. I have done this in the past. Poweroff the VM Configure for maximum allowed vCPUs virsh setvcpus vm-1 10 --maximum --config Change for current settings ...
3
votes
1answer
43 views

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 ...
2
votes
1answer
98 views

CentOS7: KVM: error: Cannot create user runtime directory '/run/user/0/libvirt': Permission denied

Been trying to resolve an issue I found by having our Nagios installation use a plugin for KVM, check_kvm, I found. I think my problem boils down to a permissions issue with the nagios/nrpe user. ...
1
vote
1answer
41 views

Backing up Xen Guests from dom0 with disk image file

I have a Xen server dom0 with a number of guests installed and am struggling to find an easy way to manage backups from the dom0 side. Guest scripts: Of course I could run backup scripts on each of ...
2
votes
0answers
65 views

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 <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> ...
0
votes
0answers
28 views

How to definitively change a parameter in a xml vm domain file?

I have a vm with the machine type = "pc-012". For a reason linked with virtio, I changed the machine type for "pc-1.1" with virsh edit domain command. When I reboot the host, I find again "pc-012" !? ...
4
votes
3answers
17k views

KVM/libvirt: How to configure static guest IP addresses on the virtualisation host

What I'd like to do is to set the guests' network configuration (IP address, subnet, gateway, broadcast address) from the host system. The used network setup is in bridge mode. How can I configure the ...
0
votes
1answer
394 views

Delete “orphan” libvirt snapshot

I am trying to live-snapshot using KVM as per this procedure. I must have messed up at some point because I'm in a state I don't understand. My VM is called prod. It was created in file ...
0
votes
0answers
279 views

virsh shutdown not working on linux guest

Solution to this issue is usually installing acpi on the guest vm and making sure the vm has the following: <features> <acpi/> <apic/> <pae/> </features> I have that, ...
20
votes
4answers
40k views

How to connect a cdrom device to a kvm/qemu domain (using command-line tools)?

I have set up a virtual machine running Windows XP on my Ubuntu laptop. Using the virt-manager GUI application, I can insert a CD in my drive and go to Details→IDE CDROM 1 and click on the Connect ...
0
votes
0answers
44 views

How to hot add a new disk with virsh attach-disk?

I'm trying to add a new LVM disk to my guest machine (Ubuntu 14.04.1) by doing the following on the host: lvcreate -L 14G -n vm_vm005_data3 vg00 virsh attach-disk vm005 /dev/vg00/vm_vm005_data3 ...
0
votes
2answers
75 views

How to check the number of CPUs and cores from host with virsh?

How to check the number of CPUs and cores available in the host machine using virsh?
0
votes
1answer
641 views

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 ...
0
votes
0answers
71 views

virsh console is “eating” keyboard input

A system upgrade messed up the sshd options in my virtual server (no matching cipher found), and while trying to get a serial console over virsh console, it seems to be "eating" or ignoring some key ...
0
votes
0answers
334 views

can't create volume on disk-based libvirt storage pool

I followed Red Hat's doc (to the letter) on adding a disk-based storage pool for my libvirt/kvm server. Here's what I see: [root@kvm ~]# virsh pool-info guest_image_disk Name: ...
0
votes
1answer
88 views

KVM bridged network cannot connect to the server

I installed KVM on my Ubuntu Server 14.04 LTS on OVH dedicated server. I cannot connect to my virtual host over ssh. My server IP: AAA.AAA.AAA.AAA My Failover IP: BBB.BBB.BBB.BBB My config on the ...
0
votes
2answers
508 views

State of VM after 'virsh save'

virsh save vm_name memdump and then virsh restore memdump restores a (running) VM all right. However, a VM is shut off after virsh save. I'm writing a "live" backup and restore script for KVM VMs, so ...
0
votes
0answers
98 views

Boot failed: virt-manager fails to load qcow2 image

I downloaded Centos image from centos-repo. The image is in qcow2 format. I tried to bring up a new VM (with downloaded Centos img) using virt-manager like this, . Since there is no mentioning of ...
0
votes
0answers
652 views

Backup KVM running machine safely

I read some solutions to make backups of running VMs, but all take offline snapshots that seems difficult that will work if the VM has high I/O load. I have tested but i have doubts about the process ...
0
votes
1answer
78 views

nova volume-detach fails silently, compute log shows libvirtError: invalid argument: no target device vdb

Using Openstack Havana, I'm trying to detach a cinder volume from a nova instance. Nova volume-list shows it as in-use: | 34b0ea26-f85c-4b62-8ebd-884b0e63e2d5 | in-use | filestore | 256 | None| ...
0
votes
1answer
303 views

Changing qemu/libvirt default gateway IPv4 IP to something other than x.x.x.1/24

General info: I have a KVM-libvirt/qemu running on ArchLinux; 3.18.2-2-ARCH ls | egrep -i 'libvirt|qemu' libvirt-1.2.11-1-x86_64.pkg.tar.xz libvirt-glib-0.2.0-1-x86_64.pkg.tar.xz ...
0
votes
2answers
814 views

internal error: unable to execute QEMU command 'cont': Resetting the Virtual Machine is required

I try to install a kvm img in my vps, but after i install it, it show root@wz:~# virsh list Id Name State ---------------------------------------------------- 12 ...
1
vote
0answers
223 views

When i use virt-install --import, virsh vol-list --pool default return null

I upload my guaji.img file to server, and use following code: sudo virt-install -n guaji -r 512 --os-type=windows --os-variant=winxp --disk #{to_rmt},device=disk,bus=virtio --noautoconsole --import ...
2
votes
1answer
201 views

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 ...
1
vote
2answers
2k views

Assigning video card to KVM guest VM with PCI-Pass Through

This is on Ubuntu 12.04LTS using KVM. The system has a graphics card which is visible to the hypervisor's kernel shown as follows: # virsh nodedev-dumpxml pci_0000_21_00_0 <device> ...
1
vote
1answer
123 views

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 ...
0
votes
2answers
921 views

ssh into virtual machine (or direct VM console access)

I am trying to launch multiple VMs and need to have a direct console access (whether through ssh etc.) So, far I can launch multiple VMs using virsh/KVM tools. How I do it is that I just have one ...
0
votes
1answer
235 views

virsh XML interface allocation

I am trying to launch VM using a XML. This VM will be having 5 interfaces each connected to certain bridge. Issue here is allocation of these interfaces is random. My XML <interface ...
2
votes
1answer
2k views

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 ...
1
vote
0answers
259 views

virsh vcpu_period and vcpu_quota

I have been looking into ways to divide my CPU amongst KVM guests other than by just setting vCPU access limits. I understand the concept of cpu_shares which can be set/displayed with virsh schedinfo, ...
2
votes
3answers
856 views

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 ...
0
votes
1answer
433 views

Is there any complete tutorial for setting up a full QEMU-KVM from hypervisor to host through command line ? [closed]

I've found parts about how to use virt-install from scratch or almost like http://virt-tools.org/learning/install-with-command-line/ However I'm stuck at connecting to the VM through virsh once the ...
0
votes
1answer
177 views

How to automatically start virtual Networks using virsh?

Following this answers, configuring domains to autostart using virsh is easy; set aside they fail with following error message: error: Failed to start domain [name] error: internal error Network ...
0
votes
1answer
98 views

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 ...
0
votes
1answer
190 views

virsh snapshot-create persistent through reboot/ domain destroy-start

If i take a snapshot of a qcow2 image backed domain via virsh snapshot-create domainID and I shutdown the machine (and probably destroy the domain if virsh list still shows it running), will that ...
1
vote
1answer
415 views

kvm - Recover domain from .img file alone

Yesterday I had a drive failure (raid-0) in the host system and had to re-install the os. Fortunately the vps images were on another raid array (raid-5) and the .img files are still available. However ...
0
votes
1answer
61 views

How do I get Windows 2008 R2 to update total memory in displays?

I am trying to get a feeling for how much memory I need for my Windows 2008 R2 server by changing the memory while the server is running. While this works well the indicators in the Windows Task ...
0
votes
1answer
491 views

virsh attach-device for serial device

I would like to add a serial device (console) to a guest via the virsh attach-device command. I have a console.xml file containing: <serial type="pty"> <target port="0"/> ...
1
vote
1answer
787 views

reseting password not working in KVM guest

I lost the root password for a guest system. I mounted the guest system and changed it to single user mode. Then I used virsh console to access the guest system, which was now in single user mode, ...
0
votes
1answer
47 views

Using a virtual disk image on two virtual servers

I have a setup with some test and stagiging servers running on the same host (using virsh to maintain it on ubuntu 10.04) The test and staging systems are build up with the same sets of servers. One ...
1
vote
3answers
6k views

Virsh can't connect to ovirt hypervisor

I installed Ovirt and want to add network interface for NAT. So I need to connect to hypervisor by virsh and add nic. Ovirt installed on my local server, host (ovirt-engine.kvmserver.net) is on the ...
0
votes
1answer
247 views

listing of VM's created before libvirt installation or started by any other VM management tool

if my VM's are not created using virt-manager or are created using any other tool, then virsh system list command does not give them in the list of running VM's however they are running perfectly on ...
1
vote
0answers
84 views

Domus Memory Used Issue With Xen On CentOS

Anyone know why I'm receiving this error? I compiled latest libvirt from source, I also tried with various rpm. I would like to get memory used by domus and it looks like it's not working with Xen 3 ...