Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moving out of VirtualBox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Proinsias
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2014
Posts: 113
Location: Scotland

PostPosted: Mon Mar 14, 2016 10:06 pm    Post subject: Moving out of VirtualBox Reply with quote

I have a gentoo virtual machine running in Virtualbox, I attempted to copy it onto a spare internal hdd and boot directly into it without vbox. I seen a method on the Arch wiki of mounting the new root partition as a shared folder in the VM and using rsync to copy things over.

This is the guide and the command is this one:
Code:
# rsync -aAXv /* /path/to/shared/folder --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs}


Whilst the data is being successfully copied I'm getting:
Code:
failed: Operation not supported (95)

this error appended to hundred of files.

Wandering around duckduckgo it looks like an error with links & permissions but I'm not sure how to solve this. Most of the related issues involve Windows/OSX/samba. I'm on a linux host, the new root partition target is ext4. I'm mounting the folder in virtualbox using vboxsf.

Any help would be appreciated.
Back to top
View user's profile Send private message
kazdva
n00b
n00b


Joined: 14 Mar 2016
Posts: 26

PostPosted: Mon Mar 14, 2016 10:29 pm    Post subject: Reply with quote

I never really used much shared folders, but I guess that playing like this with shared folders can be causing the issues.

What I would do is to setup networking between your host and guest and use rsync over virtual network.
Back to top
View user's profile Send private message
HerbMillerJW
n00b
n00b


Joined: 16 Feb 2012
Posts: 36

PostPosted: Mon Mar 14, 2016 11:07 pm    Post subject: Reply with quote

The way I generally do this is make a new virtual machine with the original .vdi as a second disk. Mount the second disk somewhere on the first disk's filesystem (like /mnt/gentoo or something) and tar the whole thing with tar -cvpf. Then you only have to worry about getting one file out of the virtual environment and don't have to worry about permissions. Then untar onto the root of the spare hard drive.
Back to top
View user's profile Send private message
kazdva
n00b
n00b


Joined: 14 Mar 2016
Posts: 26

PostPosted: Mon Mar 14, 2016 11:22 pm    Post subject: Reply with quote

There is no need for creating a new VM. You can convert .vdi file to .img and mount it on host, that would be faster.
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 564
Location: France

PostPosted: Wed Mar 23, 2016 1:33 pm    Post subject: Reply with quote

Do you use ACLs ? If not, you can omit the -A flag. I think you didn't mount the shared directory with the ACL capability.
You should add the -H (preserve hard links) flag, that said.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum