8.5 VBoxManage modifyvm
命令:改变虚拟机(VM)
该命令改变已注册虚拟机的属性。大部分命令行的属性和用户图形界面中一致;在3.7章有描述,‘虚拟机的设置,36页’。一些高级设置,仍然,仅在manage界面有效(命令界面)。This command changes the properties of a registered virtual machine. Most of the properties that this command makes available correspond to the VM settings that VirtualBox graphical user interface displays in each correspond’s “Settings” dialog; these were described in chapter 3.7, Virtual machine settings, page 36. Some of the more advanced settings, however, are only available through the VBoxManage interface.
The following settings are available through VBoxManage modifyvm:
以下参数在modifyvm后可用:(有很多很多,选最重要的-hd参数)
……
-hd<a|b|d> none|<uuid>|<filename>:
该指定项可为虚拟机添加三个IDE设备之一(第2个主盘被vm保留作为光驱,不能占用);在三个IDE中,你可以指定(硬盘)的vdi文件名或者它的UUID。This specifies the settings for each of the three virtual hard disks that can be attached to a VM (primary master and slave, and secondary slave; the secondary master is always reserved for the virtual CD/DVD drive). For each of these three, specify either the UUID or a filename of a virtual disk that you have.
有些地方没搞懂,欢迎指正。– either registered with VBoxManage registerimage; see chapter 8.10, VBoxManage registerimage / unregisterimage, page 87;
关于什么注册之类的请看8.10章,第87页。
– or created using VBoxManage createvdi with the -register option; see chapter 8.12, VBoxManage createvdi, page 87;
或者用createvdi命令创的-register参数;参见8.12章,第87页;
– alternatively, specify the UUID of an iSCSI target that you have registered with VBoxManage addiscsidisk; see chapter 8.15, VBoxManage addiscsidisk, page 88.
另一种选择是,用addiscsidisk参数指定iSCSI设备的UUID,参见8.15,第88页(好像是网络存储)。