Ubuntu внутри Hyper-V не видит больше 127Гб.

-=Devil_InSide=- devil_inside на mail.ru
Сб Дек 10 12:16:27 UTC 2011


1. в интернетах на тему гипер5 захлебнись всего
)


http://www.google.ru/search?sourceid=chrome&ie=UTF-8&q=hyper-v+137+Gb


http://social.technet.microsoft.com/Forums/zh/winserverhyperv/thread/2f110053-
a4bc-4c53-a945-b78481637f66

BrianEhCitrix Labs (Partner, MVP) 24,445

I side with Vincent that Clonezilla might be the root.

the VHD implementaiton has changed over time and clinezilla might not be up 
to date.  The origional implementation of VHD had a limit of 127GB (127 * 
1024 = 130048   this is close to the 136 GB).

Hyper-V uses an implementation of VHD that is different from the origional 
Virtual Server implementation of VHD.  I have noticed many products have not 
recognized the Hyper-V changes in the VHD implementation and therefore 
cannot properly use the newer VHDs.  The root is that they don't properly 
recognize the new geometry.

The detail is that the specification of VHD has not changed, but the 
implementation has.  I would try creating a VHD using Hyper-V v1, or another 
product all together.

BTW - if the VHD is of the old implementaiton Hyper-V will automatically 
update it.  So it does not affect Hyper-V.


Brian Ehlert 

Friday, December 24, 2010 12:55 AM

yaplej180
 
I just updated my gentoo kernel to 2.6.36 and am having the same problem now 
with it.  I found this little blurb that makes me wonder why the IDE 
interface does not seem to be using LBA48.

http://www.urtech.ca/index.php/2010/09/should-you-use-an-ide-or-scsi-vhd-in-
server-2008-hyper-v-virtual-machines/
http://www.serverphorums.com/read.php?12,79638

Does only Hyper-V R2 uses LBA48 and Hyper-V R1 use LBA32?  If they both use 
LBA48 then I dunno what the problem is.  My linux box seems to be using the 
correct IDE interface.
0000:00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 
01)

...........................
yaplej180
 

Well I was able to get the hv modules working with kernel 2.6.32.  There 
seemed to have been a lot of patches for the hv modules between 2.6.32 and 
2.6.36 and something was seriously broken.  I connected my VHDs > 137GB to a 
SCSI interface rather than the IDE interface and it worked fine that way.  I 
dont have an extra system to run XenServer on at the moment to give that a 
try.

Just from my speculation is that the IDE interface is emulated as an Intel 
PIIX4 chipset like the Emulated NIC is DEC 21140 chipset.  If the newer 
linux kernel is stricter about the LBA flags being correct as of 2.6.28 then 
any oddities from the IDE interface could be the problem.  It would depend 
on how stricktly the emulated IDE interface adhears to the ATA standards.  I 
dont have the knowhow or time right now to try and figure that one out.

I do know that the SCSI interface works fine with VHDs > 137GB if the hv 
modules are working in the kernel.  Hope the next stable will have them 
fixed.

Proposed As Answer byVincent HuMicrosoft Contingent Staff, 
ModeratorThursday, December 30, 2010 8:06 AM

=-=-=-=-=

1.1 из последнего поста можно вычленить слова типа "hv modules for guest 
system", "seriously broken"  и "to a SCSI interface rather than the IDE 
interface and it worked fine"




,-----[Timofey Koolin, 10 December 2011 13:29]:

> С точки зрения Hyper-V всё на всех машинах настроено одинакого.
> 
> Пробую подключить SCSI-диск, его Ubuntu вообще не видит (загружаюсь с
> IDE который внутри VDS определяется как scsi). В интернете на тему
> scsi на ubuntu под hyper-v пусто.

http://www.google.ru/search?sourceid=chrome&ie=UTF-8&q=hyper-
v+modules+ubuntu+guest+#sclient=psy-ab&hl=ru&newwindow=1&source=hp&q=hyper-
v+modules+ubuntu+guest+137+Gb&pbx=1&oq=hyper-
v+modules+ubuntu+guest+137+Gb&aq=f&aqi=q-
w1&aql=&gs_sm=e&gs_upl=6397l9220l0l9372l7l7l0l0l0l0l1249l4015l3-3.6-2.1l6l0&fp=1&biw=1401&bih=861&bav=on.2,or.r_gc.r_pw.,cf.osb&cad=b

или уж покороче:
http://tinyurl.com/7qjqu7t

Hyper-V does not support using SCSI as your boot volume on any guest OS.

So you have 2 options:

1) Use 2 VHD files one small one for /boot which is connected via virtual 
IDE interface. Then use one bigger one for everything else which is 
connected via virtual scsi interface.

