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
0
votes
0 answers

Mount a disk image as mmc flash in libvirt

I'm trying to run the OS of my x64 NAS in a VM with kvm and libvirt. I made an image of the internal flash with dd. The image has a few partitions, starting with an EFI partition. virt-install -n mynas --os-type none --ram 1024 --vcpus 2 --boot uefi…
0
votes
1 answer

Missing KVM snapshots in virt-manager

I need to resize an image and receive an error when using qemu-img the resize is not supported because snapshots exist. Sure enough, even though virt-manager does not show any snapshots, I see the following when listing the snapshots with…
rwfitzy
  • 233
  • 5
  • 16
0
votes
1 answer

virsh error: domain is already quiesced

My VM backup script fails while creating the snapshot. virsh snapshot-create-as --domain machine_1 snap --diskspec vda,file=/srv/test/test-snap.qcow2 --disk-only --atomic --no-metadata --quiesce error: Requested operation is not valid: domain is…
Jérôme
  • 615
  • 2
  • 8
  • 19
0
votes
2 answers

virsh: Overwrite existing snapshot

How can I overwrite an existing snapshot with virsh? If I try to use an existing name, then I get this error message: > virsh -c qemu+tls://virtserv5/system snapshot-create-as myvm --name snapshot-foo error: internal error: unexpected domain…
guettli
  • 3,591
  • 17
  • 72
  • 123
0
votes
1 answer

Domain.xml not Updating For Console Directive

Good afternoon, I'm following the instructions here in order to get console access from libvirt The problem I'm having is the domain.xml does not accept the new changes. I have also done the following: vi /etc/libvirt/qemu/domain.xml # made my…
KingFish
  • 125
  • 6
0
votes
1 answer

How can I find out if a virsh VM has qcow storage attached as non persistent?

I have multiple (KVM) VM's being managed under virsh in different servers (ubuntu precise and up). I need to check if any of those have qcow disks attached non persistently. Was hoping for something like this to help me out: virsh domblklist domain…
0
votes
1 answer

Change KVM cpu threads/Cores after Build

So, changing Vcpus and RAM is easy enough. How can I change the number of threads and cores per vcpu in KVM? I need 1 Vcpu, four cores, and two threads per core. Barring that, four cpus with two threads each. That being said, is there any real…
flyingcars34
  • 147
  • 1
  • 2
  • 9
0
votes
0 answers

KVM guests show wrong source IP in apache logs

I have a few KVM guests running on a Fedora 22 host using a bridged network. It all seems to be woring fine apart from one niggle. One of the guests has apache running on it. Any access to the web server on the guest shows the IP address of the host…
Andy
  • 11
  • 3
0
votes
1 answer

Install guest CentOS 7 on KVM also on CentOS7 without GUI

I'm a bit stuck with virtualization on CentOS 7 using KVM. Whenever I try to create a virtual machine it keeps telling me to connect to the machine via console and finish the installation. Whenever I connect, I can't enter enything, I can only…
Bert
  • 1,028
  • 1
  • 16
  • 33
0
votes
1 answer

Determine which VIF interface belong to which Xen domain on SLES12.1

As mentioned I have a list of Xen Domain as below: Vm01
Vm02
Vm03
Vm04 And using bright network for communicating outside, After I launched 4 VM it automatically created 4 vif interface, but now I can not determine which interface is…
Ronalkiha
  • 11
  • 5
0
votes
1 answer

Block certain ports on certain VMs running on KVM

I have 2 VMs Running on KVM hosts. I run a web server on one and use the other for experimental stuff - basically just use ssh on it. I want to block all incoming connections on all ports except on port 80 on the web server VM and want to block all…
Ghazanfar
  • 101
  • 3
0
votes
0 answers

How are disc backups more useful than memory backups in KVM/QEMU

So, I have to take disc snapshots of a VM but I cannot comprehend why are they useful and better than memory snapshots as said by a lot of people. Suppose we have a computation going on, we take a disc snapshot and the system fails. Now, when we…
0
votes
1 answer

How to take the network snapshot in QEMU/KVM

So, I have two guests which I can easily snapshot but suppose a guest sends a packet to another guest and the packet is in transit while we take the snapshot of both guests. How can I also snapshot this packet in transit from guest 1 to guest 2 in…
0
votes
1 answer

How to decrease the snapshotting time in QEMU/KVM?

I am using QEMU snapshots of disc as well as ram(combined) using QEMU GUI and terminal(using virsh command). My guest VMs have 1 gb RAM each. The snapshots work very fine for my work but there is a problem. The problem is that each snapshot takes…
0
votes
1 answer

Is there a way to snapshot the computation without pausing in QEMU/KVM?

We can take snapshots easily but we have to pause the computation state to do so. We can backup the disc without pausing the system. Is there any way that we can also snapshot the computation state of the guest without pausing the guest in…