bdydrp Posted November 4, 2021 Share Posted November 4, 2021 I've set up a cache pool and combined them to make as 1 large drive (2x3TB) I/m trying to understand why unriaid is telling me me cache is almost full ~320GB free, yet Win10 VM shows as ~657GB Free. When allocating disk in Win 10 disk management, i set the size just under 6TB. But i have also noticed, that unraid VM allocation is only showing 5TB, i know when i created the vdisk, i set its szize to 6TB. Any care to explain, so i can understand whats happening Cheers tower-diagnostics-20211104-2235.zip Quote Link to comment
JorgeB Posted November 4, 2021 Share Posted November 4, 2021 Try this: https://forums.unraid.net/topic/51703-vm-faq/?do=findComment&comment=557606 1 Quote Link to comment
bdydrp Posted November 4, 2021 Author Share Posted November 4, 2021 Thanks - I will give that a try Thanks Quote Link to comment
bdydrp Posted November 5, 2021 Author Share Posted November 5, 2021 11 hours ago, JorgeB said: Try this: https://forums.unraid.net/topic/51703-vm-faq/?do=findComment&comment=557606 I have changed bus to scsi, but when trying to install the drivers within windows, it fails. Cant find drivers Quote Link to comment
JorgeB Posted November 5, 2021 Share Posted November 5, 2021 7 hours ago, bdydrp said: I have changed bus to scsi No idea but like mentioned at the top (underlined) you now shouldn't need to change the bus, just add discard=unmap. Quote Link to comment
bdydrp Posted November 5, 2021 Author Share Posted November 5, 2021 Sorry, should read better!! I have added the option and now running a disk defrag and optimize I note, it doesnt have the disk listed as "Thin provisioned drive", but will wait until defrag is finished Thanks again Quote Link to comment
bdydrp Posted November 8, 2021 Author Share Posted November 8, 2021 I have run a disk defrag, WIndows doesnt show the vdisk as "Thin provisioned" - Should it? Also, unraid is still showing that im at 280GB free, when windows disk is showing at 740GB free And ive noticed that windows vm is running much slower now, with unraid cpu running bit higher Quote Link to comment
JorgeB Posted November 8, 2021 Share Posted November 8, 2021 3 minutes ago, bdydrp said: WIndows doesnt show the vdisk as "Thin provisioned" - Should it? It does for me using the virtio-scsi driver, try with that one, driver is inside the amd64 folder. Quote Link to comment
bdydrp Posted November 8, 2021 Author Share Posted November 8, 2021 If i change disk to SCSI - It wont find the driver Leaving as sata, Right Clicking on the driver and installing indicates driver installed, but does not change to thin provisioned. I have added the "discard=unmap option" to the xml Quote Link to comment
JorgeB Posted November 8, 2021 Share Posted November 8, 2021 34 minutes ago, bdydrp said: If i change disk to SCSI - It wont find the driver No one before complained of the same, and I just tried on a new VM using the newest VirtIO driver ISO and still works, so you must be doing something wrong: Double check the procedure Quote Link to comment
bdydrp Posted November 8, 2021 Author Share Posted November 8, 2021 hmmmmm - i still get sam error Perhaps, ill remove the vm and start form scratch Quote Link to comment
bdydrp Posted November 9, 2021 Author Share Posted November 9, 2021 OK - Removed VM and started form scratch. Here is my XML ```<?xml version='1.0' encoding='UTF-8'?> <domain type='kvm' id='10'> <name>Windows 10</name> <uuid>3478ddfa-c348-a835-863f-073d6505593b</uuid> <description>BlueIris CCTV</description> <metadata> <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/> </metadata> <memory unit='KiB'>2621440</memory> <currentMemory unit='KiB'>2621440</currentMemory> <memoryBacking> <nosharepages/> </memoryBacking> <vcpu placement='static'>4</vcpu> <cputune> <vcpupin vcpu='0' cpuset='4'/> <vcpupin vcpu='1' cpuset='10'/> <vcpupin vcpu='2' cpuset='5'/> <vcpupin vcpu='3' cpuset='11'/> </cputune> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-5.1'>hvm</type> </os> <features> <acpi/> <apic/> <hyperv> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> <vendor_id state='on' value='none'/> </hyperv> </features> <cpu mode='host-passthrough' check='none' migratable='on'> <topology sockets='1' dies='1' cores='2' threads='2'/> <cache mode='passthrough'/> </cpu> <clock offset='localtime'> <timer name='hypervclock' present='yes'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/local/sbin/qemu</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source file='/mnt/cache/domains/Windows 10/vdisk1.img' index='4'/> <backingStore/> <target dev='hdc' bus='virtio'/> <boot order='1'/> <alias name='virtio-disk2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </disk> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='writeback' discard='unmap'/> <source file='/mnt/cctv/Windows 10/vdisk2.img' index='3'/> <backingStore/> <target dev='hdd' bus='scsi'/> <alias name='scsi0-0-3'/> <address type='drive' controller='0' bus='0' target='0' unit='3'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/cache/isos/Windows 10 Pro x64 en-US Activated.iso' index='2'/> <backingStore/> <target dev='hda' bus='ide'/> <readonly/> <boot order='2'/> <alias name='ide0-0-0'/> <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/cache/isos/virtio-win-0.1.208.iso' index='1'/> <backingStore/> <target dev='hdb' bus='ide'/> <readonly/> <alias name='ide0-0-1'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <controller type='usb' index='0' model='ich9-ehci1'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <alias name='usb'/> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/> </controller> <controller type='usb' index='0' model='ich9-uhci2'> <alias name='usb'/> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <alias name='usb'/> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci.0'/> </controller> <controller type='ide' index='0'> <alias name='ide'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <controller type='sata' index='0'> <alias name='sata0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> <controller type='virtio-serial' index='0'> <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </controller> <controller type='scsi' index='0' model='lsilogic'> <alias name='scsi0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> </controller> <interface type='bridge'> <mac address='52:54:00:dc:4d:93'/> <source bridge='br0.10'/> <target dev='vnet0'/> <model type='virtio-net'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/0'/> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/0'> <source path='/dev/pts/0'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-10-Windows 10/org.qemu.guest_agent.0'/> <target type='virtio' name='org.qemu.guest_agent.0' state='connected'/> <alias name='channel0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <alias name='input0'/> <address type='usb' bus='0' port='1'/> </input> <input type='mouse' bus='ps2'> <alias name='input1'/> </input> <input type='keyboard' bus='ps2'> <alias name='input2'/> </input> <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0' keymap='en-us'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </memballoon> </devices> <seclabel type='dynamic' model='dac' relabel='yes'> <label>+0:+100</label> <imagelabel>+0:+100</imagelabel> </seclabel> </domain> Windows still cant find driver! So now, not really sure what im doing wrong!! Quote Link to comment
JorgeB Posted November 9, 2021 Share Posted November 9, 2021 Sorry, no idea why it's not working for you. Quote Link to comment
bdydrp Posted November 10, 2021 Author Share Posted November 10, 2021 No worries! - Thanks for trying. Because the disk in not "thin provisioned", is this why unraid shows different disk usage to the VM? Quote Link to comment
bdydrp Posted January 25, 2022 Author Share Posted January 25, 2022 ok - going to have to revive my thread as now the drive almost full acording to unraid - still have ~945gb free in windows I have tried the scsi option again but cant install driver from within device manager I have added the 'unmap' option within the xml <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='writeback' discard='unmap'/> <source file='/mnt/cctv/Windows 10/vdisk2.img' index='3'/> NOt sure where else/what else to do here now? Would changing from Raw to qcow2 be of any use? if so, how do i go about this Cheers all Quote Link to comment
JorgeB Posted January 25, 2022 Share Posted January 25, 2022 1 hour ago, bdydrp said: Would changing from Raw to qcow2 be of any use? Don't think so as it works with RAW, and apparently it works for everybody except you, so no idea what the problem could be. Quote Link to comment
bdydrp Posted January 27, 2022 Author Share Posted January 27, 2022 (edited) Thanks Well, im well and truly stumped aswell!!! Just for my sanity. /CCTV is a 2 disk cache pool when passing this through to the VM, the only way is to specify /mnt/cctv in the 2nd vdisk slot in the template, which will automatically create vdisk2.img? Edited January 27, 2022 by bdydrp Quote Link to comment
Recommended Posts
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.