Introduction
This page describes the installation of poprad, which is Suzie’s VirtualBox VM on her work laptop.
This is a VM with oneĀ CPU and 4GB RAM with 20GB HD. The screen resolution of the physical machine is 1920×1080.
Procedure
- Create a directory for temporary downloads (e.g. C:\Users\sramsay\VirtMach-related).
- Install VirtualBox on the Windows laptop as follows:
- Download VirtualBox for Windows from here.
- Run the installer (VirtualBox-7.0.18-162988-Win.exe).
- When asked “Do you want to allow this app to make changes to your device?”, click “Yes”.
- When asked “Click next to continue …”, click “Next’.
- When asked “Select the way you want features to be installed”, accept the default by clicking “Next” and note tha it will install VirtualBox in C:\Program Files\Oracle\VirtualBox.
- When asked “Warning: Network Interfaces … Proceed with installation now?”, click “Yes”.
- When asked “Missing Dependencies …. Proceed with installation now?”, click “Yes”.
- When asked “Click install to begin”, click “Install”.
- When asked “Click the Finish button …”, disable “Start Oracle VM …” and click “Finish”.
- Complete the “Creating the perfect VirtualBox-based VM” procedure here using the just-downloaded Debian 12 netinst ISO image.
- Install the basic OS as follows:
- Complete Installing Debian 12 on a PM or KVM VM.
- Complete Configuring the desktop environment.
- DON’T DO UNTIL REASON UNDERSTOOD: Configure but disable a ssh reverse tunnel.
- Configure SSH access from the Windows laptop:
- Install putty
- …
- Facilitate non-local-to-VM ssh access as follows:
- Determine the VM’s IP address (e.g. using
ip -4 addr
in the VM). - In VirtualBox configure port forwarding from 0.0.0.0:22 to <IP-of-VM>:22.
- Is that port forwarding site-specific? When we’re back at home is the IP of the VM going to change? I’m not sure.
- Determine the VM’s IP address (e.g. using
- Configure VNC access from the Windows laptop:
- note that lightdm.conf says to start a VNC session, with password in /etc/vnc/passwd, so x11vnc should not be needed
- install client
- use putty on nb24085 to connect to delguineon delguine:
vncserver -localhost no -geometry 1920×1080 :15
(NB: 1920×1080 is the resolution of the host machine, in this case nb24085)on nb24085:
run up vncviewer in C:\tigerVNC
vncserver is 192.168.1.106:5915
(NB: 15 in 5915 corresponds to the :15 above and is the display number)There is a password set and it is stored on my mobile phone. - Note that the VNC server process on the VM should not be port-forwarded-to for security reasons.
- To share a folder between the Windows laptop and the VM:
- Note that the Debian wiki describes a different procedure for acquiring the guest additions, but hopefully, that is not needed.
- Run:
apt-get install virtualbox-guest-additions-iso linux-headers-$(uname -r) dkms losetup /dev/loop0 /usr/share/virtualbox/VBoxGuestAdditions.iso mount /dev/loop0 /mnt cd /mnt ./VBoxLinuxAdditions.run --nox11 # fails with
Note that the VBoxLinuxAdditions.run call will fail with:
VirtualBox Guest Additions: modprobe vboxsf failed
and /var/log/vboxadd-setup.log suggests all went well.
- Reboot the VM
- The shared folders on the client side were managed by pcms and they should be again, but we’ll tread slowly. The entries are in the pcms-config/gen-facility-local and were:
poprad-shared-folder /home/sramsay/shared-folder vboxsf uid=1000,gid=1000,umask=022 0 0 drive-d /home/sramsay/drive-d vboxsf uid=1000,gid=1000,umask=022,noauto 0 0
so the new entries should be set up in VirtualBox to agree with this, then they can be carefully re-enabled in pcms. Note that pcms writes some mount-related commands to /etc/sudoers, but these may no longer be needed; check!
- Get X working:
- Install Xming
- how to call putty with a command (e.g. putty –how-to-get-it-to-run xfce4-terminal) so that that terminal is managed by Windows’s window manager?
- Finalise as follows:
- Shut down VM.
- Can an export be created or
- Wait till back at home!
- Add a suitable entry to orzo:DNS for the work laptop and orzo:dhcpd.conf.
- Verify remote access to poprad (e.g. from farfalle)
- Complete Finalising a Linux installation.