wilas / vbkick

Tool for building and maintaining VirtualBox VMs described as a code in a single definition file.
Other
8 stars 5 forks source link

FATAL: Could not read from the boot medium! System halted. a #41

Closed gregelin closed 10 years ago

gregelin commented 10 years ago

Consistently fails on OS X 10.9.2 running Virtual Box 4.3.12

Virtualbox machine is created and then immediately fails with error: FATAL: Could not read from the boot medium! System halted.

Using stable branch

commit 9361fd3d41145123a28739d3a33be144804be113
Author: wilas <limak.kamwil@gmail.com>
Date:   Tue Oct 22 22:06:51 2013 +0200

    release 0.6
new-host:vbkick greg$ vbkick build centosd
INFO: Loading "definition.cfg" definition...
Serving HTTP on 0.0.0.0 port 7122 ...
webserver has been started (pid 5603)
Virtual machine 'centosd' is created and registered.
UUID: fd0d3bd8-8984-462e-9034-6856d958a653
Settings file: '/Users/greg/VirtualBox VMs/centosd/centosd.vbox'
Oracle VM VirtualBox Command Line Management Interface Version 4.3.12
(C) 2005-2014 Oracle Corporation
All rights reserved.

Usage:

VBoxManage storagectl       <uuid|vmname>
                            --name <name>
                            [--add ide|sata|scsi|floppy|sas]
                            [--controller LSILogic|LSILogicSAS|BusLogic|
                                          IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
                            [--portcount <1-30>]
                            [--hostiocache on|off]
                            [--bootable on|off]
                            [--remove]

VBoxManage: error: Unknown option: --sataportcount
VBoxManage: error: Could not find a controller named 'SATA Controller'
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 185da4df-0e65-462c-8d68-7f3f8a0c00a9
VBoxManage: error: Could not find a controller named 'SATA Controller'
VBoxManage: error: Could not find a controller named 'SATA Controller'
VBoxManage: error: Could not find a controller named 'SATA Controller'
VBoxManage sharedfolder add  "centosd" --name "vbkick" --hostpath "/codedata/code/GovReady Library/current/vbkick" --automount
Waiting for VM "centosd" to power on...
VM "centosd" has been successfully started.
gregelin commented 10 years ago

It appears to be failing to attach and IDE or hard disk.

wilas commented 10 years ago

Hi @gregelin , I believe that problem was solved in #32 Could you please try a master branch ? I'm going to do release v0.7 with some changes for templates this weekend :)

gregelin commented 10 years ago

@wilas Master branch doesn't even get started.

bash-3.2$ git clone https://github.com/wilas/vbkick.git
Cloning into 'vbkick'...
remote: Reusing existing pack: 1953, done.
remote: Total 1953 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1953/1953), 503.91 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1103/1103), done.
Checking connectivity... done.
bash-3.2$ cd vbkick
bash-3.2$ sudo make install
Password:
mkdir -p build_src
install -m 0755 -d /usr/local/bin
install -m 0755 -p build_src/convert_2_scancode.py.tmp /usr/local/bin/convert_2_scancode.py
install -m 0755 -p build_src/vbkick.tmp /usr/local/bin/vbkick
install -m 0755 -d /usr/local/man/man1
install -g 0 -o 0 -m 0644 -p docs/man/vbkick.1 /usr/local/man/man1
rm -rf build_src
bash-3.2$ ls templates/CentOS6/
bash-3.2$ git git submodule foreach git pull
git: 'git' is not a git command. See 'git --help'.

Did you mean this?
    init
