User Tools

Site Tools


jessy:virtualbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
jessy:virtualbox [2016/08/31 16:37] – [Creating a VM] slackjessy:virtualbox [2019/11/07 17:58] (current) – external edit 127.0.0.1
Line 8: Line 8:
  
 No need to install any desktop packages. No need to install any desktop packages.
 +
 +===== Networking =====
 +
 +Select bridged mode for bidirectional access to the LAN.
  
 Edit ''/etc/network/interfaces'' for a static IP: Edit ''/etc/network/interfaces'' for a static IP:
Line 21: Line 25:
 Then ''root@alito:/etc/network# ../init.d/networking restart'' (and get kicked off). Then ''root@alito:/etc/network# ../init.d/networking restart'' (and get kicked off).
  
 +===== Samba for shared folders =====
 +
 +==== Client/Guest ====
 +
 +  apt-get install cifs-utils
 +
 +Create ''/etc/samba/credentials'' chmod 400 as root containing
 +
 +  username=samba_user
 +  password=samba_password
 +
 +and add to fstab
 +
 +  //10.0.0.1/slack  /alan  cifs  credentials=/etc/samba/credentials  0 0
 +
 +  cd /home
 +  mv slack slack.old
 +  ln -s /alan/alito slack
 +
 +==== Server/Host ====
 +
 +To reenable symlinks despite the [[https://odzangba.wordpress.com/2011/01/02/fix-samba-not-following-symlinks-error/|security implications]], edit /etc/samba/smb.conf
 +
 +  follow symlinks = yes
 +  wide links = yes
 +
 +And add the user if you're not using an existing one
 +
 +  smbpasswd -a slack
 +
 +===== Guest Additions (for shared folders) -- DON'T DO THIS, IT'S JUST A TOY =====
 +
 +No longer downloaded as an .iso, download, open with VirtualBox and they are added to the controller.  They can be installed to a specific machine firstly by inserting the imaginary iso in the imaginary drive (Devices --> Insert ISO into drive...) and then by running the executable in '/media/cdrom0' as root.
 +
 +If you get
 +
 +    root@alito:/media/cdrom0# ./VBoxLinuxAdditions.run
 +    bash: ./VBoxLinuxAdditions.run: Permission denied
 +
 +It's probably a [[http://blog.ackx.net/virtualbox-guest-additions-common-errors.html|fstab problem]].  In /etc/fstab, change this:
 +
 +    /dev/sr0        /media/cdrom0   udf,iso9660 user,noauto           0
 +
 +To this:
 +
 +    /dev/sr0        /media/cdrom0   udf,iso9660 user,exec           0
 +
 +and remount.  You will also need to install "gcc, make, the header files for your Linux kernel and possibly perl".
 +
 +    apt-get install gcc make linux-headers-$(uname -r) perl
 +
 +Then sort permissions
 +
 +  adduser vboxsf slack
 +
 +and log out and in again.  Rm /home/slack and ln it to ''/media/sf_whatever''.
 +
 +===== NFS -- DON'T DO THIS, NFS AND DEBIAN HAVE BECOME A COMPLETE SHITSHOW =====
 +
 +Install ''nfs-common nfs-kernel-server portmap''.
 +
 +==== Server ====
 +
 +Config in ''/etc/exports''
 +
 +  /home/slack/alito  10.0.0.14(rw,subtree_check)
 +
 +Restart with ''root@alan:/etc# init.d/nfs-kernel-server reload''
 +
 +==== Client ====
 +
 +Config in ''/etc/fstab''
 +
 +  alan:/home/slack/alito  /home/slack  nfs  rw,user,auto  0  0
jessy/virtualbox.1472661439.txt.gz · Last modified: 2019/11/07 17:58 (external edit)