Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo physical to virtual Hyper-V Migration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
vladixx
n00b
n00b


Joined: 23 Apr 2013
Posts: 4
Location: Vysoke Myto/CZ

PostPosted: Tue Apr 23, 2013 8:48 am    Post subject: Gentoo physical to virtual Hyper-V Migration Reply with quote

Hi all!
I would like to ask someone of you for help. I have a physical server with Gentoo Linux webserver 3.0.4-hr5 #2 SMP Tue Dec 13 13:33:26 CET 2011 x86_64 Intel(R) Xeon(R) CPU E5520 @ 2.27GHz GenuineIntel GNU/Linux that I would like to move to a virtual machine with Microsoft Hyper-V 2012 host. I have one disk of two from RAID within the physical machine, which I chrooted in (in virtual machine) from gentoo livecd, tried to create initramfs with modules for hyper-v (because of kernel panic: VFS: Cannot open root device 0x0801 or unknown-block(8,1)) - had to do it manually without genkernel or mkinitrd, and failed. Genkernel cannot be installed because of dependency circle which I tried to solve by installing GCC and GLIBC separately but both fail, mkinitrd is not found by portage. Physical machine has LILO, on virtual I installed GRUB because of initrd...

Can someone please help me with creating the correct initramfs with all the modules I need? Thank you in advance.
_________________
Linux is the enemy I want to make friend of.
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 605
Location: Würzburg, Deutschland

PostPosted: Tue Apr 23, 2013 10:47 am    Post subject: Reply with quote

If you are not depending on any external modules, it might be easier to just build into the kernel whatever it need to boot.
Back to top
View user's profile Send private message
vladixx
n00b
n00b


Joined: 23 Apr 2013
Posts: 4
Location: Vysoke Myto/CZ

PostPosted: Tue Apr 23, 2013 11:17 am    Post subject: Reply with quote

DirtyHairy wrote:
If you are not depending on any external modules, it might be easier to just build into the kernel whatever it need to boot.

Hyper-V modules can be considered external, afaik, they cannot be built into the kernel so I need initramfs...
_________________
Linux is the enemy I want to make friend of.
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 605
Location: Würzburg, Deutschland

PostPosted: Tue Apr 23, 2013 6:43 pm    Post subject: Reply with quote

Mmmh, I don't want to doubt your sources, but when I just tried with linux 3.8, I had no problems with selecting the Hyper-V stuff for compilation into the kernel. Of, course I cannot test the actual function ;) Apart from that, I can only link the gentoo wiki page (as I have no experience with building an initramfs) http://en.gentoo-wiki.com/wiki/Initramfs
Back to top
View user's profile Send private message
vladixx
n00b
n00b


Joined: 23 Apr 2013
Posts: 4
Location: Vysoke Myto/CZ

PostPosted: Thu Apr 25, 2013 6:11 am    Post subject: Reply with quote

Whatever I do I always end up either in rescue shell without seeing /dev/sda or on kernel panic - No init found. I am desperate as I need to boot the virtual machine asap because physical hardware is dying slowly but surely... In my kernel version there is only possibility to modularize hv_* modules, no way to build them into the kernel.. Updating the kernel through
Code:
emerge -Dup world
ends up on gcc and glibc circular dependencies... Is anybody able to help me? Please?
_________________
Linux is the enemy I want to make friend of.
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 605
Location: Würzburg, Deutschland

PostPosted: Thu Apr 25, 2013 6:42 am    Post subject: Reply with quote

Could you repost the circular dependency issue to the Portage & Programming part of the forum, together with the actual errors? Circulars are in my experience often caused by certain useflag combinations and can in this case usually be broken by temporarily disabling an useflag. No way to tell for sure without the output, though.

As for the Hyper-V modules: you have to make sure that their dependencies are also selected as built-in. If any of those are selected as modules, you won't be able to compile the Hyper-V stuff into the kernel. You can see the dependencies by selecting help in menuconfig. On my kernel, the interesting bits are ACPI, NLS and CONNECTOR.
Back to top
View user's profile Send private message
vladixx
n00b
n00b


Joined: 23 Apr 2013
Posts: 4
Location: Vysoke Myto/CZ

PostPosted: Mon Apr 29, 2013 10:20 am    Post subject: Reply with quote

OK, went around circulars, downloaded sources for newer kernel, compiled, now booting, but get stuck on other things:
first error http://imagebin.org/255753 (boot continues over)
second error http://imagebin.org/255754 (this appears straight after hv_vmbus: Hyper-V Host-OS Build:.... )
.config http://pastebin.com/t2v2N4bn
_________________
Linux is the enemy I want to make friend of.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum