We help IT Professionals succeed at work.

Ubuntu 11.10 on HyperV 2008 R2

Good Afternoon,

I am having a problem installing Ubuntu Server on HyperV.  When ever I try to make a disk larger then 136.9GB, it shows as 136.9GB.  I cannot get larger then that.  I have tried gparted to extend the disk after the fact, but then it wont boot anymore (errors in dmesg say that the disk is too large, truncating)

I was trying to get to 200GB, and the only way I could was to take two 100GB partitions and LVM them together...

Any ideas?  This post seems to be directly related: http://ubuntuforums.org/showthread.php?t=1873902
Comment
Watch Question

Most Valuable Expert 2015
Commented:
I don't think Hyper-V supports Ubuntu or debian based OS's, but rather only SUSE and Redhat based Linux distro's. For those there are integration services you can install, which are driver modules for the virtual environment. Possibly if you can get the integration services installed under Ubuntu you mzght be able to get it to run properly. The Link below may help in getting them installed:

http://fawzi.wordpress.com/2010/05/03/ubuntu-server-10-4-in-hyper-v/

Commented:
Why is the LVM solution not good?
Commented:
I ended up having to insmod the following modules during install before the disk detection

hv_vmbus
hv_utils
hv_blkvsc
hv_netvsc
hv_storvsc

then i had to select the right disk (two were shown, one was the right size, the other 136.9gb)

then at the end of install, i have to chroot to /target

add the modules to /etc/initramfs-tools/modules

hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc

and ran "update-initramfs –u" and rebooted

works great!

Author

Commented:
I determined the method to fix myself, and am sharing it with the community