Adjusting the size of the virtual machine's hard disk

VirtualBox increase disk size on Linux

In this tutorial you will learn how to increase disk size on VirtualBox. One of the great things about installing an operating system into a virtual machine is that we can easily change the machine’s CPU utilization limit, its memory usage, and the amount of hard drive space it has. With VirtualBox, all of these hardware specifications can even be changed long after the virtual machine is created.

Read more

VirtualBox Guest Additions installation of Fedora Linux

Virtualbox Guest additions installation on Fedora Linux

If you’re running Fedora Linux inside a VirtualBox virtual machine, installing the Guest Additions software will help you get the most out of the system. VirtualBox Guest Additions will give the machine more capabilities, such as a shared clipboard with the host system, drag and drop file transfer, and automatic window resizing.

This makes copying data to and from a host system much more convenient. It also changes the VM’s resolution automatically when its window is resized, so you don’t need to change it manually. Guest Additions will work with just about any Linux distribution, but instrutions can differ because of dependencies and package managers.

In this guide, we’ll be going over the step by step instructions to get VirtualBox Guest Additions installed on Fedora Linux. With these instructions, it doesn’t matter what host system you’re using, as long as the virtual machine is running Fedora. This guide assumes that you’ve already installed Fedora in the VM correctly.

In this tutorial you will learn:

  • How to install VirtualBox Guest Addition on Fedora
VirtualBox Guest Additions installation of Fedora Linux

VirtualBox Guest Additions installation of Fedora Linux

Read more

Configuring a VirtualBox shared folder

How to configure shared VirtualBox folder on Linux

After installing a Linux distro into a VirtualBox virtual machine, you may be wondering how to share files between the host operating syste and the virtual machine itself. One of the easiest and most convenient ways to provide this function is by setting up a VirtualBox shared folder.

Essentially this means that a folder on your host machine can be mounted on the virtual machine, where both systems will be able to access files or drop them in the folder. It doesn’t matter what host operating system you’re using, as the instructions will be the same across Linux, Windows, etc.

In this guide, we’ll go through the step by step instructions to configure a shared VirtualBox folder. We’ll also show you how to mount the shared folder on your Linux system, allowing you to easily share files back and forth.

In this tutorial you will learn:

  • How to configure a shared VirtualBox folder on Linux
  • How to mount a VirtualBox shared folder

Read more

How to use bridged networking with libvirt and KVM

How to use bridged networking with libvirt and KVM

Libvirt is a free and open source software which provides API to manage various aspects of virtual machines. On Linux it is commonly used in conjunction with KVM and Qemu. Among other things, libvirt is used to create and manage virtual networks. The default network created when libvirt is used is called “default” and uses NAT (Network Address Translation) and packet forwarding to connect the emulated systems with the “outside” world (both the host system and the internet). In this tutorial we will see how to create a different setup using Bridged networking.

In this tutorial you will learn:

  • How to create a virtual bridge
  • How to add a physical interface to a bridge
  • How to make the bridge configuration persistent
  • How to modify firmware rules to allow traffic to the virtual machine
  • How to create a new virtual network and use it in a virtual machine
How to use bridged networking with libvirt and KVM

How to use bridged networking with libvirt and KVM

Read more

How to run the Raspberry Pi Os in a virtual machine with Qemu and Kvm

How to run the Raspberry Pi Os in a virtual machine with Qemu and Kvm

Although many operating system are available for the Raspberry Pi, the official one is the Raspberry Pi Os. The operating system is made to run for the arm architecture, and can be easily installed on the SD card which will be used as the main Raspberry Pi storage device. Sometimes we may want to perform some tests or try some applications without having a physical Raspberry Pi machine; in this tutorial we will see how we can create a virtual machine with the Raspberry Pi Os system using Qemu and Kvm (Kernel Virtual Machine).

In this tutorial you will learn:

  • How to install qemu and kvm
  • How to download and check the integrity of the latest Raspberry Pi Os version (Buster)
  • How to run the Raspberry Pi Os in a virtual machine

Read more

Installing VMware Tools on Kali Linux

How to install VMware Tools on Kali Linux

If you’re running Kali Linux inside a VMware virtual machine, installing the VMware Tools software will help you get the most out of the system. VMware Tools will give the machine more capabilities, such as a shared clipboard with the host system, drag and drop file transfer, and automatic window resizing.

This makes copying data to and from a host system much more convenient. It also changes the VM’s resolution automatically when its window is resized, so you don’t need to change it manually. VMware Tools will work with just about any Linux distribution, but instructions can differ because of dependencies and package managers. Normally, Kali will automatically detect what platform the operating system has been installed on, and will include VMware Tools (if applicable) by default. If yours isn’t working or you just need to know how to use the features, we’ve got you covered in this guide.

In this guide, we’ll be going over the step by step instructions to get VMware Tools installed on Kali Linux. With these instructions, it doesn’t matter what host system you’re using, as long as the virtual machine is running Kali. This guide assumes that you’ve already installed Kali in the VM correctly.

In this tutorial you will learn:

  • How to install VMware Tools on Kali Linux

Read more

Installation of VirtualBox Guest Additions on Kali Linux

How to install VirtualBox guest additions on Kali Linux

