You are not logged in.

#1 2007-06-23 08:36:53

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

VirtualBox HOWTO (Wiki)

Since there were recently a lot of threads regarding VirtualBox I decided to create a HOWTO in the wiki:
http://wiki.archlinux.org/index.php/VirtualBox


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#2 2007-06-23 22:56:51

detox332
Member
From: University of Pittsburgh
Registered: 2007-06-12
Posts: 63

Re: VirtualBox HOWTO (Wiki)

Install VirtualBox PUEL

This is done easily since we have a nice pkgbuild in AUR done by piie.

(NOTE: VirtualBox depends on QT4 so make sure you have it installed before makepkg is issued)

Download the PKGBUILD, issue makepkg and that as root:

pacman -A NAME OF THE PACKAGE.pkg.tar.gz

i was told that you should still use pacman -U over pacman -A even when adding a new package...may want to make that minor change otherwise very nice wiki


Arch64
KDE4 user

Offline

#3 2007-06-24 07:09:24

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: VirtualBox HOWTO (Wiki)

I've always used pacman -A over pacman -U and I can't find any difference at all, but since the developers prefer pacman -U over pacman -A, then I'll change it.


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#4 2007-06-24 19:21:43

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: VirtualBox HOWTO (Wiki)

Hello, I'm getting this error when compiling VirtualBox PUEL, with the PKGBUILD from AUR;

[rhandulle@Tjuh virtualbox]$ sudo makepkg -crs
==> Making package: virtualbox_bin 1.4.0-2 (Sun Jun 24 21:15:03 CEST 2007)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
   -> Found VirtualBox_1.4.0_Linux_x86.run in build dir
   -> Found vbox.install in build dir
   -> Found vbox_build_module in build dir
==> Validating source files with md5sums
    VirtualBox_1.4.0_Linux_x86.run ... Passed
    vbox.install ... Passed
    vbox_build_module ... Passed
==> Extracting Sources...
==> Starting build()...
sed: can't read /home/rhandulle/SAMSUNG/virtualbox/pkg/usr/bin/VBoxManage: No such file or directory
sed: can't read /home/rhandulle/SAMSUNG/virtualbox/pkg/usr/bin/VBoxManage: No such file or directory
==> Removing info/doc files...
==> Compressing man pages...
==> Stripping debugging symbols from libraries...
==> Stripping symbols from binaries...
==> Generating .FILELIST file...
==> Generating .PKGINFO file...
==> Copying install script...
==> Compressing package...
==> Cleaning up...
==> Removing installed dependencies...
error: no targets specified (use -h for help)

==> Finished making: virtualbox_bin  (Sun Jun 24 21:15:15 CEST 2007)
[rhandulle@Tjuh virtualbox]$

Offline

#5 2007-06-25 00:10:08

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: VirtualBox HOWTO (Wiki)

Thanks for the tutorial, I've been wondering myself how to get VB PUEL working, but... although it compiles just fine without errors and I'm able to install the package (with -U) the module does not appear to be installed (init says "cannot find vboxdrv") and there is no vbox_build_module located in /sbin.

I ran makepkg with and without fakeroot, but neither did the trick... am I missing something obvious?

Last edited by thayer.w (2007-06-25 00:10:53)


thayer williams ~ cinderwick.ca

Offline

#6 2007-06-25 02:49:53

detox332
Member
From: University of Pittsburgh
Registered: 2007-06-12
Posts: 63

Re: VirtualBox HOWTO (Wiki)

did you reboot after the install?


Arch64
KDE4 user

Offline

#7 2007-06-25 02:54:23

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: VirtualBox HOWTO (Wiki)

Yes... but a valid question, I guess smile

That's how I knew init said that it couldn't find the vboxdrv module.


thayer williams ~ cinderwick.ca

Offline

#8 2007-06-25 06:13:41

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: VirtualBox HOWTO (Wiki)

@ Don-DiZzLe I guess the .run file didn't extract properly and you are mising some files in the /pkg directory and that's why it refuses to compile.I guess that you should delete all in the directory and manually get the files required for PKGBUILD.
@ thayer.w open the .pkg.tar.gz file with file-roller or similar program and check whether there is
vbox_build_module in the usr/sbin folder.


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#9 2007-06-25 12:12:19

tyr0
Member
Registered: 2007-06-02
Posts: 152

Re: VirtualBox HOWTO (Wiki)

Thank you for this nice How-to, however, there is no VBoxAddIF script in the packages, which I need to set up a bridged network.

Offline

#10 2007-06-25 15:03:44

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: VirtualBox HOWTO (Wiki)

Dheart, thanks!  I don't know why I didn't think to look there when I didn't find it under /sbin.  The package has it under /usr/bin rather than /usr/sbin.

I've ran the module build script which appears to have worked, I'll have a look at it after work tonight and see how it goes.  Thanks again for the tutorial.

