Questions tagged [kvm-virtualization]

KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). It consists of a loadable kernel module, kvm.ko, that provides the core virtualization infrastructure and a processor specific module, kvm-intel.ko or kvm-amd.ko. KVM also requires a modified QEMU although work is underway to get the required changes upstream.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Can't expand oVirt VM disk to new size with neither LVM or resize2fs

I have a oVirt server with a VM, the VM was created with a 20GB disk but that quickly ran out of space so I added another 20GB to it and now I'm trying to expand the disk. I have done this once before ...
iTeY's user avatar
  • 3
0 votes
0 answers
223 views

VLAN QEMU Hypervisor bridge without host ip

I'm using debian 10 with kvm/qemu as hypervisor. You can ignore the bond... I created X VLAN Tagged and created a bridge on that tagged vlan. auto bond0 iface bond0 inet manual slaves eno1 ...
Wulf's user avatar
  • 69
0 votes
1 answer
166 views

Migration Fails in Qemu with error `Unknown ramblock "mem1", cannot accept migration`, while it exists on the source

I'm trying to migrate a VM in QEMU, after I hotplug memory to my VM I cannot migrate it and I face with Unknown ramblock "mem1", cannot accept migration‍‍ while this name is ok and it really ...
Navid Nabavi's user avatar
0 votes
1 answer
120 views

SLES 11 PV VM on KVM

I have SUSE 11 SP4 VM, initially it was working on Xen in PV mode. Now I am moving it to KVM. My usual approach is to netboot any Linux in target VM, mount root of target OS, chroot and rebuild ...
kab00m's user avatar
  • 518
0 votes
1 answer
505 views

netplan + libvirt - Should I set up virbr0 virtual bridge?

As far as I understand, the interfaces virbr0 and virbr0-nic are created and managed by libvirt. ● 4: virbr0 Link File: /lib/systemd/network/99-default.link Network File: n/a ...
Norman Pellet's user avatar
0 votes
1 answer
651 views

KVM bridged guest ssh permission denied

I am able to ping my virtual machine and also have a satisfying response from ssh service using telnet, but I get 'permission denied' error whenever I attempt a ssh connection from a remote host. ...
Giovanni Passetti's user avatar
-1 votes
2 answers
2k views

KVM nat command line

What is the correct way to setup NAT networking between KVM vm and host? KVM vm: No firewall Installed $ sudo arp-scan -r 5 -t 1000 --interface=eth0 --localnet 10.0.2.2 52:55:0a:00:02:02 ...
t09's user avatar
  • 21
5 votes
2 answers
5k views

If KVM is working, why does VMX show as disabled?

I have VT-x enabled in the BIOS. I'm running qemu/kvm/Manjaro. lscpu says $ lscpu Architecture: x86_64 Model name: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz Flags: ... vmx ... ...
Reinderien's user avatar
4 votes
2 answers
11k views

Redirecting USB device to a virtual machine with virt-manager does not work

I have a Fedora workstation running an Ubuntu 16.04 virtual machine (KVM hypervisor). I'd like to redirect a USB device to the VM, but when selecting "Virtual Machine | Redirect USB device" ...
Romain Deterre's user avatar
0 votes
1 answer
817 views

QEMU VM with tap interface sees all packages coming from hypervisor instead of real source IP

I have set up a very simple Hypervisor using Alpine Linux and my VM sees all traffic coming from the IP of the hypervisor. Which also means if fail2ban tries to block attacks, it always blocks the ...
Christian's user avatar
  • 333
1 vote
0 answers
289 views

qemu (KVM) how to set iscsi timeout on?

I have opensuse 15.2 Leap on all systems qemu 4.2.1 # /usr/bin/qemu-system-x86_64 --version QEMU emulator version 4.2.1 (openSUSE Leap 15.2) Copyright (c) 2003-2019 Fabrice Bellard and the QEMU ...
sergey_s's user avatar
1 vote
0 answers
659 views

rebuild a vmware machine in KVM with an .ova file

