Slackware on Hyper-V — current status

2013-04-24: See later
Slackware 14.01 «Current» has _full_ support Hyper-V
i.e. Problem «1b) db63a4c8115a libata 1) cd006086fa5d ata_piix IDE» — FIXed

—– Original Message —–
From: "Victor Miasnikov"
To: "Pat Volkerding"
Sent: Friday, August 10, 2012 4:21 PM
Subject: Bug Reports: a) udevd: could not find module by name=’rtc_cmos’ b) Support Hyper-V Or Slackware 14.0 RC1 in virtual computer ( guest ) on Hyper-V Re: Slackware 14.0 RC1 Arrived: Send Your Bug Reports

Hi!

. . .

Bug Reports:

b)

Slackware 14.0 RC1 in virtual computer ( guest ) on Hyper-V
Or
Support Hyper-V

the Hyper-V kernel modules ( as minimum,

hv_storvsc
hv_netvsc

) are missing in the current installer image

( This modules exist
kernel/drivers/hv/hv_vmbus.ko
kernel/drivers/hv/hv_utils.ko.gz

but work with errors

. . .


Errors:
hv_utils: Unknown symbol cn_XXXXXXXXX



)

. . .


Best regards, Victor Miasnikov
Blog:
http://vvm.blog.tut.by/

—– Original Message —–
From: "Victor Miasnikov"
To: "Pat Volkerding"
Sent: Thursday, August 16, 2012 5:53 PM

Subject: b3) Please: backport to Slackware 14.0 patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix IDE dis Thanks! LAN & SCSI *.ko related Hyper-V work as need Fw: Bug Reports: b) Support Hyper-V Or Slackware 14.0 RC2 in virtual computer ( guest ) on Hyper-V


Hi!
b2)

==

Thu Aug 16 04:01:31 UTC 2012
We’ll call this release candidate 2.
. . .

isolinux/initrd.img: Rebuilt.
Upgraded to Linux kernel 3.2.27.
Include the staging/hv modules. Thanks to Victor Miasnikov.
==
Thanks!
*.ko related Hyper-V work as need:
– LAN
– SCSI disk
Tested on:
{
slackware*-current (slackware*-14.0 RC2). 2012-08-16. http://ponce.cc/slackware/iso/
[
]
}

b3)

Please: backport to Slackware 14.0 patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix

i.e. in Slackware 14.0 RC2 exist well-known problem "ata_piix and hv_storvsc both claim the (virtual) hard disk":

