title: QEMU Virtual Machine: Creating a shared folder between Windows 10 (host) and Solaris 2.7 (guest)
body: <p>I was wondering if anyone could give me wisdom on how to create a shared folder between my host machine (running Windows 10) and the virtual machine I created in qemu which is running Solaris 2.7. I need a way to get files in and out of the VM.</p>
  
  <p>I've managed to "plug in" a folder as a virtual drive into the VM, using </p>
  
  <pre><code>-drive file=fat:rw:[folder],bus=0,unit=1,if=scsi,format=raw,media=disk 
  </code></pre>
  
  <p>in the VM invocation. Solaris sees this as a disk, but I'm unsure where to go from here. I can't seem to format it because I don't know the "disk" geometry (apparently Solaris was very particular about this). I tried mounting the unformatted drive in Solaris but it wasn't able to do that either. I even tried giving it an entry in /etc/vfstab to see if I could get it to automount, but that didn't work either.</p>
  
  <p>Is there a different way I should be mounting it? Or is there a trick to getting Solaris to use this virtual drive? I'm also open to other alternatives people are aware of for transferring files in/out of my VM, but since Solaris 2.7 is a rather old operating system, things like networking (for example) aren't trivial to set up (and even basic things like ssh are missing).</p>
  
  <p>Any help would be appreciated!</p>