2011-10-21: See:

Or boot archboot 2011.10-1

2011-09-15: See:

MODULES="pata_acpi ata_generic ata_piix hv_storvsc"

----

HowTo: Install Arch Linux on Hyper-V

https://bbs.archlinux.org/viewtopic.php?id=103981

===

Index» Kernel & Hardware » Hyper-V installation and hv_ kernel modules use

emoriver:

Hi everybody, I'm trying to install Arch as a Virtual Machine under Windows 2008 Server R2 Hyper-V.
Someone says ( _http://blog.allanglesit.com/2010/05/ubuntu-and-hyper-v-the-paths-to-enlightenment/ ) it's possible to configure Ubuntu to use synthetic devices.
I've tried with no success and that made me happy because the distro I'd like to use is Arch!
. . .
Any idea? Is there a way to translate the post I cited for Arch (I'm not able by myself, unfortunately...)?

===

Boot Arch Linux Installer ( I'm use archlinux-2011.08.19-core-dual.iso )

2011-10-21: Or boot archboot 2011.10-1

_Before_
/arch/setup

load Hyper-V module for SCSI:
==
modprobe hv_storvsc
==

after this SCSI disk
/dev/sdb
IDE disk
/dev/sda

!!!
!!! Don't forget add hv_storvsc in MODULES= to /etc/mkinitcpio.conf
!!! before reboot step of /arch/setup
!!!

/etc/mkinitcpio.conf
==
MODULES="pata_acpi ata_generic ata_piix hv_storvsc"
==

# Old variant:
# MODULES="hv_storvsc"
#

(

Estetic:

I see the following error message when booting Arch Linux:
==
piix4_smbus 0000.00.07.0: SMBus base address uninitialized - upgrade bios or use force_addr=0xaddr
==

For fix this add "blacklist i2c_piix4" to file /etc/modprobe.d/modprobe.conf

/etc/modprobe.d/modprobe.conf
==
blacklist i2c_piix4
==

)

!
!
!
Install Bootloader GRUB to IDE disk
/dev/sda

!
! Place /boot to IDE Disk !!!
!
( other partitions best place to SCSI Disk)

(

#IF /etc/mkinitcpio.conf MODULES="pata_acpi ata_generic ata_piix hv_storvsc"

# No problem "/dev/sdb _swap_ with /dev/sda"

#ELSIF /etc/mkinitcpio.conf MODULES="hv_storvsc"

Problem:

before reboot step of /arch/setup if You:

Run cfdisk /dev/sdb , see output:
==
Name Flags Part Type FS Type [Label] Size (MB)
-------------------------------------------------------------------------
Pri/Log Free Space 24.68 #
sdb2 Primary Linux swap [ARCH_SWAP] 271.44 #swap
sdb3 Primary ext4 [ARCH_ROOT] 7871.60 #root
sdb4 Primary ext4 [ARCH_HOME] 421323.52 #/home
Pri/Log Free Space 5.51 #
==

Run cfdisk , see output:
==
Name Flags Part Type FS Type [Label] Size (MB)
-------------------------------------------------------------------------
sda1 boot Primary ext2 [ARCH_BOOT] 106.93 #/boot
Pri/Log Free Space 136256.21 #
==

Run blkid , see output:
==
/dev/sda1: LABEL="ARCH_BOOT" UUID="ff414d44-50d1-4363-a71d-2722eb8e16f5" TYPE="ext2"
/dev/loop100: . . .
. . .
/dev/loop110: . . .
/dev/sdb2: LABEL="ARCH_SWAP" UUID="9e206a22-ead3-4ebb-b9e8-9315b76a7877" TYPE="swap"
/dev/sdb3: LABEL="ARCH_ROOT" UUID="a29ef7f8-8cb0-49e6-b792-7b0d72acfca6" TYPE="ext4"
/dev/sdb4: LABEL="ARCH_HOME" UUID="c0b226be-34ea-4f85-87d7-972da0038411" TYPE="ext4"
==

but in installed Arch Linux

SCSI disk
/dev/sda
IDE disk
/dev/sdb

i.e. /dev/sdb _swap_ with /dev/sda

Run cfdisk , see output:
==
Name Flags Part Type FS Type [Label] Size (MB)
-------------------------------------------------------------------------
Pri/Log Free Space 24.68 #
sda2 Primary Linux swap [ARCH_SWAP] 271.44 #swap
sda3 Primary ext4 [ARCH_ROOT] 7871.60 #root
sda4 Primary ext4 [ARCH_HOME] 421323.52 #/home
Pri/Log Free Space 5.51 #
==

Run cfdisk /dev/sdb , see output:
==
Name Flags Part Type FS Type [Label] Size (MB)
-------------------------------------------------------------------------
sdb1 boot Primary ext2 [ARCH_BOOT] 106.93 #boot
Pri/Log Free Space 136256.21 #
==

Run blkid , see output:
/dev/sda2: LABEL="ARCH_SWAP" UUID="9e206a22-ead3-4ebb-b9e8-9315b76a7877" TYPE="swap"
/dev/sda3: LABEL="ARCH_ROOT" UUID="a29ef7f8-8cb0-49e6-b792-7b0d72acfca6" TYPE="ext4"
/dev/sda4: LABEL="ARCH_HOME" UUID="c0b226be-34ea-4f85-87d7-972da0038411" TYPE="ext4"
/dev/sdb1: LABEL="ARCH_BOOT" UUID="ff414d44-50d1-4363-a71d-2722eb8e16f5" TYPE="ext2"

Solution:

#ENDIF
)

!
! Use LABEL or UUID in fstab
!

(

#IF /etc/mkinitcpio.conf MODULES="pata_acpi ata_generic ata_piix hv_storvsc"

# not need edit /boot/grub/menu.lst

#ELSIF /etc/mkinitcpio.conf MODULES="hv_storvsc"

!
! Don't forget set root= in /boot/grub/menu.lst
! before reboot step of /arch/setup
! i.e.:

In file
/boot/grub/menu.lst
replace
==
root=/dev/sdb
==
to
==
root=/dev/sda
==

Example:
==
kernel /vmlinuz-linux root=/dev/sda3 ro
==

#ENDIF

)

1 комментарий to “HowTo: Install Arch Linux on Hyper-V”

  • vvm:

    About

    Or boot archboot 2011.10-1

    See
    http://vvm.blog.tut.by/2011/10/24/archlinux-hyper-v-and-archboot-iso/

    Arch Linux: Hyper-V And archboot.iso

    - – -
    !!!
    !!! VVM: need for Hyper-V:
    !!! added acpi_pm_good to the kernel command in /boot/grub/menu.lst
    !!!

    Error:

    run
    dmesg
    dmesg | more
    ===

    * Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
    * this clock source is slow. Consider trying other clock sources

    ===

    Solution:
    ===

    added acpi_pm_good to the kernel command in /boot/grub/menu.lst

    ===

    http://home.earthlink.net/~peter.a.taylor/dualboot.htm
    ===

    . . . my wife’s computer, «Isis», . . .

    . . .
    I also note that Linux (on Isis) gave me this boot-time warning message:

    * The chipset may have PM-Timer Bug. Due to workarounds for a bug,
    * this clock source is slow. If you are sure your timer does not have
    * this bug, please use «acpi_pm_good» to disable the workaround

    I downloaded the pmtmr_test.c program by OGAWA Hirofumi
    ==
    http://markmail.org/message/yapeh7vrwrsticzf
    ==
    to test for this, compiled with gcc (gcc -opmtmr_test pmtmr_test.c),
    ran it, concluded that Isis did not have this bug, and
    added acpi_pm_good to the kernel command in /boot/grub/menu.lst
    . This made Linux noticably faster on Isis.

    . . .
    ===

    - – -

    IMHO, old, may be only for SLES, but this «allow_unsupported_modules 1″ may be very interessant:

    http://blogs.technet.com/b/abeshkov/archive/2010/09/09/3354523.aspx
    ==
    Установка и настройка SLES (Suse Linux Enterprise Server) 11 под Hyper-V
    Andrey Beshkov 9 Sep 2010 10:17 AM
    . . .

    . . . установка интеграционных сервисов для SLES 11 . . .

    . . .
    Отредактируйте файл /etc/modprobe.d/unsupported-modules так чтобы в нем была следующая строка:

    allow_unsupported_modules 1
    . . .
    ==

    http://patchwork.ozlabs.org/patch/119906/
    ==

    On Fri, 14 Oct 2011 12:20:26 -0700
    Haiyang Zhang wrote:

    > hv_netvsc has been reviewed on netdev mailing list on 6/09/2011.
    > All recommended changes have been made. We are requesting to move
    > it out of staging area.
    >
    > Signed-off-by: Haiyang Zhang
    > Signed-off-by: KY Srinivasan
    > Signed-off-by: Mike Sterling
    > Cc: NetDev

    Thanks for all the work.

    . . .

    — /dev/null
    +++ b/drivers/net/hyperv/Kconfig
    @@ -0,0 +1,5 @@
    +config HYPERV_NET
    + tristate «Microsoft Hyper-V virtual network driver»
    + depends on HYPERV
    + help
    + Select this option to enable the Hyper-V virtual network driver.
    diff –git a/drivers/net/hyperv/Makefile b/drivers/net/hyperv/Makefile

    ==

    http://www.gossamer-threads.com/lists/linux/kernel/1447845
    ===
    [PATCH 1/1] Staging: hv: Move the mouse driver out of staging

    . . .

    +config HYPERV_MOUSE
    + tristate «Microsoft Hyper-V mouse driver»
    + depends on HYPERV
    + —help—
    + Select this option to enable the Hyper-V mouse driver.
    +
    . . .
    ===

    - — –

    http://www.simweb.ch/blog/2011/10/state-of-linux-on-hyper-v/
    ==

    Goodbye /dev/hdX, wellcome /dev/sdX and > 2TB LUN support

    If you looked at your Linux virtual machine running on Hyper-V and were a distribution newer than RHEL5, SLES10 or a Kernel older than 2.6.21, you may have realized the following uncommon behaviour for Hyper-V VMs with hv modules: The IDE drives still showed up as /dev/hdX instead of /dev/sdX like almost everywhere else. Additionally – when in paravirtualized mode – the IDE controller was handled by ‘hv_blkvsc’ and the paravirtualized-only SCSI controller by ‘hv_storvsc’. This willl also remain with the release of Linux 3.1.

    But with the merge-windows for 3.2 you can expect to see a bunch of changes already present in staging-next that (after a bunch of other patches) will move the handling of IDE drives to hv_storvsc and drops hv_blkvsc completely. Meanwhile a patch addresses the 2TB limitation for those who need it.

    sim@sojus-1:~$ uname -a
    Linux sojus-1 3.1.0-rc4-stagingnext+ #3 SMP Thu Oct 20 14:44:55 CEST 2011 x86_64 GNU/Linux

    . . .

    hv_mouse 4193 0
    hid 87780 1 hv_mouse
    psmouse 61215 0
    serio_raw 4720 0
    hv_timesource 1111 0 [permanent]
    i2c_piix4 8879 0
    floppy 63708 0
    hv_storvsc 9152 3
    hv_utils 5405 0
    hv_netvsc 15931 0
    hv_vmbus 27112 4 hv_mouse,hv_storvsc,hv_utils,hv_netvsc,[permanent]
    ==

Leave a Reply

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

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