Category: VirtualBox

  • a Mac mini, Apple Remote Desktop, VirtualBox, Windows as VM

    Is this just a weird idea? 

    I need this for running rtf2docx. And possibly for much more.

  • my Ubuntu VirtualBox virtual machine

    • https://pragprog.com/titles/bhcldev/ – “Small, Sharp Software Tools” – I followed the instructions in chapter “Creating an Ubuntu Virtual Machine with VirtualBox”
    • my host OS: macOS …
    • I chose to use the current Ubuntu LTS release (20*) as opposed to the 18* one mentioned in the book – on my 2nd try I surfed to kubuntu.org and download their ISO image
    • I chose the minimal installation
    • the minimal installation works

    Task: resizing the VM window vs. resizing the Ubuntu desktop inside

    • the related magic lives within VBoxGuestAdditions.iso (supporting “any” OS and OS flavour)
    • add VBoxGuestAdditions.iso to the respective VM as optical device!
    • the respective guest OS will mount the optical device and hopefully autorun “something”
    • because I had chosen the minimal installation, the 1st mounting resulted in complaining about missing utilities resp. packages: gcc, make, perl
    • “sudo apt-get install gcc” led to another complaint and the suggestion to execute this:
    • “sudo dpkg –confgure -a”
    • now again: “sudo apt-get install …” for: gcc, make, perl
    • after rebooting the guest OS: the Ubuntu desktop inside resizes, if you resize the VM window

    Task: get familiar with the Gnome desktop’s concept of workspaces!

    Task: get my banking application running!

    • my banking application is implemented in Perl, so for installing Perl modules through the utility cpanm install the resp. Debian package:
    • “sudo apt-get install …” for: cpanm
    • then “cpanm …” for: JSON, Getopt::ArgvFile, XML::Simple
  • VirtualBox needs “occasional” reboots for best performance

    I am running VirtualBox on a MacBook Pro (Mac OS X 10.11.6).

    It is running 2 virtual machines:

    • Win8.1
    • openSUSE

    I hardly ever completely shut down the MacBook, I always only pause it.

    I “never” shut down the virtual machines, I only pause them as well.

    Until I shut down the virtual machines and VirtualBox and also upgraded it today, “this” was going on now for like 2 months. The performance of the guest OSs degraded more and more, the CPUs got eaten up by VirtualBox activity. But after today’s reboot everything is as fine as it always was, when I truly enjoyed it.

    But why does the performance degrade that badly? Really, really strange.

  • are you up for an OpenSUSE as a VirtualBox VM? here you find free ready-made VM images

    Images for several OpenSUSE versions are available. Latest: OpenSUSE 13.2 OpenSUSE 10.0 (with KDE desktop environment) Size (compressed/uncompressed): 1,15 GBytes / 3 GBytes Link: Active user accou…

    Source: https://virtualboxes.org/images/opensuse/

    Next time your sysadm worries you …

  • VirtualBox: multiple virtual machines with SSH servers on port 22 – how to reach them?

    In the VirtualBox Manager:

    > Settings > Network > Port Forwardings > for every virtual machine add a service with a new, unique Host Port (e.g. 2229), the Guest Port always set to 22 – if that’s the port, your local SSH server is listening on.

    Once that’s completed, you can reach a specific one like this:

    $ ssh -p 2229 localhost
  • my Synology DiskStation now functions as a NAS to my entire I.T. landscape including Mac OS X, Windows, and NFS

    Actually (as you might remember) there is not just one Synology DiskStation (AKA NAS) here, but three of them – you will find more information here on the blog, if you follow category Synology or NAS. So I am referring to my “primary” NAS here.

    NFS is the most recent achievement, and it is the one, that will need a little more work to be production reliable, but functionally it serves its purposes and I am rather glad.

    NFS is the genuine way of “file serving” on Unix/Linux/… and alike systems.

    So as of today I am able to access the files sitting on my (“primary”) NAS from my Macs, my Windows boxes, and my Linux boxes.

    There are still files sitting within “Virtual Machines”, that are a little difficult to access from outside; but migrating them to the NAS is not a short-term goal.

    I would love to be able to “stroll around” with just my MacBook Air and my (mobile) NAS, and still be able to access every possible file and achieve every possible task.

    Alright, I do accept, some some tasks can only get performed on certain machines, but I can reach them (from remote) “at home” (via a command line, i.e. SSH) on a box (or a “Virtual Machine”).

    My 1st task performed under the new circumstances is my November payroll. Imagine:

    • a Mac
    • hosting a Virtual Machine (Oracle VirtualBox),
    • running openSUSE Linux,
    • accessing files through NFS served on my NAS,
    • (the Linux “box”) running GNU Emacs,
    • running a bash,
    • running a couple of shell sniplets converting simple CSV files into more readable / comparable ones (I dare to call this “data science”);
    • in the end telling me, that last month’s payroll files essentially look like this month’s ones;
    • so within my actual banking software (Lexware Quicken on Win8.1 in yet another Virtual Machine)
    • I will be able to kick off the new payroll payments
    • and also the monthly payment to the accountants.

    Why did an article with such a simple name get so extensive again? Well, I just needed to write it down again and “tell somebody”. Actually (yet another time) I have no idea, who will read it and whether this article will be read at all, but it does indead make me feel rather, rather well.

  • “Oracle Linux Server” as VirtualBox guest OS: a few administrational experiences

    There is a VM appliance, that I run …, and that appliance uses Oracle Linux Server as its OS.

    I want the appliance’s hostname to be oracle000 – it’s going to be my Oracle Databaser server anyway.

    Q: The appliance’s network connection to outside – how to activate it?

    Initially the appliance’s network connection seems to be down – what’s wrong? The “Terminals” on the top bar let you activate the connection. BTW: By default this is a NAT connection – so accessing the appliance network-wise from outside is a bit weird – but we are going to replace the NAT set-up with a “more natural” one in a minute.

    Q: How to access the appliance at its own IP address from within the LAN or even further outside?

    Within “Oracle VM VirtualBox Manager” I set this VM Network Adapter’s “Attached to” to “Bridged Adapter“. Now my LAN’s DHCP server (i.e. the router) assigns an IP address on the LAN to the VM, and actually I told the router to always use the same IP addresss, and I also named the network device there oracle000.

    Q: ssh w/o account name from within the appliance to outside and from outside the appliance into it

     

    If you do not mention an account with the ssh command, it assumes you want to reach an account by the same name on the remote side. But you are able to configure another account name on a particular remote host via an entry in a local ssh related file: $HOME/.ssh/config . You can do that on the appliance for reaching other hosts; you can do that on the other hosts around in order to reach the appliance’s main account oracle.

    This is one of the possible kinds of entries on $HOME/.ssh/config :

    Host 10.0.2.2
        User xyz

    Q: rsync over ssh

    Add this to $HOME/.bash_profile :

    export RSYNC_RSH=ssh

    Q: installing my favourite tools

    My VM host has a couple of handy utilities, that I am always eager to install:

    $ ssh 10.0.2.2 # logging into the VM host
    …
    $ rsync -va 10.0.2.2:bin $HOME
    $ rsync -va 10.0.2.2:Computers $HOME

    Q: How to adapt the timezone to e.g. Europe/Berlin?
    A: Make /etc/localtime a symlink to the right file below /usr/share/zoneinfo/ !

    Timezone-wise the appliance runs in EST, and I want it to run in Europe/Berlin:

    $ ~/bin/create_snapshot.sh /etc/localtime
    $ ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime

    Q: ssh into the appliance w/o password – … .ssh/authorized_keys …

    You should know this in advance: Oracle Linux Server makes use of SELinux. That makes it safe but also complicated.

    The home directory of user oracle is /u01/oracle – for SELinux that is a non-standard directory, and although I attempted to follow this page WRT an extra file to be created within /etc/selinux/targeted/modules/active by the name of file_contexts.local , I did not succeed.

    If you want to switch SELinux off temporarily, this is how to achieve this:

    $ echo 0 > /selinux/enforce

    With SELinux turned off, ssh into the appliance works as expected.

    Q: Suppplying the appliance with the hosts’s VirtualBox Guest Additions

    The ones installed in the appliance are older then the manager software installed on the host and that seems to cause trouble.

    First I thought, I should remove the old addtions before getting the up-to-date one installed, but later I got the impression the installation process removes old additions. But here I am going to describe how I manually removed the old additions:
    Apparently they do not come as RPM, so it’s impossible to get hold on them in one go. I created an extra hierarchy /etc/rc.d-QUARANTINE, and I moved all start-up scripts and links to within there. …

    How to install the host’s up-to-data …/VBoxGuestAdditions.iso? Add the ISO to a SATA  Storage Controller Controller. After booting into the appliance:

    $ cd /media/VBOXADDITION*
    $ sudo ./VBoxLinuxAdditions.run

    That process announced it cleans up earlier installations.

    Now after rebooting the appliance the appliance’s window on the host scales perfectly, i.e. resizing the host window also resizes the X-Window server details – everything is fine there now.

    Q: …