1. Virtual Machine Introduce
2. Vmware Image File Format
3. VHD File Format
4. Convert VHD File Into VMDK
5. Run Virtual PC virtual machine in VMware Workstation
6. CoreOS Docker Configuration And Running && Vagrant + CoreOS + docker
7. Create A CoreOS ISO VM with CoreOS VHD
1. Virtual Machine Introduce
A virtual machine (VM) shares physical hardware resources with other users but isolates the operating system or application to avoid changing the end-user experience.
A virtual machine (VM) is an operating system OS or application environment that is installed on software which imitates dedicated hardware. The end user has the same experience on a virtual machine as they would have on dedicated hardware.
Vm diff from Physic Machine
1. Non-virtualized computers
they load and execute hundreds or thousands of individual files, including operating-system kernel files, device drivers, application components and data files.
2. Virtualization abstracts the software from the underlying hardware and puts all the constituent data for a given virtual machine (VM) in a single disk file. The disk file is essentially a complete and independent virtual machine. Relevant Link:
The Virtual Hard Disk (VHD) format is a publicly-available image format specification that allows encapsulation of the hard disk into an individual file for use by the operating system as a virtual disk in all the same ways physical hard disks are used. These virtual disks are capable of hosting native file systems (NTFS, FAT, exFAT, and UDFS) while supporting standard disk and file operations. VHD API support allows management of the virtual disks. Virtual disks created with the VHD API can function as boot disks.
VHD files are used in
1. Hyper-V
2. Windows 7 && Windows Server 2008
3. Virtual Server
4. Windows Virtual PC
These products use the VHD API to contain the Windows operating system image utilized by a virtual machine as its system boot disk.
summary
1. User Mode Native Windows APIs:
1) VirtDisk.dll: Common library for VHD management APIs.
2. User Mode Domain: specific Management Wrappers
1) VDS VHD APIs: VDS Object Model wrappers for the VHD Windows APIs.
3. Kernel Mode Drivers:
1) VDrvRoot.sys: Root virtual drive enumerator.
2) FsDepends.sys: Nested volume dependency management.
3) Vhdmp.sys: VHD parser and dependency property provider. Relevant Link:
4. Convert VHD File Into VMDK
Virtual PC uses its own virtual disk image format called Virtual Hard Disk (.vhd file extension) that stores file system, operating system data, users files and folders like on physical disk. VHD format is also used by Microsoft backup applications and Windows Server operating systems.
我们需要将这个VHD文件转换为Vmware兼容的格式,并加载到Vmware上 0x1: Download、Instanll Winima
http://www.winimage.com/download.htm
Name: crsky
Code: 1353A9B 0x2: Convert
Select: Convert Virtual Hard Disk image..
Select: Create Fixed Size Virtual Hard Disk
Select, Safe as: VMware VMDK (*vmdk), select target location and type the new (.vmdk) file name
转换完成 0x3: Create A VM With Converted VMDK File
我们已经完成了将CoreOS的VHD文件转换为VMDK文件,但是我们知道,这个VMDK是一个虚拟磁盘文件,并不是一个可以直接启动的虚拟机。在这个VMDK文件中,包括了Boot引导启动CoreOS的主程序
接下来可以新建一个VM,并挂载VMDK镜像文件