I've successfully created a Fedora 19 x64 box using veewee on RVM but fail to start it with vagrant up
. It simply never finishes.
Using veewee 0.3.7, Vagrant 1.2.4 on Mac OS X 10.8.4 (Mountain Lion).
Since the Fedora 19 x64 template is outdated in the veewee release, I've updated it with the latest stable Fedora release download links at Fedora-19-x86_64/definition.rb
:
:iso_file => "Fedora-19-x86_64-DVD.iso",
:iso_src => "http://download.fedoraproject.org/pub/fedora/linux/releases/19/Fedora/x86_64/iso/Fedora-19-x86_64-DVD.iso",
:iso_sha1 => "73e45acf91d73146c7a71f7e8ca72762833aeadd",
Then did the following to create the box:
cd veewee
build install
FEDORA_VERSION=19-x86_64
VBOX_VERSION=$(VBoxManage -v | sed 's/\(.*\)r\([0-9]*\)/\1/')
BOX_NAME=fedora-$FEDORA_VERSION-vbox-$VBOX_VERSION
bundle exec veewee vbox define "$BOX_NAME" "Fedora-$FEDORA_VERSION"
bundle exec veewee vbox build "$BOX_NAME"
bundle exec veewee vbox validate "$BOX_NAME"
VBoxManage controlvm "$BOX_NAME" poweroff
vagrant package --base $BOX_NAME --output boxes/$BOX_NAME.box
vagrant box add $BOX_NAME boxes/$BOX_NAME.box
VBoxManage unregistervm $BOX_NAME --delete
Validation, etc. is successful. Then vagrant box list
gives the following:
$ vagrant box list
fedora-19-x86_64-vbox-4.2.16 (virtualbox)
When I try to start it up with vagrant up
, it hangs at the following:
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'fedora-19-x86_64-vbox-4.2.16'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Running any VM customizations...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
Nothing happens further on. Moreover, vagrant halt
as well as vagrant reload
hangs. I suspect Vagrant can't login.
If I check the Virtualbox Preview, it displays the login message.
Any ideas where to look at for the problem?
--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...[default] Waiting for machine to boot. This may take a few minutes...Timed out while waiting for the machine to boot. This means thatVagrant was unable to communicate with the guest machine withinthe configured ("config.vm.boot_timeout" value) time period. This canmean a number of things.If you're using a custom box, make sure that networking is properlyworking and you're able to connect to the machine. It is a commonproblem that networking isn't setup properly in these boxes.Verify that authentication configurations are also setup properly,as well.If the box appears to be booting properly, you may want to increasethe timeout ("config.vm.boot_timeout") value.
DEVICE="eth0"BOOTPROTO="dhcp"IPV6INIT="yes"NM_CONTROLLED="yes"ONBOOT="yes"TYPE="Ethernet"UUID="56f45b3e-..."
#VAGRANT-BEGIN# The contents below are automatically generated by Vagrant. Do not modify.NM_CONTROLLED=noBOOTPROTO=noneONBOOT=yesIPADDR=192.168.50.102NETMASK=255.255.255.0DEVICE=eth1PEERDNS=no#VAGRANT=END
As root or with sudo :
rm /etc/udev/rules.d/70-persistent-net.rules
chkconfig NetworkManager off
edit /etc/sysconfig/network-scripts/
Edit ifcfg-eth0
Remove UUID // per Alvaro, but now I'm thinking this wasn't necessary
Set NM_CONTROLLED="no"
Edit ifcfg-eth1
Set NM_CONTROLLED="no" // Used the form with double quotes. Does this matter?
Then, shutdown the VM cleanly and run “vagrant package” to create the .box file.