Examples of HypervisorType


Examples of com.abiquo.model.enumerator.HypervisorType

      assertEquals(updated.getLocation(), "New York");
   }

   public void testCheckHypervisorType() {
      HypervisorType type = env.datacenter.getHypervisorType(env.machine.getIp());

      assertEquals(env.machine.getType(), type);
   }
View Full Code Here

Examples of com.abiquo.model.enumerator.HypervisorType

      List<HypervisorType> hypervisors = newArrayList(datacenter.listAvailableHypervisors());
      assertNotNull(datacenters);
      assertTrue(size(datacenters) > 0);

      HypervisorType hypervisor = hypervisors.get(0);

      PrivateNetwork network = PrivateNetwork.builder(env.enterpriseAdminContext.getApiContext())
            .name("DefaultNetwork").gateway("192.168.1.1").address("192.168.1.0").mask(24).build();

      VirtualDatacenter virtualDatacenter = VirtualDatacenter
View Full Code Here

Examples of com.abiquo.model.enumerator.HypervisorType

      virtualDatacenter.delete();
   }

   public void testCreateFromVirtualDatacenter() {
      HypervisorType hypervisor = env.virtualDatacenter.getHypervisorType();

      Enterprise enterprise = env.user.getEnterprise();
      assertNotNull(enterprise);

      Datacenter datacenter = env.virtualDatacenter.getDatacenter();
View Full Code Here

Examples of com.cloud.hypervisor.Hypervisor.HypervisorType

        int allocateRetry = 0;
        int startRetry = 0;
        DomainRouterVO router = null;
        for (Iterator<HypervisorType> iter = hypervisors.iterator(); iter.hasNext();) {
            HypervisorType hType = iter.next();
            try {
                s_logger.debug("Allocating the domR with the hypervisor type " + hType);
                VMTemplateVO template = _templateDao.findRoutingTemplate(hType);

                if (template == null) {
View Full Code Here

Examples of com.cloud.hypervisor.Hypervisor.HypervisorType


    protected List<HypervisorType> getHypervisors(DeployDestination dest, DeploymentPlan plan,
            List<HypervisorType> supportedHypervisors) throws InsufficientServerCapacityException {
        List<HypervisorType> hypervisors = new ArrayList<HypervisorType>();
        HypervisorType defaults = _resourceMgr.getDefaultHypervisor(dest.getDataCenter().getId());
        if (defaults != HypervisorType.None) {
            hypervisors.add(defaults);
        }

        if (dest.getCluster() != null) {
View Full Code Here

Examples of com.cloud.hypervisor.Hypervisor.HypervisorType

        }
        if (dc == null) {
            throw new IllegalArgumentException("Host " + startup.getPrivateIpAddress() + " sent incorrect data center: " + dataCenter);
        }
        dcId = dc.getId();
        HypervisorType hypervisorType = startup.getHypervisorType();

        if (s_logger.isDebugEnabled()) {
            s_logger.debug("Host's hypervisorType is: " + hypervisorType);
        }
View Full Code Here

Examples of com.cloud.hypervisor.Hypervisor.HypervisorType

      VirtualMachineEntityImpl vmEntity = ComponentContext.inject(VirtualMachineEntityImpl.class);
      vmEntity.init(id, owner, hostName, displayName, cpu, speed, memory, computeTags, rootDiskTags, new ArrayList<String>(networkNicMap.keySet()));


      HypervisorType hypervisorType = HypervisorType.valueOf(hypervisor);

      //load vm instance and offerings and call virtualMachineManagerImpl
      VMInstanceVO vm = _vmDao.findByUuid(id);

    // If the template represents an ISO, a disk offering must be passed in, and will be used to create the root disk
View Full Code Here

Examples of com.cloud.hypervisor.Hypervisor.HypervisorType

            if(network != null){
                networkIpMap.add(new Pair<NetworkVO, NicProfile>(network, networkNicMap.get(uuid)));
            }
        }

    HypervisorType hypervisorType = HypervisorType.valueOf(hypervisor);

        if (_itMgr.allocate(_userVmDao.findById(vm.getId(), true), _templateDao.findById(new Long(isoId)), offering, rootDiskOffering, dataDiskOfferings, networkIpMap, null, plan, hypervisorType, _accountDao.findById(new Long(owner))) == null) {
      return null;
    }
View Full Code Here

Examples of com.cloud.hypervisor.Hypervisor.HypervisorType

            s_logger.info("Unable to setup due to concurrent operation. " + e);
            return new HashMap<String, Object>();
        }

        VMTemplateVO template = null;
        HypervisorType availableHypervisor = _resourceMgr.getAvailableHypervisor(dataCenterId);
        template = _templateDao.findSystemVMReadyTemplate(dataCenterId, availableHypervisor);
        if (template == null) {
            throw new CloudRuntimeException("Not able to find the System templates or not downloaded in zone " + dataCenterId);
        }
View Full Code Here

Examples of com.cloud.hypervisor.Hypervisor.HypervisorType

        int allocateRetry = 0;
        int startRetry = 0;
        DomainRouterVO router = null;
        for (Iterator<HypervisorType> iter = hypervisors.iterator(); iter.hasNext();) {
            HypervisorType hType = iter.next();
            try {
                long id = _routerDao.getNextInSequence(Long.class, "id");
                if (s_logger.isDebugEnabled()) {
                    s_logger.debug("Allocating the VR i="+ id + " in datacenter "  + dest.getDataCenter() + "with the hypervisor type " + hType);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.