LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-14-2020, 04:09 PM   #1
JavaMeister
LQ Newbie
 
Registered: Jul 2017
Location: NC
Distribution: Ubuntu 18.04
Posts: 15

Rep: Reputation: Disabled
How to extract files from a VirtualBox .VDI file


Ubuntu 18.04, VirtualBox 5.2.42, Windows 7 (64 bit) in vb has a virtual disk image file at /home/ron/VirtualBox/VM_MSW/HD.vdi

How the heck can I get a data file created in virtual Windows in the .vdi file copied / extracted into an ordinary file in, let's say /home/ron/aFile.txt?
 
Old 08-14-2020, 05:27 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,421

Rep: Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556
There are a couple of ways and I assume the Windows filesystem has not be corrupted in any way.

There is a virtuabox fuse filesystem i.e. vdfuse that should be in the repository that will allow you to mount partitions within the VDI image and allow you to copy the file. The package name is virtualbox-fuse. Never tried this method.

http://manpages.ubuntu.com/manpages/.../vdfuse.1.html

sudo vdfuse -f VM_MSW/HD.vdi /your_mount_point

Find your file and copy it to your home directory.

The contents of /your_mount_point should contain the partitions. Pick the one that contains your file and mount that partition via

sudo mount /your_mount_point/Partition1 /another_mount_point

You can always create another guest VM and attach the VDI file as a second drive. Mount the data partition and copy the file to a USB drive or transfer the file via sftp from your file manager to the host operating system.
 
Old 08-15-2020, 09:10 AM   #3
JavaMeister
LQ Newbie
 
Registered: Jul 2017
Location: NC
Distribution: Ubuntu 18.04
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thank you MichaelK for your response.

I am afraid I understand very little of it. I don't have the background. I have no idea what a "loop mount" is, for starters.

OTOH, VirtualBox is so slow and clumsy on my Ubuntu 18.04 system that I am going to give the whole thing up. TurboTax has given me nothing but trouble on MSW 7 on VirtualBox. And then I can't get my data file out of VB.

What trouble VB has given me is supplemented by unwanted intrusion from MS! To h*ll with it. I am blowing the whole thing away and probably never coming back. I will use my wife's MSW 10 machine for running TurboTax.

I'm sorry it did not work out, but thank you again for your attempt. I cannot mark this issue SOLVED, but I think the above should certainly make clear that it was not your failure.
 
Old 08-15-2020, 09:42 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,421

Rep: Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556
I run virtualbox on some older hardware and it can be slow. Turbotax can be a memory hog. How much memory is configure for Windows? You need a min of 2GB but if you have enough more is better. Turbotax stopped supporting W7 as of this year so might as well get rid of it...

A loop mount let's you mount an image file of a drive/partition as if it were a real physical device. An ISO installation file you might of downloaded to install Ubuntu is an image file of DVD.
 
Old 08-16-2020, 03:03 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 15,305
Blog Entries: 9

Rep: Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379
Quote:
Originally Posted by JavaMeister View Post
I am afraid I understand very little of it. I don't have the background. I have no idea what a "loop mount" is, for starters.
The software vdfuse does exactly what you want, it just doesn't have a graphical frontend.
Which OS is your host, Ubuntu?
This search leads to this and this.
Personally I think the man page should be sufficient. The askubuntu is a little older, carefully consider all upvoted answers.
 
  


Reply

Tags
extract, image-formats, virtual box


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using .vdi virtualbox file created in another installation rng Linux - General 2 12-20-2015 04:45 AM
[SOLVED] Cannot resize VirtualBox .vdi file when created from physical disk Vanyel Linux - Virtualization and Cloud 1 02-16-2013 10:53 PM
manually removing the .vdi files left over after removing VirtualBox adityavpratap Linux - General 2 10-24-2010 12:04 PM
copy hard disk from xp to vdi file for virtualbox[zenwalk] deathalele Linux - Software 3 06-23-2009 06:26 PM
Migrating a VirtualBox .vdi Image to CoLinux MetalSubstance Linux - Software 2 02-25-2008 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration