mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
new networking change integration
This commit is contained in:
parent
4e9c030d82
commit
b285bbb683
@ -75,4 +75,6 @@ public interface VirtualMachineTemplate extends ControlledEntity {
|
||||
TemplateType getTemplateType();
|
||||
|
||||
HypervisorType getHypervisorType();
|
||||
|
||||
int getBits();
|
||||
}
|
||||
|
||||
@ -70,6 +70,11 @@ public abstract class HypervisorGuruBase extends AdapterBase implements Hypervis
|
||||
to.setNics(nics);
|
||||
to.setDisks(vmProfile.getDisks().toArray(new VolumeTO[vmProfile.getDisks().size()]));
|
||||
|
||||
if(vmProfile.getTemplate().getBits() == 32)
|
||||
to.setArch("i686");
|
||||
else
|
||||
to.setArch("x86_64");
|
||||
|
||||
return to;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user