線上書籍

Home

VirtualBox

VBoxManage clonevdi source.vdi new.vdi    <== 複製映印象檔並且重新產生新的 uuid

                        (GuestOS 為 Win7 可正常開機)

VBoxManage internalcommands sethduuid /path/test.vdi     <==修改虛擬硬碟的UUID

VBoxManage showvdiinfo CentOS53.vdi <==顯示CentOS53.vdi 訊息


 

clonehd                   <uuid|inputfile> <uuid|outputfile>

                           [--format VDI|VMDK|VHD|RAW|<other>]

                           [--variant Standard,Fixed,Split2G,Stream,ESX]

                           [--existing]

Oracle VM VirtualBox Command Line Management Interface Version 4.3.4

(C) 2005-2013 Oracle Corporation

All rights reserved.

 

Usage:

 

 VBoxManage [<general option>] <command>

 

Commands:

 

 list [--long|-l]    

        vms        列出目前vbox上有哪些vm

        runningvms    查看目前vbox上有多少個正在執行的vm

        ostypes    列出Virtualbox可支援的作業系統

        hostdvds|hostfloppies|

                           intnets|bridgedifs|hostonlyifs|natnets|dhcpservers|

                           hostinfo|hostcpuids|hddbackends

hdds        列出所有已註冊的虛擬硬碟

dvds        列出所有已註冊的 CD,DVD 的 .iso 檔

floppies    列出所有已註冊的 軟碟 的 映像檔

                           usbhost|usbfilters|systemproperties|extpacks|

                           groups|webcams

 

 showvminfo                <uuid|vmname> [--details]

        showvminfo win7        列出 虛擬機器 win7 的詳細資訊

        showvminfo win7 --details    列出 虛擬機器 win7 的詳細資訊

        showvminfo win7 --machinereadable 列出的內容比上面的要少一些(少哪些?)

 showvminfo                <uuid|vmname> --log <idx>

showvminfo win7 --log 1    列出 虛擬機器 win7 編號1的記錄檔內容

 registervm                <filename>

 

 unregistervm              <uuid|vmname> [--delete]

 

 createvm                  --name <name>

                           [--groups <group>, ...]

                           [--ostype <ostype>]

                           [--register]

                           [--basefolder <path>]

                           [--uuid <uuid>]

 

 modifyvm                  <uuid|vmname>

                           [--name <name>]

                           [--groups <group>, ...]

                           [--ostype <ostype>]

                           [--iconfile <filename>]

                           [--memory <memorysize in MB>]

                           [--pagefusion on|off]

                           [--vram <vramsize in MB>]

                           [--acpi on|off]

                           [--pciattach 03:04.0]

                           [--pciattach 03:04.0@02:01.0]

                           [--pcidetach 03:04.0]

                           [--ioapic on|off]

                           [--hpet on|off]

                           [--triplefaultreset on|off]

                           [--hwvirtex on|off]

                           [--nestedpaging on|off]

                           [--largepages on|off]

                           [--vtxvpid on|off]

                           [--vtxux on|off]

                           [--pae on|off]

                           [--longmode on|off]

                           [--synthcpu on|off]

                           [--cpuidset <leaf> <eax> <ebx> <ecx> <edx>]

                           [--cpuidremove <leaf>]

                           [--cpuidremoveall]

                           [--hardwareuuid <uuid>]

                           [--cpus <number>]

                           [--cpuhotplug on|off]

                           [--plugcpu <id>]

                           [--unplugcpu <id>]

                           [--cpuexecutioncap <1-100>]

                           [--rtcuseutc on|off]

                           [--graphicscontroller none|vboxvga]

                           [--monitorcount <number>]

                           [--accelerate3d on|off]

                           [--accelerate2dvideo on|off]

                           [--firmware bios|efi|efi32|efi64]

                           [--chipset ich9|piix3]

                           [--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>]

                           [--nic<1-N> none|null|nat|bridged|intnet|hostonly|

                                       generic|natnetwork]

                           [--nictype<1-N> Am79C970A|Am79C973|

                                           82540EM|82543GC|82545EM|

                                           virtio]

                           [--cableconnected<1-N> on|off]

                           [--nictrace<1-N> on|off]

                           [--nictracefile<1-N> <filename>]

                           [--nicproperty<1-N> name=[value]]

                           [--nicspeed<1-N> <kbps>]

                           [--nicbootprio<1-N> <priority>]

                           [--nicpromisc<1-N> deny|allow-vms|allow-all]

                           [--nicbandwidthgroup<1-N> none|<name>]

                           [--bridgeadapter<1-N> none|<devicename>]

                           [--hostonlyadapter<1-N> none|<devicename>]

                           [--intnet<1-N> <network name>]

                           [--nat-network<1-N> <network name>]

                           [--nicgenericdrv<1-N> <driver>

                           [--natnet<1-N> <network>|default]

                           [--natsettings<1-N> [<mtu>],[<socksnd>]