安装虚拟机及linux系统

来源:互联网 发布:vb可以开发什么程序 编辑:程序博客网 时间:2024/05/12 16:44

安装虚拟机及linux系统

1、 虚拟机上安装 ubuntu    

a. 参考资料:

http://www.cnblogs.com/thunvan/p/5791544.html 

http://www.linuxidc.com/Linux/2016-08/134580.htm

b. 重启电脑 -> 按"Enter"进入BIOS -> security -> virtualization technology [Enable] (启用) 

c. 安装 VirtualBox: VirtualBox-5.1.10-112026-Win.exe  

d. 安装 Ubuntu: ubuntu-16.04.1-desktop-amd64.iso & 安装完成

d1. 安装过程: 基本选择默认即可


2、虚拟机设置共享文件夹:

a. 参考资料: http://jingyan.baidu.com/article/2fb0ba40541a5900f2ec5f07.html

b. 在挂在共享文件夹时出现问题:

 # sudo mount -t vboxsf share /mnt/shareFolder/

/sbin/mount.vboxsf: mounting failed with the error: Protocol error

c. 问题的原因:windows主机系统没有重启,

解决方法:重启 windows主机系统

d. 假如您不想每一次都手动挂载,可以有如下两种方式来实现:

d1. 在 /etc/rc.local/ 文件中添加如下挂载命令:

sudo mount -t vboxsf share /mnt/shareFolder/

d2. 在 /etc/fstab 中添加一项  

share /mnt/shareFolder/ vboxsf rw,gid=1000,uid=1000,auto 0 0   

这样就能够自动挂载了。


0 0
原创粉丝点击