2013年6月26日水曜日

VDIファイルをコピーしてたらUUIDが重複したとか言われた VIRTUALBOXで

VDIファイルをコピーしてたらUUIDが重複したとか言われた VIRTUALBOXで


なんかSSDの弱小30GBが圧迫されていると思ったら、CENTの仮想が3GB!

移動してみた。

"ハードディスク F:\Cent-test01.vdi"のオープンに失敗しました。

Cannot register the hard disk 'F:\Cent-test01.vdi' {00ddeca0-fb61-4382-b48a-d8bc1adbeeb0} because a hard disk 'C:\Users\HOGEHOGE\VirtualBox VMs\Cent-test01\Cent-test01.vdi' with UUID {00ddeca0-fb61-4382-b48a-d8bc1adbeeb0} already exists.

終了コード : E_INVALIDARG (0x80070057)
コンポーネント: VirtualBox
インターフェース: IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}


UUIDかぶっとるがな!と怒られる。

先人様に倣いて
-------------------------------
コマンドプロンプトで
c:\Windows\System32>cd "C:\Program Files\Oracle\VirtualBox\"







C:\Program Files\Oracle\VirtualBox> VBoxManage.exe -nologo internalcommands seth



duuid "C:\Users\HOGEHOGE\VirtualBox VMs\Cent-test01\Cent-test01.vdi"



UUID changed to: 9b94c0d8-21a6-4534-a228-cc5c97e3828e

してかえてから、移動、起動、ドライブ再設定。
-------------------------------

参考URL:
http://d.hatena.ne.jp/yohei-a/20120105/1325725896

http://www24.atwiki.jp/toaru/pages/197.html

-------------------------------
なんか色々コマンドあるらすぃー


VBoxManage export           <machines> --output|-o <ovf/ova>



                            [--legacy09]



                            [--manifest]



                            [--vsys <number of virtual system>]



                                    [--product <product name>]



                                    [--producturl <product url>]



                                    [--vendor <vendor name>]



                                    [--vendorurl <vendor url>]



                                    [--version <version info>]



                                    [--eula <license text>]



                                    [--eulafile <filename>]







VBoxManage startvm          <uuid>|<name>...



                            [--type gui|sdl|headless]







VBoxManage controlvm        <uuid>|<name>



                            pause|resume|reset|poweroff|savestate|



                            acpipowerbutton|acpisleepbutton|



                            keyboardputscancode <hex> [<hex> ...]|



                            setlinkstate<1-N> on|off |



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



                                     [<devicename>] |



                            nictrace<1-N> on|off



                            nictracefile<1-N> <filename>



                            nicproperty<1-N> name=[value]



                            natpf<1-N> [<rulename>],tcp|udp,[<hostip>],



                                          <hostport>,[<guestip>],<guestport>



                            natpf<1-N> delete <rulename>



                            guestmemoryballoon <balloonsize in MB>]



                            gueststatisticsinterval <seconds>]



                            usbattach <uuid>|<address> |



                            usbdetach <uuid>|<address> |



                            vrde on|off |



                            vrdeport <port> |



                            vrdeproperty <name=[value]> |



                            vrdevideochannelquality <percent>



                            setvideomodehint <xres> <yres> <bpp> [display] |



                            screenshotpng <file> [display] |



                            setcredentials <username> <password> <domain>



                                           [--allowlocallogon <yes|no>] |



                            teleport --host <name> --port <port>



                                   [--maxdowntime <msec>] [--password password]



                            plugcpu <id>



                            unplugcpu <id>



                            cpuexecutioncap <1-100>







VBoxManage discardstate     <uuid>|<name>







VBoxManage adoptstate       <uuid>|<name> <state_file>







VBoxManage snapshot         <uuid>|<name>



                            take <name> [--description <desc>] [--pause] |



                            delete <uuid>|<name> |



                            restore <uuid>|<name> |



                            restorecurrent |



                            edit <uuid>|<name>|--current



                                 [--name <name>]



                                 [--description <desc>] |



                            list [--details|--machinereadable]



                            showvminfo <uuid>|<name>







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



                            [--delete]







VBoxManage storageattach    <uuid|vmname>



                            --storagectl <name>



                            [--port <number>]



                            [--device <number>]



                            [--type dvddrive|hdd|fdd]



                            [--medium none|emptydrive|



                                      <uuid>|<filename>|host:<drive>|iscsi]



                            [--mtype normal|writethrough|immutable|shareable|



                                     readonly|multiattach]



                            [--comment <text>]



                            [--setuuid <uuid>]



                            [--setparentuuid <uuid>]



                            [--passthrough on|off]



                            [--tempeject on|off]



                            [--nonrotational on|off]



                            [--bandwidthgroup <name>]



                            [--forceunmount]



                            [--server <name>|<ip>]



                            [--target <target>]



                            [--tport <port>]



                            [--lun <lun>]



                            [--encodedlun <lun>]



                            [--username <username>]



                            [--password <password>]



                            [--intnet]







VBoxManage storagectl       <uuid|vmname>



                            --name <name>



                            [--add ide|sata|scsi|floppy|sas]



                            [--controller LSILogic|LSILogicSAS|BusLogic|



                                          IntelAHCI|PIIX3|PIIX4|ICH6|I82078]



                            [--sataideemulation<1-4> <1-30>]



                            [--sataportcount <1-30>]



                            [--hostiocache on|off]



                            [--bootable on|off]



                            [--remove]







