Difference between revisions of "Setting up the build environment in a chroot"

From Alpine Linux
Jump to: navigation, search
(Create BE on HD-based Alpine: Download alpine-test.iso)
(Temporary save (still not done))
Line 15: Line 15:
  
 
== Create [[#Create a build environment|BE]] on HD-based Alpine ==
 
== Create [[#Create a build environment|BE]] on HD-based Alpine ==
 +
First you need to boot a alpine-test.iso<BR>
 +
Ether you do it on a standalone computer or in a virtual machine.
 
=== Preparing KVM ''(temporary notes)'' ===
 
=== Preparing KVM ''(temporary notes)'' ===
 
I chose to setup a HD-based Alpine in a virtual machine on my Ubuntu 8.10.<BR>
 
I chose to setup a HD-based Alpine in a virtual machine on my Ubuntu 8.10.<BR>
Line 21: Line 23:
 
  kvm-img create alpine-kvm_hd.img 5G ###Create a KVM-disk###
 
  kvm-img create alpine-kvm_hd.img 5G ###Create a KVM-disk###
 
  wget http://distrib-coffee.ipsl.jussieu.fr/pub/linux/alpine/alpine/v1.9/alpine-test.iso ###Download iso###
 
  wget http://distrib-coffee.ipsl.jussieu.fr/pub/linux/alpine/alpine/v1.9/alpine-test.iso ###Download iso###
  sudo kvm -cdrom alpine-test.iso -boot d alpine-kvm_hd.img
+
Before we boot our kvm-qemu we need to prepare it for networking by following the [[Running_Alpinelinux_As_a_QEMU_networked_Guest]] documents.<BR>
 +
This assumes you created a file '''qemu-ifup''' according to the wiki-doc just mentioned.
 +
  sudo kvm -cdrom alpine-test.iso -boot d -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=./qemu-ifup alpine-kvm_hd.img
 +
At this point we started a virtual machine running a clean Alpine.<BR>
 +
Now we need to prepare this for networking, etc.
 +
 
 +
'''Temporary note:''' [[For some reason I can't get networking to work in my kvm-qemu box. Complaining about tun/tap on my host. Need to fix this.]]
 +
 
 +
=== Prepare the clean Alpine ===
 +
At this point you should have a fresh alpine-box.<BR>
 +
 
  
 
= Update a existing environment =
 
= Update a existing environment =

Revision as of 16:10, 29 January 2009

Introduction

You will need a few Gigabytes to have enough pace for kernel compiling and storing all the binary packages and iso image.

This page is divided into 2 main sections

Create a build environment

The Build Environment (called BE from now on) could be any of the following...

Create BE on existing 2.6 kernel

Create BE on HD-based Alpine

First you need to boot a alpine-test.iso
Ether you do it on a standalone computer or in a virtual machine.

Preparing KVM (temporary notes)

I chose to setup a HD-based Alpine in a virtual machine on my Ubuntu 8.10.
(Notes: This section about setting up KVM should probably be removed later on - it's mostly there to help me get started).

apt-get install kvm ###This installs KVM###
kvm-img create alpine-kvm_hd.img 5G ###Create a KVM-disk###
wget http://distrib-coffee.ipsl.jussieu.fr/pub/linux/alpine/alpine/v1.9/alpine-test.iso ###Download iso###

Before we boot our kvm-qemu we need to prepare it for networking by following the Running_Alpinelinux_As_a_QEMU_networked_Guest documents.
This assumes you created a file qemu-ifup according to the wiki-doc just mentioned.

sudo kvm -cdrom alpine-test.iso -boot d -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=./qemu-ifup alpine-kvm_hd.img

At this point we started a virtual machine running a clean Alpine.
Now we need to prepare this for networking, etc.

Temporary note: For some reason I can't get networking to work in my kvm-qemu box. Complaining about tun/tap on my host. Need to fix this.

Prepare the clean Alpine

At this point you should have a fresh alpine-box.


Update a existing environment