( but ata_piix need for handle the CD-ROM drive[s]:
Note that the Hyper-V paravirtualised drivers only expose the virtual hard disk devices,
the CDROM/DVD devices must still be enumerated.
==
SlackWare v14.0 RC2 _2012-08-16_ mini.iso -- double IDE HDD Error
==
Solution:
"use hv_storvsc instead of ata_piix to handle the IDE disks devices ( but not for the CD-ROM)"
=> Please: backport to Slackware 14.0 this patches
( _already_ do in Debian 7.X RC , first implement in OpenSUSE, re-created for Ubuntu v12.04 LTS , include in vanila kernel >v3.4.3 ) :

==

cd006086fa5d ata_piix: defer disks to the Hyper-V drivers by default

and its prerequisite

db63a4c8115a libata: add a host flag to ignore detected ATA devices

==

VVM:
All source code files ( and diff and URLs ) usefull for re-implement patches see in attached file "cd006086fa5d ata_piix and db63a4c8115a libata.zip"

Info about problem:
{{
Mike Sterling <mike.sterling (at) microsoft.com> :
==
The virtual motherboard that is used by Hyper-V has a dual port, dual channel IDE controller based on the 440BX chipset.
This motherboard was chosen as the baseline platform for emulation due to the extensive driver support present across a
wide variety of operating systems.
When a virtual machine boots on Hyper-V, it is required to boot off the IDE disk (as the paravirtualized SCSI controller
isn’t recognized by the virtualized BIOS).
Therefore, when the ata_piix module gets loaded in Linux, it recognizes the hard disk connected to it.
When the Hyper-V guest-side drivers are loaded (specifically hv_storvsc),
it enumerates both the IDE as well as SCSI busses that are present in the system and provides faster access to those
disks using the paravirtualized device model.
==
VVM:
{
Linux v3.1 Era:

==
The virtual motherboard that is used by Hyper-V has a dual port, dual channel IDE controller based on the 440BX chipset.
This motherboard was chosen as the baseline platform for emulation due to the extensive driver support present across a
wide variety of operating systems.
When a virtual machine boots on Hyper-V, it is required to boot off the IDE disk (as the paravirtualized SCSI controller
isn’t recognized by the virtualized BIOS).
Therefore, when the ata_piix module gets loaded in Linux, it recognizes the hard disk connected to it.
When the Hyper-V guest-side drivers ( hv_storvsc, about hv_blkvsc see later) are loaded ,
it enumerates [VVM: only] SCSI buss[es] that are present in the system and provides faster access to those disks using
the
paravirtualized device model.
In this case, all the drivers are working as intended – there is [ VVM: _really_ ] no bug here.

But if the Hyper-V guest-side _run_ driver hv_blkvsc
it enumerates ATA(IDE) buss[es] that are present in the system and provides faster access to those disks using the
paravirtualized device model.

In this case, we are get the problem is that ata_piix and hv_blkvsc both claim the (virtual) hard disk. i.e. bug ( i.e.
variant "issue described by Maksim Kramarenko" see later).
==

}


{
Linux v3.2 . . v3.4.2 Era
( except OpenSUSE , Ubuntu 12.04 , etc. with 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix ):

==
The virtual motherboard that is used by Hyper-V has a dual port, dual channel IDE controller based on the 440BX chipset.
This motherboard was chosen as the baseline platform for emulation due to the extensive driver support present across a
wide variety of operating systems.
When a virtual machine boots on Hyper-V, it is required to boot off the IDE disk (as the paravirtualized SCSI controller
isn’t recognized by the virtualized BIOS).
Therefore, when the ata_piix module gets loaded in Linux, it recognizes the hard disk connected to it.
When the Hyper-V guest-side drivers are loaded (specifically hv_storvsc),
it enumerates both the IDE as well as SCSI busses that are present in the system and provides faster access to those
disks using the paravirtualized device model.

No "In this case, all the drivers are working as intended – there is no bug here."
but we are has problem:

—– Original Message —–
From: "Jonathan Nieder"
To: . . . Cc: . . .
Sent: Tuesday, June 05, 2012 7:59 AM
Subject: Re: [PATCH 2/2] ata_piix: defer disks to the Hyper-V drivers by default

. . .

If I understand correctly,
the problem is that ata_piix and hv_storvsc both claim the (virtual) hard disk.
==

and
==
+ see tranlate from Russian language issue described by Maksim Kramarenko:
http://lists.debian.org/debian-russian/2012/01/msg00324.html
. . .

>> Errors do not interfere with work, but sneaking suspicion about
>> future problems with the hard drive …
[...]
>> in general, the source of the problem as follows:
>> After [VVM: turn On in kernel source] Hyper-V modules [compile and
>> start use], a hard disk was determined as 2 with the same UUID.
[...]
>> connected to a drive:
>> http://www.k-max.name/wp-content/uploads/2012/01/hdd-e1327750214479.png
>> it is defined as a 2:
>> http://www.k-max.name/wp-content/uploads/2012/01/2hdd.png
>> Naturally, the same UUID:
>> http://www.k-max.name/wp-content/uploads/2012/01/blkid.png
>> That’s what tells us the directory / dev:
>> http://www.k-max.name/wp-content/uploads/2012/01/uuid.png

==



==
}


{
Linux v3.5 Era + v3.4.3 – v3.4.X and OpenSUSE , Ubuntu 12.04 :

==
The virtual motherboard that is used by Hyper-V has a dual port, dual channel IDE controller based on the 440BX chipset.
This motherboard was chosen as the baseline platform for emulation due to the extensive driver support present across a
wide variety of operating systems.
When a virtual machine boots on Hyper-V, it is required to boot off the IDE disk (as the paravirtualized SCSI controller
isn’t recognized by the virtualized BIOS).
Therefore, when the ata_piix module [ VVM: _with_ 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix] gets loaded in
Linux, it recognizes what the hard disk [VVM: handled by hv_storvsc].

The patch [ VVM: patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix] that Andy has submitted is an enhancement to
the ata_piix module
that will detect if the OS is running on top of a Hyper-V hypervisor
and defer the block device handling in favor of letting hv_storvsc enumerate and handle the disks attached to the IDE
ports.


When the Hyper-V guest-side drivers are loaded (specifically hv_storvsc),
it enumerates both the IDE as well as SCSI busses that are present in the system and provides faster access to those
disks using the paravirtualized device model.
In this case, all the drivers are working as intended – there is [ VVM: _really_ ] no bug here.

==

}


}}

[ 41/42] libata + [ 42/42] ata_piix: defer disks to the Hyper-V drivers by defaul

. . .

Thanks!
Best regards, Victor Miasnikov
Blog:
http://vvm.blog.tut.by/

—– Original Message —–
From: "Patrick J. Volkerding"
To: "Victor Miasnikov"

Sent: Thursday, August 16, 2012 7:00 PM
Subject: Re: b3) Please: backport to Slackware 14.0 patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix IDE dis Thanks! LAN & SCSI *.ko related Hyper-V work as need Fw: Bug Reports: b) Support Hyper-V Or Slackware 14.0 RC2 in virtual computer ( guest ) on Hyper-V

