diff -r 1fc6473ecc01 tools/python/xen/xm/create.py --- a/tools/python/xen/xm/create.py Tue Aug 30 20:03:51 2005 +++ b/tools/python/xen/xm/create.py Wed Aug 31 13:47:49 2005 @@ -103,8 +103,8 @@ fn=set_true, default=0, use="Connect to the console after the domain is created.") -gopts.var('vnc', val='no|yes', - fn=set_bool, default=None, +gopts.opt('vncviewer', short='V', + fn=set_true, default=0, use="""Spawn a vncviewer listening for a vnc server in the domain. The address of the vncviewer is passed to the domain on the kernel command line using 'VNC_SERVER=:'. The port used by vnc is 5500 + DISPLAY. @@ -308,6 +308,10 @@ gopts.var('nographic', val='no|yes', fn=set_bool, default=0, use="Should device models use graphics?") + +gopts.var('vnc', val='', + fn=set_value, default=None, + use="""Should the device model use VNC?""") gopts.var('sdl', val='', fn=set_value, default=None, @@ -606,7 +610,7 @@ """If vnc was specified, spawn a vncviewer in listen mode and pass its address to the domain on the kernel command line. """ - if not vals.vnc or vals.dryrun: return + if not vals.vncviewer or vals.dryrun: return vnc_display = choose_vnc_display() if not vnc_display: opts.warn("No free vnc display")