VirtualBox的虚拟机在操作时,需要点击菜单栏和任务栏,但有时候我们会出现无法显示的问题。
分类: VirtualBox
VirtualBox 7.0.4安装macOS High Sierra
硬件要求
Intel E3-1230 v3 可以成功安装, AMD Ryzen 5900 CPU 在 Linux 系统上,需要配置 CPU 模仿 Intel CPU 的特性。并且 CPU 部分,不要启用 嵌套VT-x/AMD-V 。
生成系统安装镜像
在 macOS (实验使用的系统是 macOS Big Sur (11.7.1))系统上,执行如下命令,生成系统安装镜像
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$ hdiutil create -o /tmp/HighSierra.cdr -size 7200m -layout SPUD -fs HFS+J $ hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build $ sudo ~/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build # 如果安装过程中卡住,查看安装日志,发现有多个安装提供者,无法确定使用哪一个,则必须执行如下命令,更详细的参考下面的解释 $ rm -rf /Volumes/Install\ macOS\ High\ Sierra/Install\ macOS\ High\ Sierra.app/Contents/MacOS $ hdiutil detach /Volumes/Install\ macOS\ High\ Sierra $ mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg $ hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/HighSierra.iso |
Windows 10系统VirtualBox无法进入系统,日志报错“HM: HMR3Init: Attempting fall back to NEM: VT-x is not available”
在Windows 10上使用 Linux 子系统的时候,无法成功启用。根据官方文档 旧版 WSL 的手动安装步骤 之后,依旧没效果,反倒是VirtualBox无法进入系统了。
观察日志,报错信息如下:
Intel CPU
|
1 2 |
{timestamp} HM: HMR3Init: Attempting fall back to NEM: VT-x is not available {timestamp} NEM: WHvCapabilityCodeHypervisorPresent is TRUE, so this might work... |
AMD CPU
|
1 2 |
{timestamp} HM: HMR3Init: Attempting fall back to NEM: AMD-V is not available {timestamp} NEM: WHvCapabilityCodeHypervisorPresent is TRUE, so this might work... |
解决方案如下:
1.使用管理员启动命令行.
2. 执行如下命令:
|
1 |
bcdedit /set hypervisorlaunchtype off |
某些电脑需要额外执行如下命令:
|
1 |
DISM /Online /Disable-Feature:Microsoft-Hyper-V |
3. 重启电脑
参考链接
增加VBox显存到256M
Virtual Box supports up to 256 MB of video RAM. This can not be set using the slider of the Virtual Box Manager.
To make full use of all supported memory we can issue the following command in a terminal:
|
1 |
$ VBoxManage modifyvm "Name of VM" --vram 256 |
Before we change settings such as the video RAM a pre-existing virtual machine has to be shut down.
Note that for 3D video hardware acceleration from the guest addition’s video driver the physical RAM of the host graphics card will be passed through. The video RAM settings of the virtual machine will not affect this.
参考链接
How to mount Virtualbox drive image(vdi) on Ubuntu 16.10/20.04
This tutorial will explain How to mount Virtualbox drive image(.vdi) on Ubuntu 16.10.First we need to install QEMU tools using the following command
sudo apt-get install qemu-kvm
Now we need to load the network block device (nbd) module using the following command
sudo modprobe nbd
run qemu-nbd, which is a user space loopback block device server for QEMU-supported disk images.
qemu-nbd -c /dev/nbd0 [vdi-file]
Note:- vdi-file :- Your vdi file location for example /home/test/ubuntu.vdi
Example
qemu-nbd -c /dev/nbd0 /home/test/ubuntu.vdi
You can check the partitions in the image using the following command
sudo fdisk -l /dev/nbd0
The above command will check the entire image as a block device named /dev/nbd0, and the partitions within it as subdevices. For example, the first partition in the image will appear as /dev/nbd0p1.
If you want to mount the first partition use the following command
sudo mount /dev/nbd0p1 /mnt
Now you can check all the contents of /mnt partition and copy all the required files.
After completing your work you can unmount the partition using the following command
sudo umount /mnt
Shutdown nbd services using the following command
sudo qemu-nbd -d /dev/nbd0
参考链接
VirtualBox 6.0中Windows XP系统配置virtio驱动
VirtualBox 6.0 下已经支持 准虚拟化网络(virtio-net) 驱动,这个可以提供更高的网络性能。
继续阅读VirtualBox 6.0中Windows XP系统配置virtio驱动
在VirtualBox 5.2.22上安装Mac OS X Leopard(10.5)
继续阅读在VirtualBox 5.2.22上安装Mac OS X Leopard(10.5)
在VirtualBox 5.2.22上安装Mac OS X Snow Leopard(10.6.3)
在VirtualBox 5.2.22上安装Mac OS X Snow Leopard(10.6.3),具体步骤,依照下列的步骤操作即可。
以下步骤适用于 Mac OS X Lion(10.7)/Mac OS X Mountain Lion(10.8)。
继续阅读在VirtualBox 5.2.22上安装Mac OS X Snow Leopard(10.6.3)
解决VirtualBox无法共享粘贴板的问题(Debian)
一直使用VirtualBox安装的Debian环境编译WD MyCloud的代码。但是最近VirtualBox升级后,升级增强功能,然后共享粘贴板就不能使用了。
如果执行
|
1 |
$ VBoxClient --clipboard |
可看到错误信息:
|
1 |
VBoxClient: Failed to connect to the VirtualBox kernel service, rc=VERR_FILE_NOT_FOUND |
继续阅读解决VirtualBox无法共享粘贴板的问题(Debian)
解决VirtualBox升级到5.2.6后无法启动之前版本关闭的处于休眠状态的芯片组为ICH9的虚拟机报告错误"VERR_SSM_LOAD_CONFIG_MISMATCH"
VirtualBox升级到5.2.6以及之后的版本,无法启动之前版本关闭的处于休眠状态的芯片组为ICH9的虚拟机。
报错信息如下:
|
1 2 3 4 5 6 7 |
不能为虚拟电脑 Debian 打开一个新任务. ich9pci#0: Device in slot 0xc0 has been removed! vendor=0x8086 device=0x2448 [ver=2 pass=final] (VERR_SSM_LOAD_CONFIG_MISMATCH). 返回 代码: NS_ERROR_FAILURE (0x80004005) 组件: ConsoleWrap 界面: IConsole {872da645-4a9b-1727-bee2-5585105b9eed} |
继续阅读解决VirtualBox升级到5.2.6后无法启动之前版本关闭的处于休眠状态的芯片组为ICH9的虚拟机报告错误"VERR_SSM_LOAD_CONFIG_MISMATCH"