VirtualBox

Changeset 21584 in vbox for trunk/src


Ignore:
Timestamp:
Jul 14, 2009 3:21:48 PM (15 years ago)
Author:
vboxsync
Message:

Python shell: more VM info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r21517 r21584  
    448448        print "  Controllers:"
    449449    for controller in controllers:
    450         print "      %s %s bus: %d" % (controller.name, getControllerType(controller.controllerType), controller.bus)
     450        print "    %s %s bus: %d" % (controller.name, getControllerType(controller.controllerType), controller.bus)
    451451
    452452    disks = ctx['global'].getArray(mach, 'hardDiskAttachments')
    453453    if disks:
    454454        print
    455         print "  Disks:"
     455        print "  Hard disk(s):"
    456456    for disk in disks:
    457457        print "    Controller: %s port: %d device: %d:" % (disk.controller, disk.port, disk.device)
     
    462462        print "    format: " +  hd.format
    463463        print
     464
     465    dvd = mach.DVDDrive
     466    if dvd.getHostDrive() is not None:
     467        hdvd = dvd.getHostDrive()
     468        print "  DVD:"
     469        print "    Host disk:",hdvd.name
     470        print
     471
     472    if dvd.getImage() is not None:
     473        vdvd = dvd.getImage()
     474        print "  DVD:"
     475        print "    Image at:",vdvd.location
     476        print "    Size:",vdvd.size
     477        print
     478
     479    floppy = mach.floppyDrive
     480    if floppy.getHostDrive() is not None:
     481        hfloppy = floppy.getHostDrive()
     482        print "  Floppy:"
     483        print "    Host disk:",hfloppy.name
     484        print
     485
     486    if floppy.getImage() is not None:
     487        vfloppy = floppy.getImage()
     488        print "  Floppy:"
     489        print "    Image at:",vfloppy.location
     490        print "    Size:",vfloppy.size
     491        print
     492
    464493    return 0
    465494
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette