Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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-...

0
votes
0answers
17 views

Apparantly successful virt-install of Clear Linux cannot boot

First, I create a clear linux vm with virt-install virt-install \ --name CLEAR \ --ram 65536 \ --disk path=/guest_images/Linux_main/CLEAR.img,bus=virtio,size=450 \ --vcpus 8 \ --os-type linux \ --os-...
1
vote
0answers
16 views

KVM: Is it possible to detect guest disk was mounted RW?

Let's assume I have a KVM-based virtual machine. There is a volume that contains the operating system and the data. I know it is possible to access from host at least READ-ONLY the filesystem which ...
2
votes
1answer
15 views

Linux KVM if guest is rebooted it will not start, must be manually started

Have an Ubuntu server running KVM: Linux hyperv 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux It is running a few VMs which are linux, and one windows ...
-1
votes
1answer
40 views

Cannot create VPS virtualizer

I have installed Virtualizor (KVM) on a CentOS server and I'm trying to create a VPS I have added storage and an IP pool for my VMs for creating storage I followed this guide https://www.virtualizor....
0
votes
0answers
7 views

configured cpu count is not reflected in libvirt/KVM Windows10 guest

I have a libvirt domain configuration, where the cpu-related settings for a Windows 10 guest are configured as follows <domain> <!-- ... --> <vcpu placement='static'>3</vcpu&...
2
votes
0answers
44 views

Is it possible to capture traffic on host when using KVM passthrough?

I have a KVM guest which uses PCI passthrough for its network interfaces: <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x05' slot='...
0
votes
1answer
20 views

xfs_db reports high file fragmentation where VM is located, but VM shows almost no fragmentation

I have several libvirt VMs stored on xfs partitions and am using gluster to replicate the storage. The VMs use qcow2 for storage. Some of the partitions where the VMs are located indicate high file ...
1
vote
2answers
47 views

KVM: Hosts with private and public IPs

We have a small block of static IPs (e.g. 203.0.113.0/29). We currently only use 203.0.113.2 for a mail server. We'd like to add some other public servers, and if possible would like to have them ...
1
vote
1answer
22 views

xfs_fsr reports insufficient freespace on large VM images

I have several systems using glusterfs and xfs partitions. Some of these systems are hosts for VMs (using libvirt and with qcow2 for storage). I noticed that there was some substantial fragmentation ...
0
votes
0answers
7 views

libvirt virsh attach-interface error

I have a VM nsyedVM1 and I have created a network in bridge mode whose configuration file is displayed in the image. When I use net-list it is getting displayed, but using brctl, I am not able to find ...
-2
votes
0answers
76 views
+50

Why does arp_ignore=1 break ARP on POINTOPOINT interfaces? (kvm guest)

If I add the following settings on a kvm guest: net.ipv4.conf.all.arp_ignore=1 Networking of the guest stops (highly intermittent). The kvm host uses bridge-networking: auto lo iface lo inet ...
7
votes
4answers
75 views

KVM+DRBD replicated between two active-passive servers with manual switching

I need to build 2-node cluster(-like?) solution in active-passive mode, that is, one server is active while the other is passive (standby) that continuously gets the data replicated from active. KVM-...
0
votes
0answers
26 views

How to run a script/command at only the “first” boot once on Windows Server 2016?

I've been looking around everywhere but couldn't find anything relevant. I have a pre-configured Windows image that I would like to deploy on a huge number of VMs and I want a specific script to run ...
1
vote
1answer
37 views

How I increase GPU video RAM in virt-manager?

I have this text in my XML <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' ...
0
votes
0answers
61 views

Setting up Bridge for KVM on Ubuntu 18.04.1 Server

I'm trying to setup KVM on Ubuntu 18.04.1 Server. I tried following the instructions here, however I got stuck at the part which has me configure the bridge. I don't have a 50-cloud-init.yaml file, ...
0
votes
0answers
14 views

How to configure internet gateway for NAT'd VM on KVM?

I'm running the Redhat 7 hypervisor, running KVM. The RHEL hypervisor has internet access. The VM is configured with NAT, not as Bridged, and does not have internet access. How would I configure the ...
1
vote
1answer
31 views

LVM or not for KVM storage?

Is there any issue with using LVM for your host server's storage pools or raw devices that are used by KVM guest? Eg. say I want to add storage to the /home directory on my KVM guest. I have a Volume ...
0
votes
2answers
53 views