If you’re running Kali Linux inside a VirtualBox virtual machine, installing the Guest Additions software will help you get the most out of the system. VirtualBox Guest Additions will give the machine more capabilities, such as a shared clipboard with the host system, drag and drop file transfer, and automatic window resizing.

This makes copying data to and from a host system much more convenient. It also changes the VM’s resolution automatically when its window is resized, so you don’t need to change it manually. Guest Additions will work with just about any Linux distribution, but instructions can differ because of dependencies and package managers. Normally, Kali will automatically detect what platform the operating system has been installed on, and will include Guest Additions (if applicable) by default. If yours isn’t working or you just need to know how to use the features, we’ve got you covered in this guide.

In this guide, we’ll be going over the step by step instructions to get VirtualBox Guest Additions installed on Kali Linux. With these instructions, it doesn’t matter what host system you’re using, as long as the virtual machine is running Kali. This guide assumes that you’ve already installed Kali in the VM correctly.

In this tutorial you will learn:

  • How to install VirtualBox Guest Addition on Kali Linux

Read more

Installation of VirtualBox Guest Additions on openSUSE

Install VirtualBox Guest Additions on openSUSE

If you’re running openSUSE inside a VirtualBox virtual machine, installing the Guest Additions software will help you get the most out of the system. VirtualBox Guest Additions will give the machine more capabilities, such as a shared clipboard with the host system, drag and drop file transfer, and automatic window resizing.

This makes copying data to and from a host system much more convenient. It also changes the VM’s resolution automatically when its window is resized, so you don’t need to change it manually. Guest Additions will work with just about any Linux distribution, but instrutions can differ because of dependencies and package managers.

In this guide, we’ll be going over the step by step instructions to get VirtualBox Guest Additions installed on openSUSE. With these instructions, it doesn’t matter what host system you’re using, as long as the virtual machine is running openSUSE. This guide assumes that you’ve already installed openSUSE in the VM correctly.

In this tutorial you will learn:

  • How to install VirtualBox Guest Addition on openSUSE

Read more

OS Installation on USB drive with VirtualBox

VirtualBox virtualization software allows you to install any operation system directly to any attached block device such as USB stick/drive etc. This is actually a cool way to create you personalized Live Linux USB stick. This short “howto” describes how it works.
For the sake of this tutorial we will be using block device file name /dev/sdb to refer to our attached USB drive. First we need to create a raw vmdk virtual file disk linked to our /dev/sdb USB drive. As a privileged user execute the below command:

# vboxmanage internalcommands createrawvmdk -filename linux-live.vmdk -rawdisk /dev/sdb

Read more

KVM virtualization on linux

Virtualization solutions on Linux systems – KVM and VirtualBox

Introduction

Virtualization packages are means for users to run various operating systems without “bare-metal” hardware – basically, you can run more than one operating system on a single computer without dual-booting or similar approaches. Virtualization software emulates a real machine and “fools” the guest operating system into thinking it’s running on a real computer. Besides the more obvious advantages, virtual machines help create a greener and easier to administer computing environment. Looking at the trends in the IT industry, virtualization has seen quite a boom in the last few years, because it fits the concepts of utility computing and/or software as a service. Virtualization can be useful to you if you are an enterprise architect, developer, a home user or basically everything in between. We will begin with a short introduction about virtualization in general, then we will specifically treat VirtualBox and KVM as they seem to be most popular open source full virtualization solutions. You are expected to know your way around Linux systems, how to install a Linux distribution and how to install software on it, although we will show you how to install the two aforementioned virtualization packages on some of the popular Linux distributions.

There are two types of virtualization : one that can run the guest system as-is (as in, unmodified) and another that request a modified kernel on the guest’s side in order to run. The first category is named full virtualization, because it emulates a complete hardware environment, the second is named paravirtualization , because it doesn’t emulate hardware and hence needs special modifications at guest level, a good example of this type of virtualization being Xen. These are part of a bigger category named hardware virtualization, but there are also other (software, network or storage, amongst others) virtualization types, which we will not detail here. The two pieces of software we will talk about fit into the full virtualization category. Other popular hardware virtualization technologies include QEMU, Bochs, VMware, Parallels, HyperV or OpenVZ.

Read more

How to instruct XenServer’s host virtual machine to boot from ISO CD/DVD image

Objective

Here we assume that you have already created VM’s device to link to desired ISO image you wish to boot from. The objective is to instruct XenServer’s host virtual machine to boot from ISO CD/DVD image instead of default VDI disk. Failure to do so may result in following error message:

The bootloader returned an error
msg: Unable to find partition containing kernel

Read more

Install Arch Linux in VMware Workstation

Install Arch Linux in VMware Workstation

Arch Linux is a powerful and customizable operating system with a minimal base install. If you are a newer Linux user then you may be interested in installing Arch Linux, but have been reluctant to do so because of the learning curve that is sometimes associated with the process. If that is the case then it is a great idea to first install Arch Linux as a virtual machine and take it for a test drive. This tutorial will guide you through the steps of installing Arch Linux as a guest machine in VMware Workstation. Following this guide will leave you with a very minimal base Arch install which you can choose to customize however you would like.

Read more