FW:Microsoft Announces New Container Technologies for the Next Generation Cloud

source:http://blogs.technet.com/b/server-cloud/archive/2015/04/08/microsoft-announces-new-container-technologies-for-the-next-generation-cloud.aspx

Guest post by Mike Neil, General Manager for Windows Server, Microsoft

In today’s cloud-first world, businesses increasingly rely on applications to fuel innovation and productivity. As the cloud evolves, containers are emerging as an attractive way for developers to quickly and efficiently build and deploy these applications at the speed of business. Offering developers and IT professionals the ability to deploy applications from a workstation to a server in mere seconds, containers are taking application development to a whole new level.

As developers look to expand the benefits of containers to a broader set of applications, new requirements are emerging. For example, heightened levels of trust may be required for enterprise systems or in hosted environments. Furthermore, developers often deploy into mixed operational environments where they may not have control of the platform where the application is deployed. Virtualization has historically provided a valuable level of isolation that enables these scenarios but there is now opportunity to blend the efficiency and density of the container model with the right level of isolation.

Last October, Microsoft and Docker, Inc. jointly announced plans to bring containers to developers across the Docker and Windows ecosystems via Windows Server Containers, available in the next version of Windows Server. We will be unveiling the first live demonstration in a few weeks, starting at the BUILD conference. Today, we are taking containerization one step further by expanding the scenarios and workloads developers can address with containers:

• Hyper-V Containers, a new container deployment option with enhanced isolation powered by Hyper-V virtualization 
• Nano Server, a minimal footprint installation of Windows Server that is highly optimized for the cloud, and ideal for containers.

First-of-Their-Kind Hyper-V Containers

Leveraging our deep virtualization experience, Microsoft will now offer containers with a new level of isolation previously reserved only for fully dedicated physical or virtual machines, while maintaining an agile and efficient experience with full Docker cross-platform integration. Through this new first-of-its-kind offering, Hyper-V Containers will ensure code running in one container remains isolated and cannot impact the host operating system or other containers running on the same host.

While Hyper-V containers offer an additional deployment option between Windows Server Containers and the Hyper-V virtual machine, you will be able to deploy them using the same development, programming and management tools you would use for Windows Server Containers. In addition, applications developed for Windows Server Containers can be deployed as a Hyper-V Container without modification, providing greater flexibility for operators who need to choose degrees of density, agility, and isolation in a multi-platform, multi-application environment.

Our Containers in the Docker Ecosystem

Docker plays an important part in enabling the container ecosystem across Linux, Windows Server and the forthcoming Hyper-V Containers. We have been working closely with the Docker community to leverage and extend container innovations in Windows Server and Microsoft Azure, including submitting the development of the Docker engine for Windows Server Containers as an open contribution to the Docker repository on GitHub. In addition, we’ve made it easier to deploy the latest Docker engine using Azure extensions to setup a Docker host on Azure Linux VMs and to deploy a Docker-managed VM directly from the Azure Marketplace. Finally, we’ve added integration for Swarm, Machine and Compose into Azure and Hyper-V.

“Microsoft has been a great partner and contributor to the Docker project since our joint announcement in October of 2014,” said Nick Stinemates, Head of Business Development and Technical Alliances. “They have made a number of enhancements to improve the developer experience for Docker on Azure, while making contributions to all aspects of the Docker platform including Docker orchestration tools and Docker Client on Windows. Microsoft has also demonstrated its leadership within the community by providing compelling new content like dockerized .NET for Linux. At the same time, they’ve been working to extend the benefits of Docker containers- application portability to any infrastructure and an accelerated development process–to its Windows developer community.”

Introducing Nano Server: The Nucleus of Modern Apps and Cloud

The operating system has evolved dramatically with the move to the cloud. Many customers today need their OS for the primary purpose of powering born-in-the-cloud applications. Leveraging our years of experience building and running hyper-scale datacenters, Microsoft is uniquely positioned to provide a purpose-built OS to power modern apps and containers.

The result is Nano Server, a minimal footprint installation option of Windows Server that is highly optimized for the cloud, including containers. Nano Server provides just the components you need – nothing else, meaning smaller server images, which reduces deployment times, decreases network bandwidth consumption, and improves uptime and security. This small footprint makes Nano Server an ideal complement for Windows Server Containers and Hyper-V Containers, as well as other cloud-optimized scenarios. A preview will be available in the coming weeks, and you can read more about the technology on the Windows Server blog.

Containers are bringing speed and scale to the next level in today’s cloud-first world. Microsoft is uniquely positioned to propel more organizations forward into the next era of containerization, by offering flexibility and choice through Windows Server containers, Linux containers, and Hyper-V containers both in the cloud and on-premises. Today’s announcements are just the beginning of what’s to come, as we continue to fuel both the growth of containers in the industry, and new levels of application innovation for all developers.

Stay tuned for more details on these new innovations, beginning at our BUILD conference in a few weeks.

the “share option” in directory disappeared

I found that when the client pc was joined into the windows domian using windows 2003 Actice Directory the “share option” was gone as loggin by domain user.

it’s that when the domain users don’t have the privilege to create common windows directory share,you need to add the domain user to the POWER USER group.Even you login as domain administrator,the directory still lack the “sharing option”,you add it to the local administrators group,the sharing option will come out again.
Besides,the domain user did not have the privilege to share the directory,you need to enable the function in domain controller by policy tool(gpedit.ms)

Just mark it.

–EOF–

