bitkeeper revision 1.870 (40864ecfuC78diq7FlE3MwqO1-QlQA)
authorach61@labyrinth.cl.cam.ac.uk <ach61@labyrinth.cl.cam.ac.uk>
Wed, 21 Apr 2004 10:37:03 +0000 (10:37 +0000)
committerach61@labyrinth.cl.cam.ac.uk <ach61@labyrinth.cl.cam.ac.uk>
Wed, 21 Apr 2004 10:37:03 +0000 (10:37 +0000)
specify a domain's console port in the xc_dom_create defaults file

tools/examples/defaults
tools/examples/xc_dom_create.py

index 9f1a7874ab9645dd438fdbbbd4397348b114899d..d5a41eebd52e6fdd3deb9560cd5a4e3a1b82e925 100644 (file)
@@ -87,3 +87,7 @@ cmdline_extra = "4 VMID=%d usr=/dev/sda6" % vmid
 
 auto_restart = False
 #auto_restart = True
+
+# STEP 8. (Optional) Define a console port number for the new domain.
+
+# console_port = 9610+vmid
index 9c7b73d94b1e079bfc5854e9b2a38302de98345f..2d2030f23e0516eeddbfe5574ea42947f1fc470d 100755 (executable)
@@ -87,7 +87,7 @@ image=''; ramdisk=''; builder_fn=''; restore=0; state_file=''
 mem_size=0; domain_name=''; vfr_ipaddr=[];
 vbd_expert=0; auto_restart=False;
 vbd_list = []; cmdline_ip = ''; cmdline_root=''; cmdline_extra=''
-pci_device_list = []
+pci_device_list = []; console_port = -1
 auto_console = False
 
 ##### Determine location of defautls file
@@ -234,7 +234,8 @@ def make_domain():
             print "Error creating domain"
             sys.exit()
             
-        cmsg = 'new_control_interface(dom='+str(id)+')'
+        cmsg = 'new_control_interface(dom='+str(id)+', console_port='+str(console_port)+')'
+
         xend_response = xenctl.utils.xend_control_message(cmsg)
         if not xend_response['success']:
             print "Error creating initial event channel"