Re: [umit-devel] Bundling desktop-agent into a windows VM
Brought to you by:
boltrix
From: Luis A. B. S. <lui...@gm...> - 2013-06-08 21:04:27
|
Adriano, any ideas of how to deal with this heavy burden? On Sat, Jun 8, 2013 at 9:37 PM, Narendran Thangarajan < nar...@gm...> wrote: > Thanks for the help Luis. I was able to bundle the snapshot (vmdk+vmx). I > have a README file also bundled with it which has the steps to start the > desktop agent. > The size of the zip file is 2.79 GB. I have started the upload to gdrive > (dropbox provides only 2.5 GB space), I will share the permalink tomorrow > as soon as the upload is done. > > Thanks, > Narendran. > > > On Sat, Jun 8, 2013 at 8:03 PM, Luis A. Bastiao Silva <lui...@gm...>wrote: > >> Not bootable ISOs. We need only bootable VM. Make sense? For instance, >> download the VM in a bundle zip and run Virtual Player or Virtualbox and >> run it. >> >> Important note: the main goal of this package is to bundle our Desktop >> Agent. So please, don't remove the developer tools. >> >> >> On Sat, Jun 8, 2013 at 3:28 PM, Narendran Thangarajan < >> nar...@gm...> wrote: >> >>> Thanks Luis. Apart from the size, the "System Image" tool of Windows >>> itself is meant for a different purpose. It just takes a backup of the disk >>> drive, and so its not bootable. But our end-users will need a bootable disk >>> as an ISO file. >>> So we need a tool like Remastersys in the Linux world, which is used for >>> making new distros. I couldn't find any such tool for Windows yet (maybe >>> due to its proprietary nature). >>> >>> Thanks, >>> Narendran. >>> >>> >>> On Sat, Jun 8, 2013 at 7:53 PM, Luis A. Bastiao Silva < >>> lui...@gm...> wrote: >>> >>>> Well, when you create the disk, you can pre-allocate the space, or you >>>> can ajust it dynamically. For us, the second are the best option. >>>> >>>> Moreover, you also can compress the VM (vmx and vmdk). >>>> >>>> >>>> On Sat, Jun 8, 2013 at 3:17 PM, Narendran Thangarajan < >>>> nar...@gm...> wrote: >>>> >>>>> There are a couple of problems with the vmdk image created >>>>> >>>>> 1. System image creation in Windows 7 doesn't take a bootable >>>>> image of the system. Just creates a replica of the C: drive in vhd format. >>>>> 2. Even if its made usable, Its huge in size - 49 GB >>>>> >>>>> Has anyone tried this before? Please suggest a tool for creating >>>>> bootable snapshots of Windows 7 VMs. The working instance is running on >>>>> VMWare player now. >>>>> >>>>> Thanks, >>>>> Narendran. >>>>> >>>>> >>>>> On Sat, Jun 8, 2013 at 6:23 PM, Narendran Thangarajan < >>>>> nar...@gm...> wrote: >>>>> >>>>>> Yes I have set that. >>>>>> Now I am trying to create a System image from the windows machine. I >>>>>> am using Windows 7's backup feature to create the image. It creates a >>>>>> system image in vhd format. I am now converting it into vmdk format to >>>>>> check if it can work with VMWare too. I am using WinImage for this. >>>>>> >>>>>> Thanks, >>>>>> Narendran. >>>>>> >>>>>> >>>>>> On Sat, Jun 8, 2013 at 2:42 PM, Luis A. Bastiao Silva < >>>>>> lui...@gm...> wrote: >>>>>> >>>>>>> In config file, conf/agent.cfg, use_gui = False >>>>>>> >>>>>>> >>>>>>> On Fri, Jun 7, 2013 at 9:59 PM, Adriano Marques < >>>>>>> py....@gm...> wrote: >>>>>>> >>>>>>>> There is the option of running agent without using gtk. Make sure >>>>>>>> you build it so that it always use that option, and gtk won't be a problem. >>>>>>>> >>>>>>>> >>>>>>>> On Fri, Jun 7, 2013 at 9:57 AM, Narendran Thangarajan < >>>>>>>> nar...@gm...> wrote: >>>>>>>> >>>>>>>>> The gtk dependency is pulled in by SoftwareUpdate.py<https://github.com/umitproject/openmonitor-desktop-agent/blob/master/umit/icm/agent/gui/SoftwareUpdate.py#L20>during the the check version flow in >>>>>>>>> aggregator.py<https://github.com/umitproject/openmonitor-desktop-agent/blob/master/umit/icm/agent/rpc/aggregator.py#L505>. >>>>>>>>> Should we just conditionally drop the gtk dependency only on Windows, in >>>>>>>>> which case we need some code changes to be done wherever gtk is pulled in.. >>>>>>>>> Alternatively, we can ignore this error and go ahead with bundling >>>>>>>>> since it doesn't affect the functionality of the desktop agent. ie. the >>>>>>>>> reports are sent to aggregator and I can see the alert on east1. >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Narendran. >>>>>>>>> >>>>>>>>> >>>>>>>>> On Thu, Jun 6, 2013 at 6:40 PM, Adriano Marques < >>>>>>>>> py....@gm...> wrote: >>>>>>>>> >>>>>>>>>> Try to drop the gtk dependency. Trying to get gtk on windows, and >>>>>>>>>> in a bundle is a huge PAIN. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Thu, Jun 6, 2013 at 6:21 AM, Narendran Thangarajan < >>>>>>>>>> nar...@gm...> wrote: >>>>>>>>>> >>>>>>>>>>> Adriano and Luis, >>>>>>>>>>> Based on the stats from wikipedia<http://en.wikipedia.org/wiki/Usage_share_of_operating_systems> and >>>>>>>>>>> w3schools <http://www.w3schools.com/browsers/browsers_os.asp>, >>>>>>>>>>> I feel Windows 7 will be the best choice as it is holds the largest usage >>>>>>>>>>> share. So I am starting with the Windows 7 VM. Currently I have setup a >>>>>>>>>>> Win7 VM in VMWare, installed the required dependencies and have the desktop >>>>>>>>>>> agent working talking to the east1 instance. But I see a couple of issues >>>>>>>>>>> while running the desktop agent : >>>>>>>>>>> >>>>>>>>>>> * 1. Aggregator failure: [Failure instance: Traceback: <type >>>>>>>>>>> 'exceptions.ImportError'>: No module named gtk (Happens just once during >>>>>>>>>>> the desktop agent startup)* >>>>>>>>>>> [ERROR] - 2013-06-06 16:33:04,125 - Aggregator failure: >>>>>>>>>>> [Failure instance: Traceback: <type 'exceptions.ImportError'>: No module >>>>>>>>>>> named gtk >>>>>>>>>>> >>>>>>>>>>> C:\Python27\lib\site-packages\twisted\internet\tcp.py:299:connectionLost >>>>>>>>>>> >>>>>>>>>>> C:\Python27\lib\site-packages\twisted\web\client.py:206:connectionLost >>>>>>>>>>> >>>>>>>>>>> C:\Python27\lib\site-packages\twisted\internet\defer.py:380:callback >>>>>>>>>>> >>>>>>>>>>> C:\Python27\lib\site-packages\twisted\internet\defer.py:488:_startRunCallbacks >>>>>>>>>>> --- <exception caught here> --- >>>>>>>>>>> >>>>>>>>>>> C:\Python27\lib\site-packages\twisted\internet\defer.py:575:_runCallbacks >>>>>>>>>>> >>>>>>>>>>> C:\Users\narendran\Downloads\openmonitor-desktop-agent\openmonitor-desktop-agent\umit\icm\agent\rpc\aggregator.py:505:_handle_check_version_response >>>>>>>>>>> >>>>>>>>>>> C:\Users\narendran\Downloads\openmonitor-desktop-agent\openmonitor-desktop-agent\umit\icm\agent\gui\SoftwareUpdate.py:20:<module> >>>>>>>>>>> ] >>>>>>>>>>> >>>>>>>>>>> 2. *Malformed message received. Connection tear down. >>>>>>>>>>> (Multiple occurrences after the AuthenticatePeer phase)* >>>>>>>>>>> [WARNING] - 2013-06-06 16:33:05,608 - Malformed message >>>>>>>>>>> received. Connection tear down. IPv4Address(TCP, u'210.210.41.202', 80) >>>>>>>>>>> HTTP/1.1 400 Bad Request >>>>>>>>>>> Cache-Control: no-cache >>>>>>>>>>> Pragma: no-cache >>>>>>>>>>> Content-Type: text/html; charset=utf-8 >>>>>>>>>>> Connection: close >>>>>>>>>>> Content-Length: 713 >>>>>>>>>>> >>>>>>>>>>> Once we solve these two issues, the Windows snapshot VM will be >>>>>>>>>>> usable. >>>>>>>>>>> >>>>>>>>>>> Thanks, >>>>>>>>>>> Narendran. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Wed, Jun 5, 2013 at 7:06 PM, Adriano Marques < >>>>>>>>>>> py....@gm...> wrote: >>>>>>>>>>> >>>>>>>>>>>> Great idea Narendran! What windows version are you going to use? >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Wed, Jun 5, 2013 at 8:33 AM, Luis A. Bastiao Silva < >>>>>>>>>>>> lui...@gm...> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Hi Narendran, >>>>>>>>>>>>> >>>>>>>>>>>>> Did you get any progress with it? Probably during the bundling >>>>>>>>>>>>> there are several issues that will raise. Please, keep us posted and keep >>>>>>>>>>>>> the discussion in the loop. >>>>>>>>>>>>> >>>>>>>>>>>>> On Tue, Jun 4, 2013 at 8:19 PM, Narendran Thangarajan < >>>>>>>>>>>>> nar...@gm...> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>> I discussed with Luis regarding bundling of desktop agent >>>>>>>>>>>>>> so that its easier to use for our users. Following are the steps which I >>>>>>>>>>>>>> have identified as the top level activities involved in bundling. >>>>>>>>>>>>>> >>>>>>>>>>>>>> 1. Create a plain Windows VM. >>>>>>>>>>>>>> 2. Install the required dependencies for OpenMonitor >>>>>>>>>>>>>> desktop agent. >>>>>>>>>>>>>> 3. Get the desktop agent to run on the VM. >>>>>>>>>>>>>> 4. Prepare a vdx or vdmk file so that end-users can use >>>>>>>>>>>>>> it like a snapshot. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Let me know if you have suggestions around this. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks, >>>>>>>>>>>>>> Narendran Thangarajan. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>>>>>>> How ServiceNow helps IT people transform IT departments: >>>>>>>>>>>>>> 1. A cloud service to automate IT design, transition and >>>>>>>>>>>>>> operations >>>>>>>>>>>>>> 2. Dashboards that offer high-level views of enterprise >>>>>>>>>>>>>> services >>>>>>>>>>>>>> 3. A single system of record for all IT processes >>>>>>>>>>>>>> http://p.sf.net/sfu/servicenow-d2d-j >>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>> Umit-devel mailing list >>>>>>>>>>>>>> Umi...@li... >>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/umit-devel >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Best Regards, >>>>>>>>>>>>> -- >>>>>>>>>>>>> Luís A. Bastião Silva >>>>>>>>>>>>> Skype: koplabs >>>>>>>>>>>>> http://www.bastiao.org >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>>>>>> How ServiceNow helps IT people transform IT departments: >>>>>>>>>>>>> 1. A cloud service to automate IT design, transition and >>>>>>>>>>>>> operations >>>>>>>>>>>>> 2. Dashboards that offer high-level views of enterprise >>>>>>>>>>>>> services >>>>>>>>>>>>> 3. A single system of record for all IT processes >>>>>>>>>>>>> http://p.sf.net/sfu/servicenow-d2d-j >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> Umit-devel mailing list >>>>>>>>>>>>> Umi...@li... >>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/umit-devel >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Adriano Monteiro Marques >>>>>>>>>>>> http://about.me/adrianommarques >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Adriano Monteiro Marques >>>>>>>>>> http://about.me/adrianommarques >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Adriano Monteiro Marques >>>>>>>> http://about.me/adrianommarques >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Luís A. Bastião Silva >>>>>>> Skype: koplabs >>>>>>> http://www.bastiao.org >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Luís A. Bastião Silva >>>> Skype: koplabs >>>> http://www.bastiao.org >>>> >>> >>> >> >> >> -- >> Luís A. Bastião Silva >> Skype: koplabs >> http://www.bastiao.org >> > > -- Luís A. Bastião Silva Skype: koplabs http://www.bastiao.org |