无意中在官网发现这个可以把树莓派的操作系统安装到虚拟机,这是个能安装在PC上的树莓派系统。估计是官方想推广树莓派,先把树莓派系统推出让大家可以在PC上体验(瞎猜的)。不管出于什么原因,本着折腾的想法,装一个试试呗。
![](http://upload-images.jianshu.io/upload_images/1338443-f5ab162411bd98d5.png?imageMogr2/auto-orient/strip|imageView2/2/w/638/format/webp)
安装环境
操作系统:Windows 10
虚拟机:VMware 11.1.0
安装步骤
1、下载Raspbian pi Desktop镜像
下载地址:https://www.raspberrypi.org/downloads/
![](http://upload-images.jianshu.io/upload_images/1338443-8180b2058fcc8a55.png?imageMogr2/auto-orient/strip|imageView2/2/w/678/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-82811ea6de6e730b.png?imageMogr2/auto-orient/strip|imageView2/2/w/819/format/webp)
建议选择Torrent的方式下载,因为官方的资源下载起来很慢。下载到的是一个iso文件,我们可以直接拿这个iso文件放入虚拟机安装。
2、新建虚拟机
打开虚拟机,点击菜单:文件--->新建虚拟机
![](http://upload-images.jianshu.io/upload_images/1338443-24cc68b4a1ec4111.png?imageMogr2/auto-orient/strip|imageView2/2/w/1020/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-8c7157c1a19ec08b.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-522c990d34feffb8.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
浏览选择刚才下载的镜像,点下一步。
![](http://upload-images.jianshu.io/upload_images/1338443-e780ba45b3db37be.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
我们下载的系统是基于32位 debian 8的,但是我在下面版本找不到debian 8的选项,先选个7.x试试(测试下Debian 5也是可以的)。
![](http://upload-images.jianshu.io/upload_images/1338443-16d08165b9e77151.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
名称随意,保存位置随意,但是保证所在磁盘有足够的空间,最好超过8G的空闲空间。
![](http://upload-images.jianshu.io/upload_images/1338443-e962b55876694d3d.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
处理器数量跟核心数量影响不大,毕竟树莓派系统对硬件要求并不高。
![](http://upload-images.jianshu.io/upload_images/1338443-433fa5a54e6b3b3c.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
内存512MB或1024MB,树莓派3就是1024MB。
![](http://upload-images.jianshu.io/upload_images/1338443-f02151d2b231cc00.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
网络连接随意,都能上网。
![](http://upload-images.jianshu.io/upload_images/1338443-2786aec36916a33a.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-56235888da3c77b2.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-b44fcb030885f649.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-2a9e19a43029238e.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-2bb51dac3ca936ce.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
将虚拟磁盘文件存储在虚拟机文件同个目录下。
![](http://upload-images.jianshu.io/upload_images/1338443-a2ae63d9a415cc1b.png?imageMogr2/auto-orient/strip|imageView2/2/w/503/format/webp)
3、在虚拟机中安装系统
![](http://upload-images.jianshu.io/upload_images/1338443-4ee8564466d8b71f.png?imageMogr2/auto-orient/strip|imageView2/2/w/837/format/webp)
确保CD/DVD载入了刚才下载的镜像。如果没有载入则点击编辑虚拟机设置。
![](http://upload-images.jianshu.io/upload_images/1338443-385d786052740e8d.png?imageMogr2/auto-orient/strip|imageView2/2/w/735/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-ba38bcf223f41b3d.png?imageMogr2/auto-orient/strip|imageView2/2/w/837/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-182100d7ab422877.png?imageMogr2/auto-orient/strip|imageView2/2/w/940/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-a8ff13f12bd25823.png?imageMogr2/auto-orient/strip|imageView2/2/w/817/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-5fc02b897d96d892.png?imageMogr2/auto-orient/strip|imageView2/2/w/812/format/webp)
这里开始是设置磁盘分区,选择使用整个磁盘。
![](http://upload-images.jianshu.io/upload_images/1338443-93b1cf57dc640fff.png?imageMogr2/auto-orient/strip|imageView2/2/w/794/format/webp)
选择刚才创建的虚拟硬盘。
![](http://upload-images.jianshu.io/upload_images/1338443-7c55e0945f57f064.png?imageMogr2/auto-orient/strip|imageView2/2/w/800/format/webp)
按推荐的方式,所有文件存放在一个分区。
![](http://upload-images.jianshu.io/upload_images/1338443-2ba9476434990555.png?imageMogr2/auto-orient/strip|imageView2/2/w/802/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-c1497aabe5829677.png?imageMogr2/auto-orient/strip|imageView2/2/w/801/format/webp)
完成分区设置并将改变写入磁盘。至此,磁盘分区完成。接下来就是稍微长一点的安装过程,只有等。
![](http://upload-images.jianshu.io/upload_images/1338443-99c3741df50499dd.png?imageMogr2/auto-orient/strip|imageView2/2/w/795/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-f6fd753054c9be24.png?imageMogr2/auto-orient/strip|imageView2/2/w/800/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-f87276d5c1ec16d3.png?imageMogr2/auto-orient/strip|imageView2/2/w/803/format/webp)
提示说请确保移除安装光盘。点continue继续,等待重启就完成了整个安装过程。
![](http://upload-images.jianshu.io/upload_images/1338443-818c5c2a6506c465.png?imageMogr2/auto-orient/strip|imageView2/2/w/639/format/webp)
重启后选择Debian GNU/Linux进入系统
![](http://upload-images.jianshu.io/upload_images/1338443-ff72ed9c839abcc5.png?imageMogr2/auto-orient/strip|imageView2/2/w/797/format/webp)
![](http://upload-images.jianshu.io/upload_images/1338443-03cebdf7a9bda944.png?imageMogr2/auto-orient/strip|imageView2/2/w/801/format/webp)
正常进入桌面。
![](http://upload-images.jianshu.io/upload_images/1338443-42fa7d955b117d4c.png?imageMogr2/auto-orient/strip|imageView2/2/w/799/format/webp)
网络也是正常的。以后做一些测试也不一定非得登录到树莓派上,虚拟机也可以胜任并且运行速度更快。
出处:https://www.jianshu.com/p/1a65cb0b8f58
VMware虚拟机安装树莓派桌面系统Raspberry Pi Desktop (for PC and Mac)
01、下载Raspberry Pi Desktop (for PC and Mac) https://www.raspberrypi.org/downloads/raspberry-pi-desktop/
02、install
03、Configure the keyboard : Chinese
04、Partition disks : Guided - use entire disk
05、Partition disks : SCSI ……
06、Partition disks : All files in one partition(recommended for new users)
07、Partition disks : Finish partitioning and write changes to disk
08、Partition disks : Yes
09、Install the GRUB boot loader on a hard disk : Yes
10、Install the GRUB boot loader on a hard disk : /dev/sda
11、Finish the installation : Continue
12、GNU GRUB : Debian GNU/LINUX
13、Welcome to Raspberry Pi : Next
14、Set Country : Country-China | Language-Chinese | Timezone-Shanghai
15、Change Password : ******
16、Set Up Screen : next (不做选择)
17、Update Software : Skip(如果选择Next则可能会报错)
18、Setup Complete : Done
01、下载Raspberry Pi Desktop (for PC and Mac) https://www.raspberrypi.org/downloads/raspberry-pi-desktop/
02、install
03、Configure the keyboard : Chinese
04、Partition disks : Guided - use entire disk
05、Partition disks : SCSI ……
06、Partition disks : All files in one partition(recommended for new users)
07、Partition disks : Finish partitioning and write changes to disk
08、Partition disks : Yes
09、Install the GRUB boot loader on a hard disk : Yes
10、Install the GRUB boot loader on a hard disk : /dev/sda
11、Finish the installation : Continue
12、GNU GRUB : Debian GNU/LINUX
13、Welcome to Raspberry Pi : Next
14、Set Country : Country-China | Language-Chinese | Timezone-Shanghai
15、Change Password : ******
16、Set Up Screen : next (不做选择)
17、Update Software : Skip(如果选择Next则可能会报错)
18、Setup Complete : Done
出处:https://www.cnblogs.com/dukejunior/articles/11294698.html