Hi! I just got through the manual and I installed Xen. It works perfect. Now I want to do the following: I have a simple .cpp file and I want it to send it the virtual machine, let it compile there and bring me back the result of the compilation and executation. I think I could do it with scripting, but I don''t quiet now how to communicate? Using xm console? Or SSH? But how can I give the .cpp file to the virtual machine? I have to tell him the code and tell him to compile with g++ ... Thnx in advance! Jochus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi! I just got through the manual and I installed Xen. It works perfect. Now I want to do the following: I have a simple .cpp file and I want it to send it the virtual machine, let it compile there and bring me back the result of the compilation and executation. I think I could do it with scripting, but I don''t quiet now how to communicate? Using xm console? Or SSH? But how can I give the .cpp file to the virtual machine? I have to tell him the code and tell him to compile with g++ ... Thnx in advance! Jochus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniel S. Reichenbach
2007-Feb-06 15:14 UTC
Re: [Xen-users] How to communicate with Xen instance?
Hi,>I have a simple .cpp file and I want it to send it the virtual machine, let >it compile there and bring me back the result of the compilation and >executation. I think I could do it with scripting, but I don''t quiet now howHaving installed Xen myself just a few hours ago, I went for having a Xen setup at home with several guests running BuildBot. Very nice if you need to build and check code quite often. BuildBot is available from http://buildbot.sourceforge.net/ You could e.g. set up several domU''s with different OS on them, and configure each one as build slave for the build bot master. If it''s just a single cpp file, you might be faster with using SSH and scp''ing your files to the guests, and compiling yourself on the command line. With kind regards, Daniel _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniel S. Reichenbach
2007-Feb-06 15:14 UTC
Re: [Xen-users] How to communicate with Xen instance?
Hi,>I have a simple .cpp file and I want it to send it the virtual machine, let >it compile there and bring me back the result of the compilation and >executation. I think I could do it with scripting, but I don''t quiet now howHaving installed Xen myself just a few hours ago, I went for having a Xen setup at home with several guests running BuildBot. Very nice if you need to build and check code quite often. BuildBot is available from http://buildbot.sourceforge.net/ You could e.g. set up several domU''s with different OS on them, and configure each one as build slave for the build bot master. If it''s just a single cpp file, you might be faster with using SSH and scp''ing your files to the guests, and compiling yourself on the command line. With kind regards, Daniel _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 6 Feb 2007 at 15:54, Jochen Hebbrecht wrote:> Hi! > > I just got through the manual and I installed Xen. It works perfect. > Now I want to do the following: > > I have a simple .cpp file and I want it to send it the virtual machine, let > it compile there and bring me back the result of the compilation and > executation. I think I could do it with scripting, but I don''t quiet now how > to communicate? Using xm console? Or SSH? But how can I give the .cpp file > to the virtual machine? I have to tell him the code and tell him to compile > with g++ ...Actually this is not related to XEN at all. I''d suggest to put the files on an NFS server and let the client (XEN VM) mount the directory and compile. Regards, Ulrich P.S. There''s also an "scp" command. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Henning Sprang
2007-Feb-06 16:09 UTC
Re: [Xen-users] How to communicate with Xen instance?
On 2/6/07, Jochen Hebbrecht <jochenhebbrecht@gmail.com> wrote:> I have a simple .cpp file and I want it to send it the virtual machine, let > it compile there and bring me back the result of the compilation and > executation. I think I could do it with scripting, but I don''t quiet now how > to communicate? Using xm console? Or SSH? But how can I give the .cpp file > to the virtual machine? I have to tell him the code and tell him to compile > with g++ ... >There is no Xen specific API to let you place files in a guests filesystem and run commands on them. So ssh might be the thing you have to head for. But, for curiosity, what are you doing there? Sounds quite odd to send a cpp file again and again, to cpmpile and execute is again and again. Normally for distributed compilations, one uses distcc or maybe the buildbot already mentioned.. And normally, when you want to execute a specific command on a system, you compile it once, and only send the binary to the machines that should execute it. Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jochen Hebbrecht
2007-Feb-06 16:16 UTC
Re: [Xen-users] How to communicate with Xen instance?
Henning Sprang schreef:> There is no Xen specific API to let you place files in a guests > filesystem and run commands on them. So ssh might be the thing you > have to head for. > > But, for curiosity, what are you doing there? > Sounds quite odd to send a cpp file again and again, to cpmpile and > execute is again and again. > > Normally for distributed compilations, one uses distcc or maybe the > buildbot already mentioned.. And normally, when you want to execute a > specific command on a system, you compile it once, and only send the > binary to the machines that should execute it. > > HenningI''m doing here my "thesis". It''s my last project before graduating. People make software here ( software can be Java based, C++ based, or just a Maven compilation, ... ) The meaning is they make a buildfile. In that buildfile stands: * I need a C++ compiler * I need a Java compiler The buildfile tells the Xen instance what to build and let Xen tell what the result of the build is. So, the difficulty is not the building, but the talking from dom0 to domU ... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users