On 08/16/2012 09:53 AM, Victor Miasnikov wrote:
> Please: backport to Slackware 14.0 patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix

Sorry, we don’t patch the kernel. I’d suggest talking to the people
maintaining the 3.2.x branch and see if they will do it. If they do,
and there’s time, I’ll upgrade.

Take care,

Pat

—– Original Message —–
From: "Victor Miasnikov"
To: "Patrick J. Volkerding"
Sent: Thursday, August 16, 2012 7:39 PM

Subject: Re: b3) Please: backport to Slackware 14.0 patches 1b) db63a4c8115a libata 1) cd006086fa5d ata_piix IDE Fw: Bug Reports: b) Support Hyper-V Or Slackware 14.0 RC2


Hi!

> Sorry, we don’t patch the kernel.

No problem

> I’d suggest talking to the people maintaining the 3.2.x branch and see if they will do it.

Thanks


> If they do, and there’s time, I’ll upgrade.

In June 08, 2012 13:36 I ask for backport to v3.4.X – v3.2.X
in >v3.4.3 — done, all Ok
but in v3.2.X — no ;-0 , very strange: if error exist — why not repair it :-(

==

{
> > > Hyper-V admins need _worked_ Linux v3.4.X / v3.3.X / v3.2.X
> > > Please, _fix_ errors related "use hv_storvsc instead of ata_piix to
> > > handle the IDE disks devices ( but not for the CD-ROM)"

i.e. need backport to all actual version after 3.1

cd006086fa5d ata_piix: defer disks to the Hyper-V drivers by default

and its prerequisite

db63a4c8115a libata: add a host flag to ignore detected ATA devices
}

==

2013-04-24:
Slackware 14.01 «Current» has _full_ support Hyper-V
i.e. Problem «1b) db63a4c8115a libata 1) cd006086fa5d ata_piix IDE» — FIXed

2 комментария to “Slackware on Hyper-V”

  • vvm:

    ==

    Linux v3.1 Era:
    . . .
    But if the Hyper-V guest-side _run_ driver hv_blkvscit enumerates ATA(IDE) buss[es] that are present in the system and provides faster access to those disks using theparavirtualized device model.In this case, we are get the problem is that ata_piix and hv_blkvsc both claim the (virtual) hard disk. i.e. bug

    ==

    See this variant of bug in real world :
    http://www.serkey.com/ubuntu-server-11-10-on-ms-2008-r2-hyper-v-bftp2t.html
    =}
    http://ubuntuforums.org/showthread.php?t=1873902
    ==

    November 2nd, 2011
    #1

    osl :
    server 11.10 on MS 2008 R2 Hyper V

    I have setup ubuntu server v 11.10 64bit on a Microsoft Hyper V platform. Since adding the hv_ modules I have two disks sda & hda both of which are the same disk except that sda reports the wrong size.
    . . .
    ==

  • vvm:

    http://social.technet.microsoft.com/Forums/en-US/linuxintegrationservices/thread/7cbf69a2-9ff9-4216-b366-08c29533811c
    ==

    Linux Integration Services and Slackware
    Vasil Dimov Wednesday, April 04, 2012 12:32 PM :
    I am trying to install Linux Integration Services on Slackware 13.37 but the process is failing.
    . . .
    Answers
    koffi2k
    Monday, April 09, 2012 3:36 PM

    The latest LIS provied by MS are only made for RHEL6 and CentOS6 (and are likely to work with other EL clones). Forget them on Slackware :-)
    That said you should check out your distribution kernel – if it’s at least 2.6.39 (since then they are pretty stable) you can consider trying the in-kernel Hyper-V driver modules. – Some distribution have actually not enabled them in their default builds.
    Linux 3.4 will be the first release that has all drivers out of staging area and also contains some interesting bug fixes to the Hyper-V integration. The best thing is to knock on your favourite distributions’ bugtracker and give them good arguments to either upgrade the distro kernel to 3.3+ or backport the driver from 3.4-rc1. (Which is what Ubuntu LTS 12 has done and Debian wheezy will do)
    ==

Leave a Reply

*
Для того, чтобы убедиться что Вы человек, а не спам-бот, введите пожалуйста ответ.
Анти-спам выражение.

Copyright © 2013 Виктор Мясников ( Victor Miasnikov). Search Engine Optimization by Star Nine. Distributed by Wordpress Themes
Хостинг hoster.by   Сервис белорусских блогов: BLOGS.TUT.BY