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
1
vote
1answer
13 views

Confused by disparity between KVM host and guest CPU usage with nanosleep

I've been plagued for a while by a major disparity between the CPU usage reported by a KVM host and guest. The guest will be reporting as basically idle, but the host will report one virtual core at ...
1
vote
1answer
40 views

Ubuntu 18.04LTS KVM VM Not Assigned IP by Router DHCP

I'm setting up KVM on Bionic Beaver, however my router isn't assigning the VM an IP address. I can however see it from the host. Here are my netplan settings: network: version: 2 renderer: ...
1
vote
0answers
28 views

Two eth devices, two subnets, pfsense and VM

From my laptop in 192.168.1.0/24 network I am able to ping a host (VM) in 192.168.2.0/24 network but I am unable to ping the same host (VM) using its second ethernet device in 192.168.100.0/24 network....
1
vote
0answers
23 views

Automatic reboot of server for no reason

My server has restarted and I can't find a reason for this.. Installed on kvm virtualizor server. I checked the logs but didn't see the reason for the restart. last +x reboot [root@localhost ~]# ...
1
vote
0answers
28 views

LVM not booting after VM migration from KVM to VMWare

I've migrated a VM from an old system based on Centos and KVM. The VM itself is also based on Centos. The VM had 4 disks in it and those are still being kept, everything was basically converted. The ...
0
votes
0answers
18 views

How to realize vma backup with proxmox from command line?

I have a problem with my proxmox node, I have to reconfigure the server disks, since having them badly configured, I cannot perform snapshots quickly since they are badly mounted and the io is very ...
0
votes
1answer
34 views

KVM + QEMU + Memory = Nightmare

I have this memory situation in my debian9.9 root@ghds-prod-3:~# free -m total used free shared buff/cache available Mem: 16035 7821 527 ...
2
votes
1answer
42 views

Is it safe to use SSH for periodic command execution on remote Server regarding usage of entropy?

I'm planning to set up periodic checks for system health on a multiple remote systems. To achieve this I've set up key-based authentication to execute scripts on remote side without interaction i.e.: ...
0
votes
0answers
28 views

How to connect two virbr0 on two different KVM hosts?

I have one KVM host with VM's inside which using virbr0 virtual network(10.0.0.0/24). Now i got new KVM host machine for new VM's which must use ip's from same network and to be able to communicate ...
0
votes
0answers
21 views

How to find unused ram in kvm

