if (vmTO.getType() != VirtualMachine.Type.User) {
VirtioSerialDef vserial = new VirtioSerialDef(vmTO.getName(), null);
devices.addDevice(vserial);
}
ConsoleDef console = new ConsoleDef("pty", null, null, (short)0);
devices.addDevice(console);
//add the VNC port passwd here, get the passwd from the vmInstance.
String passwd = vmTO.getVncPassword();
GraphicDef grap = new GraphicDef("vnc", (short)0, true, vmTO.getVncAddr(), passwd, null);