How to install KVM server on Debian Linux 9 Headless Server


#1

Originally published at: https://www.cyberciti.biz/faq/install-kvm-server-debian-linux-9-headless-server/

Kernel-based Virtual Machine (KVM) is a virtualization module for the Linux kernel that turns it into a hypervisor. How can I install KVM with bridged networking, setup guest operating system as the back-end virtualization technology for non-graphic Debain Linux 9.x server? You can use KVM to run multiple operating systems such as Windows, *BSD, Linux…


#2

Hi there, it’s a very interesting reading, thank you. I wonder if I can setup the same way a VM for a different platform, say ARM6/7, see raspberry. I will find it very usefull, as your great article. Have a good day!


#3

ARMv8-A processors include support for KVM virtualization. It is possible to run KVM on RPI3 but it will be slow. See the following for more info:

  1. https://www.linux-kvm.org/page/Processor_support
  2. https://www.arm.com/products/processors/cortex-a

#4

Why not write the very crucial information when creating the bridged network that the IP subnet should match the one on your router and therefore might not be 192.168.2.xx?? And that 192.168.2.23 should be replaced with whatever static IP address you would the host to have…

You also have a mistake. It should be /etc/network/interfaces.d/br0 instead of /etc/network/interfaces/br0

But still I couldn’t get the bridged network to work properly. My main interface was called enp9s0 and I couldn’t get rid of it’s IPv4 address, and I couldn’t start up br0 (it said state UNKNOWN). When I did ifup br0 it complained that eth0 didn’t exists/found/worked…


#5

But still I couldn’t get the bridged network to work properly. My main interface was called enp9s0 and I couldn’t get rid of it’s IPv4 address, and I couldn’t start up br0 (it said state UNKNOWN). When I did ifup br0 it complained that eth0 didn’t exists/found/worked…

Can you post your config file? Also post output of the following commands:

ip a | grep '^[0-9]'

I will fix the typo for file name soon. Thanks for the heads up!


#6

Sorry, I have dropped trying to set KVM for now and have already cleaned out the system. Thanks for replying though!