Virtualbox 的 VDI 檔案無法直接匯入使用,因為 Virtualbox 會檢查 VDI 檔的 UUID。要將現有的 VDI 檔給其他的 Virtualbox 使用,必須要執行下面的指令,才能將此新生的 VDI 檔掛上 Virtualbox 上。執行的指令為:

$ VBoxManage clonevdi source.vdi output.vdi

另外,VBoxManage 的其他參數可以參考下面資料。

來源:VirtualBox VDI檔重複使用的作法

 

VirtualBox Command Line Management Interface Version 1.5.4
(C) 2005-2007 innotek GmbH
All rights reserved.

Usage:

VBoxManage [-v|-version] print version number and exit
VBoxManage -nologo ... suppress the logo

VBoxManage list vms|ostypes|hostdvds|hostfloppies|
hdds|dvds|floppies|usbhost|usbfilters|
systemproperties

VBoxManage showvminfo <uuid>|<name>
[-details]

VBoxManage registervm <filename>

VBoxManage unregistervm <uuid>|<name>
[-delete]

VBoxManage createvm -name <name>
[-register]
[-basefolder <path> | -settingsfile <path>]


VBoxManage modifyvm <uuid|name>
[-name <name>]
[-ostype <ostype>]
[-memory <memorysize>]
[-vram <vramsize>]
[-acpi on|off]
[-ioapic on|off]
[-hwvirtex on|off|default]
[-monitorcount <number>]
[-bioslogofadein on|off]
[-bioslogofadeout on|off]
[-bioslogodisplaytime <msec>]
[-bioslogoimagepath <imagepath>]
[-biosbootmenu disabled|menuonly|messageandmenu]
[-biossystemtimeoffset <msec>]
[-biospxedebug on|off]
[-boot<1-4> none|floppy|dvd|disk|net>]
[-hd<a|b|d> none|<uuid>|<filename>]
[-dvd none|<uuid>|<filename>|host:<drive>]
[-dvdpassthrough on|off]
[-floppy disabled|empty|<uuid>|
<filename>|host:<drive>]
[-nic<1-N> none|null|nat|hostif|intnet]
[-nictype<1-N> Am79C970A|Am79C973]
[-cableconnected<1-N> on|off]
[-nictrace<1-N> on|off]
[-nictracefile<1-N> <filename>]
[-hostifdev<1-N> none|<devicename>]
[-intnet<1-N> <network>]
[-macaddress<1-N> auto|<mac>]
[-uart<1-N> off|<I/O base> <IRQ>]
[-uartmode<1-N> disconnected|
server <pipe>|
client <pipe>|
<devicename>]
[-tapsetup<1-N> none|<application>]
[-tapterminate<1-N> none|<application>]
[-audio none|null|oss|alsa]
[-clipboard disabled|hosttoguest|guesttohost|
bidirectional]
[-vrdp on|off]
[-vrdpport default|<port>]
[-vrdpaddress <host>]
[-vrdpauthtype null|external|guest]
[-vrdpmulticon on|off]
[-usb on|off]
[-usbehci on|off]
[-snapshotfolder default|<path>]

VBoxManage startvm <uuid>|<name>
[-type gui|vrdp]

VBoxManage controlvm <uuid>|<name>
pause|resume|reset|poweroff|savestate|
acpipowerbutton|acpisleepbutton|
setlinkstate<1-4> on|off |
usbattach <uuid>|<address> |
usbdetach <uuid>|<address> |
dvdattach none|<uuid>|<filename>|host:<drive> |
floppyattach none|<uuid>|<filename>|host:<drive> |
setvideomodehint <xres> <yres> <bpp> [display]|
setcredentials <username> <password> <domain>
[-allowlocallogon <yes|no>]

VBoxManage discardstate <uuid>|<name>

VBoxManage snapshot <uuid>|<name>
take <name> [-desc <desc>] |
discard <uuid>|<name> |
discardcurrent -state|-all |
edit <uuid>|<name>|-current
[-newname <name>]
[-newdesc <desc>] |
showvminfo <uuid>|<name>

VBoxManage registerimage disk|dvd|floppy <filename>
[-type normal|immutable|writethrough] (disk only)

VBoxManage unregisterimage disk|dvd|floppy <uuid>|<filename>

VBoxManage showvdiinfo <uuid>|<filename>

VBoxManage createvdi -filename <filename>
-size <megabytes>
[-static]
[-comment <comment>]
[-register]
[-type normal|writethrough] (default: normal)

VBoxManage modifyvdi <uuid>|<filename>
compact

VBoxManage clonevdi <uuid>|<filename> <outputfile>

VBoxManage convertdd <filename> <outputfile>
VBoxManage convertdd stdin <outputfile> <bytes>

VBoxManage addiscsidisk -server <name>|<ip>
-target <target>
[-port <port>]
[-lun <lun>]
[-encodedlun <lun>]
[-username <username>]
[-password <password>]
[-comment <comment>]

VBoxManage getextradata global|<uuid>|<name>
<key>|enumerate

VBoxManage setextradata global|<uuid>|<name>
<key>
[<value>] (no value deletes key)

VBoxManage setproperty vdifolder default|<folder> |
machinefolder default|<folder> |
vrdpauthlibrary default|<library> |
hwvirtexenabled yes|no
loghistorycount <value>

VBoxManage usbfilter add <index,0-N>
-target <uuid>|<name>|global
-name <string>
-action ignore|hold (global filters only)
[-active yes|no] (yes)
[-vendorid <XXXX>] (null)
[-productid <XXXX>] (null)
[-revision <IIFF>] (null)
[-manufacturer <string>] (null)
[-product <string>] (null)
[-remote yes|no] (null, VM filters only)
[-serialnumber <string>] (null)
[-maskedinterfaces <XXXXXXXX>]

VBoxManage usbfilter modify <index,0-N>
-target <uuid>|<name>|global
[-name <string>]
[-action ignore|hold] (global filters only)
[-active yes|no]
[-vendorid <XXXX>|""]
[-productid <XXXX>|""]
[-revision <IIFF>|""]
[-manufacturer <string>|""]
[-product <string>|""]
[-remote yes|no] (null, VM filters only)
[-serialnumber <string>|""]
[-maskedinterfaces <XXXXXXXX>]

VBoxManage usbfilter remove <index,0-N>
-target <uuid>|<name>|global

VBoxManage sharedfolder add <vmname>|<uuid>
-name <name> -hostpath <hostpath>
[-transient]

VBoxManage sharedfolder remove <vmname>|<uuid>
-name <name> [-transient]

VBoxManage updatesettings [<dir>|<file>] [-apply]
[-nobackup] [-skipinvalid]

arrow
arrow
    全站熱搜

    senkao 發表在 痞客邦 留言(0) 人氣()