Jump to content

How to use unassigned devices-drive as primary vdisk in Windows VM


deebeo

Recommended Posts

Hi Everyone, 

 

I would like to use the Win11 Installation on my PC in two ways

1. Boot directly to Windows 

2. Boot to unraid and start same Windows in a VM

 

In order to realise 2. I need some kind of way to use the Windows HD as a primary Vdisk in the VM configuration.

 

I already read that the disk needs to be mounted, which it is. Do I need to put the device or only the partition into the vdisk definition? What kind of Vdisk Bus do I have to use? 

 

Right now im getting the error message

 

Cannot access storage file '/mnt/disks/50026B7684AE8FDD-part3': No such file or directory

 

Im guessing "disk type='file'" my be wrong?

 

Any Help would be greatly appreciated.

 

Here is the VM config I tried last: 

  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/disks/50026B7684AE8FDD-part3/'/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>

Here ist the definition of my drive:

723343098_2022-10-2708_24_09-unraid_Main.thumb.png.caa98948392a5a8d67acd29e16dc97a8.png

Edited by deebeo
Link to comment

this seems to do the trick: 

  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source dev='/dev/nvme1n1' index='2'/>
      <backingStore/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <alias name='sata0-0-2'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>

 unfortunately windows is all going crazy with security problems and is also missing internet. Probably due to missing virtio drivers. will try do install them during normal boot,

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...