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.

kvm "windows guest" cannot extend volume within windows vm

Featured Replies

Hi,

I created a 30GB virtual qcow2 disk. The phisical disk is formatted as XFS. Later I resized my virtual disk to 60GB.

This is what I have now:

root@Tower:/mnt/vm/w8# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       7.5G  103M  7.4G   2% /boot
/dev/loop0      1.8M   92K  1.6M   6% /etc/libvirt
/dev/sdf1       112G   46G   67G  41% /mnt/vm

root@Tower:/mnt/vm/w8# df -T
Filesystem     Type 1K-blocks     Used Available Use% Mounted on
/dev/sda1      vfat   7800304   104468   7695836   2% /boot
/dev/loop0     ext4      1843       92      1541   6% /etc/libvirt
/dev/sdf1      xfs  117162564 47828660  69333904  41% /mnt/vm

root@Tower:/mnt/vm/w8# qemu-img info w8_gaming_00.qcow2
image: w8_gaming_00.qcow2
file format: qcow2
virtual size: 60G (64424509440 bytes)
disk size: 26G
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false

Inside my vm I see this in disk management (see attached pic).

I tried to extend the initial 30GB volume and windows tells me it is not possible. What other way can I try to extend the disk size to the total virtual size?

disks.png.0a30436557cdea6f93cc8d716a1cbcaa.png

Hi,

I created a 30GB virtual qcow2 disk. The phisical disk is formatted as XFS. Later I resized my virtual disk to 60GB.

This is what I have now:

root@Tower:/mnt/vm/w8# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       7.5G  103M  7.4G   2% /boot
/dev/loop0      1.8M   92K  1.6M   6% /etc/libvirt
/dev/sdf1       112G   46G   67G  41% /mnt/vm

root@Tower:/mnt/vm/w8# df -T
Filesystem     Type 1K-blocks     Used Available Use% Mounted on
/dev/sda1      vfat   7800304   104468   7695836   2% /boot
/dev/loop0     ext4      1843       92      1541   6% /etc/libvirt
/dev/sdf1      xfs  117162564 47828660  69333904  41% /mnt/vm

root@Tower:/mnt/vm/w8# qemu-img info w8_gaming_00.qcow2
image: w8_gaming_00.qcow2
file format: qcow2
virtual size: 60G (64424509440 bytes)
disk size: 26G
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false

Inside my vm I see this in disk management (see attached pic).

I tried to extend the initial 30GB volume and windows tells me it is not possible. What other way can I try to extend the disk size to the total virtual size?

I think you would have to boot from a windows setup DVD or even a linux live cd and use gparted.  Just something else that isn't using the drive as the main operating system drive.

Hi,

I created a 30GB virtual qcow2 disk. The phisical disk is formatted as XFS. Later I resized my virtual disk to 60GB.

This is what I have now:

root@Tower:/mnt/vm/w8# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       7.5G  103M  7.4G   2% /boot
/dev/loop0      1.8M   92K  1.6M   6% /etc/libvirt
/dev/sdf1       112G   46G   67G  41% /mnt/vm

root@Tower:/mnt/vm/w8# df -T
Filesystem     Type 1K-blocks     Used Available Use% Mounted on
/dev/sda1      vfat   7800304   104468   7695836   2% /boot
/dev/loop0     ext4      1843       92      1541   6% /etc/libvirt
/dev/sdf1      xfs  117162564 47828660  69333904  41% /mnt/vm

root@Tower:/mnt/vm/w8# qemu-img info w8_gaming_00.qcow2
image: w8_gaming_00.qcow2
file format: qcow2
virtual size: 60G (64424509440 bytes)
disk size: 26G
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false

Inside my vm I see this in disk management (see attached pic).

I tried to extend the initial 30GB volume and windows tells me it is not possible. What other way can I try to extend the disk size to the total virtual size?

I think you would have to boot from a windows setup DVD or even a linux live cd and use gparted.  Just something else that isn't using the drive as the main operating system drive.

 

Yes, you'll need to boot to Gparted or Windows PE (Setup).

Looks like you are running Windows 8? I have a Win 8.1 Pro and I was able to do this last week. I increased the qcow2 image by 20GB and increased the size of C: by that amount. In the windows management window, right click on the c: and chose extend. I got an initial warning that the active drive cannot be increased but went ahead with the process and in the end I saw my C: drive with increased +20GB. If you want some screenshots of any specific information let me know.

 

Hi,

I created a 30GB virtual qcow2 disk. The phisical disk is formatted as XFS. Later I resized my virtual disk to 60GB.

This is what I have now:

root@Tower:/mnt/vm/w8# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       7.5G  103M  7.4G   2% /boot
/dev/loop0      1.8M   92K  1.6M   6% /etc/libvirt
/dev/sdf1       112G   46G   67G  41% /mnt/vm

root@Tower:/mnt/vm/w8# df -T
Filesystem     Type 1K-blocks     Used Available Use% Mounted on
/dev/sda1      vfat   7800304   104468   7695836   2% /boot
/dev/loop0     ext4      1843       92      1541   6% /etc/libvirt
/dev/sdf1      xfs  117162564 47828660  69333904  41% /mnt/vm

root@Tower:/mnt/vm/w8# qemu-img info w8_gaming_00.qcow2
image: w8_gaming_00.qcow2
file format: qcow2
virtual size: 60G (64424509440 bytes)
disk size: 26G
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false

Inside my vm I see this in disk management (see attached pic).

I tried to extend the initial 30GB volume and windows tells me it is not possible. What other way can I try to extend the disk size to the total virtual size?

  • Author

I am running win 8.1. I got the same warning but did not go ahead. I will have a look at it today.

  • Author

I got an initial warning that the active drive cannot be increased but went ahead with the process and in the end I saw my C: drive with increased +20GB.

 

Excellent! You were right. As simple as this :)

Glad it worked for you as well :)

 

I got an initial warning that the active drive cannot be increased but went ahead with the process and in the end I saw my C: drive with increased +20GB.

 

Excellent! You were right. As simple as this :)

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.