Jump to content











Photo
- - - - -

nativeEx_moa-lite


  • Please log in to reply
132 replies to this topic

#101 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 16 June 2008 - 12:19 PM

Only that it's another script for a VMWare product, and for a program which features in Ulli's MOA package.

And next time here is a question about 'x0000' because
  • 'x0000' starts with 'x' and
    • the product 'xyz', which also starts with 'x', is from an American Company and
      • VMWare is an American company and
        • a different VMWare product is used in this project.
I only wanted to say (a bit ironic) that the question here is OFFTOPIC.

Peter :)

#102 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 16 June 2008 - 12:24 PM

the connection ? i dont understand sorry

I have test with the last version of vmware converter (vmware-converter_vmware_converter_3.0_anglais_31744.exe)
and
when i enter "net start vmware-ufad-p2v-1"
i have a window error microsoft visual c++ runtime library
with
runtime error !!!
program: X:\Program Files\VMWare\VMware Converter\vmware-ufad.exe"

My question was due to:
You tested a script inside the project 'LiveXP'
And this topic is about the project 'nativeEx-moa-lite'. nativeEx_moa-lite does not contain the script in question.

Don't worry! This is not a personal attack. Sometimes I'm a bit sarcastic when telling users observe some rules. And OFFTOPIC is a real violation of rules! :)

Peter

#103 Asgardcfr

Asgardcfr

    Newbie

  • Members
  • 11 posts
  •  
    France

Posted 16 June 2008 - 01:24 PM

My question was due to:
You tested a script inside the project 'LiveXP'
And this topic is about the project 'nativeEx-moa-lite'. nativeEx_moa-lite does not contain the script in question.

Don't worry! This is not a personal attack. Sometimes I'm a bit sarcastic when telling users observe some rules. And OFFTOPIC is a real violation of rules! :)

Peter


Oops sorry for the inconvenience :)
i will test with the right project first

#104 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12,028 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 16 June 2008 - 01:35 PM

Oops sorry for the inconvenience :)
i will test with the right project first

Again: do not worry! :)

I did not feel any inconvenience. To write the post(s) has been a nice excursion outside of my current WB 075 beta 4 development :)

(Currently it is a hard task to adapt EVERYTHING to the new 'Link Folders' feature)

Peter

#105 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 16 June 2008 - 09:38 PM

And this topic is about the project 'nativeEx-moa-lite'. nativeEx_moa-lite does not contain the script in question.


Sorry, I was under the impression that the topic was fine since: 1) vmware converter is a product Ulli himself reguarly includes in MOA; and 2) my initial testing and use of the script was solely done under nativeEx_moa-lite. That is, the script is not available in the downloaded project, but is suited as an additional script for the two reasons provided. My hunch would be that Ulli would like to see a script for Converter included in the project.

Regards,
Galapo.

#106 sanbarrow

sanbarrow

    Silver Member

  • Developer
  • 788 posts
  • Location:Germany - Sauerland

Posted 16 June 2008 - 11:58 PM

Galapo - which Converter-build do you use ?
In 3.0.3 I have to start a service first - you know autoit - so I guess this will help - works for me and others reliable.

$stateicon is used like a statusbar - it displays messages
drv_ctl.exe is a commandline tool to install kerneldrivers

In moa.exe you right click on vmware-icon and can call the autoit-function _startconverter()
I guess the rest is quite self explaining I hope.

Note the sleep-cycles - don't start converter.exe too early

Func _startconverter()

	If Not FileExists("R:\vm\converter\converter.exe") Then GUICtrlSetData($stateicon, @CRLF & " . . converter not found - starting plan B", 1)

	If Not FileExists("R:\vm\converter\converter.exe") Then _startconverterjunction()

	If FileExists("R:\vm\converter\converter.exe") Then _startconverterbatch()

EndFunc;==>_startconverter

;--------------------------------------------------------------------------------------------------------------------------------------------

Func _startconverternow()

	If FileExists("R:\vm\converter\converter.exe") Then Run("R:\vm\converter\converter.exe -boot")

	GUICtrlSetData($stateicon, @CRLF & " . . done", 1)

EndFunc;==>_startconverternow

;--------------------------------------------------------------------------------------------------------------------------------------------

Func _startconverterjunction()

	$var = FileSelectFolder("can't find converter in default location - please select a different path", "", 7, "r:")

	If FileExists($var & "\converter.exe") Then GUICtrlSetData($stateicon, @CRLF & " . . converter.exe found . . . ", 1)

	If Not FileExists("r:\vm\converter\converter.exe") Then _RunDOS("junction.exe R:\vm\converter " & $var)

