I suggest 2 changes,
1- name of storage in parameters of your script
2- In block storage, probably /dev/ + namestorage + diskname is fine.. I'm novice in proxmox, in my case work: /dev/zfs-sas/vm-101-disk-0
zfs-sas is name of my storage and vm-101-disk-0 is name of disk (your script already...
Works fine here! Thanks Alessandro.
I only need to change 2 lines in your script:
local-zfs on line 49 to my zfs storage name
path of my zfs folder in line 57, in my case now is: BLOCK_DEVICE="/dev/zvol/zfs-sas/${DISK_NAME}"
Thanks for help!
update:
I found 2 paths of the disk file, I will try to change the BLOCK_DEVICE path for these:
root@pve-bh:/# find -name vm-150-disk-0
./dev/zvol/zfs-sas/vm-150-disk-0
./dev/zfs-sas/vm-150-disk-0
I will send news soon...
Alessandro, your script is awesome!
I have one stranger error, and not found the reason...
about the arguments --uuid --host your script dont need it, but need receive data in correct order...
When I used your script I do one change:
qm set ${VM_ID} -virtio${CNT}...
Hi,
When I run this command to write virtual disk, return a lot of erros and never finish... the disk is full before command is completed. Size of disk in XCP is 100GB but when disk of proxmox is full the Ref file generated has 1TB of size, do you already see this errors on script?
xpr...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.