bash-3.2$ git submodule foreach git pull
bash-3.2$ ls templates/
CentOS6         Fedora19        PlasmaActive        Ubuntu12.04
Debian6         Fedora20        README.md
Debian7         Mer         ScientificLinux6
Fedora18        NemoMobile      SmartOS
bash-3.2$ ls templates/CentOS6/
bash-3.2$ git pull --recurse-submodules
Already up-to-date.
bash-3.2$ git submodule init
Submodule 'templates/CentOS6' (git://github.com/wilas/vbkick-template-centos6.git) registered for path 'templates/CentOS6'
Submodule 'templates/Debian6' (git://github.com/wilas/vbkick-template-debian6.git) registered for path 
#
# Stuff removed
#
Checking connectivity... done.
Submodule path 'templates/PlasmaActive': checked out 'd64c5a0595337fd1dd59a2177c4e4b6dff0cb3ac'
Cloning into 'templates/ScientificLinux6'...
remote: Reusing existing pack: 413, done.
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 419 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (419/419), 51.62 KiB | 0 bytes/s, done.
Resolving deltas: 100% (281/281), done.
Checking connectivity... done.
Submodule path 'templates/ScientificLinux6': checked out '04fe60f3fec94ebbdc96afafc39b129130e46647'
Cloning into 'templates/SmartOS'...
remote: Reusing existing pack: 95, done.
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 98 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (98/98), 62.63 KiB | 0 bytes/s, done.
Resolving deltas: 100% (57/57), done.
Checking connectivity... done.
Submodule path 'templates/SmartOS': checked out 'e7fbd41712bb273ff2d8bd9864c3d1c75adf7550'
Cloning into 'templates/Ubuntu12.04'...
remote: Reusing existing pack: 421, done.
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 429 (delta 5), reused 0 (delta 0)
Receiving objects: 100% (429/429), 53.94 KiB | 0 bytes/s, done.
Resolving deltas: 100% (307/307), done.
Checking connectivity... done.
Submodule path 'templates/Ubuntu12.04': checked out '47d733e5a1ae7075df136f26199a10074a5aede3'
bash-3.2$ cd templates/CentOS6/
bash-3.2$ ls
LICENSE                 definition-6.5-x86_64-noX.cfg
README.md               definition.cfg
definition-6.4-i386-noX.cfg     kickstart
definition-6.4-x86_64-noX.cfg       postinstall
definition-6.5-i386-noX.cfg     validate
definition-6.5-x86_64-docker.cfg
bash-3.2$ vbkick build newVM5
/usr/local/bin/vbkick: line 421: __version: 0
[INFO] Signal handler - cleanup before exiting...: syntax error: invalid arithmetic operator (error token is "[INFO] Signal handler - cleanup before exiting...")
[INFO] Signal handler - cleanup before exiting...
gregelin commented 10 years ago

@wilas Also uploaded screencast. There's a slow section in the middle where I was figuring out the submodule include commands.

http://asciinema.org/a/9835

wilas commented 10 years ago

Fist of all thanks for a testing vbkick on Mac. You are a person which I'm looking for ;-) Special before v0.7 release.

Could you please run these commands and paste output:

command -v VBoxManage
VBoxManage --version
__version="4.2.12r84980"
__pos=$(expr "${__version}" : '[0-9.]\+')
printf "${__pos}\n"
__version=${__version:0:${__pos}}
printf "${__version}\n"

BTW. Nice video. Are you happy to prepare more for me after templates reorganization ?

NB. There is/will be quite a lot work with the documentation of this project. If your are fancy to help feel free to ping me. Any hands count :-)

gregelin commented 10 years ago

Kamil,

Vbkick could solve a big problem for us. Do you have some time work interactively/remotely with is today?

Happy to help with testing, docs, and videos.

Greg Elin P: 917-304-3488 E: gregelin@gitmachines.com

Sent from my iPhone

On May 28, 2014, at 1:13 PM, Kamil Wilas notifications@github.com wrote:

Fist of all thanks for a testing vbkick on Mac. You are a person which I'm looking for ;-) Special before v0.7 release.

Could you please run these commands and paste output:

command -v VBoxManage VBoxManage --version version="4.2.12r84980" pos=$(expr "${version}" : '[0-9.]+') printf "${pos}\n" version=${version:0:${pos}} printf "${version}\n" BTW. Nice video. Are you happy to prepare more for me after templates reorganization ?

NB. There is/will be quite a lot work with the documentation of this project. If your are fancy to help feel free to ping me. Any hands count :-)

— Reply to this email directly or view it on GitHub.

wilas commented 10 years ago

Short summary:

gregelin commented 10 years ago

Still receiving Fatal error on OS X. Pulled recent code and still getting error. Receiving when using CentOS.

vbkick-fatal

commit 136a9edbb04855338386fdad8505a2d12a348df9
Author: wilas <limak.kamwil@gmail.com>
Date:   Wed May 28 22:17:43 2014 +0200

    MPL in man as well

commit 13b2a457b67211f0f50ff1064475fd3ec79f454c
Author: wilas <limak.kamwil@gmail.com>
Date:   Wed May 28 20:48:09 2014 +0200

    fix the problem with sed options

commit 03df12b10397c815464be175fc259606e559e740
Author: wilas <limak.kamwil@gmail.com>
Date:   Wed May 28 20:27:42 2014 +0200

    fix the problem with sed silent option in Mac

commit 9019ae7a7a074e89dd9c16014f1e8f5a1168c07a
Author: wilas <limak.kamwil@gmail.com>
Date:   Wed May 28 20:18:02 2014 +0200

    better virtualbox version checking to make Mac happy

commit b2f8491d1df5b2986e139134f355da831677291e
Author: wilas <limak.kamwil@gmail.com>
Date:   Wed May 28 19:37:34 2014 +0200
gregelin commented 10 years ago

@wilas Still getting error. Added information to #41.

On Wed, May 28, 2014 at 4:26 PM, Kamil Wilas notifications@github.comwrote:

Closed #41 https://github.com/wilas/vbkick/issues/41.

— Reply to this email directly or view it on GitHubhttps://github.com/wilas/vbkick/issues/41#event-125739787 .

wilas commented 10 years ago

Looks like broken centos ISO file. Are you sure that ISO was downloaded correctly ? You may want remove existing iso file and allow vbkick to download it once again for you.

You may want as well try with this template: https://github.com/wilas/vbkick-template-centos6 from scratch :)

gregelin commented 10 years ago

I thought same thing. Have removed ISO and starting from scratch.

Greg Elin P: 917-304-3488 E: gregelin@gitmachines.com

Sent from my iPhone

On May 28, 2014, at 4:45 PM, Kamil Wilas notifications@github.com wrote:

Looks like broken centos ISO file. Are you sure that ISO was downloaded correctly ? You may want remove existing iso file and allow vbkick to download it once again for you.

You may want as well try with this template: https://github.com/wilas/vbkick-template-centos6 from scratch :)

— Reply to this email directly or view it on GitHub.

gregelin commented 10 years ago

Yes, it was a bad iso. Thanks.

bush commented 9 years ago

I'm seeing the exact same issue with the 1.4.1 iso. I'm running OS X 10.5.8.

bush commented 9 years ago

Ok I updated Virtual Box and ran boot2docker delete then boot2docker init. That fixed my issue.