EndFunc;==>_startconverterjunction



;--------------------------------------------------------------------------------------------------------------------------------------------

Func _startconverterbatch()

	RegWrite('HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE\Features', 'Pnp', 'Reg_Dword', '0x00000001')

	RegWrite('HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE\Features', 'Icf', 'Reg_Dword', '0x00000001')

	If Not FileExists("R:\temp\ufa.xml") Then FileInstall("ufa.xml", "R:\temp\ufa.xml")

	If Not FileExists("R:\temp\ufa.xml") Then GUICtrlSetData($stateicon, @CRLF & " . . oh dear - can't find ufa.xml", 1)	

	If Not FileExists('R:\vm\converter\SSL\RUI.KEY') Then GUICtrlSetData($stateicon, @CRLF & " . . oh dear - can't find ssl-keys", 1)

	$PID = ProcessExists("vmware-ufad.exe"); Will return the PID or 0 if the process isn't found.

	If Not $PID Then GUICtrlSetData($stateicon, @CRLF & " . . trying to start vstor2-p2v30 driver - please be patient ...", 1)

	If Not $PID Then _startVstor2_p2v30()

	If Not $PID Then GUICtrlSetData($stateicon, @CRLF & " . . trying to start vmware-ufad-service - please be patient ...", 1)

	If Not $PID Then Run(@ScriptDir & '\hiderun.exe R:\vm\converter\vmware-ufad.exe R:\temp\ufa.xml')

	Sleep(5000)

	If $PID Then GUICtrlSetData($stateicon, @CRLF & " . . ufad-service is running. . . ", 1)

	Sleep(2000)

	$PID = ProcessExists("vmware-ufad.exe"); Will return the PID or 0 if the process isn't found.

	If Not $PID Then GUICtrlSetData($stateicon, @CRLF & " . . oh dear - couldn't start ufad-service", 1)

	

	If $PID Then _startconverternow()



EndFunc;==>_startconverterbatch



Func _startVstor2_p2v30()

	If FileExists("r:\vm\converter\vstor2-p2v30.sys") Then _RunDOS('drv_ctl --inst-nostart vstor2-p2v30 R:\vm\converter\vstor2-p2v30.sys')

	If FileExists("r:\vm\converter\vstor2-p2v30.sys") Then _RunDOS('net start vstor2-p2v30')

	

EndFunc;==>_startVstor2_p2v30

By the way - the ufa.xml is installed to %temp% so that I can - download converter - extract it and run it at once will being in PE
I do not need to add any files special files to the PE-core.
No registry stuff is necessary - at least I don't add any.
Usually I pack converter into a 27 MB wim and load it on demand only.

If you simply run converter.exe without batch you get "remote hot clone" mode only.

hope that helps :)

Ulli

#107 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 17 June 2008 - 12:32 AM

Gday Ulli,

Yes, that's helpful indeed. "remote hot clone" is working, it's just the -boot option which isn't at them moment. Maybe I need a delay in starting the services, as you say. It's not the particular version of converter, as I've used your WIM in testing and the version there wasn't working either.

Can you provide the couple of files you script installs: ufa.xml and RUI.KEY?

Thanks,
Galapo.

#108 Asgardcfr

Asgardcfr

    Newbie

  • Members
  • 11 posts
  •  
    France

Posted 17 June 2008 - 06:26 AM

Gday Ulli,

Yes, that's helpful indeed. "remote hot clone" is working, it's just the -boot option which isn't at them moment. Maybe I need a delay in starting the services, as you say. It's not the particular version of converter, as I've used your WIM in testing and the version there wasn't working either.

Can you provide the couple of files you script installs: ufa.xml and RUI.KEY?

Thanks,
Galapo.


When I look for the service vmware with ServicesPE it set to ownProcess and not kerneldriver
maybe that is the problem ?
because sanbarow use drv_ctl to start in kerneldriver
it's just an idea i'm dont scripter pro :)

#109 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 17 June 2008 - 06:34 AM

because sanbarow use drv_ctl to start in kerneldriver


I've tested that just now and converter still complains about not being able to connect to the agent.

Here's the batch I've tried, running from the converter directory:
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE\Features" /v Pnp /t REG_DWORD /d 1 /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE\Features" /v Icf /t REG_DWORD /d 1 /f

net start vss

drv_ctl --inst-nostart vstor2-p2v30 "%CD%\vstor2-p2v30.sys"

net start vstor2-p2v30

vmware-ufad.exe ufa.xml

start converter -boot

