You are not logged in.

#1 2012-06-13 03:19:04

mankand007
Member
From: Chennai, India
Registered: 2012-02-26
Posts: 43
Website

Running an existing Arch installation in Virtualbox

Hi,

I have Arch dual booting with Xubuntu in a AMD x3 455 machine with 2GB ram.

I have eclipse and git configured in Arch, where i'm doing some serious coding.

Everytime i need to code, if i'm in Xubuntu, I have to reboot into Arch.

Is there a workaround for that?

Some way by which I can boot the existing Arch installation from inside Virutalbox installed in Xubuntu...

It should work exactly as if I booted natively into Arch...

I tried searching the forums, but was not able to lock in on the solution.

So please point me the right way to solve this. Thanks!


Custom built Openbox Arch linux 64

blog:
http://manikandan.means.it

Offline

#2 2012-06-13 03:25:14

mankand007
Member
From: Chennai, India
Registered: 2012-02-26
Posts: 43
Website

Re: Running an existing Arch installation in Virtualbox

I just now bumped into this.

https://wiki.archlinux.org/index.php/Vi … ical_Drive

Sorry for not looking deeper.

I'll try this and if this works out fine then i'll mark this thread Solved.

Please feel free to add any other methods to do this. Thanks!


Custom built Openbox Arch linux 64

blog:
http://manikandan.means.it

Offline

#3 2012-06-13 08:03:16

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Running an existing Arch installation in Virtualbox


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#4 2012-06-13 14:03:06

mankand007
Member
From: Chennai, India
Registered: 2012-02-26
Posts: 43
Website

Re: Running an existing Arch installation in Virtualbox

My Xubuntu installation is 32 bit (so as to avoid lib32 packages when installing popular apps like wine, skype, etc...)
My Arch installation is 64 bit...
Will I be able to chroot into the 64 bit arch from 32 bit Xubuntu and run Eclipse?
If that is not possible, is there any other workaround for this?


Custom built Openbox Arch linux 64

blog:
http://manikandan.means.it

Offline

#5 2012-06-13 14:11:44

mankand007
Member
From: Chennai, India
Registered: 2012-02-26
Posts: 43
Website

Re: Running an existing Arch installation in Virtualbox

I followed the Arch linux guide to boot Virtual box guest from Physical harddrive.

When I tried to build mkinitcpio with

MODULES="piix ahci pata_acpi ata_piix"

I'm getting error that module piix not found. I suffixed it with ? so the error message was suppressed.

However, when I tried to boot the Grub entry, It just freezes at 'loading initial ramdisk image'

How do I enable piix module?


Custom built Openbox Arch linux 64

blog:
http://manikandan.means.it

Offline

#6 2012-06-13 14:23:29

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Running an existing Arch installation in Virtualbox

Well, you forgot to mention the architectures of both OS'es. I was able to chroot into my Arch i686 install from a Parted Magic LiveCD (x86_64) and run the 32 bit programs that I have installed on Arch. So it is possible, yes. But not the other way around (chroot into 64 bit from a 32 bit OS).

Also, you won't be able to run 64 bit guests from a 32 bit OS in VirtualBox either. I remember my computer rebooted when I tried Windows 7 x64 in VirtualBox (Arch i686 as host, which I said that already).


My advice is to back up any important config files (from /etc or /home) and install Xubuntu 64. Then you'll be able to chroot very easily; maybe with a script (or even an alias function) instead of typing mount -t blablabla every time.

Last edited by DSpider (2012-06-13 14:38:08)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#7 2012-06-17 00:05:41

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,368

Re: Running an existing Arch installation in Virtualbox

Why don't you just run Xubuntu in VirtualBox from Arch?  Then you'll never have to reboot; not that I'm implying that Xubuntu is anything like windows.  Your 64-bit Arch is perfect for both 64 and 32 bit operation and since you can only run 64-bit Virtualbox with a VT-x or amd-whatever it's called.  This is also a sound solution since running 64-bits on 64-bits is a place I wouldn't run 64-bits especially under say 8GB of ram.  It's a waste to run the extra bits when you're not getting anything.  You could chroot the Xubuntu installation from Arch also, as long as the kernels aren't significantly dated from each other.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#8 2012-06-17 07:07:51

mankand007
Member
From: Chennai, India
Registered: 2012-02-26
Posts: 43
Website

Re: Running an existing Arch installation in Virtualbox

Well, the only gripe I'm having is that the front panel audio jack is not working in Arch, but works in Xubuntu, or for that matter any other new linux i'm installing. I'm trying the forums to help make it work...

https://bbs.archlinux.org/viewtopic.php?id=141439

If this works out well, I don't need to boot Xubuntu even from VB...

Since Xubuntu was built by some intelligent group of ppl, it feels more polished than Arch which was built only by me.. sad

I'm trying to compare Arch with Xubuntu and trying to match the two systems in terms of polish...


Custom built Openbox Arch linux 64

blog:
http://manikandan.means.it

Offline

#9 2012-06-20 08:03:12

Victor Miasnikov
Member
Registered: 2011-09-07
Posts: 8

Re: Running an existing Arch installation in Virtualbox

mankand007 wrote:

I followed the Arch linux guide to boot Virtual box guest from Physical harddrive.

When I tried to build mkinitcpio with

MODULES="piix ahci pata_acpi ata_piix"

I'm getting error that module piix not found.  . . .

How do I enable piix module?

piix -- is outdated ( and _replaced_ by ata_piix)

try

MODULES="ahci pata_acpi ata_piix"

DSpider wrote:

I was able to chroot into my Arch i686 install from a Parted Magic LiveCD (x86_64) and run the 32 bit programs that I have installed on Arch. So it is possible, yes. But not the other way around (chroot into 64 bit from a 32 bit OS).

Also, you won't be able to run 64 bit guests from a 32 bit OS in VirtualBox either.

My advice is to back up . . . and install Xubuntu 64.

Yes: Xubuntu x86_64 can help both chroot and VirtualBox


P.S.

mankand007 wrote:

Well, the only gripe I'm having is that the front panel audio jack is not working in Arch, but works in Xubuntu, or for that matter any other new linux i'm installing.
  . . .
If this works out well, I don't need to boot Xubuntu even from VB...

this

bbs.archlinux.org  }} Kernel & Hardware }} Front audio jacks not detected in Asus Motherboard 2012-06-17 23:17:28
bbs.archlinux.org   pid=1117781#p1117781

ewaller wrote:

Did you try these suggestions for forcing the model type.

If none of those works, try adding the generic line
options snd-hda-intel enable_msi=1
to /etc/modprobe.d/sound.conf

solve problem?

Last edited by Victor Miasnikov (2012-06-20 08:32:54)

Offline

#10 2012-06-21 12:12:02

mankand007
Member
From: Chennai, India
Registered: 2012-02-26
Posts: 43
Website

Re: Running an existing Arch installation in Virtualbox

Not working sad

I came across this while googling...

https://bbs.archlinux.org/viewtopic.php?id=94993

Is there any solution for this?


Custom built Openbox Arch linux 64

blog:
http://manikandan.means.it

Offline

Board footer

Powered by FluxBB