2) Install the Linux Integration Components for Hyper-V (which are not 
supported for Ubuntu - but can work). When using the LICs the VM has 
"enlightened" drivers which will allow you to get near SCSI performance on 
the virtual IDE interface. Additionally you also get 10Gbps connectivity to 
the virtual switch (if you use a Network Adapter instead of a Legacy Network 
Adapter - which gives you 100Mbps).

.......

Following up on Matthew answer. Yes, Hyper-V does not support booting up any 
OS from SCSI at the moment. Furthermore, it does not support Ubuntu OS yet. 
A good reference on how to setup Hyper-V & then install Linux though & the 
Linux Integration Module can be found at: MS Windows 2008 Hyper-V 
Installation & Linux Integration

http://www.virtualizationteam.com/microsoft/hyper-v/microsoft-windows-2008-
hyper-v-rtm-installation-steps.html

Ah, yes its worth to mention, although Ubuntu is not supported yet it will 
work
..............................

http://blog.allanglesit.com/2010/05/ubuntu-and-hyper-v-the-paths-to-
enlightenment/

пошаговый инструкшен.

-=-=-=-=-


если неохота воевать с модулями, заюзай lvm или md raid
)


> 
> Тут кто-то такое настраивал?
> 

2. нет, кругом достаточно нормальных виртуальных машин, имеющих нормальную 
поддержку.
)


> 8 декабря 2011 г. 22:11 пользователь -=Devil_InSide=-
> <devil_inside на mail.ru> написал:
>> копай гипер5
>> )
>>
>> ,-----[Timofey Koolin, 8 December 2011 20:56]:
>>
>>> попробовал на 11.10, parted print
>>> Model: ATA Virtual HD (scsi)
>>> Disk /dev/sda: 21.5GB
>>> Sector size (logical/physical): 512B/512B
>>> Partition Table: msdos
>>>
>>> Number  Start   End     Size    Type      File system     Flags
>>> 1      1049kB  20.9GB  20.9GB  primary   ext4            boot
>>> 2      20.9GB  21.5GB  535MB   extended
>>> 5      20.9GB  21.5GB  535MB   logical   linux-swap(v1)
>>>
>>> (parted) print  devices
>>> /dev/sda (21.5GB)
>>> /dev/sdb (137GB)
>>> (parted) print all
>>> Model: ATA Virtual HD (scsi)
>>> Disk /dev/sda: 21.5GB
>>> Sector size (logical/physical): 512B/512B
>>> Partition Table: msdos
>>>
>>> Number  Start   End     Size    Type      File system     Flags
>>> 1      1049kB  20.9GB  20.9GB  primary   ext4            boot
>>> 2      20.9GB  21.5GB  535MB   extended
>>> 5      20.9GB  21.5GB  535MB   logical   linux-swap(v1)
>>>
>>>
>>> Model: ATA Virtual HD (scsi)
>>> Disk /dev/sdb: 137GB
>>> Sector size (logical/physical): 512B/512B
>>> Partition Table: msdos
>>>
>>> Number  Start   End     Size    Type     File system  Flags
>>> 1      32.3kB  21.5GB  21.5GB  primary  ext4
>>>
>>>
>>> /dev/sdb на самом деле 400Гб
>>> 28 ноября 2011 г. 0:22 пользователь Timofey Koolin <timofey на koolin.ru>
>>> написал:
>>>> Если это про настройки контейнера - там всё точно так же как на
>>>> соседних машинах - создаются автоматом.
>>>>
>>>> Версия 11.04, 11.10 буду на выходных пробовать.
>>>>
>>>> 27 ноября 2011 г. 22:40 пользователь -=Devil_InSide=-
>>>> <devil_inside на mail.ru> написал:
>>>>> в винде оно было году в 2006м чтоль
>>>>> )
>>>>> тада и hyper v не было
>>>>> )
>>>>>
>>>>> ,-----[Алексей Чернокур, 27 November 2011 19:52]:
>>>>>
>>>>>> могу ошибаться но мне кажется вопрос в винде
>>>>>>
>>>>>> 27 ноября 2011 г. 19:49 пользователь Timofey Koolin
>>>>>> <timofey на koolin.ru>написал:
>>>>>>
>>>>>>> Есть системный диск и второй для /home второй диск 220Гб, из них
>>>>>>> Ubuntu видит только 127, пробовал создавать разделы через lvm и
>>>>>>> fdisk - оба отказываются видеть больше.
>>>>>>>

-- 
__________
mpd status:	[playing]
Judas Priest - Devil's Child
**************************************
*  jabber:  devil_inside на jabber.ru   *
*   Registered linux user #450844    *
**************************************





Подробная информация о списке рассылки ubuntu-ru