创建两台虚拟机器,完成配配置后-->
在虚拟机1(CentOS1)中创建一个磁盘(share.vmdk),在虚拟机2(CentOS2)中也创建磁盘-->
[使用已经存在的虚拟磁盘]: 文件名为虚拟机1中创建的文件(share.vmdk) -->
编辑 $PATH\My Virtual Machines\CentOS2\CentOS2.vmx
编辑 $PATH\My Virtual Machines\CentOS1\CentOS1.vmx
在两个文件中分别最添加如下红色字体内容:
disk.locking="FALSE" #手动添加
scsi0:1.SharedBus="Virtual" #手动添加
scsi0:1.present = "TRUE" #vmware自动
scsi0:1.fileName = "F:\VmWare\share.vmdk" #vmware自动
分别启动虚拟机器,进入系统(Linux)后,执行fdisk -l 就可以看到相应设备("Disk /dev/sdb")了。
[root@centos1 ~]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 382 3068383+ 83 Linux
/dev/sda2 383 1019 5116702+ 83 Linux
/dev/sda3 1020 1401 3068415 83 Linux
/dev/sda4 1402 2610 9711292+ 5 Extended
/dev/sda5 1402 1528 1020096 82 Linux swap / Solaris
/dev/sda6 1529 2610 8691133+ 83 Linux
Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
阅读(859) | 评论(0) | 转发(0) |