揮発性のメモ2

http://d.hatena.ne.jp/iww/

VirtualBoxの問題点

VirtualBox仮想マシンの管理を設定ファイル等ではなくVirtualBox側でも行っている。(どういうマシンがあって仮想HDDがどこにあるか、など)
HDDのコピーや仮想マシンのコピーをするときには、VirtualBox側がその変更を把握する必要がある。
そのため、単純な仮想マシンのファイルコピーでは何もできないという問題点がある。
これは仮想マシンを配布したりバックアップしたりするときには大きな問題になる。ような気がする。
VBoxManageのGUIなフロントエンドを作ればだいぶ楽になるから小さい問題になりそう。


コマンドラインオプション一覧

VirtualBox Command Line Management Interface Version 1.6.4
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.

Usage:

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

VBoxManage -convertSettings ...        allow to auto-convert settings files
VBoxManage -convertSettingsBackup ...  allow to auto-convert settings files
                                       but create backup copies before
VBoxManage -convertSettingsIgnore ...  allow to auto-convert settings files
                                       but don't explicitly save the results

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

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

VBoxManage registervm       <filename>

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

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


VBoxManage modifyvm         <uuid|name>
                            [-name <name>]
                            [-ostype <ostype>]
                            [-memory <memorysize>]
                            [-vram <vramsize>]
                            [-acpi on|off]
                            [-ioapic on|off]
                            [-pae 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>]
                            [-idecontroller PIIX3|PIIX4]
                            [-sata on|off]
                            [-sataportcount <1-30>]
                            [-sataport<1-30> none|<uuid>|<filename>]
                            [-sataideemulation<1-4> <1-30>]
                            [-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|82540EM|82543GC]
                            [-cableconnected<1-N> on|off]
                            [-nictrace<1-N> on|off]
                            [-nictracefile<1-N> <filename>]
                            [-nicspeed<1-N> <kbps>]
                            [-hostifdev<1-N> none|<devicename>]
                            [-intnet<1-N> <network name>]
                            [-natnet<1-N> <network>|default]
                            [-macaddress<1-N> auto|<mac>]
                            [-uart<1-N> off|<I/O base> <IRQ>]
                            [-uartmode<1-N> disconnected|
                                            server <pipe>|
                                            client <pipe>|
                                            <devicename>]
                            [-gueststatisticsinterval <seconds>]
                            [-audio none|null|dsound]
                            [-audiocontroller ac97|sb16]
                            [-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|
                            keyboardputscancode <hex> [<hex> ...]|
                            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 adoptstate       <uuid>|<name> <state_file>

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 createhostif     <name>

VBoxManage removehostif     <uuid>|<name>

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> |
                            websrvauthlibrary default|null|<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] [-readonly]

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

VBoxManage vmstatistics     <vmname>|<uuid> [-reset]
                            [-pattern <pattern>] [-descriptions]



clonevdiオプションでコピーを作成するとエラーが出る。対策は後で考える。