Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] Increase disk size of Windows 7 VM in XEN/UNRAID 6b4

Featured Replies

not sure...if you read through the comments though, this may be your answer:

 

Amandine Says...

Hi Rui,

Do you use ext2/ext3/ext4 on your image disk? because resize2fs works only with those.

Do you have LVM on this image disk? If yes you have to resize the volume group and logical volume before resizing the actuel filesystem.

Did you cleanly stop your domU in the beginning? You can use e2fsck to try to make it clean.

Hope you backuped your img file in the beginning! ;)

 

Windows uses NTFS typically, so that might be a problem...

  • Author

I have not read the comments, thanks for pointing that out!

Out of curiosity though, I am going to try a few things with my test Windows VM.  I will post feedback shortly...

would you not use the windows disk/partition tools to expand the ntfs partition in the vm after the vm container is enlarged?

 

Myk

 

I attempted this command:

 

dd if=/dev/zero of=disk.img bs=1c seek=10G count=0

 

The .img of course changed to point to my windows 7 VM that I spun down.  After running this command and attempting to restart the image, I get a Windows boot error.

 

Probably just did something wrong.  No worries, it was a throwaway VM I can recreate on the fly.  Definitely want to solve this conundrum.

 

Alternatively, what if you created a new .img file using the trunc command and modified your xen .cfg file to mount another .img as "d:" and then use Window Disk Manager to join the volumes together?  That's my next thought / thing I will attempt.

  • Author

Thanks eshelon for your efforts.

 

What do you think about this command to increase the disk size by 10G and then using Windows disk management to re-size the partition?

 

truncate -s + 10G Windows.img

 

http://linux.die.net/man/1/truncate

Thanks eshelon for your efforts.

 

What do you think about this command to increase the disk size by 10G and then using Windows disk management to re-size the partition?

 

truncate -s + 10G Windows.img

 

http://linux.die.net/man/1/truncate

 

No problem.  Wish I could have messed around with this more today.  If you can give me until tomorrow night, i can test that for you, but that would be my next attempt as well, yes.  If that works, that's probably the easiest way to accomplish what you're looking to do...

I have increased the size of my Windows VM disk successfully, used this procedure:

 

Shutdown the VM

 

truncate -s40G /mnt/disk1/VM/winxp.img

 

where -s40G is the new total size for the disk

 

Then in Windows just use the disk manager to increase the disk size using the new free space

 

I have increased the size of my Windows VM disk successfully, used this procedure:

 

Shutdown the VM

 

truncate -s40G /mnt/disk1/VM/winxp.img

 

where -s40G is the new total size for the disk

 

Then in Windows just use the disk manager to increase the disk size using the new free space

 

Verified, this works.

 

-Marcus

  • Author

Thank you all.

 

I appreciate the help!

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.