Author Topic: How to export files from a Virtual Machine (VirtualBox)  (Read 2720 times)

0 Members and 1 Guest are viewing this topic.

Online BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5870
  • Country: de
How to export files from a Virtual Machine (VirtualBox)
« on: July 01, 2021, 06:31:42 pm »
I've installed Oracle VirtualBox on my Win 10 PC to be able to run an old Win95 program. The goal is to recover CAD files created back then by converting them from .TCW to .DXF or .DWG. Recreating them is not really an option. And I'm not going to pay $1000 for a TurboCAD license just for this file recovery. Online converters are not available.

Host:
Win10
VirtualBox 6.1

Guest:
Windows 95 OSR1
TurboCAD for Windows LE

Win95 and TurboCad install and run wonderfully in the VM, no problems there. Importing the old CAD files also worked using the .ISO file trick.
Opening the files and saving them as .DXF and .DWG also works.

But how do I get the modified files out in the real world?

Win95 is so old, it does not support shared folders, so that's out.

Any idea is highly appreciated.

Thank You.
 

Offline themadhippy

  • Super Contributor
  • ***
  • Posts: 2580
  • Country: gb
 
The following users thanked this post: Benta

Online BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5870
  • Country: de
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #2 on: July 01, 2021, 06:51:24 pm »
Wow! What a recipy.

But worth a try. I'll check it out. Thanks.
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16281
  • Country: za
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #3 on: July 01, 2021, 07:15:00 pm »
Virtualbox extension pack emulates a network drive, might be worth a try, plus it also does the USB pass through better.
 

Online BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5870
  • Country: de
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #4 on: July 01, 2021, 07:23:28 pm »
Virtualbox extension pack emulates a network drive, might be worth a try, plus it also does the USB pass through better.

Yes, I've seen references to a solution by installing an NE2000 network adapter on the Win95 machine. But the descriptions were too vague.

 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12856
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #5 on: July 01, 2021, 08:38:25 pm »
ImDisk Toolkit can mount .vhd, .vdi and .vmdk hard disk image files from VM host software including Oracle Virtualbox, provided the VM in question is in a 'powered down' state.  It also mounts .iso files.

ImDisk Toolkit is FOSS, available here: https://sourceforge.net/projects/imdisk-toolkit/
"ImDisk is a virtual disk driver for Windows NT/2000/XP/Vista/7/8/8.1/10 and Windows Server 2003/2003 R2/2008/2008 R2/2012/2012 R2, 32 and 64 bit editions."
 

Online BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5870
  • Country: de
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #6 on: July 01, 2021, 08:50:39 pm »
Thank You very much to all of you!

I put on my thinking hat and looked at the paper blueprints I need to recover as CAD files (I've inherited this project from a former colleague).

They are marked "2008", which kind of makes it improbable that they were created on a Win 95 machine.

I created a new VM with Windows XP, and yes, TurboCAD LE can be installed on that as well. (All later Win versions fail on this point: Vista, 7, 8, 10...).

But XP rocks (=can run Win 95 programs), and I can now export my files.

I apologize for not getting this idea before. Consider this solved.  :)


Too early to be happy. Win XP also does not support folder sharing. This is the most frustrating experience with VMs ever. I just can't believe this. Why does it have to be so hard?
Virtualisation is DEAD to me.

Had to get that off my chest, sorry.

« Last Edit: July 01, 2021, 10:45:22 pm by Benta »
 

Online retiredfeline

  • Frequent Contributor
  • **
  • Posts: 539
  • Country: au
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #7 on: July 01, 2021, 11:24:49 pm »
I've got an XP VM on Linux which I use to run a couple of old XP programs. I mount a Samba share exported from Linux to share files that way. I think it has to be XP Pro to be able to use file sharing.
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8269
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #8 on: July 02, 2021, 02:53:35 am »
ImDisk Toolkit can mount .vhd, .vdi and .vmdk hard disk image files from VM host software including Oracle Virtualbox, provided the VM in question is in a 'powered down' state.  It also mounts .iso files.

ImDisk Toolkit is FOSS, available here: https://sourceforge.net/projects/imdisk-toolkit/
"ImDisk is a virtual disk driver for Windows NT/2000/XP/Vista/7/8/8.1/10 and Windows Server 2003/2003 R2/2008/2008 R2/2012/2012 R2, 32 and 64 bit editions."
You can open "flat" disk images in 7-zip too, provided they have one of the many supported file systems (including FAT). It will also open ISOs.
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4032
  • Country: nz
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #9 on: July 02, 2021, 03:22:54 am »
But XP rocks (=can run Win 95 programs)

