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
5 votes
4 answers
2k views

How do I disable the metadata lookup at cirros boot?

I am booting cirros VMs outside of an Openstack environment using libvirt. At boot, the VM checks for metadata twenty times, which adds a lot of latency to the boot time. cirros-ds 'net' up at 6.14 ...
1 vote
2 answers
7k views

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 ...
-1 votes
0 answers
14 views

Unable to find libvirt documentation on installing to Raspberry Pi 5

I've been looking for documentation for installing hypervisor libvirt to RaPi5. I've gathered some notes from various forums, however these steps will likely be problematic. CLI install of qemu-kvm, ...
9 votes
4 answers
1k views

What is the the purpose of using paravirtualization if there is a hardware assisted virtualization?

I am doing a research about QEMU/KVM and Firecracker/KVM. As far as I understood, both Firecracker and QEMU communicates with KVM to eventually benefit hardware assisted virtualization by changing CPU ...
3 votes
2 answers
1k views

How can I recover the space in a qcow2 file after deleting snapshots, while retaining remaining snapshots?

I have a virtual machine that started out with 5 snapshots 1,2,3,4,5. I used qemu-img to delete snapshots 1,2,3. Snapshots 4 and 5 are still needed and were not deleted. How can I release the space ...
8 votes
5 answers
21k views

How to run KVM nested in WSL2 (or vmware)?

I'm trying to follow this tutorial to run KVM nested in WSL 2, but after following the directions through compiling the kernel and loading it, the test kvm-ok reports that KVM is not supported. I've ...
0 votes
1 answer
33 views

Which piece of software touches network configuration files of a VM in a vagrant-libvirt setup with kvm/qemu?

Which element in a vagrant-libvirt-qemu/kvm-chain is responsible to actually configure the VM? Like editing the network configuration files. Wouldn't that totally depend on the details of the OS of ...
0 votes
0 answers
30 views

kvm forward port from Host to guest VM bridge mode