Possibly it may be due to ufa.xml, but I don't know. I've tested with VMware-converter-3.0.2u1-62456.exe.

Regards,
Galapo.

#110 Asgardcfr

Asgardcfr

    Newbie

  • Members
  • 11 posts
  •  
    France

Posted 17 June 2008 - 07:44 AM

vmware-ufad.exe ufa.xml


I test with vmware-ufad.exe -r vmware-ufad-p2v -x 1 ufa.xml

now i can start vmware-ufad-p2v-1 successfully
for vstor2-p2v30 the registration failed because I use drv_ctl ... but i run manually net start vstor2-p2v30 successfully
but converter dont connect to agent :)

probably ufa.xml as you say Galapo

I use VMware-converter-3.0.3-89816 the last version in Vmware site

maj : i cant start vmware-ufad-p2v-1, lol i dont understand

#111 sanbarrow

sanbarrow

    Silver Member

  • Developer
  • 788 posts
  • Location:Germany - Sauerland

Posted 17 June 2008 - 01:06 PM

Hi
try ufa.xml from here - also includes both ssl-keys and drv_ctl.exe
http://sanbarrow.com...3addonfiles.zip

Ascardcfr - the way you start vmware-ufad.exe -r vmware-ufad-p2v -x 1 ufa.xml
it establishes a service. This is not required for cold clone mode.
In cold clone mode it is enough to run vmware-ufad.exe as a standalone process - that is done by
R:\vm\converter\vmware-ufad.exe R:\temp\ufa.xml

If you run that from a cmd - keep the cmd-box open the whole time - it looks as if it is not responding - ignore that.
Thats why I run via autoit and hiderun.exe

Galapo - use 3.0.3 version - all earlier versions were very queer - this one is "acceptable" :)

It seems to be important to install the vstor-driver first - simply running net start vstor2-p2v30 seems to work but fails later in my tests.
In earlier versions the net start command was enough.

By the way - if you test in a blank VM - expect "can't detect OS-error" - to test function in a VM try with an existing Windows
Here is a short video that shows how it works in MOA
http://sanbarrow.com...lone-howto.html


Ulli

#112 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 18 June 2008 - 12:16 AM

Thanks Ulli for your help! Converter is again working under nativeEx_moa-lite as well as LiveXP. New version of the script has been uploaded: http://galapo.boot-l...onverter.script

Regards,
Galapo.

#113 Asgardcfr

Asgardcfr

    Newbie

  • Members
  • 11 posts
  •  
    France

Posted 18 June 2008 - 06:38 AM

Thanks Ulli for your help! Converter is again working under nativeEx_moa-lite as well as LiveXP. New version of the script has been uploaded: http://galapo.boot-l...onverter.script

Regards,
Galapo.



Oh thanks a lot, I will test it today :)

MAJ:
It works partially
In menu "VM options" when i select "next", it loopback to first menu
and the next time to "VM options" vmware converter closes unexpectedly
I use VMware-converter-3.0.3-89816.exe (last edition)

someone has the same problem ?

#114 sanbarrow

sanbarrow

    Silver Member

  • Developer
  • 788 posts
  • Location:Germany - Sauerland

Posted 18 June 2008 - 02:18 PM

...
In menu "VM options" when i select "next", it loopback to first menu
and the next time to "VM options" vmware converter closes unexpectedly
I use VMware-converter-3.0.3-89816.exe (last edition)...


Can you explain what you try to do ? - in normal usage I never see a menu "VM options" so I am a bit puzzled ???

#115 Asgardcfr

Asgardcfr

    Newbie

  • Members
  • 11 posts
  •  
    France

Posted 18 June 2008 - 07:59 PM

Can you explain what you try to do ? - in normal usage I never see a menu "VM options" so I am a bit puzzled ???


In your video (http://sanbarrow.com...lone-howto.html)
when vmware converter is launch,

you have
step 2 : destination
Destination type
...
VM options (as you see in your video)

and when i click to "next" button to go to "Networks"
vmware converter return automatically to step 1 source (why i dont know)
and the 2nd time when I return to "VM options" and click to next,
the software shutdown with no error message

P.S: I use project LiveXP

#116 sanbarrow

sanbarrow

    Silver Member

  • Developer
  • 788 posts
  • Location:Germany - Sauerland

Posted 18 June 2008 - 08:19 PM

I see - this is the time when converter checks if the destination path is valid.
What path - which type of storage do you assign for the new VM ?

#117 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 18 June 2008 - 09:23 PM

You get that type of error if networking services haven't been started. I'll add a check for such in the autoit wrapper today.

Regards,
Galapo.

#118 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 18 June 2008 - 11:29 PM

New version of the Converter script has been uploaded in which the wrapper now makes a check that networking has been started before starting Converter.

Regards,
Galapo.

#119 Asgardcfr

Asgardcfr

    Newbie

  • Members
  • 11 posts
  •  
    France

Posted 19 June 2008 - 07:36 AM

I see - this is the time when converter checks if the destination path is valid.
What path - which type of storage do you assign for the new VM ?


I use usb hard disk.
I have already test with network ( my dhcp give a ip address to vm network card)
I arrive to create a link to "remotepc\c$" but converter block to VM options

I will be rebuild with your new script to retest :)

