Code Monkey home page Code Monkey logo

vagrant-ubuntu-precise-64's Introduction

About

This script will:

  1. download the Ubuntu 12.04 alternate server, 64bit iso
  2. ... do some magic to turn it into a vagrant box file
  3. output package.box

Usage

./build.sh

This should do everything you need. If you don't have mkisofs, install homebrew, then:

brew install cdrtools

Ben's notes

Forked Carl's repo, and it sort of worked out of the box. Tweaked office 12.04 release:

  • Downloading 12.04 final release. (Today as of this writing)
  • Checking MD5 to make sure it is the right version
  • Added a few more checks for external dependencies, mkisofs
  • Removed wget, and used curl to reduce dependencies
  • Added more output to see what is going on
  • Still designed to work on Mac OS X :) ... though it should work for Linux systems too (maybe w/ a bit of porting)

Carl's original README

Decided I wanted to learn how to make a vagrant base box.

Let's target Precise Pangolin since it should be releasing soon, I said.

Let's automate everything, I said.

Let's do it all on my macbook, I said.

Woo.

vagrant-ubuntu-precise-64's People

Contributors

docwhat avatar lucaspiller avatar mostlygeek avatar scgilardi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vagrant-ubuntu-precise-64's Issues

Stuck at "Waiting for installer to finish"

I have Ubuntu 12.04 (64-bit) and so I had to use the https://github.com/goraxe/vagrant-ubuntu-precise-64 clone, de4c601. It works, but it gets stuck at "Waiting for installer to finish":

ondrej@hawk:~/repos/vagrant-ubuntu-precise-64(master)$ ./build.sh 
Cleaning build directory ...
[sudo] password for ondrej: 
Downloading ubuntu-12.04-alternate-amd64.iso ...
Creating Custom ISO
Untarring downloaded ISO ...
Backing up current init.rd ...
Installing new initrd.gz ...
40870 blocks
40874 blocks
Cleaning up Permissions ...
Replacing isolinux config ...
Add late_command script ...
Running mkisofs ...
Creating VM Box...
Virtual machine 'ubuntu-precise-64' is created and registered.
UUID: 288fd798-5940-4e24-a1a4-af34a1f064db
Settings file: '/home/ondrej/repos/vagrant-ubuntu-precise-64/build/vbox/ubuntu-precise-64/ubuntu-precise-64.vbox'
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: a7dfbb6f-d351-4656-b469-51faf0f631b6
Waiting for VM "ubuntu-precise-64" to power on...
VM "ubuntu-precise-64" has been successfully started.
Waiting for installer to finish ..............................................................................................................................................................................................................

Any ideas how to debug this?

tar problems

First off, thanks for creating this script!

This isn't necessarily an issue with the build script, but with tar on Mac OS X 10.7.4. It seems that it doesn't want to extract the iso that gets downloaded -- it just silently quits even if you supply the verbose flag.

I followed the instructions here to install an updated version of bsdtar using homebrew:

http://forums.macrumors.com/showthread.php?t=1377464

I also had to update the script to use /usr/local/bin/bsdtar instead of tar.

Just in case someone else has the same issue.

nfsclient not installed

Hi,

The script is great. Just one tiny issues - it doesn't install nfsclient by default which means you have to install it yourself afterwards to setup a NFS shared folder in the Vagrantfile - eg the following won't work until you've manually have run "sudo apt-get install nfsclient" in the VM:

config.vm.share_folder "v-src", "/vagrant_src", "~/src", :nfs => true

Requires Extension Pack

With a fresh install of VirtualBox 4.1.14 for OS X, build.sh exited with status 24 and the message "The Vagrant virtual environment you are trying to package must be powered off." Then, I installed VirtualBox 4.1.14 Oracle VM VirtualBox Extension Pack, created a fresh clone of this repo and re-ran build.sh successfully.

If this is expected behavior, please just make a note in the README that the script expects the Extension Pack to be installed.

"Untarring downloaded ISO" fails with permission denied

I'm on OS X 10.6.8. tar --version gives bsdtar 2.6.2 - libarchive 2.6.2.

I modified build.sh as per PR #11, i.e. to download 12.04.1 instead of 12.04.

build.sh failed like this:

$ ./build.sh 
Cleaning build directory ...
Downloading ubuntu-12.04.1-alternate-amd64.iso ...
Creating Custom ISO
Untarring downloaded ISO ...
dists/precise/main/binary-i386/Packages.gz: Can't create 'dists/precise/main/binary-i386/Packages.gz': Permission denied
dists/precise/restricted/debian-installer/binary-amd64/Packages.gz: Can't create 'dists/precise/restricted/debian-installer/binary-amd64/Packages.gz': Permission denied
dists/precise/restricted/binary-amd64/Packages.gz: Can't create 'dists/precise/restricted/binary-amd64/Packages.gz': Permission denied
install/netboot/ubuntu-installer/amd64/linux: Can't create 'install/netboot/ubuntu-installer/amd64/linux': Permission denied
tar: Error exit delayed from previous errors.

Any ideas?

Problem with init?

Seems not to work, VirtualBox also says no boot medium found...

./build.sh 
Cleaning Custom build directories...
Downloading ubuntu-12.04-alternate-amd64.iso ...
Creating Custom ISO
Untarring downloaded ISO ...
gnutar: This does not look like a tar archive
gnutar: Skipping to next header
gnutar: Error exit delayed from previous errors
Backing up current init.rd ...
chmod: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/install: No such file or directory
chmod: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/install/initrd.gz: No such file or directory
mv: rename /tmp/vagrant-ubuntu-precise-64/build/iso/custom/install/initrd.gz to /tmp/vagrant-ubuntu-precise-64/build/iso/custom/install/initrd.gz.org: No such file or directory
Installing new initrd.gz ...
gzip: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/install/initrd.gz.org.gz: No such file or directory
0 blocks
./build.sh: line 70: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/install/initrd.gz: No such file or directory
Cleaning up Permissions ...
chmod: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/install: No such file or directory
chmod: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/install/initrd.gz: No such file or directory
chmod: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/install/initrd.gz.org: No such file or directory
Replacing isolinux config ...
chmod: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/isolinux: No such file or directory
chmod: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/isolinux/isolinux.cfg: No such file or directory
rm: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/isolinux/isolinux.cfg: No such file or directory
cp: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/isolinux/isolinux.cfg: No such file or directory
chmod: /tmp/vagrant-ubuntu-precise-64/build/iso/custom/isolinux/isolinux.bin: No such file or directory
Add late_command script ...
Running mkisofs ...
mkisofs: Uh oh, I cant find the boot catalog directory 'isolinux' inside the target tree.
Creating VM Box...
Virtual machine 'ubuntu-precise-64' is created and registered.
UUID: eec9209c-f29a-4a27-8f74-3a44b163c50a
Settings file: '/tmp/vagrant-ubuntu-precise-64/build/vbox/ubuntu-precise-64/ubuntu-precise-64.vbox'
VBoxManage: error: Could not find file for the medium '/tmp/vagrant-ubuntu-precise-64/build/iso/custom.iso' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp
VBoxManage: error: Invalid UUID or filename "/tmp/vagrant-ubuntu-precise-64/build/iso/custom.iso"
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.