全幅廣告

2009年10月24日 星期六

複製VirtualBox裡面的映像檔

如果要用VirtualBox安裝10個XP的話,
要重頭安裝10次嗎?
不用,只需要安裝一次後,
再裝映像檔複製9次就好了,
這樣子你就可以得到10台一模一樣的XP囉!
以下是原文網址
http://linux-cisco.blogspot.com/2008/02/virtualbox-vdi.html
---------------------------------------------
$ VBoxManage clonevdi Win2003Server.vdi Win2003.vdi
就能把原來裝好windows 2003 Server產生的VDI檔Win2003Server.vdi,
複製成Win2003.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 |
[-details]

VBoxManage registervm

VBoxManage unregistervm |
[-delete]

VBoxManage createvm -name
[-register]
[-basefolder | -settingsfile ]


VBoxManage modifyvm
[-name ]
[-ostype ]
[-memory ]
[-vram ]
[-acpi on|off]
[-ioapic on|off]
[-hwvirtex on|off|default]
[-monitorcount ]
[-bioslogofadein on|off]
[-bioslogofadeout on|off]
[-bioslogodisplaytime ]
[-bioslogoimagepath ]
[-biosbootmenu disabled|menuonly|messageandmenu]
[-biossystemtimeoffset ]
[-biospxedebug on|off]
[-boot<1-4> none|floppy|dvd|disk|net>]
[-hd none||]
[-dvd none|||host:]
[-dvdpassthrough on|off]
[-floppy disabled|empty||
|host:]
[-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> ]
[-hostifdev<1-N> none|]
[-intnet<1-N> ]
[-macaddress<1-N> auto|]
[-uart<1-N> off| ]
[-uartmode<1-N> disconnected|
server |
client |
]
[-tapsetup<1-N> none|]
[-tapterminate<1-N> none|]
[-audio none|null|oss|alsa]
[-clipboard disabled|hosttoguest|guesttohost|
bidirectional]
[-vrdp on|off]
[-vrdpport default|]
[-vrdpaddress ]
[-vrdpauthtype null|external|guest]
[-vrdpmulticon on|off]
[-usb on|off]
[-usbehci on|off]
[-snapshotfolder default|]

VBoxManage startvm |
[-type gui|vrdp]

VBoxManage controlvm |
pause|resume|reset|poweroff|savestate|
acpipowerbutton|acpisleepbutton|
setlinkstate<1-4> on|off |
usbattach |
|
usbdetach |
|
dvdattach none|||host: |
floppyattach none|||host: |
setvideomodehint [display]|
setcredentials
[-allowlocallogon ]

VBoxManage discardstate |

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

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

VBoxManage unregisterimage disk|dvd|floppy |

VBoxManage showvdiinfo |

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

VBoxManage modifyvdi |
compact

VBoxManage clonevdi |

VBoxManage convertdd
VBoxManage convertdd stdin

VBoxManage addiscsidisk -server |
-target
[-port ]
[-lun ]
[-encodedlun ]
[-username ]
[-password ]
[-comment ]

VBoxManage getextradata global||
|enumerate

VBoxManage setextradata global||

[] (no value deletes key)

VBoxManage setproperty vdifolder default| |
machinefolder default| |
vrdpauthlibrary default| |
hwvirtexenabled yes|no
loghistorycount

VBoxManage usbfilter add
-target ||global
-name
-action ignore|hold (global filters only)
[-active yes|no] (yes)
[-vendorid ] (null)
[-productid ] (null)
[-revision ] (null)
[-manufacturer ] (null)
[-product ] (null)
[-remote yes|no] (null, VM filters only)
[-serialnumber ] (null)
[-maskedinterfaces ]

VBoxManage usbfilter modify
-target ||global
[-name ]
[-action ignore|hold] (global filters only)
[-active yes|no]
[-vendorid |""]
[-productid |""]
[-revision |""]
[-manufacturer |""]
[-product |""]
[-remote yes|no] (null, VM filters only)
[-serialnumber |""]
[-maskedinterfaces ]

VBoxManage usbfilter remove
-target ||global

VBoxManage sharedfolder add |
-name -hostpath
[-transient]

VBoxManage sharedfolder remove |
-name [-transient]

VBoxManage updatesettings [|] [-apply]
[-nobackup] [-skipinvalid]

沒有留言:

張貼留言