返回文章列表文章索引阅读全文
STARBLOG / 阅读手记
FAQ & Tips

The pitfalls and solutions for installing Virtualbox on Manjaro Linux~

Foreword Not long ago, my Ubuntu installation disk ran out of space, so I decided to install another system on a new SSD. This led me back to Manjaro, and the KDE desktop is really user-friendly. However, I still need to explore many configuration aspects, as I’ve mainly used Gtk-based desktops in the past. Now, onto the main topic: Installing VirtualBox VirtualBox is available in Manjaro’s official repository. You can simply open Octopi and search for it. Alternatively, you can install it by entering the command: sudo pacman -S virtu

曦远 (DealiAxy)约 9 分钟
目录9 个章节

Preface

Not long ago, as my Ubuntu installation disk ran out of space, I decided to install another system on a new SSD, which led me back to Manjaro. The KDE desktop is truly excellent to use, though many configuration aspects still require some research, given that my primary desktop experience in the past was mainly with Gtk-based environments~

Getting Started

Installing VirtualBox

VirtualBox is available in Manjaro's official repositories. You can find it by opening Octopi and searching.

Or you can install it by entering the following command:

sudo pacman -S virtualbox

Installing Kernel Modules

The previous step installed VirtualBox, but it cannot be used yet—you need to install and activate the kernel modules first.
The corresponding kernel modules are available in the official repositories, but you should check the correct version first.

How do you check the kernel version? Open the Manjaro Settings Manager as shown below:

Select "Kernel":

You can see the current kernel version is 4.19.32-1. Then you can proceed to install the kernel modules~
When searching for Virtualbox in Octopi, you'll see many kernel modules available. Here, we select the one corresponding to the kernel version Linux419, as shown in the image:

Activating the Kernel Module

sudo modprobe vboxdrv

Add Current User to virtualbox User Group

sudo gpasswd -a [username] vboxusers

Replace [username] with your username. For example, in my case it looks like this:

sudo gpasswd -a dealiaxy vboxusers

Issue: Imported Existing Virtual Machine Cannot Boot

When importing an existing virtual machine, you may encounter this issue. The primary cause is a change in the virtual hard disk's location. This can be resolved by reassigning the correct path in the settings.

However, you might then encounter an error stating that the virtual hard disk's SSID is invalid. In this case, you'll need to reset the SSID.

Navigate to the directory containing the virtual hard disk file and execute the following command:

VBoxManage internalcommands sethduuid <file.vdi>

Replace <file.vdi> with the name of your virtual hard disk file.

References

Welcome to Chat with Me

_EOF_

The pitfalls and solutions for installing Virtualbox on Manjaro Linux~

本文作者:
程序设计实验室
版权声明:
本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

相关文章

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…

The pitfalls and solutions for installing Virtualbox on Manjaro Linux~ · StarBlog