how to reduce time of git pulling each time when you do a make world on Xen sourc
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to reduce time of git pulling each time when you do a make world on Xen sourc
I am compiling xen from source and each time I do a make world
it basically gives some or the other error
my problem are not those errors ( I am trying to debug them)
but the problem is each time when I do a make world
but I am not able to clearly understand where Boris mentions
Quote:
make xen etc.
"Then clone JF's Git Repo, checkout git branch as you want and build
corresponding
kernel.That's all i always do."
Which kernel is he referring to is it Dom0?
because when I ran make xen it worked without any problem and I can see in my
/usr/src/xen-4.0.1/dist/install/boot
but I am not clear with how to save this git pull each time.
I have given a link which I think is a solution to my problem but I am not able understand what they have mentioned.Can some one explain that.
You could have a build directory and clean sources directory.
I don't know if they rebase the xen kernel often, if they don't you could just
to begin
Code:
mkdir build
cd build
git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git
git clone xen xen-build
cd xen-build
... do your magic here
then to update
Code:
cd build
rm -rf xen-build
git pull
git clone xen xen-build
cd xen-build
...do whatever you need to do
As I said, I am don't really know much about the xen kernel.
For instance, I don't know what branch you are building (master?)
If you would post the script, you certainly will get some help.
It defeats the purpose of using git to get the kernel source if you are removing and downloading the entire source each build.
I don't use a xen kernel, but I compile git kernels all the time. You probably should post the script that you are using.
Well I am not using any script.
I have some doubt with respect to usage of git.
Quote:
Originally Posted by andrewthomas
I don't know if they rebase the xen kernel often, if they don't you could just
to begin
mkdir build
cd build
git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git
git clone xen xen-build
cd xen-build
... do your magic here
then to update
and at each build it will download 900 Mb.Which is very costly for my internet.
Well it will help me if you can explain the above portion I have been trying to understand Xen and it has been very confusing.
What is the meaning of branches in git.
It defeats the purpose of using git to get the kernel source if you are removing and downloading the entire source each build.
You are right that is my problem I do not have such an internet connection to git clone 900 Mb each time when I build.
What I did is now by the time I saw your message I commented out following lines from
buidlconfig/src.git-clone directory of Xens tar ball.
The first question I have is why are you making world?
Quote:
@echo ' world - clean everything, delete guest kernel build'
this is why it cleans out the directory and you have to clone the entire git repo every time.
Downloading the git tree
Code:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
$ cd linux-2.6-xen
Changing the branch: You most probably want to use the "xen/stable-2.6.32.x" branch, so do this:
Code:
$ cd linux-2.6-xen
$ git reset --hard
$ git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x
Branch xen/stable-2.6.32.x set up to track remote branch refs/remotes/origin/xen/stable-2.6.32.x.
Switched to a new branch "xen/stable-2.6.32.x"
$ git pull
$ git log | less
Later when you want to update the tree use:
Code:
$ cd linux-2.6-xen
$ make clean
$ git pull
Example how to compile/build the pv_ops dom0 kernel:
Code:
cd linux-2.6-xen
make clean
cp -a .config .config-old
wget -O .config <http_url_to_config_file>
make oldconfig
make menuconfig (if you need to change something)
make bzImage
make modules
make modules_install
# in the following lines replace "version" with the actual kernel version you're compiling.
cp -a .config /boot/config-version
cp -a System.map /boot/System.map-version
cp -a arch/x86/boot/bzImage /boot/vmlinuz-version
# And then generate initrd/initramfs image for your dom0 kernel, example for Fedora/RHEL/CentOS:
mkinitrd -f /boot/initrd-version.img version
The first question I have is why are you making world?
this is why it cleans out the directory and you have to clone the entire git repo every time.
Downloading the git tree
Ok thanks for this one I was not able to understand based on some blogs wiki etc I was doing it.
Quote:
Originally Posted by andrewthomas
Changing the branch: You most probably want to use the "xen/stable-2.6.32.x" branch, so do this:
$ cd linux-2.6-xen
$ git reset --hard
$ git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x
Branch xen/stable-2.6.32.x set up to track remote branch refs/remotes/origin/xen/stable-2.6.32.x.
Switched to a new branch "xen/stable-2.6.32.x"
$ git pull
$ git log | less
Later when you want to update the tree use:
$ cd linux-2.6-xen
$ make clean
$ git pull
Ok I am not that used to with git so I will search that out.
I am clear with kernel compile process.I was not clear with make world part that you made clear.
Basically I think process of compiling a pv-ops dom0 kernel is same as compiling a normal kernel.
Xen I need to compile separately.
I was not clear with compiling of Xen that is where every thing was giving me confusion as make world etc was mentioned here which gave rise to all the confusion http://wiki.xensource.com/xenwiki/Xen4.0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.