import virtualbox vmname = 'samplevm' session = virtualbox.Session() vm = virtualbox.VirtualBox().find_machine(vmname) progress = vm.launch_vm_process(session, 'gui', '') progress.wait_for_completion(-1)
○関連情報
pyvboxのドキュメントpyvbox 0.2.2 documentation
import virtualbox vmname = 'samplevm' session = virtualbox.Session() vm = virtualbox.VirtualBox().find_machine(vmname) progress = vm.launch_vm_process(session, 'gui', '') progress.wait_for_completion(-1)
import virtualbox for vm in virtualbox.VirtualBox().machines: print "Name:" + vm.name print "OS Type ID:" + vm.os_type_id print "CPU Count:" + str(vm.cpu_count) print "Memory Size:" + str(vm.memory_size) print "VRAM Size:" + str(vm.vram_size) print "----"