Hi all, I think patches/linux-2.6.16.13/xen-hotplug.patch does not work correctly. When I got a # of online CPUs by sysconf(_SC_NPROCESSORS_ONLN), this function returns a # of all online and offline CPUs. xen-hotplug.patch shows all CPUs including offline, but sysconf also reads /proc/stat and counts online CPUs. We should modify TOP command to use sysconf(). Thanks, KAZ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
What is the exact sequence of call, with libxc e libxs, to create a linux VM and to attach a device to it? It''s urgent, I can''t find an example and the library is not enough documented. I must use it in a C program that creates VM''s automatically. Ferrucci Luca ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of > ferrucci@cli.di.unipi.it > Sent: 28 June 2006 18:17 > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] Create VM with libxc > > What is the exact sequence of call, with libxc e libxs, to create a > linux VM and to attach a device to it? It''s urgent, I can''t find an > example and the library is not enough documented. I must use > it in a C > program that creates VM''s automatically.What''s wrong with using something like execve("xm", args); -- Mats> > Ferrucci Luca > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> What''s wrong with using something like > execve("xm", args); > > -- > Mats >I know this solution but it''s not enough for my purpose. I must use libxc/xs because I must know when I exactly create a VM and I want receive a callback. Can someone help me? Ferrucci Luca ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of > ferrucci@cli.di.unipi.it > Sent: 28 June 2006 18:37 > To: xen-devel@lists.xensource.com > Subject: RE: [Xen-devel] Create VM with libxc > > > > What''s wrong with using something like > > execve("xm", args); > > > > -- > > Mats > > > I know this solution but it''s not enough for my purpose. I must use > libxc/xs because I must know when I exactly create a VM and I want > receive a callback. > Can someone help me?Sure, I just try to suggest the most user-friendly approach before I go into more complicated solutions... So, you need to look at .../tools/python/xm/create.py - but beware that creating a domain isn''t entirely straight-forward... Or if you want a more direct method, you need to parse or know the "builder" key, and use either xc_linux_build or xc_hvm_build to perform the actual domain creation. Not sure how you attach devices, I haven''t worked with that... -- Mats> > Ferrucci Luca > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> > Sure, I just try to suggest the most user-friendly approach before I go > into more complicated solutions... > > So, you need to look at .../tools/python/xm/create.py - but beware that > creating a domain isn''t entirely straight-forward... > > Or if you want a more direct method, you need to parse or know the > "builder" key, and use either xc_linux_build or xc_hvm_build to perform > the actual domain creation. Not sure how you attach devices, I haven''t > worked with that... > > -- > Mats >> >> Ferrucci Luca >> >> ---------------------------------------------------------------- >> This message was sent using IMP, the Internet Messaging Program. >> >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> >>I have used xc_linux_build and I''ve created a VM, encrease memory reservation. But, how can I create a console channel with it? How can I attach a device using libxs? Thank you for your reply Mats. Ferrucci Luca ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
ferrucci@cli.di.unipi.it wrote:> What is the exact sequence of call, with libxc e libxs, to create a > linux VM and to attach a device to it? It''s urgent, I can''t find an > example and the library is not enough documented. I must use it in a C > program that creates VM''s automatically.Search the archives for some of the code that Jacob has posted. These domains aren''t going to play nicely with Xend though so I suspect strongly that it''s not going to address your problem adequately. It''s hard to say when you''re so cryptic about your needs ;-) Regards, Anthony Liguori> Ferrucci Luca > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel