VirtualBox

Ignore:
Timestamp:
Apr 27, 2010 7:47:35 AM (15 years ago)
Author:
vboxsync
Message:

VBoxShell: bits

File:
1 edited

Legend:

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

    r28756 r28797  
    687687    print "  Nested paging [mach.setHWVirtExProperty(ctx['global'].constants.HWVirtExPropertyType_NestedPaging,value)]: " + asState(hwVirtNestedPaging)
    688688
    689     print "  Hardware 3d acceleration[accelerate3DEnabled]: " + asState(mach.accelerate3DEnabled)
    690     print "  Hardware 2d video acceleration[accelerate2DVideoEnabled]: " + asState(mach.accelerate2DVideoEnabled)
    691 
     689    print "  Hardware 3d acceleration [accelerate3DEnabled]: " + asState(mach.accelerate3DEnabled)
     690    print "  Hardware 2d video acceleration [accelerate2DVideoEnabled]: " + asState(mach.accelerate2DVideoEnabled)
     691
     692    print "  Use universal time [RTCUseUTC]: %s" %(asState(mach.RTCUseUTC))
    692693    print "  HPET [hpetEnabled]: %s" %(asState(mach.hpetEnabled))
    693694    if mach.audioAdapter.enabled:
     
    701702    print "  Last changed [n/a]: " + time.asctime(time.localtime(long(mach.lastStateChange)/1000))
    702703    print "  VRDP server [VRDPServer.enabled]: %s" %(asState(mach.VRDPServer.enabled))
     704
     705    print
     706    print colCat(ctx,"  I/O subsystem info:")
     707    print "   I/O manager [ioMgr]: %s" %(asEnumElem(ctx, "IoMgrType", mach.ioMgr))
     708    print "   I/O backend [ioBackend]: %s" %(asEnumElem(ctx, "IoBackendType", mach.ioBackend))
     709    print "   Cache enabled [ioCacheEnabled]: %s" %(asState(mach.ioCacheEnabled))
     710    print "   Cache size [ioCacheSize]: %dM" %(mach.ioCacheSize)
     711    print "   Bandwidth limit [ioBandwidthMax]: %dM/s" %(mach.ioBandwidthMax)
    703712
    704713    controllers = ctx['global'].getArray(mach, 'storageControllers')
     
    793802    return 0
    794803
    795 def execInGuest(ctx,console,args):
     804def execInGuest(ctx,console,args,env):
    796805    if len(args) < 1:
    797806        print "exec in guest needs at least program name"
     
    804813    gargs = args
    805814    print "executing %s with args %s" %(args[0], gargs)
    806     (progress, pid) = guest.executeProcess(args[0], 0, gargs, [], "", "", "", user, passwd, tmo)
     815    (progress, pid) = guest.executeProcess(args[0], 0, gargs, env, "", "", "", user, passwd, tmo)
    807816    print "executed with pid %d" %(pid)
    808817    if pid != 0:
     
    816825        except KeyboardInterrupt:
    817826            print "Interrupted."
    818             if progress.cancelable:
     827            if progress.cancelabe:
    819828                progress.cancel()
    820829        return 0
     
    830839        return 0
    831840    gargs = args[2:]
    832     gargs.insert(0, lambda ctx,mach,console,args: execInGuest(ctx,console,args))
     841    env = [] # ["DISPLAY=:0"]
     842    gargs.insert(0, lambda ctx,mach,console,args: execInGuest(ctx,console,args,env))
    833843    cmdExistingVm(ctx, mach, 'guestlambda', gargs)
    834844    return 0
     
    842852        return 0
    843853    gargs = args[2:]
    844     gargs.insert(0, lambda ctx,mach,console,args: execInGuest(ctx,console,args))
     854    env = []
     855    gargs.insert(0, lambda ctx,mach,console,args: execInGuest(ctx,console,args,env))
    845856    cmdExistingVm(ctx, mach, 'guestlambda', gargs)
    846857    return 0
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