O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

To create, list, and manipulate a new Linux bridge, follow these steps:

  1. Install the Linux bridge package, if it is not already present:
root@kvm:~# apt install bridge-utils
  1. Build a new KVM instance using the raw image from the Installing a custom OS on the image with debootstrap recipe from Chapter 1, Getting Started with QEMU and KVM, if you are not reading this book cover to cover:
root@kvm:~# virt-install --name kvm1 --ram 1024 --disk path=/tmp/debian.img,format=raw --graphics vnc,listen=146.20.141.158 --noautoconsole --hvm --importStarting install...Creating domain... | 0 B 00:00Domain creation completed. You can restart your domain by running: virsh --connect qemu:///system start kvm1root@kvm:~#
  1. List all the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required