diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2003-11-22 17:00:23 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2003-11-22 17:00:23 +0000 |
commit | 75a7d26709dd81a126f1c92be06c8b13ae453ef8 (patch) | |
tree | 69fce3f7a7e1ad80b76e9b70c69ac6f951c40f4f /tools/examples/createlinuxdom.py | |
parent | bbfbd58d871ceea8cef59513bb842d46b6d24041 (diff) | |
download | xen-75a7d26709dd81a126f1c92be06c8b13ae453ef8.tar.gz xen-75a7d26709dd81a126f1c92be06c8b13ae453ef8.tar.bz2 xen-75a7d26709dd81a126f1c92be06c8b13ae453ef8.zip |
bitkeeper revision 1.631 (3fbf9627n3_R5gJx6eFdJQwWUIKLCQ)
createlinuxdom.py, Xeno-HOWTO, TODO, README, README.CD:
Updated the docs to get rid of xenctl references.
Diffstat (limited to 'tools/examples/createlinuxdom.py')
-rwxr-xr-x | tools/examples/createlinuxdom.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/examples/createlinuxdom.py b/tools/examples/createlinuxdom.py index 2e25e303e8..d13ce5dbcb 100755 --- a/tools/examples/createlinuxdom.py +++ b/tools/examples/createlinuxdom.py @@ -12,20 +12,26 @@ nfsserv = nfspath = root_partn = usr_partn = "" # STEP 1. Specify kernel image file. image = "FULL_PATH_TO_IMAGE" -# STEP 2. Specify IP address, netmask and gateway for the new domain. +# STEP 2. How many megabytes of memory for the new domain? +memory_megabytes = 64 + +# STEP 3. A handy name for your new domain. +domain_name = "My new domain" + +# STEP 4. Specify IP address, netmask and gateway for the new domain. ipaddr = "ADDRESS" netmask = XenoUtil.get_current_ipmask() gateway = XenoUtil.get_current_ipgw() -# STEP 3a. Specify NFS server and path to rootfs (only needed for network boot) +# STEP 5a. Specify NFS server and path to rootfs (only needed for network boot) nfsserv = "ADDRESS" nfspath = "FULL_PATH_TO_ROOT_DIR" -# STEP 3b. Specify root (and possibly /usr) on local disc (if not NFS booting) +# STEP 5b. Specify root (and possibly /usr) on local disc (if not NFS booting) #root_partn = "/dev/sda2" #usr_partn = "/dev/sda6" -# STEP 4. Check that the following cmdline setup is to your taste. +# STEP 6. Check that the following cmdline setup is to your taste. cmdline = "ip="+ipaddr+":"+nfsserv+":"+gateway+":"+netmask+"::eth0:off" if root_partn: # Boot from local disc. May specify a separate /usr. @@ -55,7 +61,7 @@ if not os.path.isfile( image ): xc = Xc.new() -id = xc.domain_create() +id = xc.domain_create( mem_kb=memory_megabytes*1024, name=domain_name ) if id <= 0: print "Error creating domain" sys.exit() |