RSS

Tag Archives: virtualbox

Installing VirtualBox Guest Addition on SLAX

(edit: fixed the wrong command as “Frustrated Slax User” suggested)
It’s a pretty easy task but, every time, I made some mistake …
Here’s the full procedure.

Tip, before you begin:
if you are in a liveCD environment, you’ll need to configure two cdrom readers.

First you need the linux sources / headers, because the modules will be built into the kernel.

slax activate kernel-devel

Then, from your host, you have to mount the .iso Guest Additions file.
On Windows you can find the file in C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso.
On Linux it is in /usr/share/virtualbox/VBoxGuestAdditions.iso

Finally we can launch the installer within the guest VM. We have to mount the virtual cdrom

mkdir /mnt/cdrom
mount /dev/sr0 /mnt/cdrom
cd /mnt/cdrom

then

./VBoxLinuxAdditions.run

Done! =)

If something went wrong check the logs in /var/log/VBoxGuestAdditions.log
To verify if one module is currently running you can use the modinfo command: modinfo vboxvideo.
To start one module’s daemon there is the VBoxClient command. I.e. running VBoxCLient –display will starts the video driver daemon (that allows the guest automatic resize).

 
1 Comment

Posted by on 2013/05/02 in sys

 

Tags: , ,

Restoring the network into the guest VM

Sometimes into my VirtualBox guest (a Slax vm), it happens that I lost connectivity with the “outside” world. I do actually use a virtual NAT network adapter.

Edit: I found a better (see native) version to fix the connectivity! Be aware that, for an instant, eth0 will go DOWN (then up).

dhcpcd eth0 -n

Done!

OLD, RAW, VERSION:
Here’s the trick to restore it:

pkill dhcpcd
nohup dhcpcd eth0 &

This way I’ll kill and restore the DHCP client daemon.

I surely know this is the lazy way….I’ll should test one of these to kill the service (from man dhcpcd):

dhcpcd -k
kill -1 pid 

and one of these to restart it:

/etc/init.d/dhcpcd start

or maybe a renew:

dhclient -r
 
Leave a comment

Posted by on 2013/03/04 in sys

 

Tags: , ,