[ v2.0 BETA ] BuilduntuVM - Compile Android ROMs with Windows or Mac OSX

Search This thread

sylentprofet

Senior Member
Jun 10, 2010
283
1,857
0
Sacramento

BuilduntuVM is a custom branch of the Ubuntu operating system for compiling Android ROMs from source. It includes everything you need to sync with the repo of your choice (Cyanogenmod, AOSP, etc) and start building.

Features:
- Xubuntu 16.04 base
- Installed all necessary software for compiling (list available in the guide link above)
- Unnecessary programs removed (media players, games etc.)
- Geany for editing code
- Repo located in ~/bin and added to PATH
- Quick access drop-down terminal (Ctrl-F12)

All you have to do is download the source!

The only requirement is that your host machine supports a 64 bit OS. 32 bit systems will not work!

Instructions:

1. Download and install VirtualBox for your host system from here.
2. Download the latest builduntu zip archive and extract builduntu.ova to your hard drive.
3. Start VB, click File > Import Appliance. Select "Open Appliance" and choose builduntu.ova, then click Next to import the virtual machine.
4. Highlight builduntu in VirtualBox Manager and open Settings. Under "System" you will want to give it more RAM and Processor Cores. The higher these values are, the faster you will compile ROMs.
5. Start the machine, pull up a terminal and initialize a git repo. Once the source is finished downloading, you're ready to go!

Download:

Click here for mirrors!


Username/Password: android/android

Feel free to donate to the new hardware fund (donate) if you like my work. It would be greatly appreciated!

Please hit the "Thanks" button if this post helps you out!

Code:
[U][B]Changelog:[/B][/U]

v1 - Initial Release Dec 26, 2013

v1.0.1 - Released Jan 03, 2014
.. Added swap space
.. Increased dynamic drive max to 100 GB
.. Installed latest VirtualBox Guest Additions
.. Updated
.. Optimized

v1.1 - Jan 16, 2014
.. Updated and repackaged OVA file for VMWare

v1.2 - Feb 04, 2014
.. System updated
.. Packaged Manifest for data integrity verification
.. FINAL 13.10 edition (future releases will be based on 14.04)

v1.3 - Feb 08, 2014
.. Revised version numbering because I felt like it
.. Rebuilt with Ubuntu 14.04 base system
.. Increased swap space to 4 gb
.. Increased max disk size to 500 GB

v1.3.1 - Mar 02, 2014
.. Rebuilt from scratch using the latest Xubuntu 14.04 Beta 1 release
.. Testing semi-automated environment script
.. Began torrent distribution

v1.3.2 - Mar 20, 2014
.. Rebuilt from scratch again with new Builduntu Install Disc
.. It's just plain better

v1.4 - Apr 20, 2014
.. Rebuilt using Xubuntu 14.04 LTS Official Release base (via Builduntu Install Disc)
.. Added Guake drop-down terminal for more efficient command line, check it out!
.. HD space reduced to 250 GB dynamically allocated (was anyone ever getting close to 500 before?)
.. Shared folders should be working now (you can build in a directory on your host system, add the folder via Settings in VirtualBox)

v1.5 - Dec 27, 2014
.. Xubuntu 14.10 base
.. Installed ccache
.. JDK7 for Android L builds

v1.6 - Jul 17, 2015
.. Xubuntu Core 15.04 base
.. Switch to LVM
.. Reduced OVA size (almost 1 GB smaller!)
.. Removed Guake in favor of xterm drop-down. Ctrl-F12 for the terminal hotkey
.. Cleaned up package list

v2.0 - Apr 29, 2016
.. Rebase to Xubuntu 16.04 with Builduntu ISO v2
.. Transition to OpenJDK 8 for Android M builds
 
Last edited:

ni3po42

New member
Dec 27, 2013
1
0
0
Giving it a shot

Been oddly having trouble setting up my environment. Your previous post got me further then any other instructions. I'll give this a shot and see if it resolves my problem. Thanks in advance!
 

androidfr33k

Senior Member
Sep 29, 2012
393
49
0
I am on vmware fusion on Mac OSX 10.9.1, can I install your pre configured ubuntu on it?

Edited:

Oracle seems better in this circumstance anyhow. I was able to optimize ram and cpu settings but how to increase virtual drive. Its a PCIe SSD 1TB. I wanted to increase the VM up to 150GB. I did not see any easy way of doing it?

EDITED:

Figured out with some googling and using the cloneHD and ModifyHD tools built into virtual box and using terminal commands. I was able to resize the VWMK. The real tricky part is once that is done you have to resize in Linux because its still 60GB again google search found an easy way using gparted and modifying the /etc/fstab!!