I want to run vmware PKS in a KVM virtual machine and have the official .ova file as a starting point. I am aware of the conversion from .vmdk --> .qcow2 basically but am still struggeling with the ...
vrms's user avatar
  • 287
1 vote
0 answers
210 views

How to setup a failover server with KVM and DRBD

I have a server that I am virtualizing using the Virtualizor control panel. I need to set up a failover server that syncs everything on the first server to the second server. I am using DRBD to sync ...
user3098629's user avatar
2 votes
1 answer
1k views

Where are RAM snapshots stored by libvirt?

My understanding is that when I run this command to create a snapshot of a running domain: virsh snapshot-create-as myvm snapshot1 that not only are internal snapshots created in each disk image file,...
cm08's user avatar
  • 23
0 votes
0 answers
284 views

Virsh console not responding after rebooting guest machine

I have a server running Ubuntu 20.04 with KVM. Whenever I install a guest VM (CentOS 7 or Fedora 34), virsh console works fine in the beginning. However, when I reboot this VM, virsh console stops ...
Carlos Bazilio's user avatar
1 vote
1 answer
868 views

Centos 8 stream, KVM & multiple vlans

For my local environment i'm trying to add multiple vlans to my KVM server. I want to use one nic for management and the other for vlan tagging. Initial installation was made by following https://www....
thborge83's user avatar
1 vote
1 answer
56 views

How to configure and use all the IPs given by my provider?

Need assistance on how to use all the Ips given from my hosting provider. Currently i have 5 IPs that is routable and can be used on any circumstances. I wanted to make a new environment on my ...
Newbie's user avatar
  • 11
0 votes
0 answers
94 views

iptables on nested KVM appears to be dropping return traffic

I'm trying to get nested KVM working in Google Cloud, but I'm having trouble with Centos 7 dropping traffic that's returning through IP Tables. Centos 7 forms a virtual router (VR), which sits at the ...
user2451085's user avatar
0 votes
0 answers
481 views

How to properly update container sizes when extending kvm/libvirt disk when running into "... smaller then corresponding PV size" error?

I work on a Debian buster system as a KVM/libvirt host and followed this guide to extend the disk of my guest: https://computingforgeeks.com/how-to-extend-increase-kvm-virtual-machine-disk-size/ . ...
Andreas Schuldei's user avatar
2 votes
1 answer
2k views

Migrate a QEMU/KVM VM from qemu:///system to qemu:///session

I have a created a Windows 10 VM using virt-manager as user (not root). However, when try to list the VMs with virsh list --all, My VM is not listed? And, if I specify the system URI with by running ...
Adel M.'s user avatar
  • 121
0 votes
2 answers
643 views

Override virsh network from xml file to apply custom dnsmasq options outside

I want to automatically add a DNS CNAME entry using the dnsmasq namespace. Since this seems too complex to be handled by virsh net-edit, my idea is to use virsh net-dumpxml, apply the modifications ...
Lion's user avatar
  • 508
2 votes
1 answer
903 views

Wildcard CNAME record specified by libvirts dnsmasq:options namespace doesn't work, only specific subdomains works

Since v5.6.0, libvirt added a dnsmasq namespace with the element, which allows to specify options directly to the underlying dnsmasq server. I'd like to create a wildcard DNS entry for my applications ...
Lion's user avatar
  • 508
1 vote
1 answer
703 views

Assigning public IP address to a VM hosted on a server behind NAT

I have a pool of public IP addresses (95.xxx.xxx.196 - 254). I also have a server hosting KVM machines. It has a private IP address 10.0.0.1 which is NATed by the router to the 95.xxx.xxx.200 address ...
Mhalapenio's user avatar
0 votes
1 answer
223 views

I want to increase the KVM root file system from 60GB to 160 GB

The KVM image file 3.1GB in the file system on the hypervisor. The file systems are only showing up at 60 GB with df -kh total space. I want to increase the KVM volume space to 120 GB. I tried 'virsh ...
kgermann's user avatar
0 votes
0 answers
577 views

