Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1487  / 2 Years ago, wed, april 13, 2022, 7:10:57

I have a virtualbox VM that is broken. It won't boot normally. I don't want to bother trying to fix it but I do want to get some files off it that I need.



If I hold down the shift key I can get to a prompt allowing me to boot into recovery mode and from there I can select the option netroot and I'm in. I can get to the files on that machine which I need and the internet works (I can run wget --spider http://example.com succesfully.) So it seems like I should have everything I need to get the files off. But how? I thought about trying to setup an FTP server but I'm wondering if there isn't an easier way.



I am running Ubuntu 12.04 on the host and 10.04LT on the client (VM).


More From » 12.04

 Answers
5

An easy way would be to enable SSH on your host, then mount a folder via SSH on your VM.



On the host:



sudo apt-get install openssh-server
mkdir ~/vm_backup


On the VM:



apt-get install sshfs
mkdir /mnt/host
sshfs [username]@[host]:/home/[username]/vm_backup /mnt/host


NOTE:




  • Replace [username] with the username on the host.

  • Replace [host] with either the IP address or hostname of the host



Then you can just copy everything you need to /mnt/host



When you are done, if you do not want SSH anymore, simply uninstall it.



sudo apt-get remove openssh-server

[#36609] Friday, April 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
afisird

Total Points: 193
Total Questions: 112
Total Answers: 111

Location: Angola
Member since Mon, Jul 12, 2021
3 Years ago
afisird questions
Wed, Jul 27, 22, 03:53, 2 Years ago
Sun, Mar 12, 23, 18:05, 1 Year ago
Sun, Dec 11, 22, 01:19, 1 Year ago
;