Changeset 43425 in vbox for trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
- Timestamp:
- Sep 25, 2012 9:25:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r43105 r43425 961 961 962 962 print " Use universal time [RTCUseUTC]: %s" %(asState(mach.RTCUseUTC)) 963 print " HPET [ hpetEnabled]: %s" %(asState(mach.hpetEnabled))963 print " HPET [HPETEnabled]: %s" %(asState(mach.HPETEnabled)) 964 964 if mach.audioAdapter.enabled: 965 965 print " Audio [via audioAdapter]: chip %s; host driver %s" %(asEnumElem(ctx,"AudioControllerType", mach.audioAdapter.audioController), asEnumElem(ctx,"AudioDriverType", mach.audioAdapter.audioDriver)) 966 966 if mach.USBController.enabled: 967 print " USB [via USBController]: high speed %s" %(asState(mach.USBController.enabledE hci))967 print " USB [via USBController]: high speed %s" %(asState(mach.USBController.enabledEHCI)) 968 968 print " CPU hotplugging [CPUHotPlugEnabled]: %s" %(asState(mach.CPUHotPlugEnabled)) 969 969 970 print " Keyboard [keyboardH idType]: %s (%s)" %(asEnumElem(ctx,"KeyboardHidType", mach.keyboardHidType), mach.keyboardHidType)971 print " Pointing device [pointingH idType]: %s (%s)" %(asEnumElem(ctx,"PointingHidType", mach.pointingHidType), mach.pointingHidType)970 print " Keyboard [keyboardHIDType]: %s (%s)" %(asEnumElem(ctx,"KeyboardHIDType", mach.keyboardHIDType), mach.keyboardHIDType) 971 print " Pointing device [pointingHIDType]: %s (%s)" %(asEnumElem(ctx,"PointingHIDType", mach.pointingHIDType), mach.pointingHIDType) 972 972 print " Last changed [n/a]: " + time.asctime(time.localtime(long(mach.lastStateChange)/1000)) 973 973 # OSE has no VRDE … … 978 978 print 979 979 print colCat(ctx," I/O subsystem info:") 980 print " Cache enabled [ ioCacheEnabled]: %s" %(asState(mach.ioCacheEnabled))981 print " Cache size [ ioCacheSize]: %dM" %(mach.ioCacheSize)980 print " Cache enabled [IOCacheEnabled]: %s" %(asState(mach.IOCacheEnabled)) 981 print " Cache size [IOCacheSize]: %dM" %(mach.IOCacheSize) 982 982 983 983 controllers = ctx['global'].getArray(mach, 'storageControllers') … … 1502 1502 print colCat(ctx,"OS:"); 1503 1503 print " %s (%s)" %(host.operatingSystem, host.OSVersion) 1504 if host. Acceleration3DAvailable:1504 if host.acceleration3DAvailable: 1505 1505 print colCat(ctx,"3D acceleration available") 1506 1506 else: … … 2683 2683 yesno = {0: 'off', 1: 'on'} 2684 2684 if len(args) == 1: 2685 msg = 'passdomain:%s, proxy:%s, usehostresolver:%s' % (yesno[int(nat. dnsPassDomain)], yesno[int(nat.dnsProxy)], yesno[int(nat.dnsUseHostResolver)])2685 msg = 'passdomain:%s, proxy:%s, usehostresolver:%s' % (yesno[int(nat.DNSPassDomain)], yesno[int(nat.DNSProxy)], yesno[int(nat.DNSUseHostResolver)]) 2686 2686 return (0, [msg]) 2687 2687 else: 2688 nat. dnsPassDomain = 'passdomain' in args2689 nat. dnsProxy = 'proxy' in args2690 nat. dnsUseHostResolver = 'usehostresolver' in args2688 nat.DNSPassDomain = 'passdomain' in args 2689 nat.DNSProxy = 'proxy' in args 2690 nat.DNSUseHostResolver = 'usehostresolver' in args 2691 2691 return (0, None) 2692 2692 … … 2699 2699 """ 2700 2700 if len(args) == 1: 2701 server = nat. tftpNextServer2701 server = nat.TFTPNextServer 2702 2702 if server is None: 2703 2703 server = nat.network … … 2709 2709 (a,b,c,d) = server.split('.') 2710 2710 server = '%d.%d.%d.4' % (a,b,c) 2711 prefix = nat. tftpPrefix2711 prefix = nat.TFTPPrefix 2712 2712 if prefix is None: 2713 2713 prefix = '%s/TFTP/' % (ctx['vb'].homeFolder) 2714 bootfile = nat. tftpBootFile2714 bootfile = nat.TFTPBootFile 2715 2715 if bootfile is None: 2716 2716 bootfile = '%s.pxe' % (mach.name) … … 2724 2724 print natTftp.__doc__ 2725 2725 return (1, None) 2726 if cmd == 'prefix': nat. tftpPrefix = args[2]2727 elif cmd == 'bootfile': nat. tftpBootFile = args[2]2728 elif cmd == 'server': nat. tftpNextServer = args[2]2726 if cmd == 'prefix': nat.TFTPPrefix = args[2] 2727 elif cmd == 'bootfile': nat.TFTPBootFile = args[2] 2728 elif cmd == 'server': nat.TFTPNextServer = args[2] 2729 2729 else: 2730 2730 print "invalid cmd:", cmd … … 2845 2845 2846 2846 adapter = mach.getNetworkAdapter(nicnum) 2847 natEngine = adapter. natDriver2847 natEngine = adapter.NATEngine 2848 2848 (rc, report) = natcommands[func](ctx, mach, nicnum, natEngine, cmdargs) 2849 2849 if rosession == 0: … … 3101 3101 3102 3102 def lspci(ctx, console): 3103 assigned = ctx['global'].getArray(console.machine, ' pciDeviceAssignments')3103 assigned = ctx['global'].getArray(console.machine, 'PCIDeviceAssignments') 3104 3104 for a in assigned: 3105 3105 if a.isPhysicalDevice: 3106 3106 print "%s: assigned host device %s guest %s" %(colDev(ctx, a.name), pciAddr(ctx, a.hostAddress), pciAddr(ctx, a.guestAddress)) 3107 3107 3108 atts = ctx['global'].getArray(console, 'attachedP ciDevices')3108 atts = ctx['global'].getArray(console, 'attachedPCIDevices') 3109 3109 for a in atts: 3110 3110 if a.isPhysicalDevice: … … 3151 3151 else: 3152 3152 guestaddr = hostaddr 3153 cmdClosedVm(ctx, mach, lambda ctx,mach,a: mach.attachHostP ciDevice(hostaddr, guestaddr, True))3153 cmdClosedVm(ctx, mach, lambda ctx,mach,a: mach.attachHostPCIDevice(hostaddr, guestaddr, True)) 3154 3154 return 0 3155 3155 … … 3166 3166 return 0 3167 3167 3168 cmdClosedVm(ctx, mach, lambda ctx,mach,a: mach.detachHostP ciDevice(hostaddr))3168 cmdClosedVm(ctx, mach, lambda ctx,mach,a: mach.detachHostPCIDevice(hostaddr)) 3169 3169 return 0 3170 3170
Note:
See TracChangeset
for help on using the changeset viewer.