Lightweight way to graphically connect to guest VMs on “headless” hypervisor

Running a Fedora Server 28 hypervisor (QEMU/KVM with libvirt tools) with Windows- and Fedora-based guest VMs. Normally, the hypervisor runs headless with minimal packages installed, and guest VMs are ...
0
votes
0answers
36 views

Ovirt - host deployment fails due to engine ip

I'm trying to setup ovirt 4.2 on a CentOS 7.5 server. I'm using the command line tool "hosted-engine" (hosted-engine --deploy) because cockpit gave me some errors with no explanation, so I thought the ...
1
vote
1answer
34 views

Missing file in / taking up all of the root space [duplicate]

I was copying a large VM disk file to a separate larger separate disk array to work on it and during a benchmark I did previously before I started the copy job I didn't realize that the benchmark had ...
1
vote
0answers
22 views

CentOS in dracut emergency mode booted over pxe won't access my http/nfs servers

So I am doing a small project on my KVM-based virtual machines, now I am trying to set up automated OS installations over PXE. Server1 provides TFTP for PXE, HTTP and NFS. The client gets the kernel ...
0
votes
0answers
15 views

Is there a way to make VM snapshots in PROXMOX LVM storage

Acording to official docs https://pve.proxmox.com/wiki/Storage:_LVM the LVM storage option does not support VM snapshots. You need to setup Thin LVM for snapshots to work. My question is if there's a ...
0
votes
0answers
23 views

cannot shutdown virtual domain until connected to it

I have a rather weird problem. I'm going to try and present facts but the truth is that my problem seems so awkward that I don't really know what is happening. I run a Debian 8.11 host with libvirt-1....
0
votes
1answer
43 views

oVirt qemu-kvm listening on wrong IP

I'm new to oVirt but managed to configure it and take over the console on an IPv4 network, using VNC instead of spice. However, I've noticed that the qemu-kvm process only binds to the IPv4 interface ...
0
votes
1answer
22 views

Wrong keymap in KVM guest

I connect to a KVM host (CentOS 7) by VNC. The keymap on the host is de-ch. While connected to the host i open a guest server (any OS) by the virt-manager and try to login to the guest, but the keymap ...
1
vote
0answers
78 views

libvirt connection as non-root user

I'm trying to configure a libvirt compute resource in Foreman and have both KVM and Foreman installed on the same Centos 7 host. Adding the compute resource with qemu+ssh://root@hypervisor.example....
-1
votes
1answer
87 views

How to set up pfSense/OPNSense on virtual host?

I'm a little confused as how to to host a *Sense box as a VM and have it provide routing for the host. Internet -> Modem/Router (bridge mode) -> en1 on Dell r710 -> OPNSense in a VM Then ...
1
vote
1answer
85 views

kvm/libvirt backup: how to ensure a consistent fs during online blockcommit?

I want to create online backups of a KVM Windows 10 virtual machine that is managed by libvirt. I have the qemu agent setup in the guest. If found this wiki entry that suggests the following: 1. ...
0
votes
1answer
42 views

KVM public ip setup with subnet /29

I have a dedicated server from hetzner with one additional /29 subnet i have configured a bridge network which looks fine to me 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq ...
0
votes
1answer
35 views

Network access from VM to host

I am running a simple KVM-based VM on a Ubuntu host. VM is connected to a NAT virtual network. It can be accessed from the host, but cannot connect back to the host. From the VM, I can ping the host ...
0
votes
0answers
35 views

2nd VMDK disk never appears in linux when deploying via ova

I started with a qcow2 CentOS image that I converted to disk1-vmdk1. The qcow2 downloaded from CentOS website already had Linux on it. Now when I try to add a new disk, it never appears when the VM ...
1
vote
0answers
46 views

KVM - How can I see what kind of preallocation uses a qcow2 file?

How can I see what kind of preallocation uses a qcow2 file? I tried with the command qemu-img info filename.qcow2 but the type of pre-allocation (off; full; metadata; falloc; etc) is not shown. Thank ...
0
votes
0answers
76 views

Delayed start for Guests KVM/libvirt

Looking for any pointers anyone may have to introduce a delayed start for KVM guests i.e. 30 seconds between starting each virtual server rather than starting them all at once which thrashes the disks ...
0
votes
1answer
36 views

How do I cat or list a guests files in /dev or /proc from the host

