sysconf() problem on Dom0
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
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.
Ferrucci Luca
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
RE: Create VM with libxc
Quoted 8 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: 28 June 2006 18:17
To: [email protected]
Subject: [Xen-devel] Create VM with libxc
Quoted 5 lines
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 likeexecve("xm", args);
--
Mats
Quoted 14 lines
Ferrucci Luca
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program._______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
RE: Create VM with libxc
Quoted 7 lines
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.
RE: Create VM with libxc
Quoted 12 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: 28 June 2006 18:37
To: [email protected]
Subject: RE: [Xen-devel] Create VM with libxcQuoted 3 lines
What's wrong with using something like
execve("xm", args);
Quoted 7 lines
Quoted 3 lines
--
MatsI 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
Quoted 14 lines
Ferrucci Luca
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program._______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
RE: Create VM with libxc
Quoted 7 lines
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...
Quoted 21 lines
Or if you want a more direct method, you need to parse or know the "builder" key, and use either
xc_linux_buildorxc_hvm_buildto perform the actual domain creation. Not sure how you attach devices, I haven't worked with that...--
MatsQuoted 14 lines
Ferrucci Luca
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program._______________________________________________
Xen-devel mailing list
[email protected]
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.
Re: Create VM with libxc
In reply to [email protected]Quoted 1 line · [email protected] 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
Quoted 11 lines
Ferrucci Luca
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program._______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel