Jump to content

kvm "windows guest" cannot extend volume within windows vm


luca2

Recommended Posts

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

Link to comment

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.

Link to comment

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).

Link to comment

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?

Link to comment

Archived

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

×
×
  • Create New...