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
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
105 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 ...
0 votes
0 answers
57 views

KVM Virt network setting to be on the same network as the host?

As described in here How to Install KVM on Ubuntu 22.04 Step-by-Step I've done a series of commands: $ sudo vi /etc/netplan/01-netcfg.yaml network: ethernets: enp0s3: dhcp4: false ...
2 votes
2 answers
2k views

virsh console hangs when i connect kvm VM

KVM Host Environment:- # cat /etc/issue Welcome to openSUSE 13.2 "Harlequin" - Kernel \r (\l). # /usr/bin/qemu-system-x86_64 --version QEMU emulator version 2.1.3 Running VMs list as ...
11 votes
3 answers
8k views

How to quit QEMU monitor?

I launched KVM VM with this command: kvm /kvm/hdd/v1/v1-1.raw -m 512 -daemonize -smp 2 -nographic -net nic,model=virtio,macaddr=aa:aa:aa:aa:aa:01 -net tap,ifname=tap0 -monitor telnet:localhost:7001,...
0 votes
1 answer
4k views

Error while creating VM using virt-manager on Xen

After a great struggle I got my XEN installed now I am using virt-manager and trying to create a VM. Since my H/W doesnt support full Virtualization using the Para Virtualization installation over ...
0 votes
0 answers
137 views

How to set default disk image format in Cockpit/QEMU

I create my virtual machines on Debian 12 with Linux Cockpit 287-1 which uses QEMU/KVM for virtualization. If I create a VM, the default disk format is always in RAW-format. However, due to some ...
47 votes
3 answers
140k views

KVM/libvirt: How to configure static guest IP addresses on the virtualisation host

What I'd like to do is to set the guests' network configuration (IP address, subnet, gateway, broadcast address) from the host system. The used network setup is in bridge mode. How can I configure the ...
2 votes
1 answer
5k views

How to auto redirect a usb device on virt-manager

How do I automatically redirect a USB device to a remote KVM? preferrably filtered by ID. I have a KVM running on a server (QEMU+SSH), and the display protocol is Spice. How could I always redirect a ...
2 votes
0 answers
2k views

How do I convert a VMDK disk to QCOW2 using qemu-img without inflating the disk?

I'm converting some VMs from vSphere to KVM/QEMU but each time it inflates the thin provisioned disk. Before converting the image from vmdk to qcow2, first I export OVAs or OVFs from vSphere to make ...
1 vote
2 answers
3k views

Retreiving the real hostname of VMs under KVM using Virsh

In KVM Support, virsh list --all lists all the domain name created and not the real host name of the VM. i.e it will list only the display name which will be specified during the creation of VMs. ...
8 votes
1 answer
9k views

How to set keyboard layout with a VNC client to KVM (libvirt)

I have both kvm guests and hosts installed on a Debian 9.9 with kde on an AMD Machine qemu-kvm 1:2.8+dfsg-6+deb9u7 amd64 When connecting with a virt-viewer, my keyboard ...
0 votes
0 answers
1k views

Connecting two VMs running in KVM

Short: Get two VM's to talk to each other running on same hypervisor. I have two VMs running under KVM and I am trying to manage them via Cockpit. The hypervisor, and the vm's are running Ubuntu 20.04....
1 vote
0 answers
180 views

KVM virt-install issue

I want to run arch linux as guest but after virt-install screen is stuck at console Escape character is ^] (Ctrl + ]).However VMs install by virt-manager are working fine and console is also working ...
4 votes
3 answers
26k views

linux KVM guests network performance is slower than host

i have a KVM linux based virtual machines, as the network performance of the host is running perfect with 1 Gbps (on the internal network) and using iperf tools it show that the network is running ...
1 vote
1 answer
2k views

FreeBSD 10 guest on qemu/kvm CentOS 7 host

I'm trying to install FreeBSD 10 on CentOS host without using graphics (using only serial console). I've tried: # virt-install -n freebsd-a -r 512 --vcpus=1 --os-variant=freebsd10.0 --graphics none -...
0 votes
0 answers
129 views

Performance problems when running Wireguard between Linux virtual machines. Same config on physical hosts works fine

I’m running into performance problems with Wireguard tunnels running between two virtual machines on the same hypervisor (running under Qemu/KVM) and I would greatly appreciate any insights/advice ...
1 vote
1 answer
239 views

Windows asking me to sign in with a company email?

