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
8 views

KVM virt-install pxe options

I want to boot my vm up to the PXE server, but I need a way for my dhcp server to recognize that it is a virtual machine and set the next-server to a specific IP. Are there any other options I can ...
0
votes
2answers
34 views

KVM - Access from an external computer to the Virtual Machine

I have the following setup: Notebook (IP: 192.168.1.100) Host: (IP:192.168.1.129) Both Notebook and Host are connected to a router (Internet IP:192.168.1.1)¨ The host (Host) has two virtual ...
1
vote
1answer
38 views

Clone KVM virtual machine with snapshots

I've created a virtual machine using virt-manager and saved a snapshot of it's current state. Now I'd like to create an exact duplicate machine with all snapshots from the first machine. How could I ...
0
votes
1answer
21 views

QEMU, Virsh and SMBIOS tables edit

I am currently running qemu-kvm on an Ubuntu server box and I use libvirt with Virsh to create, manage, start and stop VMs. I edited VM's XML configuration through virsh edit command to change CPU ...
1
vote
0answers
18 views

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

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

iptables: Allow private IP/VM external access and forward one port to this private IP/VM

I am running a server with 3 VMs having static IPs. All fine here :) I added a new private network with virsh: 192.168.100.0/24 connected with virbr1. All 4 machines have virtual NICs for internal ...
1
vote
0answers
66 views

VNC not working on XEN/libvirt domU - debian jessie

Hi recently configured a brand new server for testing purpose: debian jessie (8.3) xen 4.4 (xl toolstack) virtinst I created and started a new domU through virt-install: virt-install \ ...
0
votes
1answer
33 views

Creating a new domain in libvirt from a base domain

TL;DR at bottom I am building a web interface for libvirt as a project. I am using libvirt-php as the language binding to libvirt and everything is working, except for domain creation, sort of. The ...
2
votes
1answer
38 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
25 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
2answers
41 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
96 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
172 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
79 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
103 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" !? ...
2
votes
1answer
781 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
344 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, ...
0
votes
1answer
115 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 ...
-2
votes
1answer
58 views

How to edit the XML config file of a domain with virsh? [closed]

How to easily edit the XML config file of a domain with virsh?
0
votes
0answers
50 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
94 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
867 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 ...
1
vote
1answer
58 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 ...
0
votes
0answers
95 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
431 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
104 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
687 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
116 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
726 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
81 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
351 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
978 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
243 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
246 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
129 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
1k 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 ...
1
vote
1answer
802 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 ...
5
votes
3answers
20k 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 ...
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 ...
0
votes
1answer
253 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 ...
1
vote
0answers
313 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, ...
0
votes
1answer
464 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
211 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
101 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
196 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
451 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 ...