You are not logged in.

#1 2012-03-24 10:45:37

georgelappies
Member
Registered: 2011-05-03
Posts: 13

[SOLVED] Possible to transfer an installed system from virtualbox?

to the physical hard drive of the machine?

If I install Arch in the vm will I be able to transfer that install to the physical drive of the machine?

Last edited by georgelappies (2012-03-24 12:21:59)

Offline

#2 2012-03-24 11:35:17

cedeel
Member
From: ~
Registered: 2009-08-25
Posts: 176
Website

Re: [SOLVED] Possible to transfer an installed system from virtualbox?

Short answer: Don't bother.

Longer answer:
While Arch installations are highly portable and doing such a transfer is definitely possible, it's usually just as quick to install from scratch.
What I'd suggest you do instead is generate a list of installed packages and use that to install the same in a new install.

If you really want to transfer, it would be easiest to do from within VBox itself. Just attach a physical HDD in addition to your vdi, then either dd over the partition or tar - untar it.

Offline

#3 2012-03-24 11:41:17

georgelappies
Member
Registered: 2011-05-03
Posts: 13

Re: [SOLVED] Possible to transfer an installed system from virtualbox?

Thanks, reason I am asking is that I am not on uncapped internet connection. I would like to try out Arch Linux very much. If I decide to use it downloading all the packages for KDE and X etc. again will eat heavily into my data plan.

How much download is involved with a standard KDE installation?

Your dd method sounds good.

Offline

#4 2012-03-24 11:59:09

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [SOLVED] Possible to transfer an installed system from virtualbox?

Pacman stores downloaded packages in /var/cache/pacman/pkg. You can just copy the packages from the virtual system's cache over to the new system's cache to reuse them (assuming both systems are the same architecture).

If your virtual system is accessible on the LAN, you can also use pacserve to avoid redundant downloads.

If you want to install the same packages on the new system, run this on the virtual system:

pacman -Qet > pkglist.txt

then copy the pkglist.txt file to the new system and run

pacman -S $(cat pkglist.txt)

My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2012-03-24 12:01:01

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: [SOLVED] Possible to transfer an installed system from virtualbox?

The one time I have recommended a VB installation to subsequently migrate is to prepare a pendrive version. It's much faster to install in VB and then copy to a pendrive than to install directly to the pendrive.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#6 2012-03-24 12:13:06

georgelappies
Member
Registered: 2011-05-03
Posts: 13

Re: [SOLVED] Possible to transfer an installed system from virtualbox?

Xyne wrote:

Pacman stores downloaded packages in /var/cache/pacman/pkg. You can just copy the packages from the virtual system's cache over to the new system's cache to reuse them (assuming both systems are the same architecture).

If your virtual system is accessible on the LAN, you can also use pacserve to avoid redundant downloads.

If you want to install the same packages on the new system, run this on the virtual system:

pacman -Qet > pkglist.txt

then copy the pkglist.txt file to the new system and run

pacman -S $(cat pkglist.txt)

Thanks, this looks like the preferred method to do it. I can install in virtualbox and play around until I get it just right and then move the packages over to a partition on the host.

P.S. how do we mark the threads solved here wink

Last edited by georgelappies (2012-03-24 12:14:51)

Offline

#7 2012-03-24 12:19:56

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [SOLVED] Possible to transfer an installed system from virtualbox?

Just edit the first post and prefix the subject with "[SOLVED]". wink


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB