VirutalBoxのマネージャなしでVMを直接立ち上げる

vmwareだと普通にインストールしてセットアップすれば、作ったvmのアイコンに関連付けされてダブルクリックで起動できた気がするんだが?(忘れました)

ということで、コマンドプロンプト起動させてそれっぽいコマンドを叩きます。


D:\Program Files (x86)\Sun\xVM VirtualBox>VBoxManage.exe -help
VirtualBox Command Line Management Interface Version 2.0.6
(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|hostinfo|hdds|dvds|floppies|
usbhost|usbfilters|systemproperties
...

で、list をたたく。


D:\Program Files (x86)\Sun\xVM VirtualBox>VBoxManage.exe list vms
VirtualBox Command Line Management Interface Version 2.0.6
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.

Name: OpenSolaris.200811
Guest OS: OpenSolaris
UUID: d8d74215-8888-4b25-8bce-a3bff64b8d63
Config file: Z:\VirtualBox\Machines\OpenSolaris.200811\OpenSolaris.200811.xm
l
Memory size: 768MB
VRAM size: 32MB
Boot menu mode: message and menu
ACPI: on
IOAPIC: off
PAE: off
Time offset: 0 ms
Hardw. virt.ext: off
Nested Paging: off
State: powered off (since 2008-12-04T16:29:40.000000000)
Monitor count: 1
Floppy: empty
SATA: disabled
Primary master: Z:\VirtualBox\VDI\OpenSolaris.200811.vdi (UUID: 964b6ac6-6e72-4
3de-b9d8-97d44e5427b7)
DVD: empty
NIC 1: MAC: 080027B78725, Attachment: NAT, Cable connected: on, Trace:
off (file: none), Type: 82540EM, Reported speed: 0 Mbps
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
UART 1: disabled
UART 2: disabled
Audio: enabled (Driver: Null, Controller: AC97)
Clipboard Mode: Bidirectional
VRDP: disabled
USB: disabled

USB Device Filters:

Shared folders:

Guest:

Statistics update: disabled

起動。


D:\Program Files (x86)\Sun\xVM VirtualBox>VBoxManage.exe startvm OpenSolaris.200811
VirtualBox Command Line Management Interface Version 2.0.6
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.

Waiting for the remote session to open...
Remote session has been successfully opened.

D:\Program Files (x86)\Sun\xVM VirtualBox>

これで、別窓が立ち上がって、指定したvmが立ち上がります。
問題ないようなので、ショートカット作っておきます。

"VBoxManage.exe" を右クリック->送る->ショートカット作成->デスクトップ(ショートカット)
作成されたアイコンを右クリック->リンク先を変更<変更前>


"D:\Program Files (x86)\Sun\xVM VirtualBox\VBoxManage.exe"
<変更後>

"D:\Program Files (x86)\Sun\xVM VirtualBox\VBoxManage.exe" startvm OpenSolaris.200811
これで、毎回VirtualBoxを立ち上げて、"起動"させなくてもOK。