Skip to content

virt-manager setup

In this tutorial we'll setup virt-manager on debian:

Initial Setup

To start with just open up a terminal or ssh into your debian server and run the following commands:

once that's done we will enable the libvirtd service

To verify that it is indeed working, we'll start up virt-manager like so:

And there we have it !

Now before we create any virtual machine , we'll create the NAT configuration

NAT setup

Run the following command:

Once that's done we'll create the NAT configuration:

Once that's done, we are ready to create our virtualized debian machine, Thanks to the NAT configuration we will be able to ssh into it:

Debian Virtualisation Example

Download a debian iso and then do the following:

once that's done just go on installing debian as usual and make sure you install the ssh server on it:

And that's it ! we have been able to ssh into our virtual machine inside qemu kvm. Thanks to the NAT configuration, the communication between the host machine and the virtualised one is actually possible. which allowed us to ssh into the machine. without this intermediate step, it is not even possible to ping the host machine, so a ssh connection would be out of question.


Nihilist
Donate XMR to Nihilist:
8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o
7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8