[vfio-users] setting up virtual disks
Laszlo Ersek
lersek at redhat.com
Tue Mar 28 09:47:53 UTC 2017
On 03/28/17 02:04, Alex Williamson wrote:
> On Mon, Mar 27, 2017 at 5:46 PM, Stibnite <stibnite at protonmail.com> wrote:
>
>>
>> I'm trying to setup a disk passthrough on virt-manager using the guide
>> outlined but the disk device does not appear in the windows installation
>> window. I'm sure i'm missing something obvious but i can't seem to get it
>> working. https://access.redhat.com/documentation/en-US/Red_Hat_
>> Enterprise_Linux/6/html/Virtualization_Administration_
>> Guide/sect-Virtualization-Adding_storage_devices_to_
>> guests-Adding_hard_drives_and_other_block_devices_to_a_guest.html
>>
>> here's an excerpt of my xml file.
>>
>> <devices>
>> <emulator>/usr/sbin/qemu-system-x86_64</emulator>
>> <disk type='file' device='disk'>
>> <driver name='qemu' type='raw'/>
>> <source file='/mnt/australia/Downloads/ISO/win10-2.qcow2'/>
>> <target dev='hda' bus='ide'/>
>> <boot order='3'/>
>> <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>> </disk>
>> <disk type='file' device='cdrom'>
>> <driver name='qemu' type='raw'/>
>> <source file='/mnt/australia/Downloads/ISO/en-gb_windows_
>> 10_enterprise_x64_dvd_6851157.iso'/>
>> <target dev='hdb' bus='ide'/>
>> <readonly/>
>> <boot order='1'/>
>> <address type='drive' controller='0' bus='0' target='0' unit='1'/>
>> </disk>
>> <disk type='block' device='disk'>
>> <driver name='qemu' type='raw' cache='none'/>
>> <source dev='/dev/sdc1'/>
>> <target dev='hdf' bus='virtio'/>
>> <boot order='2'/>
>> <address type='pci' domain='0x0000' bus='0x00' slot='0x08'
>> function='0x0'/>
>> </disk>
>>
>
>
> Windows doesn't ship with virtio drivers, just like it doesn't ship with
> drivers for various other one-off storage controllers. You'll need to
> install drivers for the disk on the virtio controller to show up
> https://fedoraproject.org/wiki/Windows_Virtio_Drivers
I recommend the following setup:
- hard disk(s): virtio-blk or virtio-scsi disk, as you prefer
- Windows installer ISO: virtio-scsi CD-ROM
- virtio-win driver ISO: *separate* IDE CD-ROM (or SATA, if you use Q35)
Windows installation will proceed off of the virtio-scsi CD-ROM far
enough for you to select the *other* (IDE or SATA) CD-ROM, with the
virtio-win drivers, for loading drivers into the installer.
After which point the Windows installer will see both the destination
hard disk, and the installer CD-ROM (again).
Search the Wiki article referenced by Alex for the string
virtio-win iso
under "Direct download". The ISO image linked there is what you need for
the above method.
Thanks
Laszlo
More information about the vfio-users
mailing list