I'm not sure I'd go that far.

I have a copy of Server 2003 which I use for such VM use.

As far as I know, it's equivalent to XP in most ways, but better.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12856
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #10 on: July 02, 2021, 04:55:58 am »
If you are willing to 'turn down' Win10's network security settings a bit, (which you should *ONLY* do  on a wired LAN in an area where you control the physical access, with any internet access provided through a router with a decent firewall or other equivalent security appliance)  Windows XP and even older windows versions can share folders with, and access shared folders on, Win10.

From my notes file:
Quote
15:32 14/08/2020
For Win9x network compatibility,  Control Panel: Programs and Features: Turn Windows Features On or Off. You will find SMBv1 as “SMB 1.0/CIFS File Sharing Support” which has 3 sub-items: Automatic Removal (ha! don’t install this!), Client, and Server (both of which may be beneficial depending on exactly what you’re doing). Also change the Local Security Policy setting, Network Security: LAN Manager Authentication Level  to “Send LM & NTLM responses - use NTLMv2 session security if negotiated”

That's pretty much seamless sharing between Win10 Pro x64 20H2 and WinXP Home SP3.  The workgroup for both should be set to WORKGROUP, not MS's default for XP of MSHOME. 

If you aren't using OpenShell, 'Programs and Features' is hidden away as a link at the bottom of Settings: Apps: Apps & features.

 N.B. Win10 (and occasionally XP) can be *VERY* slow to find the other if you attempt to browse the whole network.  Manually entering the machine name in UNC path format (prepend \\) then browsing from there is much quicker.
« Last Edit: July 02, 2021, 05:04:39 am by Ian.M »
 

Offline Ed.Kloonk

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #11 on: July 02, 2021, 05:12:34 am »

Too early to be happy. Win XP also does not support folder sharing. This is the most frustrating experience with VMs ever. I just can't believe this. Why does it have to be so hard?
Virtualisation is DEAD to me.

Had to get that off my chest, sorry.

Well, I may be seen as being just a little biased  ;)  but I think the problem is Windows and not necessarily the virtualization. To answer your original question, you can mount the guest VM file system in the host to act as a removable drive and then access the files from that. No need for USB sticks or pin-holing the VM.

Virtualization is a wondrous thing. I'd be saddened if indeed that rotten OS caused you to retain a nasty taste in your mouth.
iratus parum formica
 

Offline themadhippy

  • Super Contributor
  • ***
  • Posts: 2580
  • Country: gb
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #12 on: July 02, 2021, 11:16:54 am »
Quote
oo early to be happy. Win XP also does not support folder sharing.
you have installed guest additions for  xp? https://www.virtualbox.org/manual/ch04.html
 

Online BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5870
  • Country: de
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #13 on: July 02, 2021, 09:17:19 pm »
SUCCESS!
Thanks to all for your good advice, but it unfortunately didn't lead to succes, as Win XP doesn't support folder sharing, and trying to get USB working or other workarounds failed.
As a desperate last attempt, I set up a new VM with Win2000. The old W95 software could (surprisingly, as this failed earlier on a real PC) be installed, and as W2000 supports folder sharing, I now have my CAD files.

A Happy End. :)

Cheers to All.
 
The following users thanked this post: eti

Online edavid

  • Super Contributor
  • ***
  • Posts: 3382
  • Country: us
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #14 on: July 02, 2021, 10:24:29 pm »
Wow, you were really doing things the hard way.  Shared Folders would have worked fine as mentioned, but VirtualBox also has a guest file manager built in: Machine -> File Manager.
 
The following users thanked this post: Someone

Online BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5870
  • Country: de
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #15 on: July 02, 2021, 10:45:22 pm »
Wow, you were really doing things the hard way.  Shared Folders would have worked fine as mentioned, but VirtualBox also has a guest file manager built in: Machine -> File Manager.

You may be right.
10 posts earlier it could have been a helpful response. At this point it's just gloating.
I have my CAD files, all the virtualization cr*p is now deleted and I won't ever work with it again.

To quote Murtaugh: "I'm too old for this sh.."
 
The following users thanked this post: eti

Online retiredfeline

  • Frequent Contributor
  • **
  • Posts: 539
  • Country: au
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #16 on: July 02, 2021, 11:53:13 pm »
virtualization cr*p is now deleted

