
Vsphere 虚拟化 开发实战
本专栏是基于Java 开发语言,通过相关的jar文件,调用VCenter相关接口,对Vsphere 进行的相关操作,(1)收集虚拟机、服务器、资源池、Datastore、数据中心等相关配置信息。
在奋斗的大道
程序发烧友
展开
-
Vijava学习笔记之(为指定的SCSI控制器,添加关联磁盘。主要针对虚拟机)
源代码:package com.vmware.virtualmachine;import com.vmware.util.Session;import com.vmware.vim25.*;import com.vmware.vim25.mo.*;/** * Created by vixuan-008 on 2015/5/27. */public class VmCre原创 2015-05-28 09:12:58 · 2138 阅读 · 0 评论 -
Vijava 学习笔记之(VirtualMachine 移除指定虚拟磁盘)
源代码:package com.vmware.client;import com.vmware.util.Session;import com.vmware.vim25.*;import com.vmware.vim25.mo.*;/** * Created by vixuan-008 on 2015/5/27. */public class RemoveVmDisk {原创 2015-05-27 13:02:39 · 1870 阅读 · 0 评论 -
Vjava学习笔记之(VirtualMachine 内存(总容量和已使用))
源代码:package com.vmware.client;import com.vmware.util.Session;import com.vmware.vim25.HostListSummary;import com.vmware.vim25.mo.*;/** * Created by vixuan-008 on 2015/5/22. */public class Vi原创 2015-05-22 13:18:45 · 1992 阅读 · 0 评论 -
Vijava学习笔记之(HostSystem 内存(总容量和已使用))
源代码:package com.vmware.client;import com.vmware.util.Session;import com.vmware.vim25.HostListSummary;import com.vmware.vim25.mo.*;/** * HostSystem 内存容量、已使用容量和CPU个数 * Created by vixuan-008 on原创 2015-05-22 13:17:26 · 1361 阅读 · 1 评论 -
Vijava 学习笔记之(ResourcePool 关联VirtualMachine)
源代码:Server:package com.vmware.resourcepool;import com.vmware.vim25.mo.*;import java.util.ArrayList;import java.util.List;/** * Created by vixuan-008 on 2015/5/21. */public class Resource原创 2015-05-21 15:55:20 · 1156 阅读 · 0 评论 -
Vijava 学习笔记之(HostSystem 关联VirtualMachine)
源代码:Serverpackage com.vmware.client;import com.vmware.vim25.mo.*;import java.util.ArrayList;import java.util.List;/** * Created by vixuan-008 on 2015/5/21. */public class HostSystemVirtu原创 2015-05-21 15:43:02 · 1300 阅读 · 0 评论 -
Vijava 学习笔记之(模板生成虚拟机)
vijava 源代码:package com.vmware.template;import com.vmware.util.Session;import com.vmware.vim25.VirtualDeviceConfigSpec;import com.vmware.vim25.VirtualMachineCloneSpec;import com.vmware.vim25.Vi原创 2015-05-04 11:59:16 · 2784 阅读 · 0 评论 -
Vijava 学习笔记之(VirtualMachineCloneSpec)
VirtualMachineCloneSpec:指定虚拟机克隆规范。NAMETYPEDESCRIPTIONconfig*VirtualMachineConfigSpec指定虚拟机的配置信息customization*CustomizationSpec一个可选的操作系统定制规范。如果虚拟机创建原创 2015-05-04 11:54:11 · 1860 阅读 · 2 评论 -
Vijava 学习笔记之(VirtualMachineRelocateSpec类)
VirtualMachineRelocateSpec:移动或复制指定虚拟机,使用不同的DataStore或HostSystem。PropertiesNAMETYPEDESCRIPTIONdatastore*ManagedObjectReference to a Datastore指定虚拟机所使用的数据存储,原创 2015-05-04 11:43:31 · 2101 阅读 · 0 评论 -
Using Java to create customized virtual machine clones on VMWare infrastructure
Hello. Quite a while ago I was given a task to create a java module which would be able to create customized clones from existing virtual machines, managed by vSphere. Main focus was on creating clone转载 2015-04-30 15:24:21 · 1783 阅读 · 5 评论 -
Vijava 学习笔记之模板
Vijava 代码:package com.vmware.template;import com.vmware.util.Session;import com.vmware.vim25.CustomizationSpecInfo;import com.vmware.vim25.VirtualMachineConfigInfo;import com.vmware.vim25.mo.*;原创 2015-04-30 12:47:22 · 3133 阅读 · 1 评论 -
Vijava 学习笔记之HostSystem 包含虚拟机和虚拟网卡v
vijava 代码:实体类:package com.vmware.pojo;/** * Created by vixuan-008 on 2015/4/24. */public class VirtualNic { private String name; private String portgroup; private String mac;原创 2015-04-29 11:53:51 · 1970 阅读 · 3 评论 -
Vijava 学习笔记之NetWork(基础配置信息)
Vijava 代码:实体类:package com.vmware.pojo;import java.util.List;/** * Created by vixuan-008 on 2015/4/24. */public class NetworkInfo { private List vnics;//虚拟网卡 private List vss;//虚拟交换机原创 2015-04-28 11:56:58 · 2668 阅读 · 1 评论 -
Vijava 学习笔记之 DataStore(基础配置信息)
vijava 代码实体类package com.vmware.pojo;import java.util.ArrayList;import java.util.Calendar;/** * 存储信息 * @author zhb */public class HostDatastoreInfo extends Entity{ private String name原创 2015-04-28 11:33:51 · 4256 阅读 · 1 评论 -
Vijava 学习笔记之ResourcePool(基础配置信息)
Vijava 代码实体类:package com.vmware.pojo;import java.util.ArrayList;import java.util.Calendar;import java.util.Date;/** * 虚拟机信息 * @author zhb * */public class VirtualMachineInfo extends Ent原创 2015-04-28 11:28:09 · 2501 阅读 · 3 评论 -
Vijava学习笔记之Cluster(基础配置信息)
Vijava 代码:实体类:package com.vmware.pojo;/** * 集群信息 * @author zhb * */public class ClusterInfo extends Entity{ private String name; //名称 //ha配置数据 private Boolean haEnabled; //是否启原创 2015-04-28 10:58:33 · 1993 阅读 · 0 评论 -
Vijava学习笔记之DataCenter(基础配置信息)
vijava 代码:实体类:package com.vmware.pojo; /** * 数据中心 * @author zhb */ public class DataCenter extends Entity{ private String name; //数据中心名称 private String原创 2015-04-28 10:18:14 · 2001 阅读 · 0 评论 -
Vijava 学习笔记之VirtualMachine(基础配置信息{VirtualMachineConfigSummary})
Vijava 代码package com.vmware.client;import com.vmware.util.Session;import com.vmware.vim25.VirtualMachineConfigSummary;import com.vmware.vim25.VirtualMachineStorageSummary;import com.vmware.vim2原创 2015-04-21 17:25:09 · 5579 阅读 · 0 评论 -
Vijava 学习笔记之VirtualMachine(CPU Process 更改)
Vijava 代码:package com.vmware.client;import com.vmware.util.Session;import com.vmware.vim25.VirtualMachineConfigSpec;import com.vmware.vim25.mo.*;/** * Created by vixuan-008 on 2015/4/21. */原创 2015-04-21 16:32:21 · 1420 阅读 · 0 评论 -
Vijava 学习笔记之VirtualMachine(Memory 容量更改)
vijava 代码:package com.vmware.client;import com.vmware.util.Session;import com.vmware.vim25.VirtualMachineConfigSpec;import com.vmware.vim25.mo.*;/** * Created by vixuan-008 on 2015/4/21. */原创 2015-04-21 15:39:47 · 1596 阅读 · 0 评论 -
Vijava 学习笔记之VirtualMachine(CPU 利用率和Memory 利用率)
package com.vmware.util;import com.vmware.vim25.*;import com.vmware.vim25.mo.InventoryNavigator;import com.vmware.vim25.mo.ManagedEntity;import com.vmware.vim25.mo.PerformanceManager;import com.原创 2015-04-20 14:40:07 · 6078 阅读 · 3 评论 -
Vijava 学习笔记之 VirtualMachine(虚拟磁盘已用容量和空闲容量)
package com.vmware.util;import com.vmware.vim25.mo.ServiceInstance;import java.net.URL;/** * Created by vixuan-008 on 2015/4/17. */public class Session { private static String __serverNam原创 2015-04-17 18:14:03 · 2447 阅读 · 1 评论 -
Vijava 学习笔记之 VMware监测器取值方式总结
http://www.eclipse4.org/xwiki/bin/view/ITOSS%E7%9B%91%E6%B5%8B%E5%99%A8/VMware%E7%9B%91%E6%B5%8B%E5%99%A8%E5%8F%96%E5%80%BC%E6%96%B9%E5%BC%8F原创 2015-04-17 13:57:47 · 2048 阅读 · 2 评论 -
Vijava 学习笔记之 VirtualMachine(状态(通电状态))
package com.vmware.util;import com.vmware.vim25.mo.ServiceInstance;import java.net.URL;/** * Created by vixuan-008 on 2015/4/17. */public class Session { private static String __serverNam原创 2015-04-17 14:50:54 · 2219 阅读 · 0 评论 -
Vijava 学习笔记之 HostSystem(内存总大小、内存已使用容量和CPU个数)
package com.vmware.util;import com.vmware.vim25.mo.ServiceInstance;import java.net.URL;/** * Created by vixuan-008 on 2015/4/17. */public class Session { private static String __serverNam原创 2015-04-17 14:30:31 · 2223 阅读 · 0 评论 -
Vijava 学习笔记之 VirtualMachine操作(关机、待机和重新加载)
package com.vmware.client;import com.vmware.util.ClientSesion;import com.vmware.vim25.mo.*;import java.net.URL;/** * Created by vixuan-008 on 2015/4/16. */public class VirtualMachineTaskStop原创 2015-04-16 20:13:33 · 4540 阅读 · 0 评论 -
Vijava 学习笔记之HostSystem(内存利用率)
package com.vmware.client;import com.vmware.util.ClientSesion;import com.vmware.vim25.HostHardwareInfo;import com.vmware.vim25.VirtualHardware;import com.vmware.vim25.VirtualMachineConfigInfo;im原创 2015-04-15 18:51:05 · 1795 阅读 · 0 评论 -
Vijava 学习笔记之 HostSystem(主机总线适配器)
主机总线适配器简介:中文缩写: Host bus adapter中文译名: 主机总线适配器分 类: 网络与交换解 释: 能插入计算机、服务器或大型主机的板卡,通过光纤信道或SCSI把计算机连接到存储器或存储器网。package com.vmware.client;import com.vmware.util.ClientSesion;import com.原创 2015-04-14 19:52:04 · 1481 阅读 · 0 评论 -
Vijava 学习笔记之 HostSystem 连接
package com.vmware.client;import com.vmware.util.ClientSesion;import com.vmware.vim25.*;import com.vmware.vim25.mo.*;import java.net.URL;/** * Created by vixuan-008 on 2015/4/14. */public c原创 2015-04-14 19:28:42 · 1897 阅读 · 0 评论 -
Vijava 学习笔记之 虚拟机连接
package com.vmware.client;import com.vmware.util.ClientSesion;import com.vmware.vim25.VirtualMachineAffinityInfo;import com.vmware.vim25.VirtualMachineCapability;import com.vmware.vim25.VirtualMa原创 2015-04-14 17:33:59 · 2351 阅读 · 1 评论 -
Vijava 学习笔记之 VCenter连接
package com.vmware.util;/** * Created by vixuan-008 on 2015/4/8. * ClientSesion 类:连接VCent服务器(URL、用户名和密码) */public class ClientSesion implements java.io.Serializable { private String host;//v原创 2015-04-14 17:23:19 · 4609 阅读 · 4 评论