Lỗi man hinh dencài đặt kali linux virtual box năm 2024

Sau khi cập nhật VirtualBox, tất cả các máy ảo đều ngừng hoạt động, bất kể hệ điều hành khách và cài đặt của chúng là gì.

Tình huống trở nên phức tạp bởi thực tế là thay vì chỉ báo chính xác về sự cố, khi cố gắng khởi động máy ảo, chỉ có một thông báo chung rằng phiên đã kết thúc, cũng như một số lỗi, phổ biến đối với một số. các lỗi liên quan đến việc không thể bắt đầu phiên máy ảo.

Toàn văn lỗi:

The VM session was aborted. Result Code: NS_ERROR_FAILURE (0x80004005) Component: SessionMachine Interface: ISession {c0447716-ff5a-4795-b57a-ecd5fffa18a4}

Lỗi man hinh dencài đặt kali linux virtual box năm 2024

Một lý do có thể là do phiên bản Gói tiện ích mở rộng VirtualBox và phiên bản VirtualBox đã cài đặt không khớp nhau.

Gói mở rộng VirtualBox là một tiện ích mở rộng bổ sung các tính năng như hỗ trợ thiết bị USB 2.0 và USB 3.0, VirtualBox RDP, mã hóa ổ đĩa, khởi động NVMe và PXE cho thẻ Intel.

Để đảm bảo rằng lý do nằm trong Gói mở rộng VirtualBox, bạn có thể tắt các chức năng mà gói tiện ích mở rộng cung cấp trong cài đặt máy ảo (ví dụ: quay lại phiên bản USB 1.1) – sau đó, máy ảo sẽ hoạt động mà không gặp lỗi. Hoặc đi thẳng đến việc cập nhật gói tiện ích mở rộng, điều này sẽ giải quyết vấn đề được chỉ định.

Để khắc phục sự cố này, chỉ cần cài đặt phiên bản Gói mở rộng VirtualBox phù hợp với phiên bản VirtualBox của bạn.

Nếu bạn đã cài đặt gói tiện ích mở rộng theo cách thủ công, hãy truy cập trang tải xuống VirtualBox https://www.virtualbox.org/wiki/Downloads và tìm Gói tiện ích mở rộng VirtualBox Oracle VM VirtualBox tại đó.

Tải xuống và chạy tệp bằng cách nhấp đúp.

Trong quá trình cài đặt phiên bản mới, bạn sẽ được nhắc gỡ cài đặt phiên bản cũ.

Các kho lưu trữ Linux cũng chứa Gói mở rộng VirtualBox.

Trên Debian và các bản phân phối phái sinh (Linux Mint, Ubuntu, Kali Linux và các bản khác), để cài đặt Gói mở rộng VirtualBox từ kho lưu trữ, hãy chạy:

sudo apt install virtualbox-ext-pack

Trên Arch Linux và các bản phân phối phái sinh (Manjaro, BlackArch và các bản phân phối khác), để cài đặt Gói mở rộng VirtualBox từ kho lưu trữ, hãy chạy:

pikaur -S virtualbox-ext-oracle

Nếu bạn nhận được thông báo rằng không tìm thấy lệnh pikaur, hãy xem bài viết “Tự động cài đặt và cập nhật các gói AUR”.

Nếu bạn gặp lỗi khi Gói mở rộng VirtualBox đã được cài đặt, ví dụ:

VBoxManage: lỗi: Gói mở rộng 'Gói mở rộng Oracle VM VirtualBox' đã được cài đặt. Trong trường hợp cài đặt lại, vui lòng gỡ cài đặt trước

Sau đó, bạn cần bắt đầu bằng cách xóa thủ công. Để thực hiện việc này, hãy mở VirtualBox, chuyển đến menu Tệp → Tùy chọn → Tiện ích mở rộng.

This guide is about virtualizing Kali Linux inside of VirtualBox, allowing you to have a Kali VM. This is a great way to use Kali, as it is completely separate from the host, allows you to interact with other VMs (as well as the host machine and other machines on the network), and allows you to revert to snapshots.

You may wish to follow our other guide if you are trying to install VirtualBox on Kali Linux (as a host).

The guide below is what we use to generate our . You may alter this to your needs. We always generate the images using the latest version of VirtualBox.

You may need to enable virtualization in your BIOS/UEFI for (e.g. Intel VT-x/AMD-V)

Upon starting up VirtualBox, select “New” (Machine -> New).

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


The next screen is “Name and operating system” which is where you name the VM. This name is also used in any filenames (such as the configuration, hard disk and snapshot - which isn’t changed from this point).

We are keeping it generic in this guide (as Kali is a rolling distribution, and we update it), however for our releases, we use the version number in the name as it is a fixed release (kali-linux-YYYY.N-vbox-ARCH. Example: kali-linux-2024.1-vbox-amd64).

For the “Type”, we set it as Linux. For the “Version”, we are going to be using the x64 desktop image, so we are going to select Debian (64-bit).

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


“Memory size” is the next section, where we can define how much RAM to use. Again, the higher the amount of RAM, the more applications can be open and at increased performance. Various tools inside of Kali can be demanding of resources. When we make the general VMs, we select 2048 MB (2GB) for RAM, but we often increase this for our personal machines as we have high-performing devices with spare RAM which Kali can utilize.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


This screen below, “Hard disk”, allows us to Create a new virtual disk now.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


For the “Hard disk file type”, we select VDI (VirtualBox Disk Image) (and its the default option).

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


For the following screen, “Storage on physical hard disk”, we go with the default option of Dynamically allocated.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


Now with “File location and size”, we can now define how large the virtual hard disk will be. We use 80.00 GB for our VMs.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


After clicking on “Create”, the wizard is complete.

Now we click on “Settings”, to customize the VM further.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


In “General” -> “Advanced”, we make sure to set “Shared Clipboard” to bidirectional, as well as “Drag’n’Drop” to bidirectional

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


In “System” -> “Motherboard”, we change the “Boot Order” to make sure `kali-linux-2024.1-vbox-amd64`1 is top and `kali-linux-2024.1-vbox-amd64`2 is the second. Everything else is disabled.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


In “System” -> “Processor”, we increase the “Processor(s)” to be `kali-linux-2024.1-vbox-amd64`3.

At the same time, we also enable “Extended Features” for `kali-linux-2024.1-vbox-amd64`4.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


In “Display” -> “Screen”, we make sure to have “Video Memory” set to `kali-linux-2024.1-vbox-amd64`5

Another item to point out is to make sure that “Accelerated 3D graphics” is disabled, as people have reported that causes issues.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


The final settings view looks like the following:

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


When we are ready to go, press “Start”.

The first time we run it, we will get a prompt saying do we wish to mount an image to use as a “start-up disk”. We want to use our Kali image, rather than a physical drive, so we select the icon to the side of the drop down.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


A new pop up will open, “Optical Disk Selector”. We will now press “Add”, then navigate to where our ISO is located.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


After pressing “Open”, we can see its been added, so we make sure its selected and press “Choose”.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


All that is left now to do is press “Start”.

Lỗi man hinh dencài đặt kali linux virtual box năm 2024


After all this is done, we save, start up the VM, and then continue installing Kali Linux as we normally would for a bare metal install.

During Kali Linux setup process, the install wizard should detect if its inside a VM. If it is, should then automatically install any additional tools (such as `kali-linux-2024.1-vbox-amd64`6) to give a better user experience. If you want to manually re-install it, you can see our VirtualBox Guest Guide.