Re: cross-Compiling DFBSD on an Ubuntu machine.

2012-03-12 Thread Edward M.

On 03/11/2012 05:27 PM, karim.allah.ah...@gmail.com wrote:
So, I thought It would be a good idea to work on porting DFBSD as DomU 
for xen for education.



I think Xen already supports  hardware virtualization (Intel VT or 
AMD-V) and it should be able to run

unmodified operating systems like DFBSD and windows.


Re: cross-Compiling DFBSD on an Ubuntu machine.

2012-03-12 Thread karim.allah.ah...@gmail.com
On Mon, Mar 12, 2012 at 8:21 AM, Edward M. martinezedward...@gmail.comwrote:

 On 03/11/2012 05:27 PM, karim.allah.ah...@gmail.com wrote:

 So, I thought It would be a good idea to work on porting DFBSD as DomU
 for xen for education.



I think Xen already supports  hardware virtualization (Intel VT or
 AMD-V) and it should be able to run
unmodified operating systems like DFBSD and windows.

I meant as a PV guest.



-- 
Karim Allah Ahmed.
LinkedIn http://eg.linkedin.com/pub/karim-allah-ahmed/13/829/550/


Re: cross-Compiling DFBSD on an Ubuntu machine.

2012-03-12 Thread Dmitrij D. Czarkoff
On Mon, 2012-03-12 at 02:27 +0200, karim.allah.ah...@gmail.com wrote:
 Well, Ok .. Let me clarify. I'm extremely interested in
 virtualization, and particularly xen. So, I thought It would be a good
 idea to work on porting DFBSD as DomU for xen for education.
 
 
 Now, I'm not sure what should my development environment be like !
 What do you think is the perfect development environment to do so ?

You might want to set up a virtual machine. Then you could use your
preferred tools for development and only use DragonFly to build the
sources. NFS shares and ssh would help you making this process nearly
seamless.

As this solution seems pretty obvious, I believe there should be some
catch I didn't notice. Please comment if so.

-- 
Dmitrij D. Czarkoff



Re: cross-Compiling DFBSD on an Ubuntu machine.

2012-03-12 Thread Dmitrij D. Czarkoff
n Mon, 2012-03-12 at 10:14 +0100, Dmitrij D. Czarkoff wrote:
 On Mon, 2012-03-12 at 02:27 +0200, karim.allah.ah...@gmail.com wrote:
  Well, Ok .. Let me clarify. I'm extremely interested in
  virtualization, and particularly xen. So, I thought It would be a
good
  idea to work on porting DFBSD as DomU for xen for education.
  
  
  Now, I'm not sure what should my development environment be like !
  What do you think is the perfect development environment to do so ?
 
 You might want to set up a virtual machine.

[...]

That's not to mention the possibility of installing DragonFly and using
it, which might be the best solution in this case.

-- 
Dmitrij D. Czarkoff



Re: cross-Compiling DFBSD on an Ubuntu machine.

2012-03-12 Thread karim.allah.ah...@gmail.com
Well, I think launching a VM and using NFS is the best solution then. I
just wished I could cross-compile it or something, I was gonna use a
machine that didn't have a VT support for the development, so launching a
VM and compiling could have been a very slow operation. I guess now I'll
use my laptop ( with intel-VT ) for the dev.

and about installing DFBSD, well I don't think that this is ideal .. I need
a xen with Dom0 ( linux for instance ) running in order to test directly on
it.


Thanks for your response.
On Mon, Mar 12, 2012 at 11:45 AM, Dmitrij D. Czarkoff czark...@gmail.comwrote:

 n Mon, 2012-03-12 at 10:14 +0100, Dmitrij D. Czarkoff wrote:
  On Mon, 2012-03-12 at 02:27 +0200, karim.allah.ah...@gmail.com wrote:
   Well, Ok .. Let me clarify. I'm extremely interested in
   virtualization, and particularly xen. So, I thought It would be a
 good
   idea to work on porting DFBSD as DomU for xen for education.
  
  
   Now, I'm not sure what should my development environment be like !
   What do you think is the perfect development environment to do so ?
 
  You might want to set up a virtual machine.

 [...]

 That's not to mention the possibility of installing DragonFly and using
 it, which might be the best solution in this case.

 --
 Dmitrij D. Czarkoff