Edited again:

I think the swap file was really set too low. I made it 16GB which is recommend by the source.android site. I know this helped a lot because it was lagging until I changed it.
 
Last edited:

HolyAngel

Recognized Developer / Inactive Recognized Contrib
Sep 14, 2008
3,929
13,634
263
Springfield
not working for me.
that's what i get when i try to import in VMware.

I imported the download into VMware workstation with no problems. I didn't try exporting from virtual box nor with VM player although the player should work the same as workstation.. Maybe try importing the original download without messing with virtual box?

Sent from my HTC One using XDA Premium 4 mobile app
 

HolyAngel

Recognized Developer / Inactive Recognized Contrib
Sep 14, 2008
3,929
13,634
263
Springfield
Hmm idk then, like I said, using VMware Workstation 10 I had NO problems importing and running it

Sent from my HTC One using XDA Premium 4 mobile app
 

Uzayr

Senior Member
Mar 3, 2013
402
494
0
Chennai
Thanks a lot for providing Builduntu, saves alot of trouble :)

i was wondering..
how much free space do i need to have to get the compiling done? i mean...how much is recommended?
 

sylentprofet

Senior Member
Jun 10, 2010
283
1,857
0
Sacramento
i also want to know same thing

All said and done you're looking at 40-50 Gb.

It's 10 or so for the repo source of your choice and device trees (AOKP, CM, etc.) then the build process itself takes another 30ish. You can "make clobber" in between builds to free up that 30 gig, but any time you compile a ROM it's going to need that space again.

By the way - the virtual hard drive on the VM is dynamically allocated, so it will only expand out the space as it is required. However, it won't "shrink" back down again, even after you delete the files.
 

mor_1228

Senior Member
Oct 3, 2010
3,484
786
0
Delhi
All said and done you're looking at 40-50 Gb.

It's 10 or so for the repo source of your choice and device trees (AOKP, CM, etc.) then the build process itself takes another 30ish. You can "make clobber" in between builds to free up that 30 gig, but any time you compile a ROM it's going to need that space again.

By the way - the virtual hard drive on the VM is dynamically allocated, so it will only expand out the space as it is required. However, it won't "shrink" back down again, even after you delete the files.

i have one till this step now what to do ?

1. Download and install VirtualBox for your host system from here.
2. Download the latest builduntu zip archive and extract builduntu.ova to your hard drive.
3. Start VB, click File > Import Appliance. Select "Open Appliance" and choose builduntu.ova, then click Next to import the virtual machine.
4. Highlight builduntu in VirtualBox Manager and open Settings. Under "System" you may want to give it more RAM and Processor Cores. The higher these values are, the faster you will compile ROMs.
5. Start the machine, pull up a terminal and initialize a git repo. Once the source is finished downloading, you're ready to go!



now how to get psx rom latest build ? can make tutorial to add or remove or merge features of different roms into 1 ? :highfive:
 

Uzayr

Senior Member
Mar 3, 2013
402
494
0
Chennai
All said and done you're looking at 40-50 Gb.

It's 10 or so for the repo source of your choice and device trees (AOKP, CM, etc.) then the build process itself takes another 30ish. You can "make clobber" in between builds to free up that 30 gig, but any time you compile a ROM it's going to need that space again.

By the way - the virtual hard drive on the VM is dynamically allocated, so it will only expand out the space as it is required. However, it won't "shrink" back down again, even after you delete the files.

i tried the 2.0 build with virtual box. i get to choose whether i need to start ubuntu normally or in recovery..and after i make my choice i'm stuck in a black screen....nothing happens :confused:

i'm going to try 2.1 and give it another shot.
 

jblazea50

Senior Member
Feb 10, 2010
2,309
472
0
Beltsville
When I open terminal and enter su to grant root permission and enter password android, it says Authentication Failure

what is the password in that instance? how do i get root permission?
 

mor_1228

Senior Member
Oct 3, 2010
3,484
786
0
Delhi
When I open terminal and enter su to grant root permission and enter password android, it says Authentication Failure

what is the password in that instance? how do i get root permission?

yeah su doesnt work but sudo command work well with password android.

i tried to change password but system hang
 
  • Like
Reactions: jblazea50

