mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
Create instances with a random generated vnc password by default
This commit is contained in:
@@ -227,7 +227,7 @@ class wvmCreate(wvmConnect):
|
||||
|
||||
xml += """ <input type='mouse' bus='ps2'/>
|
||||
<input type='tablet' bus='usb'/>
|
||||
<graphics type='%s' port='-1' autoport='yes' listen='0.0.0.0'>
|
||||
<graphics type='%s' port='-1' autoport='yes' listen='0.0.0.0' passwd='%s'>
|
||||
<listen type='address' address='0.0.0.0'/>
|
||||
</graphics>
|
||||
<console type='pty'/>
|
||||
@@ -236,5 +236,5 @@ class wvmCreate(wvmConnect):
|
||||
</video>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
</domain>""" % QEMU_CONSOLE_DEFAULT_TYPE
|
||||
</domain>""" % (QEMU_CONSOLE_DEFAULT_TYPE, util.randomPasswd())
|
||||
self._defineXML(xml)
|
||||
|
||||
Reference in New Issue
Block a user