VBoxManage bandwidthctl     <uuid|vmname>



                            --name <name>



                            [--add disk|network]



                            [--limit <megabytes per second>



                            [--delete]







VBoxManage showhdinfo       <uuid>|<filename>







VBoxManage createhd         --filename <filename>



                            --size <megabytes>|--sizebyte <bytes>



                            [--format VDI|VMDK|VHD] (default: VDI)



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







VBoxManage modifyhd         <uuid>|<filename>



                            [--type normal|writethrough|immutable|shareable|



                                    readonly|multiattach]



                            [--autoreset on|off]



                            [--compact]



                            [--resize <megabytes>|--resizebyte <bytes>]







VBoxManage clonehd          <uuid>|<filename> <uuid>|<outputfile>



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



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



                            [--existing]







VBoxManage convertfromraw   <filename> <outputfile>



                            [--format VDI|VMDK|VHD]



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



                            [--uuid <uuid>







VBoxManage getextradata     global|<uuid>|<name>



                            <key>|enumerate







VBoxManage setextradata     global|<uuid>|<name>



                            <key>



                            [<value>] (no value deletes key)







VBoxManage setproperty      machinefolder default|<folder> |



                            vrdeauthlibrary default|<library> |



                            websrvauthlibrary default|null|<library> |



                            vrdeextpack null|<library> |



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







VBoxManage sharedfolder     remove <vmname>|<uuid>



                            --name <name> [--transient]







VBoxManage guestproperty    get <vmname>|<uuid>



                            <property> [--verbose]







VBoxManage guestproperty    set <vmname>|<uuid>



                            <property> [<value> [--flags <flags>]]







VBoxManage guestproperty    enumerate <vmname>|<uuid>



                            [--patterns <patterns>]







VBoxManage guestproperty    wait <vmname>|<uuid> <patterns>



                            [--timeout <msec>] [--fail-on-timeout]







VBoxManage guestcontrol     <vmname>|<uuid>



                            exec[ute]



                            --image <path to program>



                            --username <name> --password <password>



                            [--dos2unix]



                            [--environment "<NAME>=<VALUE> [<NAME>=<VALUE>]"]



                            [--timeout <msec>] [--unix2dos] [--verbose]



                            [--wait-exit] [--wait-stdout] [--wait-stderr]



                            [-- [<argument1>] ... [<argumentN>]]







                            copyfrom



                            <source on guest> <destination on host>



                            --username <name> --password <password>



                            [--dryrun] [--follow] [--recursive] [--verbose]







                            copyto|cp



                            <source on host> <destination on guest>



                            --username <name> --password <password>



                            [--dryrun] [--follow] [--recursive] [--verbose]







                            createdir[ectory]|mkdir|md



                            <director[y|ies] to create on guest>



                            --username <name> --password <password>



                            [--parents] [--mode <mode>] [--verbose]







                            stat



                            <file element(s) to check on guest>



                            --username <name> --password <password>



                            [--verbose]







                            updateadditions



                            [--source <guest additions .ISO>] [--verbose]







VBoxManage debugvm          <uuid>|<name>



                            dumpguestcore --filename <name> |



                            info <item> [args] |



                            injectnmi |



                            log [--release|--debug] <settings> ...|



                            logdest [--release|--debug] <settings> ...|



                            logflags [--release|--debug] <settings> ...|



                            osdetect |



                            osinfo |



                            getregisters [--cpu <id>] <reg>|all ... |



                            setregisters [--cpu <id>] <reg>=<value> ... |



                            statistics [--reset] [--pattern <pattern>]



                            [--descriptions]







VBoxManage metrics          list [*|host|<vmname> [<metric_list>]]



                                                 (comma-separated)







VBoxManage metrics          setup



                            [--period <seconds>] (default: 1)



                            [--samples <count>] (default: 1)



                            [--list]



                            [*|host|<vmname> [<metric_list>]]







VBoxManage metrics          query [*|host|<vmname> [<metric_list>]]







VBoxManage metrics          enable



                            [--list]



                            [*|host|<vmname> [<metric_list>]]







VBoxManage metrics          disable



                            [--list]



                            [*|host|<vmname> [<metric_list>]]







VBoxManage metrics          collect



                            [--period <seconds>] (default: 1)



                            [--samples <count>] (default: 1)



                            [--list]



                            [--detach]



                            [*|host|<vmname> [<metric_list>]]







VBoxManage hostonlyif       ipconfig <name>



                            [--dhcp |



                            --ip<ipv4> [--netmask<ipv4> (def: 255.255.255.0)] |



                            --ipv6<ipv6> [--netmasklengthv6<length> (def: 64)]]



                            create |



                            remove <name>







VBoxManage dhcpserver       add|modify --netname <network_name> |



                                       --ifname <hostonly_if_name>



                            [--ip <ip_address>



                            --netmask <network_mask>



                            --lowerip <lower_ip>



                            --upperip <upper_ip>]



                            [--enable | --disable]







VBoxManage dhcpserver       remove --netname <network_name> |



                                   --ifname <hostonly_if_name>







VBoxManage extpack          install [--replace] <tarball> |



                            uninstall [--force] <name> |



                            cleanup











Syntax error: Invalid command '-nologointernalcommands'











C:\Program Files\Oracle\VirtualBox>







0 件のコメント:

コメントを投稿