I want to list /dev/disk/by-path or cat /proc files on a running guest VM from the host. I found virt-ls, guestfish, virt-inspector and so on, but they all seem to be getting their info from the ...
0
votes
0answers
54 views

How to isolate IOMMU device for PCI passthrough?

One Ubuntu 18.04 host system has below IOMMU groups and devices. $ for a in /sys/kernel/iommu_groups/*; do find $a -type l; done | sort --version-sort /sys/kernel/iommu_groups/0/devices/0000:00:00.0 /...
0
votes
0answers
72 views

How to make virt-install do an unattended install with an image that installs unattended on real hardware?

I built an Ubuntu 16.04 installation image. It reliably installs unattended on real computers--no preseed file, no human input. When I try to install this image in a KVM/qemu virtual machine, I must ...
0
votes
1answer
167 views

KVM-QEMU Windows Guest Memory Speed

How to speed up memory in Windows guest running on KVM-QEMU hypervisor? The memory speed differs between Ubuntu guest and Windows 2016 Server on the same node quite a lot. Same benchmark tool counts ...
0
votes
0answers
36 views

kvm: filtering guest traffic with iptables?

I have KVM guests running on a host which is connected via a rfc1918 LAN and a NAT firewall to the internet. I want the KVM guests to be able to route to machines on the internet, but i want to ...
0
votes
0answers
31 views

Ubuntu 16.04 guest virt-install on CentOS 7 libvirtd server “Unreachable gateway”

I'm trying to (automatedly) virt-install an Ubuntu 16.04 guest on a CentOS 7 libvirtd with a kickstart file. The Ubuntu guest is to have two interfaces which are mapped to two bridged interfaces on ...
0
votes
1answer
73 views

KVM network bridge: Can't access VM from outside

I have a host machine runing Debian stable and a KVM virtual machine running Windows on that host. I have a networking bridge setup for the VM but I'm unable to reach the VM (ping, connect,...) from ...
0
votes
1answer
74 views

Hetzner IP Subnet on Windows 10 VM

I have created a brouter (bridge router) on my CentOS 7 KVM Host machine. I am trying to assign an IP from an addon subnet that Hetzner has provided. The following is the working configuration for a ...
2
votes
2answers
196 views

Mount URL as cdrom/iso KVM/QEMU

I am looking for a way to mount an ISO as a cd rom, according to libvirt docs (referenced below) it should be possible, additionally in the question referenced below. I am aware of this question, ...
0
votes
0answers
151 views

QEMU host and guest on the same network

I am trying to get my QEMU guest on the same network as my host, I know that when you boot a QEMU image it assigns it a private IP, so I have been trying to create a bridged network. The host machine ...
1
vote
1answer
66 views

QEMU QMP How to find device to use drive_backup?

I would like to use backup_drive command to copy disks and their snapshot in one image. Unfortunately, each time i use the command : virsh qemu-monitor-command VM_NAME --hmp drive_backup device=...
0
votes
1answer
177 views

Windows 2016 server essentials in qemu kvm on gentoo linux will not boot

I can finish the initial installation of Windows 2016 server essentials with Qemu and libvirt on gentoo linux. But on first launch the VM will get a BSOD on first boot after installation. Subsequent ...
0
votes
1answer
45 views

Is it possible to sniff packets on KVM guest loopback interface from host?

I am trying to debug network communication which happens inside CentOS 7 KVM guest. This communication goes from localhost to localhost. I suppose, that all this traffic happens on local lo interface. ...
-1
votes
1answer
76 views

KVM and restoring VM without the XML files [closed]

I have recently experienced a server outage that was hosting a couple VM's. This server is irreparable. I have since installed a new server with Centos 7 and installed KVM. I was able to connect and ...
1
vote
1answer
157 views

How much memory does a qemu disk cache writeback mode use?

I use Proxmox with ZFS ZVOL or LVM-thin for the disk volumes and it is said that using disk cache writeback mode will increase memory usage more than allocated. Is there a way to check, limit, and ...
0
votes
0answers
31 views

Move VM with custom kernel/initrd to Proxmox VE

I've got a KVM image running on CentOS that I'm trying to get running on a Proxmox (5.20) Hypervisor. The current VM (I think it may have been a p-v at some point) has the following options in the vm ...
0
votes
0answers
30 views

View console via browser for KVM

I'm currently trying to simulate what Digital Ocean offers on a KVM and be able to show the user the console via the browser. I currently have the set up on ubuntu with KVM and I am able to log into ...