blog-contributions/opsec/QEMUKVM Hypervisor/index.html
2024-12-20 12:28:38 +03:00

196 lines
8.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../../../../../assets/img/favicon.png">
<title>How to Virtualize Machines (QEMU/KVM Hypervisor)</title>
<!-- Bootstrap core CSS -->
<link href="../../assets/css/bootstrap.css" rel="stylesheet">
<link href="../../assets/css/xt256.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="../../assets/css/main.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Static navbar -->
<div class="navbar navbar-inverse-anon navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand-anon" href="\index.html">The Nihilism Blog</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="/about.html">About</a></li>
<li><a href="/blog.html">Categories</a></li>
<li><a href="https://blog.nowhere.moe/donate.html">Donate</a></li>
<li><a href="/contact.html">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<!-- +++++ Posts Lists +++++ -->
<!-- +++++ First Post +++++ -->
<div id="anon2">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<a href="../index.html">Previous Page</a></br></br><p><img src="../../assets/img/user.png" width="50px" height="50px"> <ba>nihilist - 00 / 00 / 00</ba></p>
<h2><b>Why do we need to Virtualize Machines</b></h2>
<!-- <img src="0.png" class="imgRz"> -->
<p>First let's start with the reasons why to virtualize a machine. The main reason to virtualize a machine is the ability to run multiple operating systems without impacting the host operating system. Virutal Machines(VMs) offer advantages of manageability and security, as well as the flexibility of running a separate operating system and non-native applications, making them ideal for software developers and testers. For example, a VM is isolated or "sandboxed" from the host system and other VMs, meaning that the software inside a VM can't escape or tamper with the computer itself. This produces an ideal environment for testing other operating systems including beta releases, accessing virus-infected data, creating operating system backups, and running software or applications on operating systems they weren't originally intended for. </p>
</div>
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /grey -->
<!-- +++++ Second Post +++++ -->
<div id="anon3">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2><b>How to Virtualize Machines(QEMU/KVM Hypervisor) </b></h2>
<p>To get things started, we need to download QEMU. What is QEMU? QEMU, short for Quick Emulator,is a free and open-source emulator. You can download it from their official website.Using QEMU through the command line is troublesome, likely a tool called virt-manager makes the process of navigating QEMU much easier. To install virt-manager just type the following command.</p>
<img src="" class="imgRz">
<pre><code class="nim">sudo apt install virt-manager</code></pre>
<p>After the installation is finished, virt-manager will look something like this.</p>
<img src="assets/virt-manager.png" class="imgRz">
<p>Lets create a new virtual machine. I am creating a debian virtual machine, I already downloaded the .iso image from the official debian <a href="https://www.debian.org/distrib/">website.</a> All the steps will be displayed in the following images.</p>
<img src="assets/create_VM.png" class="imgRz">
<br>
<br>
<br>
<img src="assets/forward.png" class="imgRz">
<br>
<br>
<br>
<img src="assets/select-vm.png" class="imgRz">
<br>
<br>
<br>
<img src="assets/memory.png" class="imgRz">
<br>
<br>
<br>
<img src="assets/space.png" class="imgRz">
<br>
<br>
<br>
<img src="assets/finish.png" class="imgRz">
<p>After clicking on "Finish", a virtual disk will be created to act as a hard-disk for the new VM.</p>
<p>Once the VM loads, you will go through the default debian installation process.</p>
</div>
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /white -->
<div id="anon2">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2><b>Spicing up Debian with KickSecure</b></h2> </br> </br>
<p>What is KickSecure and why do we need it? Kicksecure is a hardened operating system designed to be resistant to viruses and various attacks. It is based on Debian in accordance with an advanced multi-layer defense model, thereby providing in-depth security. Kicksecure provides protection from many types of malware in its default configuration with no customization required. We will be morphing our fresh Debian installation.</p>
<p>First, we need to create a new group called console. Then add the your user to the console group</p>
<!-- <img src="" class="imgRz"> -->
<pre><code class="nim">sudo addgroup --system console</code></pre>
<p>I created a new user called user,but that's optional.</p>
<pre><code class="nim">sudo adduser "your_username" console</code></pre>
<p>After that,we need to install console related packages.</p>
<pre><code class="nim"> sudo apt install console-data console-common kbd keyboard-configuration</code></pre>
<img src="assets/05_installing_requirements.png" class="imgRz">
<p>Now, we will install extrepo to get the kicksecure APT repository. We will also enable the repository</p>
<pre><code class="nim"> sudo apt install extrepo </code></pre>
<pre><code class="nim"> sudo extrepo enable kicksecure </code></pre>
<p>To use apt over the tor network we need a package called apt-transport-tor </p>
<!-- <pre><code class="nim"> sudo apt install apt-transort-tor</code></pre> -->
<p>Next step is to download the kicksecure packages. Note that this will install a desktop environment(Xfce) and other applications</p>
<pre><code class="nim">sudo apt install kicksecure-xfce-host</code></pre>
<img src="assets/09_installs_kicksecure_packges.png" class="imgRz">
<p>Finally, we need to enable the Kicksecure APT derivative.list in /etc/apt/sources.list.d/derivative.list</p>
<pre><code class="nim">sudo repository-dist --enable --repository stable</code></pre>
<p>This command will generate derivative.list file.</p>
<img src="assets/10_dev_list_over_onion.png" class="imgRz">
<p>Disable the extrepo kicksecure APT repository. This is to avoid a duplicate Kicksecure repository.</p>
<pre><code class="nim"> sudo extrepo disable kicksecure</code></pre>
<p>That's it! A quick reboot will apply all the new settings and configurations.</p>
</div>
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /white -->
<!-- +++++ Footer Section +++++ -->
<div id="anonb">
<div class="container">
<div class="row">
<div class="col-lg-4">
<h4>Nihilism</h4>
<p>
Until there is Nothing left.</p></br></br><p>Creative Commons Zero: <a href="../../../../opsec/runtheblog/index.html">No Rights Reserved</a></br><img src="\CC0.png">
</p>
</div><!-- /col-lg-4 -->
<!-- <div class="col-lg-4">
<h4>My Links</h4>
<p>
<a target="_blank" rel="noopener noreferrer" href="http://blog.nowhere.moe/rss/feed.xml">RSS Feed</a><br/><a target="_blank" rel="noopener noreferrer" href="https://simplex.chat/contact#/?v=2-7&smp=smp%3A%2F%2FL5jrGV2L_Bb20Oj0aE4Gn-m5AHet9XdpYDotiqpcpGc%3D%40nowhere.moe%2FH4g7zPbitSLV5tDQ51Yz-R6RgOkMEeCc%23%2F%3Fv%3D1-3%26dh%3DMCowBQYDK2VuAyEAkts5T5AMxHGrZCCg12aeKxWcpXaxbB_XqjrXmcFYlDQ%253D&data=%7B%22type%22%3A%22group%22%2C%22groupLinkId%22%3A%22c3Y-iDaoDCFm6RhptSDOaw%3D%3D%22%7D">SimpleX Chat</a><br/>
</p>
</div>/col-lg-4 -->
<div class="col-lg-4">
<h4>About nihilist</h4>
<p style="word-wrap: break-word;"><u>Donate XMR:</u> 85fGTpPWivci2dRzJSgvm5QeEuEUZ11ZDbZA6Yc58XdCHSen2oRKLpgbNBr1sv9gacbrfMP3Qw23RcGqYb8V1FN4L67kph6</p></br><p></p>
</div><!-- /col-lg-4 -->
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
</body>
</html>