Changeset 28797 in vbox for trunk/src/VBox/Frontends/VBoxShell
- Timestamp:
- Apr 27, 2010 7:47:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r28756 r28797 687 687 print " Nested paging [mach.setHWVirtExProperty(ctx['global'].constants.HWVirtExPropertyType_NestedPaging,value)]: " + asState(hwVirtNestedPaging) 688 688 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)) 692 693 print " HPET [hpetEnabled]: %s" %(asState(mach.hpetEnabled)) 693 694 if mach.audioAdapter.enabled: … … 701 702 print " Last changed [n/a]: " + time.asctime(time.localtime(long(mach.lastStateChange)/1000)) 702 703 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) 703 712 704 713 controllers = ctx['global'].getArray(mach, 'storageControllers') … … 793 802 return 0 794 803 795 def execInGuest(ctx,console,args ):804 def execInGuest(ctx,console,args,env): 796 805 if len(args) < 1: 797 806 print "exec in guest needs at least program name" … … 804 813 gargs = args 805 814 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) 807 816 print "executed with pid %d" %(pid) 808 817 if pid != 0: … … 816 825 except KeyboardInterrupt: 817 826 print "Interrupted." 818 if progress.cancelab le:827 if progress.cancelabe: 819 828 progress.cancel() 820 829 return 0 … … 830 839 return 0 831 840 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)) 833 843 cmdExistingVm(ctx, mach, 'guestlambda', gargs) 834 844 return 0 … … 842 852 return 0 843 853 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)) 845 856 cmdExistingVm(ctx, mach, 'guestlambda', gargs) 846 857 return 0
Note:
See TracChangeset
for help on using the changeset viewer.