云计算与虚拟化技术 第9讲: Virtual machine 阮晓龙 13938213680/n@hactcm edu cn http://cloud.xg.hactcm.edu.cn http://www.51xueweb.cn 河南中医药大学信息管理与信息系统教研室 信息技术学院网络与信思系统科研工作室 2019.5
2 讨论提纲 Understanding Virtual Machines Examining Virtual Machines from the Inside Examining Virtual Machines from the Outside a Creating a Virtual Machine Values/Sizing/Naming/ Graphics Installing a guest Operating System /VMware Tool a Managing virtual Machines Adding or Registering Existing VMs Changing VM Power States /Removing/Deleting a Modifying virtual Machines Changing virtual Machine Hardware sing Virtual Machine Snapshots 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
3 1.Understanding VMs 1.1Examining Virtual Machines from the Inside a From the perspective of software running inside a vm, a vm is really just a collection of virtual hardware resources selected for the purpose of running a guest OS instance a By default, VMware ESXi presents the following fairly generic hardware to the Vm a Phoenix BIOS a Intel 440BX motherboard a Intel PCl AHCI controller IDE CD-ROM drive BusLogic parallel SCSl, LSI Logic parallel SCSI, or LSI Logic SAS controller 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
4 1.Understanding VMs 1.1Examining Virtual Machines from the Inside a From the perspective of software running inside a vm, a vm is really just a collection of virtual hardware resources selected for the purpose of running a guest OS instance a By default, VMware ESXi presents the following fairly generic hardware to the Vm AMD or Intel CPU, depending on the physical hardware a Intel E1000, Intel E1000e Standard VGa video adapter a VMware selected this generic hardware to provide the broadest level of compatibility across the entire supported guest OSs 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
5 1.Understanding VMs 1.1Examining Virtual Machines from the Inside D AVM can include the following types and numbers of virtual hardware devices Processors: between 1 and 128 processors with vSphere Virtual SMP(the number of processors depends on your vSphere licenses Memory: maximum of 6 TB of RAM SCSI controller: maximum of 4 ScSI controllers SATA cOntroller: maximum of 4 SATa controllers Network adapter: maximum of 10 network adapters a Parallel port: maximum of 3 parallel ports Serial port: maximum of 32 serial ports Floppy drive: maximum of 2 floppy disk drives on a single floppy disk controller A single USB controller with up to 20 USB devices connected a Keyboard, video card, and mouse 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
6 1.Understanding VMs 1.2Examining Virtual Machines from the Outside a From the perspective of an ESXi host, a VM consists of several types of files stored on a supported storage device The two most common files that compose a vm are the configuration file and the virtual hard disk file u The configuration file--hereafter referred to as the vmX file-is a plain-text file identified by a. vmx filename extension, and it functions as the virtual resource recipe of the vm The VMX file defines the virtual hardware that resides in the vm a The number of processors a The amount of ran a The number of network adapters a The associated mAc addresses o The networks to which the network adapters connect a The number, names, and locations of all virtual hard drives are stored in th configuration file 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn
11轴15, ot f now/1010.285/wNe 40 會Q厘 三 vSphere Chent a Q 口 a Cloud-SAN-Data-2 v12 BOou-Noe2D □ohe 027m20%0605下位 177722005下年 19 04 05下 06下年卷n3 [假[
dng UTF-6 tooo O present=下ALsE confo verson a8 wga 8388606 vmuaHw =13 memS ze=2048 nvram= MM-TPL-CartoS 7180.x54 nvram ower Type powerof dafault oclendoao preer TRUE Dowerlype suspend defa svea prezents TRUE ocBndoed preent TRUE tood uograde policy= manual pcBnoge vmua Dev DceRooxPort sned couunt=mng DBce4 uncore=官 eched cpuaftinty=ar oc Endon presort= TRVE shed cpu tatere Senstvt=norma pcEndge5 vrt Dev s pce Root Port vm ereatedan=15570651118317320 poBndoe6 preer TRUE seo present.TRUE poBndges functio=8 voa autodetect=TRU ooBndoe7 presert=TRUE saoO devce Type='so-hardDek pcerdge7 virtua Dev s pce Poet o0fieName= M-- Centos 7 vm DoBrdge7 funcom=8 mco prezent s TRUE sched sco throughou Caps off nDet preent TRUE ae00preentTRUE 河
ethernetovtua Dey a ymerea sched cou mn= 0 themed networ Name = VM Network ached cbu share s norman themed addres Type=voa ched mam mn=0 meto peneratedAddress= 005055 D216 80 shed mam mnsaas o shermer uotComowbiity TRUE ched mem sharer norma chemed premarin TRUE grate encryption ooD sataoo Connected- FALSE satao D devce Type =cdrom-raw 3aza00centDevce= TRUE satao FileName= emot Badongsrng stao0 prezent TRUE drolayNlame M-TPL-CerRos 71810-x64 guests..64 looSer pt afterPowerO= TRUE ot aher Reume = TRUE too/Sent before Suspend= TRUE too snots before PowerOf s TPUE uvd Do=423208440949.70fBc6775882c4e vwd5032c52102女55336916073程 migrate hotLogsVM-TPL-Centos 7(64-33098731nog 河
10 1.Understanding VMs 1.2Examining Virtual Machines from the Outside a From the perspective of an ESXi host, a VM consists of several types of files stored on a supported storage device Although the VMX file is important, it is only the structural definition of the virtual hardware that composes the vm. It does not store any actual data from the guest OS instance running inside the vm A separate type of file, the virtual hard disk file, performs that role The virtual hard disk file, identified by a vmdk filename extension and hereafter referred to as the vMDK file, holds the actual data stored by a vm a Each VMDK file represents a disk device 河南中医药大学/阮晓龙/13938213680/htp/cloudxg.hactcm.edu.cn/http:/www5ucwebcn