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

1
vote
1answer
27 views

KVM - Adding public IP over bridge

I am working on setting up a KVM environment and normally I just take it for granted that the networking has been set up. I am running into difficulty getting the public IPs accessible from the VMs. ...
0
votes
0answers
14 views

libvirt vhba storage pool configuration

I'm running a project where I will use libvirt NPIV/vhba functionality to pass Fc LUN's from a SAN to KVM virtual machines. I'm using CentOS7 as host. I will also mostly use CentOS7 as guests. I got ...
0
votes
0answers
55 views

Is it possible to clone a snapshot of a KVM vm?

I only find an option to clone the last state, but not the state of a snapshot. Is there a solution? I'm using virsh and virt-manager to manage the vm's. The Hypervisor is Ubuntu Server 16.04. The vm'...
0
votes
1answer
23 views

virsh command that displays the cpu and memory consumption?

I want to know if there is a command virsh to display the cpu and memory consumption of each machine virtual. I created the virtual machine using KVM in ubuntu system.
0
votes
0answers
60 views

Assign 2 IP addresses to one virtual machine

I would like to assign 2 IP addresses to one virtual machine but cannot make it working. I have IP MAC 151.180.39.138 02:aa:cc:73:b1:39 78.132.120.30 02:cc:aa:79:fb:e7 /etc/...
0
votes
0answers
48 views

virsh, how to get full screen resolution via VNC

I've got a few KVM VMs running on my home server, some of them running X. I use virsh to manage them, and tunnel 5900x ports via SSH to access them via VNC. I can't get the resolution to go higher ...
0
votes
0answers
32 views

Virsh cannot connect to Xen server

I have installed the latest version of Xen server 6.5. Now I want to connect to it with virsh (libvirt-bin). When I do this I get the error error:end of file while reading data: sh:nc:command not ...
0
votes
1answer
68 views

CentOS 7 Virsh - Allow Non Sudo Users to Interface with QEMU / KVM / Virtual Machines

Is there a way to allow non sudo users access to KVM QEMU virtual machines in CentOS 7? I want to allow a non-root user to manage KVM guest virtual machines without having sudo access. Mainly, I'd ...
0
votes
0answers
16 views

Can't connect to virsh managed QEMU-KVM via network interface

trying to connect via SSH to VM on Debian 8.4 Host. Seems the virtual ethernet adapter don't get an IP4 by DHCP. Can smb. point me in the right direction :( Some cfg. details... #ifconfig eth0 ...
2
votes
1answer
28 views

libvirt kvm qemu virtual machine - hard code domain-id?

Is there a way to hard code the domain-id of a virtual machine kvm guest? I tried adding an id attribute to the XML configuration via virsh edit name And I also tried to edit the XML directly ...
2
votes
1answer
86 views

OpenStack Juno Live-Migration never completes for instances with high load and size >64GB

I have run into situations where live migrations never seem to complete or error out. Here is how I have been able to reproduce the problem. Here is the instance I am migrating: [root@osc1-mgmt-001 ...
0
votes
1answer
40 views

virsh console hangs whenever I connect to Virtual Machine

Whenever I try to connect to VM using virsh console <vm name> my screen hangs and displays: Connected to domain <vm name> Escape character is ^] I have found many solutions on the ...
1
vote
0answers
53 views

failed to start domain on RHEL 7.1 using KVM

I want to create a domain(guest machine) on my RHEL 7.1 using KVM. The domain is getting defined but when I start it, it shows the following error: virsh # start vm-1 error: Failed to start domain vm-...
0
votes
0answers
21 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
51 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
126 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
74 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
30 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
16 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
26 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
111 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
36 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
50 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 virsh,...
0
votes
1answer
32 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
44 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
180 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
272 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
139 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
151 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'> <name>...
0
votes
0answers
31 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
1k 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 /srv/vm/prod....
0
votes
0answers
397 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
139 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 $MODEL,+...
-2
votes
1answer
73 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
2answers
137 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
1k 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 path=/var/kvm/images/vm-...
1
vote
1answer
70 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
482 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
115 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
901 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
144 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
760 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
85 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
380 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 libvirt-python-1....
0
votes
2answers
1k 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
256 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
304 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> <name&...
2
votes
1answer
136 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 ...