How can I force Proxmox resident set size (RES) memory to return to node?

I am running Proxmox and have noticed that multiple VMs that have Ballooning enabled are reserving memory even after they no longer need it and the nodes RAM usage is above 80%. This is causing other ...
Harmonytalk's user avatar
4 votes
1 answer
1k views

What is the use case of QEMU chardev pty

I'm new to QEMU and playing around with its chardevs. I faced the option called -chardev pty,id=id. So I tried to create a VM with -chardev pty,id=pty0 and got the message. char device redirected to /...
Some Name's user avatar
  • 143
0 votes
1 answer
913 views

Can ssh into Ubuntu 20.04 virtual machine but domifaddr shows no IP

I created an Ubuntu 20.04 virtual machine following this guide. I am able to ssh into the virtual machine using the IP address I wrote in the network-config file, i.e., 192.168.122.101, however, when ...
os_user's user avatar
0 votes
1 answer
520 views

Issue with RHEL8/CentOS8 remote virt-viewer and firewalld

In our lab we have a RHEL8 server with developer subscription. On the machine we have a few VMs and some of them are on a private libvirt network, thus we can only access them via virt-viewer. We use ...
ptselios's user avatar
0 votes
1 answer
370 views

How can a create a connection between two KVM private network? [closed]

I have two KVM node. In both sever there is a bridge connection for the interface prv1 with network 192.168.15.0/28 and in other KVM node there is a bridge connection for the interface prv1 with ...
Niba Tandukar's user avatar
0 votes
2 answers
1k views

virsh reporting unknown feature amd-sev-es

I updated my centos and I can no longer start any VM. It says: error: failed to get emulator capabilities error: internal error: unknown feature amd-sev-es But I'm using a Intel CPU (E5-2678v3) so it ...
wtywtykk's user avatar
1 vote
1 answer
5k views

How can I optimize ksm for my machine - 100% CPU usage and limited KSM Sharing (Proxmox)

KSM is constantly at 100% CPU usage which makes me believe I need to optimize the /etc/ksmtuned.conf configuration but I am not exactly sure what to set it as for this machine. As you can see from the ...
Harmonytalk's user avatar
0 votes
0 answers
206 views

KVM guest in local network using bridge - I can see VM

I create bridge br0 (10.10.10.2) which use phisical eno2 and vnet0 for VM (10.10.10.121). On Host everything is OK i see VM, VM see Host and Internet. BUT ... I can't See VM from other computers in ...
Piotr Topolski's user avatar
0 votes
1 answer
115 views

Better way to share HDD between KVM guests

Is there a better way to share HDD between multiply KVM guests at the same time then NFS? I have MDADM RAID 1 with all of my info and also I'm planning to take my Nextcloud to a KVM guest and want ...
mailoo95's user avatar
0 votes
1 answer
84 views

Libvirt/KVM support for partiitoned memory

Does KVM/Libvirt support partitioned memory? Is it possible to make sure that two VMs do not have memory-mapping that overlaps?
Anton9988's user avatar
  • 101
0 votes
1 answer
533 views

Use network bridge as default network in libvirt

I created a network bridge virtbr0 with my NIC enp1s0f1. The bridge gets an ip address from the router via dhcp. i would like to use the bridge as default network in libvirt to also get ip addresses ...
br0ken.pipe's user avatar
1 vote
1 answer
1k views

Share data via QEMU and NFS with Mac host (OSX Catalina) and Linux Guest (Ubuntu 20.04)

