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}
暂时未解决,未检验