Open p060477 opened 9 years ago
I also just experienced this. Files are extracted successfully from virtual box installer. On launch, Portable-Virtualbox splash shows. A Notification appears 'right click me'. Then Exiting Portable-Virtualbox shows. Nothing else. How to start debugging this?
Runar..??!!..where have you gone..?? disappeared... why you do not reply at all..??
Good news @p060477 . Have have finally got some time to look at the Windows 10 issues.
The latest version dos run ok for me on Windows 10, but bridged networking is not working. The bridged networking issue is not easy to figure out, but I have started to investigate. I have also made a post in Stack Overflow in hope that any users there has a suggestion: http://stackoverflow.com/questions/33618303/installing-inf-file-in-windows-10-migrating-away-from-snetcfg-exe
Hi Runar! Very nice to see you!
yes portablevbox works on win 10 but with these 2 issues:
1) drag and drop only from guest to host but not from host to guest 2) bridge network not working
the bridge issue is very important cause it should be very useful to be able to have it working for ex using emule in vbox is impossible with nat cause you get Always 2 red crosses for server and kad only with bridge you get the 2 crosses green
swith win 8.1 worked fine even if the snetcfg.exe had already some problems..
pls keep us update!
you are our only life-guard!
on vbox forum official they do not want to help us for portable vers..why..??
cheers!!
Date: Mon, 9 Nov 2015 13:14:40 -0800 From: notifications@github.com To: Portable-VirtualBox@noreply.github.com CC: p033928@hotmail.it Subject: Re: [Portable-VirtualBox] vbox portabe do not run with win 10 (#33)
Good news @p060477 . Have have finally got some time to look at the Windows 10 issues.
The latest version dos run ok for me on Windows 10, but bridged networking is not working. The bridged networking issue is not easy to figure out, but I have started to investigate. I have also made a post in Stack Overflow in hope that any users there has a suggestion:
— Reply to this email directly or view it on GitHub.
@runarbu did you try the sc command? https://github.com/vboxme/Portable-VirtualBox/issues/6#issuecomment-46589462
As already implemented: https://github.com/wwj402/Portable-VirtualBox/commit/1370b1893eefd583ad8ee03b0c3a0998dfaf7012
there could be a simple switch, if os < win 8.1 use snetcfg, if > use sc.
looks like @p060477 also have some experience with the problem ( http://forum.emule-project.net/index.php?showtopic=160078 )? working together is mostly much more productive than against each other ;)
Do not have any build environment (windows) anymore, so can't check myself atm :(
hi runar..pls do not disappear again in the mist.. what about the -bridge- network mode..??.. it is so important that issue.. pls do not leave us alone again.. reply!!
Runar..pls hit a bit.. you can't appear and disappear as you were the canterville ghost.. :(
@Megachip: are you sure that wwj402@1370b18 uses sc? For what I can see he uses snetcfg_x86.exe at https://github.com/wwj402/Portable-VirtualBox/commit/1370b1893eefd583ad8ee03b0c3a0998dfaf7012#diff-912973f6ce6ebf508a9fa5a828aa7fa8R199 , or are I missing somthing?
Thank you for the link to http://forum.emule-project.net/index.php?showtopic=160078 . I was not aware about that discussion. I will test it when I get in front of my Windows 10 machine.
@p060477 This is an OS project. Either you fix it yourself, you pay someone to fix it or you have to wait until someone found the time to research (and hopefully fix the bug). We all have a job and life and this project is part of our small free time.
@runarbu you're right. For ini installation, he still uses snetcfg. So I think, the code will also not work in newer windows versions. Have no windows to check it :/. But in StackOverflow I've added 2 (untested) alternatives for installing inf files. He uses sc create only for usbmon
and and drv
.
The emule discussion is from @p060477, so hope he already tested it?
yes the emule topic is by me and i've tested their solution without any useful results so many days ago.. consider that with win 8.1 even if the snetcfg.exe was buggy i've found a workaround to by pass the issue making in task scheduler a task to start vbox at the start up of my pc..in that way i was able to have the drivers installed and to use bridge networking..but with the new win 10 this trick does really not work any more..
we really hope that the maintainer of this vbox portable vers will be able to solve this big issue.. cheers!
hi there! ..why you are disappeared again..?? why to have this sw portable is this long nightmare..?? why on the project page vbox.me is still clearly written how to have network bridged if since JULY 2015 IT IS CLEARLY - IMPOSSIBLE-..?? RUNAR..? MEGACHIP..? where are you..???
oh my poor ju-wien..!..my brother in this very frustrating NIGHTMARE.. all here seem to be DISAPPEARED MEGACHIP.. RUNAR.. all they went away without any REPLY what a PITY what a SHAME
Hi.
I'm a C++/Delphi programmer. One of my latest creations is a tool called "Virtual Machine USB Boot". It's using VirtualBox and/or QEMU to boot a real drive (mostly USB but other types too) into a virtual machine.
The official Virtual Machine USB Boot version works only with the installable VirtualBox version. More than a year ago I thought implementing the use of portable VirtualBox too. But, for several (good) reasons, I couldn't. One of the reasons is that the "Portable-VirtualBox.exe" starter file is slow, buggy and not very compatible with other applications trying to start VirtualBox Manager and/or VMs. I waited for its problems to be solved but it seems they won't be...
So I thought implementing the load/unload of VirtualBox dlls/infs/services in my app + not using tools like sc/devcon/snetcfg (only Delphi code). This way it will be faster and less buggy. A week ago I replaced sc.exe with code and today I replaced devcon also. But replacing snetcfg is not that easy, especially because I don't have its source code.
And now this problem with Window 10 :(
We could work together, share resources, exchange ideas and source code and so on - to make both applications better.
If you guys are interested, just let me know.
Regards, David
PS: sorry for been mostly offtopic in this thread.
Hi David!
you should be our Angel to finally solve this nightmare with win 10 and portable vbox! vbox portable now, with win 10, not really works with network bridge and also there is no bi directional drag and drop but only from guest to host i wrote here since months but RUNAR has been ,as a ghost, incredibly disappeared so now you seem the only one able to solve those ,so very old ,bugs! pls let us know here yr steps! cheers!!
Well, I'll do my best to solve it, but you realize I cannot guarantee I will succeed. As I said, replacing snetcfg is not that easy without its source code.
Hi David, Your Project sounds cool, do you have a code repo up to share?
@p060477, what are you so desperately using thus application for that you can't wait?
Thanks, Sean
On Sun, Feb 7, 2016, 8:15 PM DavidBrenner3 notifications@github.com wrote:
Well, I'll do my best to solve it, but you realize I cannot guarantee I will. As I said, replacing snetcfg is not that easy without its source code.
— Reply to this email directly or view it on GitHub https://github.com/vboxme/Portable-VirtualBox/issues/33#issuecomment-181189414 .
The official version is here: http://reboot.pro/files/file/339-virtual-machine-usb-boot/ But, like I said, it's not compatible with Portable VBox.
On the next version (1.6) I'm still working to implement the use of Portable VBox. I just finished implementing USB and I'm about to start implementing the network services/drivers. I don't have a github/sourceforge project for it. But if you guys wanna test it, I can upload it somewhere and give you the link.
hi david! it should be very very gorgeous and beautiful if you will be able to finally let vbox portable completely workable and compatible with win 10! as said up to now two main feartures are bugged: 1)no way to use bridge network 2) no bi directional drag n drop
the 1) is very very important..for ex without it there is no way to use emule in vbox with its 2 arrows green..cause there is no way to have the kad not firewalled.. but more other actions are forbidden without network bridged
so we are all only waiting for some good news from you
you really are our new guardian angel!! having RUNAR shamely disappeared..
cheers!!
I think I found (a part of) the problem: On Windows 10, VirtualBox is using VBoxNetLwf driver/service instead of VBoxNetFlt (see the screenshot). So, in the AutoIt script, it has to detect Win10 and switch to VBoxNetLwf.
hi david! you really are a Genius! our angel! so now how to finally solve this bug and having vbox portable fully compatible with win 10? i mean the main features as network bridged and bi dir drang n drop it has been since july 2015 that it really did not work.. pls post here yr solutions! thxs so much again!! cheers! :)
Hi @DavidBrenner3
This looks like a nice find. I have looed at the headers for both files (https://www.virtualbox.org/svn/vbox/trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetLwf.inf and https://www.virtualbox.org/svn/vbox/trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFlt.inf), and both apear to be a "VirtualBox Bridged Networking Driver", but VBoxNetLwf is newer.
I will test this out and see if it fixes the issue.
We could work together, share resources, exchange ideas and source code and so on - to make both applications better.
Sounds great. Is the source code your are working on available somewhere?
Btw, cool to see someone program in Delphi. I used to do so for many years myself, but unfortunately do not get to do it so often this days.
Source code: https://drive.google.com/open?id=0ByKxAD_t9uvLcU9BM1BiVWFPOWM Compiled: https://drive.google.com/open?id=0ByKxAD_t9uvLYUNadFFTdWJaeE0 It's a work-in-progress so it may be buggy. The use of snetcfg and VBoxNeFlt/Lwf aren't implemented, only VBoxNetAdp.
Command to create VBoxNetLwf service: sc create VBoxNetLwf binpath= "c:\Windows\System32\drivers\VBoxNetLwf.sys" type= kernel start= auto DisplayName= "VirtualBox NDIS6 Bridged Networking Service"
Hi David! Hi RUNAR!..really glad to see and hear you here again.. pls do a team to solve this so old and great vbox portable bug..here since july 2015 at the start of win 10
@david: i've launched,with the higher privilegies as administrator, yr: sc create VBoxNetLwf binpath= "c:\Windows\System32\drivers\VBoxNetLwf.sys" type= kernel start= auto DisplayName= "VirtualBox NDIS6 Bridged Networking Service"
and i got : operations succesfully created!
but if i launch : services.msc i really do not find any vbox portable service at all.. ..pls tell me why.. where is my fault..?
@p060477 No fault, that's normal.
@runarbu Even if this problem is solved or not, the AutoIT code of Portable-VirtualBox.exe needs to be changed. When it cannot load/register/start/copy one or more dlls/drivers/services it should notify the user and let him choose to: Abort it will stop loading, then unload what was loaded until the error occurred, then close. Retry try again Ignore it will ignore the error and continue loading the rest of the dlls/drivers/services.
PS: about your post at stackoverflow: you need to understand something I realized a long time ago (and it was confirmed recently). On stackoverflow usually you won't find answers for this kind of questions. Most of the programmers who "hang out" there and sometimes answer don't like questions where you have to work hard and/or not be sure of the final result. They pick easy questions so they can get higher ratings in a shorter amount of time, with less work. Instead you should try normal forums, where you still can find real helpers.
hi david! first thx so much for yr speed reply! but if it is normal why i have no vbox service in my services.msc..?? so where is the utility or what is worth to launch in dos yr string: sc create VBoxNetLwf binpath= "c:\Windows\System32\drivers\VBoxNetLwf.sys" type= kernel start= auto DisplayName= "VirtualBox NDIS6 Bridged Networking Service"
if then there is no trace of that service in services.msc..??
pls apologize my very very poor and few skill.. cheers!! :)
Because such services aren't usually visible in services.msc But you can see/modify them in a cmd console using sc commands: sc [query/queryex/create/start/stop/delete..] name_of_the_service That command isn't enough to make the bridge network functional. You need to load the driver and then start the service. I wrote it for runarbu to help him find the final solution.
hi and thxs again! if i do query i now see it's -stopped- if i try -start- i get: "impossible..it is not in function.."
..so how to start that VBoxNetLwf service..?
thxs so much again!! cheers!!
Well, sorry but you can't in this moment. Like I said it needs more commands. runarbu and/or I need to find the right combination of app/ commands to use so it will function properly. So far we haven't :(
hi and thxs again ! ..so we can only anxiously waiting for you to solve this so old and frustrating bug in order to have finally our vbox portable fully compatible with win 10
thxs again! pls any step let us know here!!
cheers!!
:)
"Digging" through Google/VBoxForum/VBoxBugTracker found 2 things:
@runarbu
I found how VBox setup file is installing/uninstalling its drivers. In the VirtualBox-[version_number]-Win.exe there are 3 files: VirtualBox-[version_number]-MultiArch_x86.msi, VirtualBox-[version_number]-MultiArch_amd64.msi and common.cab. Inside each msi installer there are 2 dlls: DIFxApp.dll and DIFxAppA.dll. They can be extracted using Orca or the msi TC plugin. Not all msi unpackers see them, because they are in the Binary section not the Files section.
According to the msi script, DIFxApp.dll is used to "ProcessDriverPackages" and "CleanupOnSuccess". DIFxAppA.dll is used for "InstallDriverPackages", "UninstallDriverPackages" and "RollbackInstall".
So, one way to solve this problem is to figure out how to extract them from the setup exe file and how to use them to install/uninstall drivers.
Another way:
I found most part of the snetcfg code in another github project. Unfortunately is in C++ and my knowledge in C++ is not that great. I was able to port the C++ functions for installing and uninstalling drivers from devcon into Delphi code in a few days but, comparing with the work required to fix snetcfg, it was a "walk in the park". SnetCfg is using the INetCfg interface to install/uninstall network drivers. The problem is there is no "translation" of this interface into Delphi/Pascal language (says Google). That's making it more difficult to understand and use.
Third way:
You can follow the instructions from this link: https://www.virtualbox.org/wiki/Windows%20build%20instructions It says to use Loadall.cmd to register the drivers. Loadall.cmd starts an sh script; the script uses NetLwfInstall.exe/NetAdp6Install.exe/NetFltInstall.exe/NetAdpInstall.exe to install/uninstall the drivers. These files are available only after the compilation. You can use them to install/uninstall network drivers in the portable version.
Fourth way:
You can trace the code from those exe files, found how they use INetCfg interface and make+compile your own utilities. Unfortunately the code is not so easy to "trace".
The problem with each solution is that requires some work to be done... But if you decide to try you can count on my help.
https://drive.google.com/file/d/0ByKxAD_t9uvLZExwbnpRSGtnelE/view?usp=sharing
hi david! first so much thxs again for yr kind interest and helping! i don't know if it could help but problems with network bridged started with win 8 and 8.1 at that moment it started the frustrating pop up error about snetcfg.. at that moment i solved by put in the task scheduler the vbox process..so starting the pc vbox started and i bypassed probably that win 8 and 8.1 control... obviously i already tried the same with win 10 but with no results at all..
another idea: with win 10 lots of frewalls and anti viruses fail due to the fact that win 10 has its own.. and win 10 has also its own virtualization..so may be -that's the question-...
hoping to finally be able to use -completely- vbox portable with win 10 also in its network bridged and bi diretional drag and drop i only can wait for yr useful trying and ideas!!
@DavidBrenner3 @runarbu I am also in the process of fixing the portability.
As for the DIFx tools You can get the DPinst.exe from the WDK. I am uncertain if the API goes further than what the compiled binary does.
The binary tool doesn't seem to suffice for installing drivers such as the VBoxUSB and network ones, it only adds them to the driverstore.
However, on Windows 10 with the latest version of VirtualBox(5.0.14) i can successfully install the network drivers using:
c:\\tools\\devcon_x64.exe install c:\\VirtualBox\\drivers\\network\\netadp6\\VBoxNetAdp6.inf sun_VBoxNetAdp
From the .inf directory
c:\\tools\\snetcfg_x64.exe -v -l VBoxNetLwf.inf -m VBoxNetLwf.inf -c s -i oracle_VBoxNetLwf
The tools are from the latest portable-vbox. This at least, adds the VirtualBox adapter with the filter in my network devices and I can use the bridge option in VirtualBox.
As for portability as a whole, for the teardown I am currently failing to correctly remove the VBoxUSB and VBoxUSBMon, trying to stop the latter puts it in a infinite pending state. It's the only missing piece for me.
Thank you for the info.
I tried this too some time ago and it didn't work (the console window froze). I tried again today and it works. Weird... Looks like W10 still fails on stability.
Btw, forgot to mention: the latest VBox versions are using NDIS 6 drivers in Vista/7/8/8.1 too. I tested in 8.1 and indeed works. So now Portable VBox can be set too to use the NDIS 6 drivers by default. If it founds XP, it will switch to NDIS 5.
Ok, so now we'll wait until runarbu modifies the script, recompiles, adds the digital signature and uploads it to website.
As for your problem with the VBoxUSBMon service: I don't have this problem, so the cause may be on your computer. Could be a USB device/driver which the service fails to recognize. Try to remove all USB devices and unnecessary drivers and see if it still does the same. If it doesn't, add the USB devices one at a time and detect which one(s) trigger the problem. And notify Oracle using the bugtracker. If it does, try with the latest installable VBox version. If it still does, notify Oracle. If it doesn't, uninstall it and use the latest version in the portable version. If it still does the problem then come back here and open an issue.
@DavidBrenner3 I realised my mistake yesterday, at least in later versions of VirtualBox or in Windows 10 the VBoxUSB is not installed only the VBoxUSBMon is. When leaving out VBoxUSB from my install script it seems to works just fine.
No problem, glad that it's solved :)
hi but now is there a way to have portable vbox fully compatible with win 10..?? i mean the network bridge and the bi directional drag and drop..for istance..
Yes, thanks to likvidera:
The only problem is, the first time you try to install VBoxNetLwf in W10, snetcfg freezes. You have to reboot but after that it works.
so which are the exact steps to do..??.. could you pls give us a small simple detailed guide..? works also with new 5.0.15 or latest stable 5.0.14..? cheers!!
"Ok, so now we'll wait until runarbu modifies the script, recompiles, adds the digital signature and uploads it to website."..: on the vbox.me site is only there the very old 5.08... and runar seems as present as the canterville ghost... or hudini...
I'm not sure if an automated solution to install/uninstall only Net drivers can be found, especially because VBox needs to be closed during this. But, if VBox is closed, Portable-VirtualBox.exe is closing too. And, when it's closing, it removes the path to Portable VBox files from Windows environment. Options:
https://drive.google.com/open?id=0ByKxAD_t9uvLYUNadFFTdWJaeE0
hi david! thx again!
1)..runar as incredibly disappeared..are you able to do it..??.. 2) how to do it..??..pls tell us the each steps..we are not so skilled..!! 3) is it portable..?..is there a detailed guide for no skilled as us..??
cheers!!
for likvidera: "However, on Windows 10 with the latest version of VirtualBox(5.0.14) i can successfully install the network drivers using:
c:\tools\devcon_x64.exe install c:\VirtualBox\drivers\network\netadp6\VBoxNetAdp6.inf sun_VBoxNetAdp From the .inf directory c:\tools\snetcfg_x64.exe -v -l VBoxNetLwf.inf -m VBoxNetLwf.inf -c s -i oracle_VBoxNetLwf
The tools are from the latest portable-vbox. This at least, adds the VirtualBox adapter with the filter in my network devices and I can use the bridge option in VirtualBox"
could you please give us a detailed step by step guide..?? consider we are not so skilled... thxs in adv!
cheers!!
register_network.zip unregister_network.zip
Decompress them, open them in Notepad/Wordpad and modify the first line by replacing the path after '=' with the path to your Portable VBox files (where app32/app64 folders are). Be sure that it will not end with '\'. Start Portable VBox with no network and start register_network.cmd as administrator. Before closing Portable VBox, start unregister_network as administrator.
Next time you won't need to go to Options, just start the exe and wait till the arrow becomes green. To start the VB manager, click on the Manager button from the right and then on the VB Manager in the popup menu. To start the VB Manager directly with the button, you can create a dummy VB entry in the application and make sure is always selected. This way the VB Manager icon will be displayed in the button and it will open it directly.
Good luck.
hi david and so many thxs again! the path is: G:\VIRTUALBOX-TESTS\Portable-VirtualBox 5.0.15\app64 so i place that in first line..but..when i launch it with admin right, i've win 10 home 64 bit..,i got impossible to find the specified path..why..?? Impossibile trovare il percorso specificato. Impossibile trovare il percorso specificato.
G:\VIRTUALBOX-TESTS\Portable-VirtualBox 5.0.15\app64>"G:\VIRTUALBOX-TESTS\Portable-VirtualBox 5.0.15\app64\data\tools\devcon_x64.exe" install "G:\VIRTUALBOX-TESTS\Portable-VirtualBox 5.0.15\app64\app64\drivers\network\netadp6\VBoxNetAdp6.inf" "sun_VBoxNetAdp" Impossibile trovare il percorso specificato. Impossibile trovare il percorso specificato.
G:\VIRTUALBOX-TESTS\Portable-VirtualBox 5.0.15\app64>"G:\VIRTUALBOX-TESTS\Portable-VirtualBox 5.0.15\app64\data\tools\snetcfg_x64.exe" -v -l "app64\drivers\network\netlwf\VBoxNetlwf.inf" -m "app64\drivers\network\netlwf\VBoxNetlwf.inf" -c s -i oracle_VBoxNetLwf Impossibile trovare il percorso specificato. Finished Premere un tasto per continuare . . .
and using yr tool this is what i get..i attached a screen shoot..not able to see and so to push the -ok- button..why..??
david..as you can see here there are only some certain things..: 1) runar has astonishingly and incredibly disappeared..so you are our only guardian angel.. 2) we really are not skilled at all..so you if are so kind you have to make a tutorial -step by step- with all of fully details to do..as you were talking with a new born child..
we really hope you will have the patience to help us to solve this matter that is here since the very late july 2015...
so many thxs indeed in adv..
cheers!
Your path is G:\VIRTUALBOX-TESTS\Portable-VirtualBox 5.0.15 not G:\VIRTUALBOX-TESTS\Portable-VirtualBox 5.0.15\app64
Your computer has the Screen height too small and the window is bigger, the OK button is below the taskbar. Try to click in an edit box (for example where the path to VBox is set) and press Return.
"Try to click in an edit box (for example where the path to VBox is set) and press Return."..:
..i just set the path as you can see in my photo..but...the ok button did not appear at all.. ..and where is -return- to press..?? pls have the patience to help me..apologize my few skills.. cheers!!
hey runar..any ideas..??!! you are better then houdini!!