throws Exception {
try {
VcContext.inVcSessionDo(new VcSession<Void>() {
@Override
protected Void body() throws Exception {
FlagInfo flagInfo = new FlagInfoImpl();
flagInfo.setDiskUuidEnabled(true);
ConfigSpec configSpec = new ConfigSpecImpl();
configSpec.setFlags(flagInfo);
vm.reconfigure(configSpec);
return null;
}