Top Liked Posts

  • There are no posts matching your filters.
  • 327

    BuilduntuVM is a custom branch of the Ubuntu operating system for compiling Android ROMs from source. It includes everything you need to sync with the repo of your choice (Cyanogenmod, AOSP, etc) and start building.

    Features:
    - Xubuntu 16.04 base
    - Installed all necessary software for compiling (list available in the guide link above)
    - Unnecessary programs removed (media players, games etc.)
    - Geany for editing code
    - Repo located in ~/bin and added to PATH
    - Quick access drop-down terminal (Ctrl-F12)

    All you have to do is download the source!

    The only requirement is that your host machine supports a 64 bit OS. 32 bit systems will not work!

    Instructions:

    1. Download and install VirtualBox for your host system from here.
    2. Download the latest builduntu zip archive and extract builduntu.ova to your hard drive.
    3. Start VB, click File > Import Appliance. Select "Open Appliance" and choose builduntu.ova, then click Next to import the virtual machine.
    4. Highlight builduntu in VirtualBox Manager and open Settings. Under "System" you will want to give it more RAM and Processor Cores. The higher these values are, the faster you will compile ROMs.
    5. Start the machine, pull up a terminal and initialize a git repo. Once the source is finished downloading, you're ready to go!

    Download:

    Click here for mirrors!


    Username/Password: android/android

    Feel free to donate to the new hardware fund (donate) if you like my work. It would be greatly appreciated!

    Please hit the "Thanks" button if this post helps you out!

    Code:
    [U][B]Changelog:[/B][/U]
    
    v1 - Initial Release Dec 26, 2013
    
    v1.0.1 - Released Jan 03, 2014
    .. Added swap space
    .. Increased dynamic drive max to 100 GB
    .. Installed latest VirtualBox Guest Additions
    .. Updated
    .. Optimized
    
    v1.1 - Jan 16, 2014
    .. Updated and repackaged OVA file for VMWare
    
    v1.2 - Feb 04, 2014
    .. System updated
    .. Packaged Manifest for data integrity verification
    .. FINAL 13.10 edition (future releases will be based on 14.04)
    
    v1.3 - Feb 08, 2014
    .. Revised version numbering because I felt like it
    .. Rebuilt with Ubuntu 14.04 base system
    .. Increased swap space to 4 gb
    .. Increased max disk size to 500 GB
    
    v1.3.1 - Mar 02, 2014
    .. Rebuilt from scratch using the latest Xubuntu 14.04 Beta 1 release
    .. Testing semi-automated environment script
    .. Began torrent distribution
    
    v1.3.2 - Mar 20, 2014
    .. Rebuilt from scratch again with new Builduntu Install Disc
    .. It's just plain better
    
    v1.4 - Apr 20, 2014
    .. Rebuilt using Xubuntu 14.04 LTS Official Release base (via Builduntu Install Disc)
    .. Added Guake drop-down terminal for more efficient command line, check it out!
    .. HD space reduced to 250 GB dynamically allocated (was anyone ever getting close to 500 before?)
    .. Shared folders should be working now (you can build in a directory on your host system, add the folder via Settings in VirtualBox)
    
    v1.5 - Dec 27, 2014
    .. Xubuntu 14.10 base
    .. Installed ccache
    .. JDK7 for Android L builds
    
    v1.6 - Jul 17, 2015
    .. Xubuntu Core 15.04 base
    .. Switch to LVM
    .. Reduced OVA size (almost 1 GB smaller!)
    .. Removed Guake in favor of xterm drop-down. Ctrl-F12 for the terminal hotkey
    .. Cleaned up package list
    
    v2.0 - Apr 29, 2016
    .. Rebase to Xubuntu 16.04 with Builduntu ISO v2
    .. Transition to OpenJDK 8 for Android M builds
    7
    Can I install it like any other Ubuntu on my PC? (I don't use VM)

    can i use this as dual boot / normal OS???
    i dont want a virtual os

    Ask and ye shall receive.
    4
    Can anyone tell me what I'm doing wrong!? I'm definitely not on a 32 bit system. I've dual booted my laptops but have no experience with virtualbox. I followed the directions and all I get is grub and when I try to boot in I just get a black screen with a static underscore. Screenshot is attached below

    Sent from my Nexus 5 using XDA Premium 4 mobile app

    right click to builduntu
    change version at general to ubuntu 64bit
    4
    Now that 16.04 is officially out (16.04.1 to be precise), I'll work on an official 2.0 image. Apologies for the delay, been crazy busy with work and moving. I will leave Java installation up to the individual user, since it appears 7 and 8 are in common use. Thanks for the support everyone!
    3
    Forgot to mention this, I found out why shared folders weren't working for me.
    It turns out the default user "android" needs to be added to the vboxsf group.

    Code:
    sudo adduser android vboxsf
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone