Jacko_ Posted June 2, 2021 Share Posted June 2, 2021 (edited) I'm struggling a little here and could do with some help please. I have ran out of space within a vdisk, and i am not able to change the vdisk size within the VM settings in the GUI as the option doesn't exist. I have tried to use the terminal to change it, using qemu-img resize /mnt/vms_nvme/domains/SH-GAME-W10-01/vdisk.img 60G (and many other paths) but not successful as it says the file or directory doesn't exist. The folder seems to exist, but i'm not sure if it's a directory mapping issue or something else as i can't navigate to the folder. I've tried to navigate to the folder where the VM is located and unable to do so. Can anyone show me how? Currently the VM will boot to windows but fails to load properly due to the disk being maxed. Thanks Edited June 2, 2021 by Jacko_ Quote Link to comment
ghost82 Posted June 2, 2021 Share Posted June 2, 2021 29 minutes ago, Jacko_ said: and i am not able to change the vdisk size within the VM Do it from the unraid terminal. First backup your image!! Then try with: qemu-img resize -f raw /path/to/image/vdisk.img +20G This will increase the size by 20 GB Quote Link to comment
Jacko_ Posted June 2, 2021 Author Share Posted June 2, 2021 I'm not sure i was being very clear. I can see the folders for my VMs in the below directory using terminal: If i try to access the folder i can't: Which is why i wondered if it's a drive mapping issue that i can't figure out? If i use krusader i can navigate to the folder and see the vdisk Quote Link to comment
JonathanM Posted June 2, 2021 Share Posted June 2, 2021 21 minutes ago, ghost82 said: This will increase the size by 20 GB It will not, however, add the space to the partition inside the image. For that, you will need to expand the partition. Easiest way I know of is to download gparted live or some other utility iso that can manipulate partitions, and set up a new VM with the utility iso set as the install medium, and the vdisk.img file you need to operate on as the primary disk. Quote Link to comment
JonathanM Posted June 2, 2021 Share Posted June 2, 2021 2 minutes ago, Jacko_ said: I can see the folders for my VMs in the below directory using terminal: If i try to access the folder i can't: You weren't trying to access the same folder, it's SH-GAME-W10-01 not sh-game-w10-01. Linux is case sensitive. Quote Link to comment
ghost82 Posted June 2, 2021 Share Posted June 2, 2021 (edited) 3 minutes ago, Jacko_ said: If i try to access the folder i can't: Case sensitive? We're not on windows Edit: seems already replied Edited June 2, 2021 by ghost82 Quote Link to comment
ghost82 Posted June 2, 2021 Share Posted June 2, 2021 4 minutes ago, jonathanm said: Easiest way I know of is to download gparted live I never tried, I'm sure gparted will work, but shouldn't be booting into windows and operate from disk utility to expand the partition an easier option? Quote Link to comment
JonathanM Posted June 2, 2021 Share Posted June 2, 2021 2 minutes ago, ghost82 said: I never tried, I'm sure gparted will work, but shouldn't be booting into windows and operate from disk utility to expand the partition an easier option? Yep. 1 hour ago, Jacko_ said: Currently the VM will boot to windows but fails to load properly due to the disk being maxed. 1 Quote Link to comment
Jacko_ Posted June 2, 2021 Author Share Posted June 2, 2021 6 hours ago, jonathanm said: You weren't trying to access the same folder, it's SH-GAME-W10-01 not sh-game-w10-01. Linux is case sensitive. I'm sure I tried case sensitive, but let me try again 🤦 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.