notes virtualbox User Manual

本文档是VirtualBox用户手册的一部分,涵盖了从安装VirtualBox和扩展包,到创建和启动虚拟机的步骤。详细说明了如何解决启动问题,安装及维护Guest Additions,配置共享文件夹和实现拖放功能。特别指出,在Linux主机中,可以向Windows虚拟机拖放文件,但反向操作可能未被支持。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

google virtualbox manual
https://www.virtualbox.org/wiki/Documentation
https://www.virtualbox.org/manual/UserManual.html
http://download.virtualbox.org/virtualbox/UserManual.pdf
Version 5.1.14

host fedora 24
uname -a

Linux localhost.localdomain 4.5.5-300.fc24.x86_64 #1 SMP Thu May 19 13:05:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

guest windows 7 sp1

1. First steps

1.5. Installing VirtualBox and extension packs

wget http://download.virtualbox.org/virtualbox/5.1.14/VirtualBox-5.1-5.1.14_112924_fedora24-1.x86_64.rpm -P ~/Downloads/
sudo dnf install ~/Downloads/VirtualBox-5.1-5.1.14_112924_fedora24-1.x86_64.rpm 

rpm -qa|grep -i virtual

1.6. Starting VirtualBox

Win - vir

1.7. Creating your first virtual machine

virtual box manage - A-m - new

name and operating system

name:w7
type:microsoft windows
version:windows 7 64 bit

memory size 2048
hard disk create a virtual hard disk now
hard disk file type vdi virtualbox disk image
storage on physical hard disk dynamically allocated
file location and size 100g

A-m - settings - storage - optical drive 选择win7 iso

A-m - start - normal start

1.7. Creating your first virtual machine

1.8. Running your virtual machine

1.8.2. Capturing and releasing keyboard and mouse

virtual box - input - keyboard - keyboard settings

auto capture keyboard 取消选中

A-tab自由切换

sum troubleshooting

Failed to open a session for the virtual machine w7.

The virtual machine 'w7' has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}
virtualbox error in suplibosinit
kernel driver not installed rc=-1908

'/sbin/vboxconfig' as root

sudo /sbin/vboxconfig

vboxdrv.sh: Building VirtualBox kernel modules.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  yum install kernel-core-devel-4.5.5-300.fc24.x86_64
(The last command may fail if your system is not fully updated.)
  yum install kernel-core-devel
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  yum install kernel-core-devel-4.5.5-300.fc24.x86_64
(The last command may fail if your system is not fully updated.)
  yum install kernel-core-devel

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

sudo dnf install kernel-devel-4.5.5-300.fc24.x86_64
搞定,不用重启

4. Guest Additions

4.2. Installing and Maintaining Guest Additions

4.2.1. Guest Additions for Windows

virtualbox - devices - Insert Guest Additions CD image
计算机 - CD驱动器 - 双击
一路next,装完重启

4.3. Shared folders

virtual box - devices - shared folders - shared folders settings - add

folder path: /home/xxx
folder name: xxx
auto-mount: seleted

reboot guest

4.4. Drag and Drop

Clipboard

virtual box - devices - shared clipboard - bidirectional
双向复制

Drag and Drop

virtual box - devices - Drag and Drop - bidirectional

sum:
linux向windows可以拖动,反之不可

Drag and drop operation from guest to host failed.

Drag and drop error from guest (VERR_INVALID_PARAMETER).

Result Code: VBOX_E_IPRT_ERROR (0x80BB0005)
Component: GuestWrap
Interface: IGuest {13a11514-402e-022e-6180-c3944de3f9c8}

暂时未解决,未检验

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值