You are blaming the wrong software. You would have had the same issues with real machines too, plus all the hassles of dealing with physical machines.
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #17 on: July 03, 2021, 04:41:48 am »
Quote
Win XP also does not support folder sharing.
um.  I've got a bunch of WXP VBox VMs (on a Mac), and they do the "shared folder" thing just fine.  Even "MicroXP" works.
Did you install the VBox extension pack (on the host) AND the "Guest additions" (on the client)?

 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3382
  • Country: us
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #18 on: July 03, 2021, 04:14:43 pm »
Quote
Win XP also does not support folder sharing.
um.  I've got a bunch of WXP VBox VMs (on a Mac), and they do the "shared folder" thing just fine.  Even "MicroXP" works.
Did you install the VBox extension pack (on the host) AND the "Guest additions" (on the client)?

I think he meant that Windows XP Home Edition doesn't support full SMB export, only "Simple File Sharing".  I don't know why that didn't work for him though, or why he didn't use WinXP Pro.



 

Offline eti

  • Super Contributor
  • ***
  • !
  • Posts: 1801
  • Country: gb
  • MOD: a.k.a Unlokia, glossywhite, iamwhoiam etc
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #19 on: July 07, 2021, 11:45:25 pm »
Wow, you were really doing things the hard way.  Shared Folders would have worked fine as mentioned, but VirtualBox also has a guest file manager built in: Machine -> File Manager.

"Let me go back in time and show you how to do it the 'correct' way, even though you have achieved what you needed"

The net is full of these silly posts. It doesn't matter now, he achieved the goal.
 

Offline Ed.Kloonk

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #20 on: July 08, 2021, 05:01:59 am »
Wow, you were really doing things the hard way.  Shared Folders would have worked fine as mentioned, but VirtualBox also has a guest file manager built in: Machine -> File Manager.

"Let me go back in time and show you how to do it the 'correct' way, even though you have achieved what you needed"

The net is full of these silly posts. It doesn't matter now, he achieved the goal.

But the next person might find it useful.
iratus parum formica
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12856
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #21 on: July 08, 2021, 08:56:13 am »
Note that 'Machine -> File Manager' works from within a running (normally)VM which IIRC also requires the VirtualBox extensions (which should always match the VirtualBox version) to be correctly installed and operating.  However its not uncommon to need to retrieve files from an old VM that either has seriously outdated VirtualBox extensions, or is otherwise broken e.g. anything that triggers XP activation will leave you stuck in a login loop now the activation servers have gone away.

Therefore offline methods of data retrieval are *IMPORTANT*.  In addition to using ImDisk as I mentioned earlier, one can mount VirtualBox .vhd files from Windows Disk Manager (diskmgmt.msc Action: Attach VHD).

See https://www.raymond.cc/blog/access-virtual-hard-disks-easily-in-windows-7/ for more methods.
 
The following users thanked this post: edavid

Online edavid

  • Super Contributor
  • ***
  • Posts: 3382
  • Country: us
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #22 on: July 08, 2021, 02:39:29 pm »
Note that 'Machine -> File Manager' works from within a running (normally)VM which IIRC also requires the VirtualBox extensions (which should always match the VirtualBox version) to be correctly installed and operating.  However its not uncommon to need to retrieve files from an old VM that either has seriously outdated VirtualBox extensions, or is otherwise broken e.g. anything that triggers XP activation will leave you stuck in a login loop now the activation servers have gone away.

Therefore offline methods of data retrieval are *IMPORTANT*.  In addition to using ImDisk as I mentioned earlier, one can mount VirtualBox .vhd files from Windows Disk Manager (diskmgmt.msc Action: Attach VHD).

See https://www.raymond.cc/blog/access-virtual-hard-disks-easily-in-windows-7/ for more methods.

That's a great article, no question.  But, in the scenario you describe where the VM can't be booted, it would be easy enough to create a new VM, install the desired OS, then attach the storage from the old VM to it for access.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12856
Re: How to export files from a Virtual Machine (VirtualBox)
« Reply #23 on: July 08, 2021, 02:46:15 pm »
That's a great article, no question.  But, in the scenario you describe where the VM can't be booted, it would be easy enough to create a new VM, install the desired OS, then attach the storage from the old VM to it for access.

Yep, BTDTGTTS, back in my VMware using days, usually to wrangle data onto or off-of a virtual disk for an OS with no integration support from the VM software + a filesystem my host OS cant mount.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf