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
1
vote
1 answer

vcpu counts aren't changing after config change and reboot

I recently downsized the number of vcpus virtual server Echobox1 uses from 4 to 1. before: # virsh vcpucount Echobox1 maximum config 4 maximum live 4 current config 4 current live 4 I…
a coder
  • 789
  • 4
  • 20
  • 38
1
vote
1 answer

Unable to resize lvm to max of vda

I am trying to resize my lvm partition frm 29GB to ~60GB. Here is my current status: root@demo:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 99M 1 loop /snap/core/11081 loop1 …
1
vote
1 answer

network interfaces are deleted after issuing a virsh shutdown on VM

I tried to instantiate a VM using virt-install command with few interfaces as needed. The exact command is as follows: virt-install \ --name VM \ --noautoconsole \ --input keyboard \ --os-variant rhel7.0 \ --memory 8192 \ …
1
vote
3 answers

KVM trying to restore from backup and getting error unexpected data

Hello I made a backup of a VM guest with these steps: 1. virsh dumpxml --migratable test > /backup/test.xml 2. virsh snapshot-create-as --domain test \ --name backup.qcow2 \ --no-metadata \ …
andys
  • 113
  • 5
1
vote
1 answer

Xen VM continuously restarts and kernel fails to start init

I am using a VM built using the Xen hypervisor and libvirt management layer. I couldn't connect to the VM after updating the Debian verison from 8 to 9 so I tried logging into the physical machine the VM is running on and restarting the VM with…
qwr
  • 111
  • 6
1
vote
3 answers

How to reduce KVM qcow2 disk size?

When I boot in my guest Debian it says it size is 2.7G. df -h Filesystem Size Used Avail Use% Mounted on udev 718M 0 718M 0% /dev tmpfs 147M 6.2M 141M 5% /run /dev/vda1 98G 2.7G 91G 3% / tmpfs …
1
vote
1 answer

Using virt-install to create a Ubuntu VM with iso / access to virsh console

I am trying to set up a Ubuntu server VM (CLI only) on a Debian host (CLI only) using virt-install (version 1.0.1). But following install: sudo virt-install --name= --disk…
2one
  • 141
  • 6
1
vote
1 answer

Where are the OS specific properties located used by virt-install --os-variant

Using virt-install ... --os-variant win10 ... virt-install create a new VM optimized for Windows 10. But where are those OS specific properties located? E.g. machine-type and the elements (the one specified in the virt XML) Been looking in…
MrCalvin
  • 354
  • 1
  • 6
  • 18
0
votes
1 answer

Virsh command not working to install Centos 8 virtual-machine on Ubuntu 18.04 via qemu/kvm

I am trying to install centos 8 on ubuntu 18.04 as a virtual machine. I have a wireless connection. When I run the following command: chh2@chh2-cpu:~$ sudo virt-install --name=chris_centos --ram=2048 --vcpus=2 …
0
votes
1 answer

KVM-QEMU bridged network not working - guest can only access host

I am trying to configure VMs to act like devices on my LAN, instead of hiding behind the host. This is the tutorial I followed: RHEL8 Network Bridged Interface My router/DHCP is at 10.10.1.254 Host is a CentOS 8 VM running inside ESXi - on DHCP with…
HomeIsWhereThePcIs
  • 144
  • 1
  • 2
  • 9
0
votes
0 answers

QEMU-KVM: VM will not start with virsh, only with qemu-system-x86_64

I have a vanilla Arch linux VM with disk in qcow2 format. I recently upgraded it and it stopped working. Every time I run $ virsh start Arch I get: Starting version 243.78-2-arch ERROR: device 'UUID=' not found. Skipping fsck mount: new_root:…
0
votes
1 answer

Get all virsh configs

I've several qemu vm's managed with virsh. I've already created a backup of the images. Now I want to create a backup of the config files. How can I do that? The only solution I've figured out so fare is: virsh dumpxml vmname > bachuk.xmlsee. But…
Cutton Eye
  • 343
  • 4
  • 14
0
votes
1 answer

libvirt hot unplug cpu

I'm currently working with libvirt. after i reduce the number of vcpu cores with below command, the operation will be completed successfully. i should also mention that my current and max vcpus is 4, before this command. virsh setvcpus…
nima
  • 3
  • 2
0
votes
1 answer

How to achieve Host-and-Internet-Only networking within a Debian host and Windows Server guest using KVM/QEMU?

I have a physical/dedicated server which is running Debian 9 (Stretch). The server has enough resources to support its own load and the load of some virtual machines (in this question: Windows Server 2016 Standard edition). To simplify this…
burnersk
  • 2,056
  • 5
  • 27
  • 39
0
votes
1 answer

Apply Network Filter to Ovirt Guest without Rebooting

I am trying to change the clean-traffic IP address for a oVirt Guest VM. It works as long as I reboot the VM. ( Changed from within the Guest Virtual Machine Network Settings ) But for a production environment we want to be able to change these…
Rahim Khoja
  • 133
  • 5