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

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/network/interfaces auto eth0 iface eth0 inet static …
debianek
  • 103
  • 4
0
votes
0 answers

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 than the default one, i've tried setting "vga" as…
greseth
  • 21
  • 6
0
votes
1 answer

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 model and set up SMBIOS data by specifying bios and…
int 2Eh
  • 193
  • 1
  • 2
  • 6
0
votes
1 answer

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 issue I am having is with domain creation, wherein…
brti
  • 31
  • 1
  • 3
0
votes
1 answer

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 still have some files pertaining to this image…
red888
  • 4,183
  • 18
  • 64
  • 111
0
votes
0 answers

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" !? How to change definitively the parameter ? Thank…
Bertaud
  • 133
  • 1
  • 8
0
votes
1 answer

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,+x2apic ... My other question is how to add the…
0
votes
0 answers

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: guest_image_disk UUID: …
mr.zog
  • 923
  • 3
  • 20
  • 39
0
votes
1 answer

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 server ifconfig br0 Link encap:Ethernet …
0
votes
1 answer

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| 4d05ffe4-d30a-4c93-b710-c9ec80dad1c2 | The volume is…
Ryan M
  • 101
  • 1
0
votes
2 answers

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 template dumped xml config file and create VMs.…
user3237784
  • 1
  • 1
  • 2
0
votes
1 answer

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

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

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 first part is done. Most tutorial use graphical…
AsTeR
  • 257
  • 4
  • 13
0
votes
1 answer

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 snapshot still exist and be active when I start the…
user160910
0
votes
1 answer

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 Manager and Resource Manager are really inconnsistent…
DarkSheep
  • 1,036
  • 1
  • 13
  • 23