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

Restoring terminal/TTY to normal after virt-install?

After having created a VM with virt-install then the terminal is only 24 lines, where the terminal have 70 lines. I recall seeing a similar issue with virsh console. Question Ideally would I like both virt-install and virsh console use the entire…
Sandra
  • 10,303
  • 38
  • 112
  • 165
1
vote
1 answer

libvirt & openvswitch VLAN tagging on the fly

I'm working on a project using libvirt with qemu and openvswitch on Debian 10. I would like to be able to modify the configuration of a network card of a domain in bash with the update-device command of virsh. For that I took an example from this…
Nicolas
  • 21
  • 5
1
vote
1 answer

How to create internal snapshot with a virsh command

I want to create virsh snapshot that does not create any files, just keeps it in the same .qcow2 file. Basically the same thing that virt-manager does in the 'Manager VM Snapshots' page. How can I do that?
Hristo Kolev
  • 440
  • 1
  • 6
  • 16
1
vote
1 answer

Virsh can't detect my new vm

I have a *.qcow2 image from my old OS, it contains Windows 10. Then I copied it to the new OS and tried to install it. I followed the method written here "How to create a new domain from an existing base image in virsh". But my VM does not appear…
1
vote
1 answer

What do the IDs of PCI devices refer to and which ones are relevent for setting up passthrough?

In setting up a domain with virsh, I had always assumed that the "slot" of a PCI card referred to which slot on the motherboard it was in. However, that seems not two be the case, cards in two different physical slots are assigned to the same "slot"…
Stonecraft
  • 313
  • 3
  • 4
  • 18
1
vote
1 answer

Ansible playbook shell command variable undefined

My ansible script is made for deploying vm's in virsh and installing them with cobbler. Using a IP address fixed on mac address. To do this the mac address is needed. But I am having a hard time getting the output of the grep command to register as…
Ewt
  • 23
  • 2
  • 6
1
vote
1 answer

VM started, but it is not listed by virsh

I have a VM started by TripleO setup script for OpenStack. I can connect to the VM console with vncviewer. The problem is that the VM is not listed by virsh. $ sudo virsh list --all Id Name …
Mircea Vutcovici
  • 17,619
  • 4
  • 56
  • 83
1
vote
1 answer

Restrict users access to particular VM (libvirt)

I have a linux host (SLES12) and bunch of VMs on up of it via libvirt (KVM hypervisor). I assigned one GPU per each VM, and would like to be able to restrict each users access to particular VMs (e.g. user 'A' can only restart VM 'Z' and 'Y' or can…
1
vote
1 answer

Error when adding network interface to VM on KVM host using virsh

I'm attempting to script adding a network interface to a centos 6 guest. I know the interface can be set up using the virt-manager gui but it's highly desirable for it to be added as part of an Ansible playbook using virsh attach-interface or…
1
vote
1 answer

How does 'virsh' determine (iscsi) unit names and can they be changed?

I've got a kvm host running that has and iscsi backed storage pool: virsh # pool-info mypool Name: mypool UUID: 913210f2-f8a0-4a56-b7bf-ef00b0080ee1 State: running Persistent: yes Autostart: yes Capacity: …
Clayton Louden
  • 333
  • 1
  • 4
  • 16
1
vote
1 answer

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. Node and VM are running CentOS 7 Here is the…
Marc
  • 33
  • 11
1
vote
2 answers

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 machine on it (Development, Office). The host since it…
1
vote
0 answers

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 \ --network=bridge:br0 \ --name=test1 \ --disk…
1
vote
1 answer

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 the guests but wish to avoid that if possible…
Dave
  • 355
  • 1
  • 2
  • 12
1
vote
0 answers

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: I have that, and still the virsh shutdown is not working. When I have the VM console opened…
GreenTeaTech
  • 231
  • 1
  • 3
  • 7