Skip to content

Latest commit

 

History

History
96 lines (95 loc) · 4.6 KB

Install Virtual Machine on EndeavourOS.md

File metadata and controls

96 lines (95 loc) · 4.6 KB

How-to-Linux

Things Ive learned about Linux that might help you

Setup Virtual Machine on Arch Linux (EndeavourOS) with Bridged Networking - My Experience

 

Laptop: 2014 Macbook Air

Processor: Intel(R) Core(TM) i5-4260U CPU @ 1.40GHz, 1400 MHz (4 cores)

Memory: 4GB

Network Card: Broadcom BCM4360 802.11ac Wireless Network Adapter

OS: EndeavourOS (Arch Linux)  5.18.16-arch1-1

 

Problem:

I needed to setup 2 Vms for testing on my fresh install of EndeavourOS with bridged networking to run my Ansible configurations. After installing VirtualBox (Oracle) I was successful in creating one instance with networking, but not with the second one. My machine was crashing during the install. I also tried installing GNOME-Boxes which worked to create the instances but was difficult to setup any type bridged networking, as the config options are limited.

Solution:

Use KVM Virtual Machine Manager

This is obviously a well-known and used hypervisor for Linux, but for someone learning or getting started with Linux I wanted to share my experience of how I managed to get it working on my machine.

 

Step 1:

Make sure your system is updated

Then run the following commands in your terminal

 

sudo pacman -S archlinux-keyring
sudo pacman -S qemu virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat libguestfs ebtables iptables


Step 2:

Start and enable the libvirtd.service

 

sudo systemctl start libvirtd.service
sudo systemctl enable libvirtd.service

 

Step 3:

Edit the libvirtd.conf file using nano or any editor

 

sudo nano /etc/libvirt/libvirtd.conf

Remove the # from the following lines

unix_sock_group = "libvirt"

unix_sock_rw_perms = "0770"

 

Step 4:

Create and add your account to the libvirt group

 

sudo usermod -aG libvirt [your user name]
newgrp libvirt
sudo systemctl restart libvirtd.service

Step 5:

Reboot

 

Step 6:

Start Virtual Machine Manager

 

6a:

File / Add Connection

- Hypervisor: QEMU/KVM

- Autoconnect: checked

Connect

 

Edit / Connection Details

You should see a default network , make sure to click Autostart: On Boot

if not, then click + at bottom left

and create a new one

give it a name (i used br10) make sure Mode is set to NAT

click Finish

 

6b:

File / New Virtual Machine

(the install guide will open)

Choose Local install media - Forward

Choose Browse

Click + at the bottom left

Create pool storage Name: give it a name (Pool1 or whatever you like)

Target Path: - Browse to the directory with your ISO files

Click Finish

Select the Pool you just created on the left then the ISO image on the right

Click Choose Volume

Click Forward

 

6c:

Select your memory (I chose 1024)

Select CPUs (I chose 1 )

These will depend on how much memory and CPU type you have.

Click Forward

 

6d:

Change Gib to what ever size you need ( I suggest 10 at the minimum)

Click Forward

 

6e:

Give it a name ( Something practical if you have multiple VMs)

Click Finish

 

It will ask you to start, click YES

Follow the on screen instructions to begin the install of your OS.

 

- Please feel free to comment or give your experiences with setting up VMs on an older Mac laptop!

Like I said , this is how I was able to setup my own VMs on my machine. Always make sure you have enough Disk space and RAM on your system. The more the better.

Thanks