I have a server Ubuntu 22.04 on cloud (VPS) with one external IP (public) address (19.162.31.26), and the internal IP (private) address (192.168.122.1). On that server I use libvirt (Virtual Machine ...
0 votes
1 answer
96 views

Grub showing "attempt to read or write outside of disk 'hd0'" error when running in a proxmox VM

After installing a Debian 11 in a proxmox VM (with packer), grub would fail to boot into the newly created VM showing the error attempt to read or write outside of disk 'hd0'. When installing a VM ...
0 votes
0 answers
129 views

Wireless-Bridge on a ubuntu 22.04 (netplan) for three QEMU VMs

I do have an apparently trivial, but it is rather an ambitious project. Wishing to run three ubuntu 22.04 VMs on my laptop, installing and configuring kubernetes for an initial learning phase with the ...
0 votes
1 answer
5k views

VPN SSTP windows client can not ping or connect to VPN server but it can talk to every other PC on the local LAN that VPN server is on

So I have an SSTP (with native Windows client) working fine in a sense. My windows client's local IP is 192.168.10.11 , so its local network is: 192.168.10.x The Remote VPN server is behind a router ...
4 votes
1 answer
444 views

Effectiveness of sdmem on a VPS?

Does someone know if the sdmem program (part of the secure-delete tools) is effective on a VPS? I'd like to be sure I'm wiping certain private keys on a KVM VPS. I don't know why it would not be, I ...
4 votes
3 answers
18k views

(KVM) virt-manager stuck in password prompt after open VM

so i installed a fresh ubuntu server 14.04 with KVM, i'm connecting with my other ubuntu machine using virt-manager. so after i had permissions problem creating a new VM, i uncomment user="root" and ...
2 votes
3 answers
1k views

Getting Intel SR-IOV Virtual Function counters

After some research on Intel SR-IOV, I've realized that there is no convenient way to get the VF counters while VF interface is being attached to a VM (for example to a QEMU/KVM VM with a Libvirt ...
2 votes
2 answers
2k views

Is it possible to pipe qemu-img into SSH target?

I tried the following command, but only an empty file is created on the target and the command stays open qemu-img convert -f raw -O vmdk /dev/sda1 - | ssh foo@bar "cat > /home/foo/foobar.vmdk&...
1 vote
1 answer
7k views

How can VM and Docker bridge traffic be routed through a pfSense VM?

I think this question is a result of me not being able to wrap my head around Docker networking and not being super great at Slackware. It seems like there should be a simple solution; I'm just ...
0 votes
1 answer
36 views

Linux Kernel and KVM

I am new to the concept of building your server and was reading about Hypervisors. I learnt that KVM is type 1 hypervisor and can be installed directly on the server without OS. But what confused me ...
0 votes
0 answers
124 views

Create a Group RW-access for a KVM shared folder via virtiofs on Ubuntu Server 22

I have a folder /common on an Ubuntu Server 22 host which is RW accessible by all users in group users i.e. user alice (with uid 1000) is a member of users (with gid 12345) and has fuull RW access to /...
1 vote
1 answer
5k views

enable ssh over virtual machines running on kvm

I am trying to connect to a virtual machine running on KVM hypervisor from a host machine (Ubuntu 14.04) through ssh, but it is giving me the following error: ssh: connect to host 10.117.82.2 port 22:...
0 votes
0 answers
42 views

Qemu linux guest disconnected randomly

I have a mac m1 with an arm processor and I want to use Linux sometimes. For this I followed this guide and everything is working as expected and I have a working Linux guest. The only thing I added ...
4 votes
6 answers
33k views

centos7: boot error dracut-initqueue after converting virtual disk

I installed centos7 on Ubuntu 16.04 KVM with qcow2 disk format. To deploy my centos machine I need it in vhdx disk format to support Microsoft's Hyper-V. I used qemu-image to convert it from qcow2 ...
0 votes
1 answer
133 views

vlan on top of vlan-aware bridge: possible and how?

I'm currently working on configuring an opensuse host as a KVM hypervisor. I have a physical interface as slave for a bridge. I'm going to make this bridge interface vlan-aware and handle the VLAN-...
0 votes
1 answer
453 views

Windows vps performance

Windows vps performance is not as expected while I see this message in /var/log/messages. [ 7283.526915] kvm [34279]: vcpu0 disabled perfctr wrmsr: 0xc2 data 0xffff Its a KVM vps on 3.10.0-1127.19.1....
3 votes
1 answer
3k views

virt-install Couldn't find hvm kernel for Ubuntu tree

I'm trying to create a VM using KVM and virt-installer. When i use virt-install I get the following error: Starting install... Retrieving file .treeinfo... ...
0 votes
0 answers
164 views

How do I remove cloud-init backing image from my VM?

I am moving a VM from Ubuntu 22.04.3 LTS KVM host to a RHEL 8.9 Ootpa KVM host. When I try to start the VM on the destination (RHEL) host I see, error: Cannot access backing file '/var/iso/jammy-...
0 votes
1 answer
172 views

What is the correct KVM VM vCPU config in cockpit for proper load balance on physical CPUs

I have dual CPU server. I want to run some VMs on top of it. While configuring VMs thru cockpit (on redhat 8.0). I cam across this screen: I just want to allocate 8 cores with 4 on each physical CPU. ...
1 vote
1 answer
49 views

Set Maximum cpu qemu/libvirt almalinux

I want ask to increase supported CPU core on qemu kvm. When I creating new VM I see error like below error: internal error: QEMU unexpectedly closed the monitor (vm='ID'): qemu-system-x86_64: -accel ...
4 votes
1 answer
5k views

Migrating from libvirt + iptables to libvirt + nftables

I'm about to migrate a Debian Stretch host using qemu-kvm to Debian Buster. I've seen people complaining on the Internet about issues due to nftables becoming default in place of iptables and libvirt ...
1 vote
2 answers
5k views

kvm guest can not connect to outside of host, vice versa

I have a vmware vm running ubuntu 12.04 server(name=vmhost), with network bridged and full access to the internet. This vmhost is using the kvm hypervisor and is running a vm(centOS 6.4),network ...
0 votes
0 answers
83 views

Docker performance issue with nested Ubuntu KVM

I have an issue with docker performance in a nested Ubuntu VM. Here's the setup: OpenStack Infrastructure My Workstation (A) My Project Host (B) My Project VM (C) Version info: OS: Ubuntu 22.04 ...
0 votes
0 answers
61 views

High CPU load by KVM VM

VMs are hosting Java and they seem to be using high sy% CPU on the server. Is there a way to limit it via Libvirt ? Other VMs not using Java in them are not using that much sy% on the server. I ...
2 votes
0 answers
209 views

How to sucessfully import an .ova vm exported from ovirt/kvm (Red Hat OS)?

So, I was given an .ova file. This is exported from a server using a combination of KVM/QEMU and ovirt technologie - the server runs RedHat and I want to import this .ova file into vmware or ...
0 votes
0 answers
120 views

Libvirt shared storage pool

I have what I hope is a quick question. I'm running: CENTOS 9 KVM/QEMU Pacemaker, DLM, lvmlockd, fence_scsi I have a simple two node KVM cluster where I've set up a LVM logical volume on a attached ...
1 vote
2 answers
4k views

virt-install: error: unrecognized arguments: (but no arguments listed)

Been trying to create my first VM with KVM but getting a cryptic error from virt-install. It's saying I have a 'unrecognized arguments' but does not say which argument: $ sudo virt-install \ >    ...
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 ... ...
0 votes
2 answers
1k views

Libvirt routing between two NAT networks

I have following two networks, <network> <name>subsys-network</name> <bridge name="virbr1"/> <forward mode="nat"/> <ip address="192....
1 vote
1 answer
224 views

Cannot access deb.debian.org from VM after port forwarding using /etc/libvirt/hooks/qemu

Setup On host server with Debian Bookworm I created two VM-s (pserver 192.168.122.227 and pagent-1 192.168.122.126) via cockpit (kvm). Both of them are running Debian Bullseye. I am using default ...
6 votes
5 answers
32k views

virt-manager Spice copy paste doesn't work

I have a Debian 9 KVM host runs on a dedicated server. I use virt-manager on my laptop (Ubuntu 16.04) to connect it remotely. Everything works quite well except copy/paste actions between VM's SPICE ...
0 votes
0 answers
31 views

KVM iptables VM connect using host IP

I have three VMs on a host: Hardware Host: 192.168.0.220 VM-1: 192.168.122.10 VM-2: 192.168.122.11 VM-3: 192.168.122.12 I can connect from one VM to the other using the VM's IP address (e.g....
0 votes
1 answer
5k views

Debian Stuck at Booting from Hard Disk after installation on KVM

I'm trying to install Debian on Qemu-KVM on RouterOS v5.25 I tried : debian-10.8.0-i386-netinst.iso debian-8.11.0-i386-kde-CD-1.iso debian-live-9.0.0-i386-gnome.iso on disk image created using : qemu-...
2 votes
2 answers
6k views

How to create virtual networks by using libvirt?

I have installed qemu/kvm and have tried to create some virtual machines and network them together. What I would like to achieve is 2-3 virtual machines in their own private network (e.g. 10.0.0.0/24)...
3 votes
1 answer
147 views

Mmio stale data patched on hypervisor but vulnerable inside kvm guest

My hypervisor tells me that Mmio stale data is patched: Vulnerability Mmio stale data: Mitigation; Clear CPU buffers; SMT disabled But when I check inside my kvm running linux 6.1.0-12-amd64, I ...
0 votes
0 answers
128 views

ebtables is causing packet loss

I am using AlmaLinux 8 on a dedicated server and hosting VPSes using KVM. Applying ebtables rules on those VPSes is causing packet loss issue. Bridge chain: v1001, entries: 1, policy: DROP -p IPv4 -s ...
0 votes
0 answers
47 views

is there a way to hot plug all functions of a pcie device instead of just function 0?

It is often that we have pcie devices for example GPUs. That has multiple functions. I can statically assign all the functions to a domain by editing the XML. However, I would like to be about detach/...
2 votes
1 answer
362 views

Why privacy ipv6 address cannot connect the internet in guest vm

I have a guest ubuntu 14.04 installed in kvm, host is a fedora 20. The eth1 nic of guest is in macvtap bridge mode. Ubuntu default enables ipv6 privacy extension, and prefers the temporary address: $ ...
0 votes
0 answers
97 views

Ubuntu 22.04.3: error when exec virsh sysinfo command: unsupported configuration: Host SMBIOS information is not available

I installed KVM on Ubuntu 22.04.3 Desktop on Lenovo ThinkSystem SR550. My command I used to install KVM was: sudo apt update sudo apt upgrade sudo apt install qemu-kvm libvirt-daemon-system libvirt-...
1 vote
1 answer
122 views

Can I use OpenStack Rocky with a neoverse-n1?

Situation: For now, I'm stuck on OpenStack Rocky on Ubuntu 18.04.6 and I have some beefy Neoverse-n1 hardware (aarch64, 64-core, 1TB memory) to integrate. Can I accomplish this with on my current OS ...
14 votes
8 answers
32k views

Get list of DHCP clients with KVM+libvirt?

I have several VMs running on Ubuntu 9.10 via KVM+libvirt. I want to be able to find out the IP address that has been assigned to each host without physically opening a physical "console" to each ...
127 votes
18 answers
304k views

How do you increase a KVM guest's disk space?

I setup an Ubuntu guest on a CentOS KVM host with initially 6GB of disk space. How do I go about increasing the Ubuntu guest's disk space from the command line? EDIT #1: I'm using a disk image file (...
1 vote
0 answers
101 views

KVM VM obtaining duplicate IP address for strange MAC address

I have a ubuntu KVM host on which Ubuntu virtual machine is created in virt-manager. The VM is obtaining 2 different IP's from DHCP server which is running on Windows Server. 1st IP address lease ...

1
2 3 4 5
49