Skip to content

Commit 4f764e6

Browse files
committed
fix can't find system vm template on latest ubuntu 12.04, for devcloud
1 parent ff738fe commit 4f764e6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XcpOssResource.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ protected void fillHostInfo(Connection conn, StartupRoutingCommand cmd) {
7474

7575
@Override
7676
protected String getGuestOsType(String stdType, boolean bootFromCD) {
77-
return CitrixHelper.getXcpGuestOsType(stdType);
77+
if (stdType.equalsIgnoreCase("Debian GNU/Linux 6(64-bit)")) {
78+
return "Debian Squeeze 6.0 (64-bit)";
79+
} else {
80+
return CitrixHelper.getXcpGuestOsType(stdType);
81+
}
7882
}
7983

8084
protected VBD createPatchVbd(Connection conn, String vmName, VM vm) throws XmlRpcException, XenAPIException {

0 commit comments

Comments
 (0)