Last edited by thayer.w (2007-06-25 15:04:33)


thayer williams ~ cinderwick.ca

Offline

#11 2007-06-25 17:56:21

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: VirtualBox HOWTO (Wiki)

tyr0 wrote:

Thank you for this nice How-to, however, there is no VBoxAddIF script in the packages, which I need to set up a bridged network.

It is located in /opt/VirtualBox-VERSION OF VIRTUALBOX/VBoxAddIF


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#12 2007-06-25 19:42:03

tyr0
Member
Registered: 2007-06-02
Posts: 152

Re: VirtualBox HOWTO (Wiki)

Sorry, but this folder does not exist. I installed the ose-edition and the other scripts are in /usr/share/virtualbox/.

Offline

#13 2007-06-26 15:25:13

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: VirtualBox HOWTO (Wiki)

tyr0 wrote:

Sorry, but this folder does not exist. I installed the ose-edition and the other scripts are in /usr/share/virtualbox/.

Well I haven't played arround much with the ose edition since it sucks for me (No USB support - no printer).
Can't help you with that hmm


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#14 2007-06-26 16:26:09

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: VirtualBox HOWTO (Wiki)

@ Dheart: Just wanted to say thanks again, I'm now running VB PUEL because of your tutorial.  For some reason the module script was placed in /usr/bin rather than /usr/sbin, but aside from that it worked great.


thayer williams ~ cinderwick.ca

Offline

#15 2007-08-08 07:13:57

jimmarch
Member
Registered: 2007-08-07
Posts: 27

Re: VirtualBox HOWTO (Wiki)

As a newbie to Arch, can somebody point me to a page explaining how this install process generally works, so that the Wiki entry for this app makes sense?

As is it's written purely for the Arch-experienced.

Offline

#16 2007-08-08 07:48:16

jimmarch
Member
Registered: 2007-08-07
Posts: 27

Re: VirtualBox HOWTO (Wiki)

Update: I managed to figure out most of it but the file "vbox_build_module" isn't anywhere on my hard disk.  I searched as root, no joy.

Offline

#17 2007-10-18 13:11:28

Oblong_Cheese
Member
Registered: 2007-01-25
Posts: 42

Re: VirtualBox HOWTO (Wiki)

Why does the OSE version not include the VBoxAddIF utility? I don't want to install the PUEL edition because I would rather not muck about in the AUR; OSE edition exists already in the community repos.

[owen@oblong ~]$ slocate -i addif
[owen@oblong ~]$

Why do I have to chmod 666 /dev/net/tun even though my username is present in the vboxusers group and tun is owned by this group?

[owen@oblong ~]$ ls -lh /dev/net/ | grep tun
crw-rw---- 1 root vboxusers 10, 200 2007-10-18 20:36 tun
[owen@oblong ~]$ tail -n 1 /etc/group
vboxusers:x:1004:owen

Why, when I specify a correct networking startup & stop script, does VirtualBox fail with a near useless error message? These scripts work perfectly fine when executed from the commandline, yet VirtualBox gives me the following error:

Unknown error creating VM (VERR_HOSTIF_INIT_FAILED).
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).

Result Code: 
0x80004005
Component: 
Console
Interface: 
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}

vbox_start:

#!/bin/sh
sudo tunctl -t tap0 -u owen
sudo /sbin/ifconfig $1 up
sudo /usr/sbin/brctl addif br0 $1

vbox_stop:

#!/bin/sh
sudo /usr/sbin/brctl delif br0 $2

VirtualBox is excellent; I had it setup beautifully previously, but then I upgraded my kernel and installed the latest version, and now I'm experiencing many ugly network configuration problems. I don't want to have to chmod 666 /dev/net/tun every time I want to use my virtual machine. It should just work!

Offline

#18 2009-07-01 04:30:38

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Re: VirtualBox HOWTO (Wiki)

http://blog.beplacid.net/2009/02/16/virtualbox-21x-vboxaddif-no-longer-exists-command-not-found/ wrote:

Networking has been completely rewritten in VirtualBox 2.x, therefore VBoxAddIf (the script) is no longer relevant.

There are two ways you can fix this: use the GUI to configure the VM to use one of your host devices, or if you're headless, setup the network using VBoxManage modifyvm.

VBoxManage modifyvm YOUR-HOST-NAME -nic1 hostif -hostifdev1 br0

I don't know how useful this will be, but if someone could make a note or change the wiki for virtualbox with updated networking information that would be great. I am a noob when it comes to virtualbox (my new computer is the first one to be capable of handling a virtual machine) But some googling gave me this information.

Last edited by Meskarune (2009-07-01 04:31:59)


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#19 2009-07-01 04:33:03

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Re: VirtualBox HOWTO (Wiki)

oh....sorry to pull up such an old thread.... woops....


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

Board footer

Powered by FluxBB