All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Shaun R." <mailinglists@unix-scripts.com>
To: xen-devel@lists.xensource.com
Subject: xc_domain_create
Date: Sun, 31 Aug 2008 10:37:29 -0700	[thread overview]
Message-ID: <g9eku4$mov$1@ger.gmane.org> (raw)

Can anybody show me a basic example of using this function to create a 
domain with the following config...

---------------------------------------------------------------------------------------------------
kernel="/boot/vmlinux-2.6.16.29-11774"
memory=256
name="user1"
vif=[ 'vifname=user1.0' , 'mac=FE:FD:CC:0F:87:45' ]
dhcp=""
disk=[ 
'tap:aio:/home/user1/disks/root_fs.img,sda1,w','tap:aio:/home/user1/disks/swap.img,sdb1,w' 
 ]
root="/dev/sda1 ro"
extra=""
ip="10.0.0.2"
netmask="255.255.255.248"
gateway="10.0.0.1"
dhcp=""
nfs_server=""
--------------------------------------------------------------------------------------------------

the xenctrl.h file shows this

int xc_domain_create(int xc_handle,
                     uint32_t ssidref,
                     xen_domain_handle_t handle,
                     uint32_t flags,
                     uint32_t *pdomid);


looks like i need to generate a ssidref, how can i do that?

xen_domain_handle_t handle i assume is what gets set with the domain info i 
just created?

I dont understand the flags, looking at other code it looks like this is 
where i need to pass all the config data but i'm unsure how.

pdomid, not sure what this is for.

If anybody can show me a basic example that would get me started in the 
right direction it would be much appreciated.


~Shaun 

             reply	other threads:[~2008-08-31 17:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-31 17:37 Shaun R. [this message]
2008-08-31 18:01 ` xc_domain_create Keir Fraser
2008-08-31 20:46 ` xc_domain_create Geoffrey Lefebvre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='g9eku4$mov$1@ger.gmane.org' \
    --to=mailinglists@unix-scripts.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.