Story so far We recently migrated from Linux laptops to Macbook Pro laptops (company IT no longer supports native Linux laptops with VPN, so it's all Macbook/OSX devices for us). However, all of our ...
Lans's user avatar
  • 11
1 vote
0 answers
126 views

How to limit packets per unit time on a particular interface (for vms)

I am using kvm and virtuozzo virtualization on my servers and each having 10 vms. I have to restrict DDOS attack from my VMS (i.e prevent VM from doing DDOS attack), I search on net and found that I ...
Ganesh Gosavi's user avatar
-1 votes
1 answer
512 views

How to enable zstd for your qcow2 files [closed]

In QEMU 5.1 zstd compression of your qcow2 files was introduced but I can't find a way to activate it?
MrCalvin's user avatar
  • 383
0 votes
1 answer
856 views

Disable libvirt storage pools

It seems every time I create a VM with virt-install a new storage pool is created. But I don't use storage pools at all! I looked in the virt-install manual but could find a way to prevent this from ...
MrCalvin's user avatar
  • 383
0 votes
1 answer
193 views

How to remove a broken qemu / kvm container?

I'm running some containers on my server (qemu kvm, libvirt). A few of them are totally broken and I am unable to remove them by any means. Have been googlin for half a day, but just can't find a ...
Ray's user avatar
  • 11
0 votes
2 answers
6k views

Execution of ExecStop when script in ExecStart exits

I am a little confused with the behavior of systemd services. I have the above systemd service. [Unit] After=libvirtd.service [Service] Type=simple Environment=VM_XML=xxxxxxx ExecStartPre=/usr/bin/...
Aris Koutsoukis's user avatar
0 votes
1 answer
417 views

How to bind a VNC port with a KVM?

How can I bind a VNC port with a specific virtual machine (KVM) so after a reboot of the host server all ports would remain the same? Right now the numeration of ports is based on the order of ...
Vitaly's user avatar
  • 31
1 vote
1 answer
798 views

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 \ --...
Karthik Srinivas's user avatar
0 votes
1 answer
546 views

Debian KVM bridge promiscuous mode still has IP

I had three interfaces working on my Debian KVM box, all three bridged to guest VM's, f0 was mgmt, f1 was public static, and f2 was working promisc bridge. When I reinstalled the OS on larger drive ...
batflaps's user avatar
  • 179
0 votes
0 answers
433 views

VirtIO ethernet adapter limited performance

I have a Windows 10 KVM VM on Ubuntu 20.04. The host has dual 10 GbE adapters configured as LACP bond and there's a bridge interface for the VM and it's on the same LAN as the host. Windows has VirtIO ...
nixer's user avatar
  • 1
1 vote
1 answer
372 views

Storage Virtualization/Replication for KVM Live Migration on 2 Nodes

at the moment I'm doing some researching on Virtualization on Linux. My target scenarion would be a 2 Node "Cluster" with replicated storage over IP. (a little Like Windows HCI) I already ...
user626387's user avatar
2 votes
2 answers
8k views

can't initialize iptables table 'nat' under qemu

I am facing an issue while starting docker inside s390x container under qemu on Ubuntu 18.04 host running on amd64. Steps followed (On amd64 host): docker run --rm --privileged multiarch/qemu-user-...
Nayana's user avatar
  • 21
2 votes
0 answers
3k views

How to create Bridged connection for Qemu/KVM with Wifi?

I want to create a bridged connection in qemu/kvm. What I want to do is connect the wifi to a bridge (as a slave), then use this bridge to provide network access to the VM. Using nmtui, I deleted my ...
Matan L.'s user avatar
  • 121
0 votes
1 answer
3k views

virt-install error to create instance in qemu-kvm

OS: Debian 10.4 libvirtd version: 5.0.0 Hello! I need to create a instance in qemu-kvm. With this command: virt-install --connect qemu:///system --virt-type kvm --name test01 --ram=2048 --vcpus=2 --...
CH06's user avatar
  • 13
2 votes
1 answer
398 views

zfs checksum errors on Solaris 11 under KVM

Synopsis: libvirt 5.6.0, QEMU 4.1.1, Linux kernel 5.5.10-200, Fedora Server 31. Solaris 11.4 fresh install (with Solaris 10 branded zones), raw disk on XFS (unfortunately, no possibility to switch to ...
drookie's user avatar
  • 8,759

1
3 4
5
6 7
49