Windows is asking me to sign in with my company's email, problem is I don't have one and nor is the company related to me whatsoever. I am trying to run Windows LTSC on QEMU. What gives?
0 votes
1 answer
3k views

KVM: qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory

When trying to start a VM (1GB allocated) I have run into memory allocation issue even though I have more than enough memory on the system (16GB): error: Failed to start domain exampleVM error: ...
1 vote
1 answer
156 views

Filter packets with iptables on a tap interface

I'm trying to write firewall rules to prevent a guest machine from accessing the internet. The server (Ubuntu server 22.0, using KVM) has a physical connection (enp34s0), which is connected to the ...
2 votes
1 answer
92 views

Libvirtd TCP port 16514 queries

I have a server that is running libvirtd. I just checked libvirtd ports and see below output. I wondered Why port 16514 PID is always 1 and why tcp6 is handling ipv4 with multi connections. Can anyone ...
1 vote
1 answer
232 views

windows 2019 unattended install on kvm via libvirt can't find licence error

I'm trying to install windows server 2019 with autounattend.xml configuration on kvm via libvirt. Installation fail on dialog with sign: "Can't find microsoft software license terms" Despite ...
3 votes
4 answers
9k views

Disable TCP checksum offloading on KVM virtual network

I have a virtual network for connecting KVM guests with the host. I need to disable TCP checksum offloading on this network. The ethtool works fine but I want to disable it permanently and I could ...
1 vote
3 answers
261 views

In cloud, is it possible to access guest VM from host machine?

In KVM, it is possible to access the guest machine from the host machine. For example, you can SSH to the host machine and then access the guest VM by virsh console vm_name. Is that possible in cloud? ...
1 vote
1 answer
403 views

Memory ballooning doesn't try to reclaim page cache

I have a host running Proxmox with some VMs on it. Due to some unpredictability with the memory usage of some applications, and wanting to give some VMs (like a DB) memory for the page cache when ...
1 vote
1 answer
784 views

Changing KVM VM listening on 5901 to some other port

OK this is rather silly, but real problem. vncserver keeps binding on 5902 port. That is because qemu is listening on 5900 and 5901: % netstat -lntup Active Internet connections (only servers) Proto ...
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 /...
1 vote
3 answers
17k views

Afer upgrading qemu, "unsupported machine type 'pc-i440fx-3.1"

I recently installed the latest version (3.1.0) of QEMU, and I have been having trouble getting virt-manager to work correctly, presumably because it isn't connected to the right dependencies. Some of ...
1 vote
1 answer
5k views

Add network interfaces using cloud-init

I'm trying to use CloudInit to spin up VMs in a KVM hypervisor environment. Thereby I want to create two new ethernet interfaces ens3 and ens4. I have downloaded the Ubuntu 18.04 image and created the ...
2 votes
0 answers
762 views

AppArmor issues with Libvirt

I have a fresh Ubuntu Server 22.04.3 and Debian 12.1.0 installed and updated. Along with Cockpit and Cockpit virtual machines on both tests machines. I am getting the following errors and warning when ...
3 votes
0 answers
618 views

Apparmor and libvirt - warnings and errors

I have a fresh Debian 12 installed and updated. Along with Cockpit and Cockpit virtual machines. I am getting the following errors and warning when looking at the log section in Cockpit: Failed to ...
1 vote
1 answer
4k views

Ubuntu 17.04 virt-clone ERROR missing source information for device sdx

I am on Ubuntu 17.04 server using KVM I tried to clone a vm after stopping it... I actually could not do a shutdown, so I did a destroy. visrh destroy origVM Then I tried cloning using: virt-clone -...
0 votes
0 answers
208 views

KVM guest/VM use host/physical VGA port

Is it possible to use the physical video interface (hdmi or vga, onboard), so that a VM can be viewed/used thru it? What I want it to plug a monitor on the host and see the VM graphical interface.
1 vote
1 answer
120 views

number of read and write processes affect the io performance of different virtio-scsi luns

QEMU emulator version 2.9.0(qemu-kvm-ev-2.9.0-16.el7_4.11.1) Linux 3.10.0-693.el7.x86_64 There are two luns attached via virtio-scsi (vcpu=1,virtio-scsi controller queue set to 1) Firt: dd /dev/sde ...
1 vote
1 answer
4k views

Nested Virtualization KVM: entry failed, hardware error 0x7

