WINDOWSますいんがホストなんで、コマンドプロンプトから
VBoxManage.exeへ行く?
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"
なんで
cd C:\Program Files\Oracle\VirtualBox\
んでゲストのリストを出す
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list vms
"Cent-test01" {b442a927-daaf-4f10-adba-0f60cefffeb1}
"CentOs-test2" {b17f2b4f-f204-4016-8f35-3e11e3d29f3b}
"RHEL-4Update6-test01" {e0866cc5-bc99-4d79-adb7-f007ea122471}
"RHEL-6.1-test" {1f36bda1-c7f9-46dd-b205-99596e6b5f3c}
こんなかんじ。
おー {}内がUIDというらすい
VBoxManage.exe startvm "<ゲストOS名>"
でできちゃうらしい。
バッチだと
start "" "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm "Cent-test01"
な感じ
半角すぺす=>引数として判定されるkら注意す。
VirtualBox.exe 起動しないでいきなりBAT起動だとできるかな。
お!できた楽チン
-------------------------------
[--register]
VBoxManage import <ovf/ova>
[--dry-run|-n]
[--options keepallmacs|keepnatmacs]
[more options]
(run with -n to have options displayed
for a particular OVF)
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
参考URL:
https://www.google.co.jp/search?q=%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%83%97%E3%83%AD%E3%83%B3%E3%83%97%E3%83%88%E3%80%80%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88&aq=f&oq=%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89&sugexp=chrome,mod=3&sourceid=chrome&ie=UTF-8#hl=ja&safe=off&tbo=d&sclient=psy-ab&q=%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%83%97%E3%83%AD%E3%83%B3%E3%83%97%E3%83%88+%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0+%E5%AE%9F%E8%A1%8C%E3%80%80%E5%BC%95%E6%95%B0&oq=%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%83%97%E3%83%AD%E3%83%B3%E3%83%97%E3%83%88+%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0+%E5%AE%9F%E8%A1%8C%E3%80%80%E5%BC%95%E6%95%B0&gs_l=serp.3...167378.169645.1.170162.9.9.0.0.0.3.123.717.7j2.9.0...0.0...1c.1j4.E6juq-WR0KA&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&fp=6cd8305d66457e57&bpcl=38897761&biw=920&bih=852
http://webcache.googleusercontent.com/search?q=cache:olCXGU6y9vkJ:tenukipg.seesaa.net/article/8439352.html+&cd=6&hl=ja&ct=clnk&gl=jp
http://webcache.googleusercontent.com/search?q=cache:ryptLoTprBYJ:maarui.doorblog.jp/archives/2586948.html+&cd=2&hl=ja&ct=clnk&gl=jp
http://webcache.googleusercontent.com/search?q=cache:DR0xwACCug0J:www.hyk-home.com/blog/infra/archives/2009/12/15-094457-198.html+&cd=3&hl=ja&ct=clnk&gl=jp
http://www.google.co.jp/webhp#hl=ja&tbo=d&sclient=psy-ab&q=virtualbox+%E3%82%B2%E3%82%B9%E3%83%88os%E3%80%80%E8%87%AA%E5%8B%95%E8%B5%B7%E5%8B%95&oq=virtualbox+%E3%82%B2%E3%82%B9%E3%83%88os%E3%80%80%E8%87%AA%E5%8B%95%E8%B5%B7%E5%8B%95&gs_l=hp.3...107558.113569.1.113905.23.21.1.0.0.0.141.1529.19j2.21.0...0.0...1c.1j4.-pns7zrjpMs&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&fp=e4ceed1e6a3bf76a&bpcl=38897761&biw=1745&bih=864
http://webcache.googleusercontent.com/search?q=cache:DR0xwACCug0J:www.hyk-home.com/blog/infra/archives/2009/12/15-094457-198.html+&cd=3&hl=ja&ct=clnk&gl=jp
0 件のコメント:
コメントを投稿