windows server 2008 partition extend online

help the customer to extend the NTFS partition online to satisfy the disk consumtion,just mark it.

C:UsersAdministrator>diskpart

Microsoft DiskPart 版本 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
在计算机上: EDM-DEV-DB

DISKPART> list volume

  卷 ###      LTR  标签         FS     类型        大小     状态       信息
 ----------  ---  -----------  -----  ----------  -------  ---------  --------
  卷     0     X                       DVD-ROM         0 B  无介质

  卷     1         系统保留    NTFS   磁盘分区         100 MB  正常     系统
  卷     2     C               NTFS   磁盘分区          29 GB  正常     启动
  卷     3     D   新加卷      NTFS   磁盘分区         109 GB  正常
页面文件

DISKPART> list volume

  卷 ###      LTR  标签         FS     类型        大小     状态       信息
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  卷     0     X                       DVD-ROM         0 B  无介质

  卷     1         系统保留     NTFS   磁盘分区         100 MB  正常    系统
  卷     2     C                NTFS   磁盘分区         29 GB  正常    启动
  卷     3     D   新加卷       NTFS   磁盘分区         109 GB  正常  页面文件

DISKPART> list

Microsoft DiskPart 版本 6.1.7601

DISK        - 显示磁盘列表。例如,LIST DISK。
PARTITION   - 显示所选磁盘上的分区列表。
              例如,LIST PARTITION。
VOLUME      - 显示卷列表。例如,LIST VOLUME。
VDISK       - 显示虚拟磁盘列表。

DISKPART> list volume

  卷 ###      LTR  标签         FS     类型        大小     状态       信息
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  卷     0     X                       DVD-ROM         0 B  无介质
  卷     1         系统保留     NTFS   磁盘分区         100 MB  正常         系统
  卷     2     C               NTFS   磁盘分区          29 GB  正常         启动
  卷     3     D   新加卷       NTFS   磁盘分区         109 GB  正常         页面文件

DISKPART> list disk

  磁盘 ###  状态           大小     可用     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  磁盘 0    联机              450 GB   310 GB

DISKPART> select disk 0

磁盘 0 现在是所选磁盘。

DISKPART> list volume

  卷 ###      LTR  标签         FS     类型        大小     状态       信息
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  卷     0     X                       DVD-ROM         0 B  无介质
  卷     1         系统保留     NTFS   磁盘分区         100 MB  正常         系统
  卷     2     C                NTFS   磁盘分区          29 GB  正常         启动
  卷     3     D   新加卷       NTFS   磁盘分区         109 GB  正常         页面文件

DISKPART> list part

  分区 ###       类型              大小     偏移量
  -------------  ----------------  -------  -------
  分区      1    主要                 100 MB  1024 KB
  分区      2    主要                  29 GB   101 MB
  分区      3    主要                 109 GB    29 GB

DISKPART> select volume 3

卷 3 是所选卷。

DISKPART> extend 317440

为此命令指定的参数无效。
有关此命令类型的详细信息,请使用 HELP EXTEND 命令

DISKPART> extend size=317440

DiskPart 成功地扩展了卷。

DISKPART>

DISKPART> list part

  分区 ###       类型              大小     偏移量
  -------------  ----------------  -------  -------
  分区      1    主要                 100 MB  1024 KB
  分区      2    主要                  29 GB   101 MB
* 分区      3    主要                 419 GB    29 GB

–EOF–

windows server 2003 diskpart扩容

本测试的os基于windows server 2003 EE版本

1.磁盘的类型

windows server在磁盘管理方面,能够将磁盘分为两种大的类型:基本、动态。”基本”类型主要针对单个磁盘,而”动态”则更加灵活一些,具备一定的动态扩展能力,一般针对多个磁盘,多个磁盘可以组成”卷”,例如从磁盘1和磁盘2中各拿100M组成一个容量200M的卷。而当这个卷容量不够,快耗尽时(常见的E分区空间不足),可以再从磁盘1和磁盘2上取空间容量,添加到卷上(E分区),这些都是动态的。

而基本类型的磁盘,不具备这样的功能,如果E分区空间不足了,而临近的空间上还有剩余的裸空间没有分配,可以借助diskpart工具进行扩展,可以参考后续的附件例子。

2.分区的类型

windows server的分区样式主要分为两种:”MBR”模式、”GPT”模式。MBR模式在主分区上有限制,只能拥有4个主分区。而GPT模式不受这个的限制,能够有很多的主分区(至少大于4)。

但在通常实际情况下,磁盘都是由存储提供的,条带化、raid已经做过了,再用”动态”磁盘的形式已经累赘了,重复的”mirror”、”条带化”、”raid”显得多余了。唯一的理由我想是”扩展性”,这体现在当某个app使用的磁盘分区,例如:D没有空间时,该如何让ntfs来动态的扩容?当然,主流的存储都支持动态的扩展lun了,而问题是ntfs如何online识别呢?这对于aix、linux并不是问题,只要使用了lvm或者一些其他的FS,都支持在线扩展了。而留给NTFS的选择似乎只有diskpart了。

附件是一次diskpart进行扩容的简单例子:diskpart扩容案例

windows server 2012 trial test

windows server 2012 was released.

1.windows setup welcome page

 

2. select the version to install

it's the same as win2k8 as the installation page

3. login page for user

 

4.server manager

all the maintanenace entry was server manager

 

5. the start menu was hiden in the left corner and powershell was high light

 

-EOF-