January 7, 201511 yr Good morning. I have a windows 8.1 VM up and running using the VM manager. The only thing I have really done so far is installed the virtual drivers for my Ethernet port. I would like to assign a large hard drive to the newly created VM but do not know how to accomplish this. I can get it mounted in Unraid using my go file but to have it used by the VM I do not even know where to begin. Any help is appreciated. If you need more information before an answer can be had please let me know.
January 7, 201511 yr Good morning. I have a windows 8.1 VM up and running using the VM manager. The only thing I have really done so far is installed the virtual drivers for my Ethernet port. I would like to assign a large hard drive to the newly created VM but do not know how to accomplish this. I can get it mounted in Unraid using my go file but to have it used by the VM I do not even know where to begin. Any help is appreciated. If you need more information before an answer can be had please let me know. You don't want it mounted in unRAID. You can find the disk id on the main unRAID page under unassigned devices minus ata or in /dev/disk/by-id. I mount the whole disk instead of the partition. Then format and partition in the operating system. You'll what to add something like this to your xml. <disk type='block' device='disk'> <driver name='qemu' type='raw'/> <source dev='/dev/disk/by-id/ata-ST9500420AS_5VJAPHXS'/> <target dev='vdb' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </disk>
January 7, 201511 yr Author Thank you for the quick answer, I will attempt this when I get home today! Besides the (<source dev='/dev/disk/by-id/ata-ST9500420AS_5VJAPHXS'/>) is there anything else that might need modified such as the address type, etc. I am very new to KVM and VM in general if that is not obvious. I'm trying to learn as we go. Is there a post I can reference that would have me understand what each item is in the xml? It might help limit my questions going forward
January 7, 201511 yr Thank you for the quick answer, I will attempt this when I get home today! Besides the (<source dev='/dev/disk/by-id/ata-ST9500420AS_5VJAPHXS'/>) is there anything else that might need modified such as the address type, etc. I am very new to KVM and VM in general if that is not obvious. I'm trying to learn as we go. Is there a post I can reference that would have me understand what each item is in the xml? It might help limit my questions going forward Yes address may need to be modified. Try this link https://libvirt.org/formatdomain.html
January 8, 201511 yr Author Thanks, that worked beautifully. I changed <target dev='vdb' bus='virtio'/> to read <target dev='hdb' bus='virtio'/> as that matched what I had for the other drive already installed. Is this acceptable?
January 9, 201511 yr Thanks, that worked beautifully. I changed <target dev='vdb' bus='virtio'/> to read <target dev='hdb' bus='virtio'/> as that matched what I had for the other drive already installed. Is this acceptable? It doesn't matter as long as it's unique. It still may be vdb inside the vm if you changed it after you already started the vm.
Archived
This topic is now archived and is closed to further replies.