-- 
Karim Allah Ahmed.
LinkedIn http://eg.linkedin.com/pub/karim-allah-ahmed/13/829/550/


Re: cross-Compiling DFBSD on an Ubuntu machine.

2012-03-12 Thread Dmitrij D. Czarkoff
On Mon, 2012-03-12 at 11:56 +0200, karim.allah.ah...@gmail.com wrote:
 Well, I think launching a VM and using NFS is the best solution then. I
 just wished I could cross-compile it or something, I was gonna use a
 machine that didn't have a VT support for the development, so launching a
 VM and compiling could have been a very slow operation. I guess now I'll
 use my laptop ( with intel-VT ) for the dev.

If so, you could actually install DragonFly on the machine you wanted to
use initially and NFS/ssh to it for development tasks. Then you could
configure another NFS mount so that the built media would land on your
laptop so that you could test the image in Xen.

-- 
Dmitrij D. Czarkoff



Re: cross-Compiling DFBSD on an Ubuntu machine.

2012-03-12 Thread Venkatesh Srinivas
NetBSD invested a lot of time in build.sh, so that they can build on a
fair number of platforms. It would be pretty cool if someone wanted to
do the same here :0

-- vs;


Re: cross-Compiling DFBSD on an Ubuntu machine.

2012-03-11 Thread John Marino

On 3/11/2012 19:14, karim.allah.ah...@gmail.com wrote:

I've an Ubuntu machine ( oneiric ), Is it possible to cross-compile DFBSD ?

Thanks.

--
Karim Allah Ahmed.
LinkedIn http://eg.linkedin.com/pub/karim-allah-ahmed/13/829/550/



What is it exactly that you want to cross-compile?
The userland?
The kernel?
Or just some program that can run DragonFly?


The basic answer is that yes it's possible, but cross compiling is not 
particularly easy to set up (in general, applies to all systems).  I 
don't know what you are trying to accomplish though.


John


Re: cross-Compiling DFBSD on an Ubuntu machine.

2012-03-11 Thread Samuel J. Greear
On Sun, Mar 11, 2012 at 1:32 PM, Alex Hornung ahorn...@gmail.com wrote:

 On 11/03/12 18:14, karim.allah.ah...@gmail.com wrote:
  I've an Ubuntu machine ( oneiric ), Is it possible to cross-compile
 DFBSD ?

 In a nutshell: no, it isn't possible.

 Cheers,
 Alex


To clarify: the build infrastructure would probably support it, perhaps
with minor modifications -- IF you had a properly working cross-compiler
and you were able to bootstrap all of the dependencies up through the
cross-tools build stage with that compiler on Linux. Nobody has done this
to my knowledge, so probably it would be a fair amount of work to actually
get it all working.

Best,
Sam


Re: cross-Compiling DFBSD on an Ubuntu machine.

2012-03-11 Thread karim.allah.ah...@gmail.com
Well, Ok .. Let me clarify. I'm extremely interested in virtualization,
and particularly xen. So, I thought It would be a good idea to work on
porting DFBSD as DomU for xen for education.

Now, I'm not sure what should my development environment be like !
What do you think is the perfect development environment to do so ?

Thanks

On Mon, Mar 12, 2012 at 12:08 AM, Samuel J. Greear s...@evilcode.net wrote:

 On Sun, Mar 11, 2012 at 1:32 PM, Alex Hornung ahorn...@gmail.com wrote:

 On 11/03/12 18:14, karim.allah.ah...@gmail.com wrote:
  I've an Ubuntu machine ( oneiric ), Is it possible to cross-compile
 DFBSD ?

 In a nutshell: no, it isn't possible.

 Cheers,
 Alex


 To clarify: the build infrastructure would probably support it, perhaps
 with minor modifications -- IF you had a properly working cross-compiler
 and you were able to bootstrap all of the dependencies up through the
 cross-tools build stage with that compiler on Linux. Nobody has done this
 to my knowledge, so probably it would be a fair amount of work to actually
 get it all working.

 Best,
 Sam




-- 
Karim Allah Ahmed.
LinkedIn http://eg.linkedin.com/pub/karim-allah-ahmed/13/829/550/