I run a QEMU instance with KVM. I know KVM can overcommit RAM but i want to see how much space i have left to overcommit without accessing all the VMs (which would take a lot of time and some contain ...
4
votes
1answer
517 views

Why KVM VPS is slower then OPENVZ

so i just purchased one KVM vps and when i bench it and compare it with my existing openvz vps i found it that its slower that openvz vps and when i checked processor info its bit wrong info so am ...
0
votes
1answer
57 views

Virsh can't detect my new vm

I have a *.qcow2 image from my old OS, it contains Windows 10. Then I copied it to the new OS and tried to install it. I followed the method written here "How to create a new domain from an existing ...
0
votes
0answers
38 views

Using SR-IOV with virtio passthrough mode on KVM for CSR1000v

I have been struggling for a few days on this and thought its best to look out for someone who has already done this. I am trying to bring up a CSR1000v on KVM in Centos 7 using virt-manager GUI tool ...
0
votes
0answers
51 views

RDP always works on Windows but only works twice on Debian

Recently I encountered a very odd problem. I am running a windows server over KVM and it works well for sometime. Yesterday, I extended the size of the underlying qcow2 file of it and this strange ...
0
votes
1answer
54 views

RDP through NAT

I've got a VDS with Centos 7.6, there is a KVM, and 1 VM with Win10. Both can see internet and each other, everything was set up with default NAT. Now i want to be able to RDP to windows by mstsc to ...
0
votes
1answer
17 views

virsh: networkGetBridgeName error

I'm trying to configure foreman. So far I connected foreman to one of our KVM hosts. Specifically, this is a libvirt and we are using virsh for managing it. When I try to create VM in foreman I'm ...
2
votes
0answers
75 views

Configure netplan to use a different interface for bridge

I'm setting up a virtual machine host on Ubuntu 18.04.3. I installed KVM and have succesfully set up a qemu vm which connects through a bridged network. It shows up as a regular machine in my network. ...
0
votes
0answers
40 views

kickstart installation is not starting on redhat linux (AWS)

I want to make a kickstart installation of centos 7 however, the VM starts but route me to a manual textuel installation (which succeeds). I run this commad to start the installation virt-install -...
0
votes
0answers
40 views

How to set Rx Queue = N in linux / in Qemu / KVM?

I have configured 8 multiple queues on my CentOS VM box (running on KVM). <interface type='direct' trustGuestRxFilters='yes'> <source dev='ens113f0' mode='passthrough'/> <model ...
1
vote
1answer
268 views

High CPU usage on WIndows guest KVM machine

So I am noticing my windows KVM guests (managed by proxmox) are showing extremely high CPU usage when doing really simple things like watching a video on youtube. For example a 4 core KVM instance ...
0
votes
0answers
23 views

Qemu Guest Cannot Access HTTP Nginx from Host

I installed nginx in Host to share Http to guest Qemu KVM but when I open in browser using IP Address 192.168.122.1 it's failed cannot load my web apps I thought it was iptables or forwarding issue ...
2
votes
1answer
26 views

QEMU - how to setup vlans after they have been deprecated and removed

Until I updated my OS, I could launch VMs with the following network configuration: -net nic,vlan=0,model=virtio,macaddr=${MAC1} -net bridge,vlan=0,br=${BRIDGE1} \ -net nic,vlan=1,model=virtio,...
0
votes
0answers
19 views

Backup with RHEL Cockpit

Using cockpit cockpit-project.org, I was wondering what you would need to backup. Is it just backup the VM images and then dump em back in the same directory as I would any other virtualization ...
0
votes
1answer
36 views

virsh cannot see VM created using qemu-system-x86_64, even while VM is running

I thought I understood KVM/QEMU pretty well but then I tried following the instructions on this page: https://docs.cumulusnetworks.com/cumulus-vx/Getting-Started/Libvirt-and-KVM-QEMU/ Took me a ...
0
votes
0answers
48 views

IPtables limit only partially working

The iptable rule I created limits outgoing traffic. The rule works, but it does not limit traffic as much as it should. How can I change that? Is iptables not made for such a high level of traffic? If ...
0
votes
1answer
55 views

KVM RHEL 7.5 ,offline external snapshot taken but not able to merge now the disk with existing disk

KVM and qemu RPM info :- [root@shirish_rhel ~]# rpm -qa | grep -i qemu qemu-kvm-common-1.5.3-167.el7.x86_64 qemu-img-1.5.3-167.el7.x86_64 ipxe-roms-qemu-20180825-2.git133f4c.el7.noarch libvirt-...
1
vote
3answers
69 views

KVM, setup bridge network

I have unkown issue with creating network bridge for KVM. What I did: My OS: Ubuntu 18.04 I installed bridge-utils sudo apt-get install bridge-utils I modified file /etc/netplan/50-cloud-init.yaml. ...
0
votes
1answer
31 views

Mapping a section of allocated IP to each machine connected to a switch

TL;DR How do I reserve a whole set of IP addresses using DHCP for a machine that hosts several VMs? Assume I have a switch with a block of 44 IP Addresses. The switch is connected to 4 machines/...
0
votes
1answer
67 views

KVM - difference between -cpu host and -cpu max?

What is the difference between -cpu host and -cpu max? It seems to me that they are the same Or another way asked.... what is the difference between all supported host features vs all features ...
0
votes
0answers
43 views

Designing a performing iSCSI KVM storage stack

I had some performance issues with iSCSI in a production setup I was unable to debug (due to the production nature) and I'm trying to recreate setup to test, benchmark and eventually replace the prior ...
1
vote
1answer
41 views

VMWare to KVM migration using virt-v2v

I have 2 files that need converting - vmdk to qcow2, done with qemu-img convert -f vmdk foo.vmdk -O qcow2 foo.qcow2 vmx to xml, trying to do with virt-v2v -i vmx foo.vmx -o disk -os /tmp/test and ...
0
votes
2answers
100 views

Virtual Networking in KVM breaking internet access

I have set up a virtual networking on my CentOS 7 Workstation and the primary physical network interface is bridged as per this RHEL article. libvirtd is running successfully, however after reboot ...
0
votes
0answers
28 views

KVM - Modify from IDE to VirtIO

I imported a CentOS 7 guest from XenServer to KVM. After importing it into KVM the disk bus in use is the IDE. I need to change the disk bus from IDE to VirtIO because VirtIO has better performance. ...
0
votes
1answer
30 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
0answers
92 views

How to shrink disk size of kvm qcow2 image?

I have an image which virtual disk size says it's 17G, with disk /dev/sda1 only beeing full for 4.6 Gb: #:/var/lib/uvtool/libvirt/images# virt-df -h guest1.qcow Filesystem ...
0
votes
0answers
38 views

can't ping/ssh/http(s) request to another vm(kvm)

0 I have problem with KVM in Debian, I build two VM machines (windows and Debian VM). I want this VM machines to be accessible by each other I googled it and I know I need to build a bridge and I did ...
0
votes
0answers
8 views

Suspend vps when Centos 7 server starts

How to maintain suspend and unsuspend power state of a vps when a KVM server is rebooted ? I know how to auto-start the vps.
0
votes
1answer
124 views

How do I boot the Debian 10 image with qemu/kvm?

I'm attempting to boot the openstack image of Debian 10 using qemu and encountering an error detecting the harddrive, the end of the boot up sequence is showing: [ 0.989085] Run /init as init ...
1
vote
0answers
32 views

How to assign VM hostname by <host> definition in libvirt virtual network interface

Fedora 30 Workstation Host, Fedora 30 Server (netinstall) Guests. I am not an expert in all this super-crazy Linux networking stuff and reading a ton of materials there and there. So I have libvirt ...
0
votes
1answer
68 views

How to expand EXT4 volume in a centos KVM guest after resizing the guest's LV

I have a fedora KVM host with all the centos VMs in their own LVs. I'd like to expand an EXT4 home volume on a guest that resides on a LV called "thelogicalvolume" in volume group "thevolumegroup"... ...
0
votes
0answers
17 views

Nginx Try_Files Displays Only Index-page or 404 or Internal Error

Current Setup: Ubuntu 18.04.2 LTS PHP7.2-fpm using Sockets Nginx 1.14 (Ubuntu) MySQL 5.7.26 I have a script I'm trying to run on nginx. (works perfect on apache2 "rewite_mod") These files &...
1
vote
1answer
49 views

virt-install hangs and won't die. How to stop safely?

I am having a problem where virt-install gets stuck in the very early stages and cant be killed (after saying "starting installation", but before the VM is visible in virt-manager). Ctrl-C does not ...
0
votes
0answers
35 views

Fedora 30 cloud-init unable to render networking error

I created a Fedora 30 template on Proxmox with KVM virtualization. When I create a VM from template and start it with cloud-init drive configured properly, I get unable to render networking error. ...
2
votes
1answer
52 views

sys-unconfig equivalent for Fedora 30

I'm trying to prepare a Fedora 30 KVM virtual machine template on Proxmox. I wanted to use the sys-unconfig command but it was removed in initscripts 9.81-1 virt-sysprep failed when I ran it from ...
0
votes
0answers
21 views

Do I need a bridge adapter for my KVM Guest?

Trying to come up to speed quickly on KVM and building guest machines. On my test machine I built a KVM guest easily, and once i figured out it had to use the br0 adapter and not the virbr0 I had (...
0
votes
0answers
62 views

Create a virtual network interface to provide an ip via dhcp to multiple KVMs, forwarding all traffic though to a remote VPN server?

Sorry if this has been asked before, but I've been researching this for days and still can't work out the best approach. I have 2 Ubuntu 18.04 Servers in separate physical locations both running a ...
0
votes
1answer
53 views

Best practice to present storage to KVM guest VM for storage server for iScsi target

Hi I'm building out a storage sever that will consist of a KVM Fedora-Server host with a Fedora Server guest VM. I have a 20tb SSD Raid 6 array that I want to act as my storage target ultimately this ...
1
vote
1answer
119 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
0answers
20 views

Keeping KVM's (libvirt) definitions on separate LV (in LVM), Debian 9

I'm setting up 2 box, active/passive high-availability cluster built on heartbeat, DRBD and LVM. What I'm after is reliability and quick automatic failover rather than performance (as performance ...
0
votes
1answer
45 views

EXT4 filesystem data loss running Debian 9 under KVM

I'm trying to setup KVM virtualization on a CentOS 7.6.1810 host. This is a machine with a Xeon E-2176G CPU and a double 1 TB SSD drive. The SSDs are configured as software raid. Personalities : [...