Add protection for VNC port with password on KVM.

This commit is contained in:
Fang Wang 2013-05-10 13:01:47 -07:00 committed by Edison Su
parent 643b3b5066
commit bf73d755b0
1 changed files with 3 additions and 1 deletions

View File

@ -3300,7 +3300,9 @@ ServerResource {
ConsoleDef console = new ConsoleDef("pty", null, null, (short) 0);
devices.addDevice(console);
GraphicDef grap = new GraphicDef("vnc", (short) 0, true, null, null,
//add the VNC port passwd here, get the passwd from the vmInstance.
String passwd = vmTO.getVncPassword();
GraphicDef grap = new GraphicDef("vnc", (short) 0, true, null, passwd,
null);
devices.addDevice(grap);