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
2answers
30 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
9 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
20 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
45 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> ...
0
votes
0answers
11 views

Virsh pool-info shows no space free on iSCSI pool

I have an iSCSI target configured on FreeNAS 9.3 (zvol backend). I also have a linux KVM machine where I'm trying to create a virtual machine using the iSCSI disk. On my linux KVM machine I can ...
0
votes
0answers
22 views

Using Xenlight with libvirt in debian, Unable to configure listen with remote libvirt

I am using libvirt 1.2.0 with xen hypervisor 4.4 in debian server. I am facing error when I try to connect remotely with other libvirt using TCP or TLS. I couldnt make libvirt to listen to the port. I ...
1
vote
1answer
47 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
79 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
34 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 ...
0
votes
0answers
7 views

After reboot domain start from base ignoring snapshot file

My host had a problem and restarted unexpectedly. After reboot one of the domain on virsh started ignoring the snapshot file, that is at the state of the date the snapshot was taken (late august). ...
0
votes
1answer
2k 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
74 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
338 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
80 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
389 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
177 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
66 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
80 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
130 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
189 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
55 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
186 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
367 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 ...
0
votes
3answers
3k 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
168 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
68 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 ...
-1
votes
2answers
1k views

How do I access the F8 Bootmenu while booting a Windows 2008R2 KVM Guest VM?

Stupid question but this doesn't work, seems like it should. Is there a trick to access a booting Guest VM's bootmenu using KVM? I'm running the VM using virt-manager 0.8.7. KVM server is a CentOS 6.3 ...
1
vote
1answer
3k views

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

virt-manager cannot identify machine

last time I had virt-manager + Desktop on my centos server everything was fine then I removed desktop for more security. and after a while I installed it again and now when I open virt-manager it ...
1
vote
2answers
542 views

virt-manager doesn't show list of local KVMs but virsh does

When I open virt-manager GUI it doesn't show list of KVMs but virsh does. how can fix it?
7
votes
1answer
2k views

How do I make a persistent domain with virsh?

virsh create somefile.xml creates my machine just fine but when I shut the machine down the whole thing disappears. Machines I made with the virt-manager GUI are persistent (stick around after ...
14
votes
3answers
25k 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 ...