I have a VM on a host and want to create another VM within the existing VM (nested). Host: opensuse Tumbleweed, kernel 4.19.7, 96 CPUS Intel-Xeon, 256GB RAM (nested virt enabled in kvm) L1 VM: ...
6 votes
4 answers
7k views

Linux KVM Client filesystem (BTRFS?)

in our company we have a lot of kvm clients on multiple server, most of the clients are running ubuntu 16.04 as well as their host systems. The filesystem of choice became EXT4, for clients and hosts....
6 votes
3 answers
6k views

SmartOS Virtualization with one public IP address

Is it possible? (title of this question) Googling Virtualization with one public IP address yields nothing useful What I have: SmartOS on a dedicated server. Dedicated server has one public IP ...
6 votes
2 answers
4k views

Creating a virtual network for KVM guests spanning multiple host machines

I have 5 physical machines running Ubuntu 14.04, all of them are together in a network. These all have static IP addresses. Each of these machines has 1 to 4 virtual machines via KVM/QEMU running ...
1 vote
1 answer
315 views

Libvirt - UDP not working between host and VM

Host: 192.168.1.144/24 VMs(routed) network: 192.168.122.0/24 I have VMs connected to libvirt's routed network. <network> <name>routed-122</name> <uuid>86ca64a6-7fea-4cf8-...
3 votes
3 answers
2k views

Use letsencrypt on virtual machine behind a reverse proxy with server name indication

I have a server set up with some virtual machines behind a nat. I want to use encryption for my xmpp-server-vm, and therefore need a certificate inside the vm. Is there a possibility to use nginx as a ...
6 votes
1 answer
3k views

QEMU USB passthrough is not working

I stuck at getting USB passthrough working with Windows 8.1 guest OS on Ubuntu Server 14.04. I started by installing qemu using the Ubuntu Documentation (https://help.ubuntu.com/community/KVM). The ...
0 votes
0 answers
356 views

After converting Windows guest OS .vmdk file to .qcow2 and hosting to KVM gives "No Bootable Device"

We are migrating guest VM from VMware 7 to KVM (installed on Ubuntu 22.04 LTS). We have achieved success in migrating all Ubuntu guest VM from VMware to KVM by converting the vmdk disk to qcow2. ...
2 votes
1 answer
1k views

Moving w2016 image from ESXi to KVM gives message "No Bootable Device"

I'm trying to move a windows server 2016 image from ESXi to KVM, but I'm receiving the error "No Bootable Devices" when I try to boot it. Here's the output of the command "virt-...
4 votes
5 answers
6k views

Ubuntu Clustered KVM's

I'd like to set up three virtualized server on one box running Ubuntu KVM. I'd also like to have a second machine mirroring the above mentioned on a cluster so that if the first machine physically ...
6 votes
2 answers
2k views

How to fix partition table after virt-resize rearranges it (KVM)?

I have Ubuntu 18.04 as a guest os and I needed to resize the partition with virt-resize: #:/var/lib/uvtool/libvirt/images# virt-resize --shrink /dev/sda1 guest1.qcow guest1-shrunk.qcow [ 0.0] ...
0 votes
1 answer
537 views

How to use specific host ip address on kvm?

Have a dedicated Ubuntu Server host with a single network interface but with two ip address: root@server:~# cat /etc/netplan/50-cloud-init.yaml network: version: 2 ethernets: eno3: ...
0 votes
0 answers
110 views

Public IP on KVM VMs and DNS setup on host machine

I'm using KVM to create two VMs for hosting NMS servers for the company's devices. I want to manually assign a public ip to both VMs and the host machine (Ubuntu 22.04 desktop [although I mostly use ...
2 votes
1 answer
7k views

OpenStack instances power off by itself

Already asked this over on ask.openstack.org but I figured it would get more views here too. I am running OpenStack Mitaka on a 5 node cluster, 1 controller/network node and 4 compute nodes. I am able ...
1 vote
0 answers
103 views

Unable to Ping Guest VM's of Nested KVM on Vmware Workstation

I have installed KVM (RHEL 8) on VMware Workstation and created a Guest OS with CentOS 8. I have created a Bridge Network (slave: ens160) and assigned it to the Guest VM. The Guest VM has received an ...
1 vote
1 answer
4k views

virsh attach-device for serial device

I would like to add a serial device (console) to a guest via the virsh attach-device command. I have a console.xml file containing: <serial type="pty"> <target port="0"/> </serial>...

1
2
3 4 5
49