Have you ever come across the Unable to insert the virtual optical disk error? Users, who have a VirtualBox and are trying to create a virtual machine may be accustomed to this message. VirtualBox is open-source software for the x86 computing architecture used to deploy servers, desktops, and embedded operating systems as VMs or Virtual Machines. By definition, the Virtual Optical Disk file simply means that it is a .iso image containing a complete copy of the contents of a CD or DVD. The complete structure of the file along with the contents is stored in this file. The Virtualbox unable to insert virtual optical disk error message may pop up due to a few glitches in the settings. If the VirtualBox is not properly set up on your PC, you may see this error. The article aims to provide methods to clear this issue on various platforms.
How to Fix Virtualbox Unable to Insert Virtual Optical Disk
The method to install VirtualBox的 on a Linux PC is discussed in this section.
1。 打开 终端 from the menu, type the following command and press the 输入 key to install VirtualBox.
sudo apt-get 安装 virtualbox
2. Enter login password of your PC in the field and press the 回车键.
3。 类型 y ,在 你想继续吗? 部分并按 回车键.
4. Wait till the installation is complete, type virtualbox, 然后按 输入 key to open the VirtualBox.
Method 1: On Ubuntu OS
The following steps describe the method to clear the issue on VirtualBox in the Ubuntu OS.
1。 打开 终端 on your PC, type the following command, and press the 回车键.
/media/jerry/VBox_Gas_6.1.32
2. 输入以下命令并按 回车键 to run the file.
./VBoxLinuxAdditions.run
3. If you see the output message below, the installation is successful.
Running kernel modules will be replaced when the system is restarted
Method 2: On Other Ubuntu OS Versions
The following steps can be followed to fix the Virtualbox unable to insert virtual optical disk error if the OS of the VirtualBox is either Ubuntu 20, Ubuntu 21, or Ubuntu 22.
1。 打开 VirtualBox VM settings.
2。 右键单击 控制器:集成开发环境 ,在 存储 部分并单击 Remove disk from virtual drive 选项。
请注意: 如果 Remove disk from virtual drive option is not available, click on 删除附件 选项。
3。 点击 Force Unmount 上的按钮 VirtualBox- Question 窗口。
4。 打开 终端 on your PC from the home menu.
5. Type the following command and press 输入 key to create a directory for mounting the Guest Additions installation CD.
sudo mkdir –p /mnt/cdrom
6. Type the following command and press 回车键 to mount the files to the created directory.
sudo mount /dev/cdrom/mnt/cdrom
请注意: If the command doesn’t work, type the command as sudo mount –o loop /dev/cdrom/mnt/cdrom.
7. 输入以下命令并按 输入 运行的关键 Guest Additions installation software in the directory to fix the Unable to insert the virtual optical disk error.
cd /mnt/cdrom sudo ./VBoxLinuxAdditions.run
另请参阅: How to Install GCC on Ubuntu
Method 3: On macOS/Linux OS
The following steps can be used to fix the Virtualbox unable to insert virtual optical disk error in VirtualBox with macOS or Linux OS. The steps mentioned are considering a macOS VirtualBox and the steps can be used on Linux OS VirtualBox.
Step I: Alter Settings in Virtual Machine
As a first step, alter the settings of the Virtual Machine by following the steps below.
1. Turn off the macOS Virtual Machine.
2。 右键单击 macOS Virtual Machine device in the left pane of the VirtualBox的经理.
3。 点击 个人设置 顶部菜单中的选项。
4。 点击 存储 tab on the left pane of the window.
5。 右键单击 控制器:集成开发环境 并点击 Adds optical drive 图标。
6。 点击 Leave empty 上的按钮 VirtualBox- Question 窗口。
7。 选择 VBoxGuestAdditions.iso 在选项 附 下拉菜单并单击 OK 按钮。
Step II: Run the VBox File
The next step is to run the VBox file on the Virtual Machine.
1. Turn on macOS Virtual Machine.
2.双击 VBox_Gas to open the optical disk.
3. Then, double click on VBoxDarwinAdditions.pkg to run the file.
Step III: Enter Recovery Mode
The third step in this option is to enter into the recovery mode to tweak the changes to fix the Virtualbox unable to insert virtual optical disk error on your PC.
1。 打开 终端 in macOS from the menu, type the csrutil状态 command, and press the 回车键 to check the status of the SIP.
2。 按 F12键 to direct you to the Virtual machine’s BIOS setting.
3。 选择 启动管理器 option using the arrow keys.
4。 选择 EFI Internal Shell 选项并按 ESC 键打开 ESI Internal Shell 安慰。
5。 运行 FS2 command to open FS2 interactive Shell.
6. 输入以下内容 命令 并按下 回车键 to go to the recovery boot image directory.
cd com.apple.recovery.boot
7. 输入命令 DIR 然后按 输入 key to view if the kernelcore 文件可用。
8。 打开 终端 window, type the command, and press the 输入 key to restart the macOS virtual machine in recovery mode.
sudo nvram recovery-boot-mode=unused && sudo shutdown –r now
另请参阅: 修复 Mac 无法验证开发者而无法打开的问题
Step IV: Disable macOS SIP
The SIP software or System Integrity Protection in the macOS would not allow you to perform any unauthorized codes on the PC. To fix the Virtualbox unable to insert virtual optical disk error, you have to disable the software to fix the issue.
1。 打开 macOS公用程序 窗口,然后单击 终端 选项。
2。 点击 终端 菜单中的选项。
3. 键入 csrutil禁用 命令并按 回车键 to turn off the SIP.
4。 点击 mac 图标 并点击 重新启动 option to restart the PC.
Step V: Add VBox Guest Additions CD
The final step is to add the Virtual Machine as a new program to the PC to fix the Unable to insert the virtual optical disk error.
1. 输入以下命令并按 回车键 to enable admin privileges to the folder.
/系统/库/扩展/
2。 点击 设备 tab and install VBox Guest Additions CD in the macOS Virtual Machine.
常见问题解答(FAQ)
Q1. Is it free to use VirtualBox?
答。 The open source machine platform provides a free virtual machine license to people for educational and evaluation use.
Q2. Why does the Unable to Insert the Virtual Optical Disk error pop up?
答。 This error may occur either due to the glitches on the PC. If the VirtualBox is not properly set up on your PC, this error may pop up.
推荐:
The method to fix Virtualbox unable to insert virtual optical disk error in various OS is discussed in this article. Please let us know your suggestions and queries on the topic dealt with in the comments section.