MAJ: same problem, not working

MAJ2: i have rebuild iso with "VMware-converter-3.0.2u1-62456.exe" (the n-1 last version)
and the software reload in first menu at "Step 3 : Customization" lol
MAJ3: i have rebuild iso with "VMware-converter-3.0.2-59994.exe" (the n-1 last version)
and the same problem

#120 sanbarrow

sanbarrow

    Silver Member

  • Developer
  • 788 posts
  • Location:Germany - Sauerland

Posted 19 June 2008 - 06:21 PM

Do you use a very "naked" Windows core-system ?
Do you have cryptographic service ?

keep in mind: you should split the output-vmdk format - especially if you want to store it on FAT 32 !

do not assign a destination path like \\remotehost\D$ - better map a driveletter first - there are known issues ...

Do you get a log file from failed attempts ? - can you post it - or send it to me via email ?

Ulli

#121 Asgardcfr

Asgardcfr

    Newbie

  • Members
  • 11 posts
  •  
    France

Posted 20 June 2008 - 06:38 AM

Do you use a very "naked" Windows core-system ?

I use Original XP Pro with SP2 slipstream by me ( not as modified version ISO fileon the net for example).

Do you have cryptographic service ?

Yes but it isn't launch.
If I launch manually, error 126 the module isn't found.

keep in mind: you should split the output-vmdk format - especially if you want to store it on FAT 32 !

I have test to usb hard disk format in NTFS.

do not assign a destination path like \\remotehost\C$ - better map a driveletter first - there are known issues ...

Z: affect to \\remotehost\C$
I use z:\test\ folder

Do you get a log file from failed attempts ? - can you post it - or send it to me via email ?

I have upload a vm.rar file with 2 logs .txt files I've seen in vmware-temp folder.

Attached Files

  • Attached File  vm.rar   10.64K   188 downloads


#122 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3,841 posts
  •  
    Australia

Posted 20 June 2008 - 07:19 AM

Working cryptographic service may be added by Peter's cryptographic service script in nativeEx_moa-lite (although from memory I recall there may have been some issue) or in my ZoneAlarm script.

Regards,
Galapo.

#123 sanbarrow

sanbarrow

    Silver Member

  • Developer
  • 788 posts
  • Location:Germany - Sauerland

Posted 20 June 2008 - 05:39 PM

@ ascardcfr

Converterlogs are very cryptic - the long one says:
Image processing task has succeeded

Keep in mind that Converter is very stupid - it is possible that it says operation failed when it actually was a success.
So when ever it fails - first check if a vmdk was created - if yes - and the size of the disk makes sense - use a regular installed Converter against that VM
and let it configure the VM again.
You need to specify the vmx-file to do this.

When you get an error about 97 % - very likely image was created - just the driver-patching failed - in this case run "configure" again.
If it fails at 2 % - check the boot.ini - it must be very simple - there should be only one listed OS and it should be set to be the default.
Remove any old dos-boot entries as well as pe-from harddisk entries - Converter is too stupid to read the boot.ini

#124 rawr

rawr

    Frequent Member

  • Advanced user
  • 162 posts

Posted 23 August 2008 - 11:09 AM

hi re :

Have you tried the winbuilder moa-lite project ?


i have now .. its just that the source i have(right-hear) is modifyed svr2k3
and ther in it is not pasing the check for 'real' svr2k3

any one know (simple) way to skip this test ,
if not noproblem will try this out when i get back to my clean-svr2k3.iso

cheerz

#125 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 9,912 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 02 November 2008 - 08:31 PM

Hi Peter.

Is it possible to have a single zipped file with all project files included inside available for download on the first topic of this discussion?

I know how to follow the instructions but perhaps a lot of new visitors might find it too complicated to try out or at least add an introduction to what the project is expected to do.

Also, would it be possible to post a screenshot or youtube clip of this project in action?

Thanks.

:cheers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users