Questions tagged [libvirt]

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt runs on Linux, Solaris and Windows.

libvirt supports the following hypervisors: KVM/QEMU, Hyper-V, VMware, Xen, VirtualBox, OpenVZ, LXC, User Mode Linux, and others.

libvirt suports the following storage: local file images, raw disk storage, LVM, FibreChannel, iSCSI, NFS.

610 questions
0
votes
0 answers

libvirt on fedora, qemu/kvm guest, guest can ssh to host, but failed to samba or ftp to host

I am running libvirt/qemu-kvm on Fedora32, guest OS is win10 with spice-guest-tool in use. I use 'nat' mode virtual networking. root@fedora ~]# virsh net-dumpxml default default
0
votes
2 answers

libvirt cannot create default network

I can't start the default network for libvirt. I get the error in journalctl: Jun 06 15:22:43 jenia libvirtd[889326]: Unable to create bridge virbr0: Package not installed I did installed the packages ebtables, bridge-utils and dnsmasq and…
Jenia Ivanov
  • 203
  • 1
  • 3
  • 6
0
votes
1 answer

Libvirt: "The CPU is incompatible with host CPU"

I'm exporting a domain from 'old pc' to 'new pc' # Export domain (from old pc) ssh user@"$REMOTE_IP" "virsh --connect qemu:///system suspend --domain magento-base > /dev/null 2>&1" …
Adrian Lopez
  • 181
  • 6
0
votes
1 answer

libvirt: ERROR Host does not support any virtualization

That's when I run the command 'virt-install' virt-install --connect=qemu:///system --name=mymachine --ram=4096 --vcpus=2 --check-cpu --os-type=ubuntu --vnc --accelerate --disk=/home/myuser/mymachine/mymachine.qcow2,sparse=true…
0
votes
1 answer

Unable to access console or SSH on Amazon Linux 2 KVM image

I am trying to create a KVM guest instance running Amazon Linux 2 in an on-premises environment, on a CentOS 7 host. I am doing this over SSH (e.g. my local machine -> SSH to the CentOS host). I know my hypervisor setup works, as using the following…
turbonerd
  • 76
  • 5
  • 19
0
votes
1 answer

iptables port forward not working with libvirtd VM

For some reason, I'm unable to connect to my server inside a VM from the outside world, but I can definitely connect to my server from the hypervisor. The server application runs on ports 27500 and 27015. I'm a little inexperienced with iptables so…
Alex
  • 369
  • 5
  • 22
0
votes
1 answer

KVM, libvirt, and LVs inside LVs

I have a Debian server running KVM+libvirt. The VMs disks are LVs on the host. The trouble is that if I create LVs inside the guests, they are recursively detected on the host and that creates all sort of problems, like the inability to resize or…
wazoox
  • 6,782
  • 4
  • 30
  • 62
0
votes
1 answer

How to setup port forward

I have a VM that I manage with libvirt and it has a service running on port 9100. I want to forward the VM's port to the host, so that if I go to localhost:9100, I will be redirected to the VM. I tried both https://wiki.libvirt.org/page/Networking…
iomartin
  • 131
  • 1
  • 4
0
votes
1 answer

Enabling DHCP on Linux Host for libvirt VMs

This is a follow up question from here: How to disable default DHCP on virbr0 and obtain IP from DHCP on host I have a Ubuntu server 18.04, with Libvirt based Virtual Machines setup over virbr0 bridge. By default libvirt's default DHCP server…
Haswell
  • 113
  • 2
  • 5
0
votes
1 answer

How to disable default DHCP on virbr0 and obtain IP from DHCP on host

I have a Ubuntu Desktop, with Libvirt based Virtual Machines setup over virbr0 bridge. Currently libvirt's default DHCP server (dnsmasq) provides IP address assignments. root@ngadre-Inspiron-3542:/home/ngadre# virsh net-dumpxml default
Haswell
  • 113
  • 2
  • 5
0
votes
1 answer

how libvirt cputune config goes to qemu-kvm

I am porting xml libvirt config to qemu executable arguments. Simply I have .xml vm config from virsh edit vm-name and I want to run the same vm machine by executing qemu-system-x86_64 with special command line parameters. Die to my specific needs I…
Andrey
  • 3
  • 2
-1
votes
1 answer

KVM guest cant fetch packages thus it's reachable from ssh

I am a bit lost regarding my kvm setup. I rented a root server at hetzner.de and now wanted to setup virtualization using libvirt & kvm. I created a bridge br0 which now holds the static server ip (instead of the default interface enp2s0). Linking a…
Tobi
  • 101
  • 2
-1
votes
1 answer

Usage of libvirt rpc protocol

Where libvirt rpc protocol is used? Is it used inside remote connection communication? I have read that it used between libvirt library and libvirt daemon.
-1
votes
1 answer

kvm tcp vnc connection

Do someone have correct tcp vnc configuration for kvm? I have tried various ways correcting lines in libvirt.conf, qemu.conf, but they do not help (changing listen address, changing flags, changing ports). Vnc always reject to listen on tcp…
-1
votes
2 answers

libvirt: guest performance during backup

Here is a simplified version of my backup script that runs in the host: # shutdown the guest to ensure its filesystem is in a stable state virsh shutdown web --mode=acpi sleep 20s # the real script uses a smarter method to wait for the guest…
1 2 3
40
41