Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boot stuck with version 2.4.1 #37

Closed
guyschaos opened this issue Mar 16, 2017 · 19 comments
Closed

Boot stuck with version 2.4.1 #37

guyschaos opened this issue Mar 16, 2017 · 19 comments

Comments

@guyschaos
Copy link

Hi @ailispaw ,

Just test your latest release, v2.4.1. Can not boot with Hyper-V. Here is the screen capture.

stuck

I've tried 3 isos.

  1. Your local test build for Hyper-V config. -- pass
  2. My local test build for Hyper-V config. -- pass
  3. v2.4.1 -- stuck
@ailispaw
Copy link
Member

Hmm.
The differences from v2.4.1-dev are
kernel: Add CONFIG_X86_X2APIC 1ddf696
and
Upgrade kernel to v4.9.15 1ddf696 .

I guess it's not big different.

@ailispaw
Copy link
Member

Hyper-V doesn't support x2APIC?

@guyschaos
Copy link
Author

I have no idea. Maybe I can revert the commit and build on my local machine.

@ailispaw
Copy link
Member

@guyschaos Which version of Windows do you use?

@guyschaos
Copy link
Author

guyschaos commented Mar 16, 2017

Is there any quick guide for building Barge with docker ? Vagrant will not be an option for me on my windows computer, because Hyper-V conflicts with VirtualBox,

@guyschaos
Copy link
Author

guyschaos commented Mar 16, 2017

@ailispaw Windows 10 pro.

@ailispaw
Copy link
Member

ailispaw commented Mar 16, 2017

What you are trying to build is same as #36 (comment) except the version number 2.4.1-dev.

BTW,
Asking for cache data failed things are just a warning message and I can see in
#36 (comment) as well.
There is something wrong somewhere else.

@guyschaos
Copy link
Author

I've created a fresh VM, it could boot without "Asking for cache data failed". I am confused...

@ailispaw
Copy link
Member

ailispaw commented Mar 16, 2017

I have never try this way, but it will work for you.

$ git clone https://github.com/bargees/barge-os.git
$ cd barge-os
<checkout a commit you want to build>
$ docker build -t barge-builder .
$ docker run --privileged --name barge-built barge-builder
$ docker cp barge-built:/build/buildroot/output/images/barge.iso .

@ailispaw
Copy link
Member

ailispaw commented Mar 16, 2017

I've created a fresh VM, it could boot without "Asking for cache data failed". I am confused...

Ah..
It's strange...

@ailispaw
Copy link
Member

I guess there may be some wrong cache in somewhere of Virtual HDD...

@guyschaos
Copy link
Author

Yes, looks Virtual HDD related after doing some tests.
Exist VM:

  1. boot with your local build , Physic HDD as Virtual HDD , pass
  2. boot with your v2.4.1, Physic HDD as Virtual HDD , stuck
  3. boot with your v2.4.1, Physic HDD as Virtual HDD and add a new Virtual HDD , pass... !!!

So, workaround is -- add a new Virtual HDD (will never be used.)...

@ailispaw
Copy link
Member

Hmm.
There might be something wrong to umount the disks on shutdown.
Your shutdown process looks normal on Hyper-V?

@ailispaw
Copy link
Member

Im not sure it's caused by x2APIC or kernel v4.9.15.
Can you disable x2APIC on Hyper-V VM to test?

@guyschaos
Copy link
Author

Try to compile with docker. Vagrant only works on my Mac at home. Will tell you the test result ASAP.

@guyschaos
Copy link
Author

guyschaos commented Mar 16, 2017

@ailispaw
After long long time of building, I got the iso of commit "Add CONFIG_X86_X2APIC ".
Remove my "New added fake Virtual HDD" , select the iso, boot the VM, every thing looks good.
Then, I tested the version 2.4.1, boot pass too.
That's weird. I have not change any thing else.
Maybe you can close this issue first. I will observe the Hyper-V barge-os behavior on my WIndows 10/WIndows Server 2012R2 these days.
Anyway, thanks for your support.

@ailispaw
Copy link
Member

ailispaw commented Mar 16, 2017

I found something.
Linux guest graceful shutdown in Hyper-V - Server Fault
http://serverfault.com/questions/747247/linux-guest-graceful-shutdown-in-hyper-v

We may need modprobe hv_utils and something (a user daemon).
I will try to create an ISO for that there. bargees/barge-packer#11

Stay tuned.

@guyschaos
Copy link
Author

All the iso (your local build, my local build, version 2.4.1 and so on) can boot without any workaround. And I have tested version 2.4.1 on my Hp Microserver gen8 (Windows server 2012 R2), everything looks good.
I cannot reproduce the "Asking for cache data failed" any more. Maybe, there is a mistake with my physic hdd.
The Hyper-V KVP daemon looks useful for Hyper-V users. I can test your build with KVP feature. Where is the download link ?

@ailispaw
Copy link
Member

@guyschaos Thank you for the confirmation.

Here it is.
bargees/barge-packer#12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants