{"id":7935,"date":"2015-05-03T14:46:36","date_gmt":"2015-05-03T14:46:36","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/setting-up-windows-10-iot-core-on-raspberry-pi-from-a-vm\/"},"modified":"2017-09-21T12:52:40","modified_gmt":"2017-09-21T12:52:40","slug":"setting-up-windows-10-iot-core-on-raspberry-pi-from-a-vm","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/setting-up-windows-10-iot-core-on-raspberry-pi-from-a-vm\/","title":{"rendered":"Setting up Windows 10 IoT Core on Raspberry Pi from a VM"},"content":{"rendered":"<p>Following Build last week, I wanted to try running Universal Apps on a Raspberry Pi 2, but the setup instructions mention having to provision the SD card from a physical Windows 10 machine. It must be physical because the OS needs raw access to the SD card, and only Windows 10 is able to flash the card. Not having a spare machine to put Windows 10 on, I thought I was going to have to wait.<\/p>\n<p>Despite what the instructions say though, it is possible to create the SD card from a VM; it&#8217;s just a bit more fiddly. Here&#8217;s what worked for me on a laptop with an integrated SD card reader running Windows 8.1, with a Windows 10 VM running inside VMWare.<\/p>\n<p>First put the micro SD card into the host machine, then go to Computer Management -&gt; Disk Management. You need to un-mount the card, so right click that SD card drive, select &#8220;Change Drive Letters and Paths&#8221;, then remove any drive letters registered to it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6525\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2015\/05\/unmount-sd-card.png\" alt=\"unmount-sd-card.png\" width=\"640\" height=\"469\" \/><\/p>\n<p>Next, open a command prompt on the host machine, and type &#8220;wmic diskdrive list brief&#8221; to list the installed drives, and remember the DeviceID for the SD card.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6524\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2015\/05\/host-machine-disks.png\" alt=\"host-machine-disks.png\" width=\"640\" height=\"167\" \/><\/p>\n<p>In VMWare, power off the Windows 10 VM (which has to be build &gt; 10069 by the way), then in VMWare settings for that machine, add a new hard disk. I chose SCSI and unselected &#8220;Independent Mode&#8221;. Select &#8220;Use a Physical Disk&#8221; and choose the device with the DeviceID that you just noted down. Be super careful to get the right one, or you&#8217;ll be giving direct access to a different drive, which will very likely get screwed up. Choose &#8220;Use entire disk&#8221;, and at the next screen let VMWare use whatever file name you like. Select &#8220;Finish&#8221;, then click &#8220;OK&#8221; to complete adding the SD card. Now power on the VM, which should have access to the card (you can ignore its warning about poor performance booting from SCSI disks).<\/p>\n<p>In the VM, open a command prompt and run diskpart, then type &#8220;list disk&#8221; to get the drive number.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6523\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2015\/05\/guest-machine-disks.png\" alt=\"guest-machine-disks.png\" width=\"640\" height=\"447\" \/><\/p>\n<p>At this point you can go back to following the instructions at http:\/\/ms-iot.github.io\/content\/win10\/SetupPC.htm from step 7.<\/p>\n<p>Now. Time to make something fun :-).<\/p>\n<p>[General warning: this information might become out of date fairly quickly &#8211; in particular, hopefully at some point Microsoft will just release an ISO which you can write straight to an SD card from any OS]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following Build last week, I wanted to try running Universal Apps on a Raspberry Pi 2, but the setup instructions mention having to provision the SD card from a physical Windows 10 machine. It must be physical because the OS needs raw access to the SD card, and only Windows 10 is able to flash&#8230;&hellip;<\/p>\n","protected":false},"author":19615,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[48331],"class_list":["post-7935","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/19615"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=7935"}],"version-history":[{"count":17,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7935\/revisions"}],"predecessor-version":[{"id":72849,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7935\/revisions\/72849"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=7935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=7935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=7935"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=7935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}