{"id":63,"date":"2011-09-14T11:18:12","date_gmt":"2011-09-14T11:18:12","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=63"},"modified":"2025-08-15T12:29:07","modified_gmt":"2025-08-15T12:29:07","slug":"virtual-box","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/virtual-box\/","title":{"rendered":"Virtual Box"},"content":{"rendered":"\n<p>This page has been live for a long time. Sun Microsystems bought Innotek the authors of Virtual Box, an opensource virtualisation product in 2008. It permits Windows\/Linux\/Solaris guests on the same operating system. I probably started this page slightly later, my first oracle blog on it was dated May 2008. It mainly describes any guest installation tricks.<\/p>\n\n\n\n<p>I have not been systematic in how I document my virtual box projects, some are on this page, some have their own articles, they should all be tagged; <a href=\"https:\/\/davelevy.info\/wiki\/tag\/virtual-box\">https:\/\/davelevy.info\/wiki\/tag\/virtual-box<\/a>.<\/p>\n\n\n\n<p>The shared folder manager script has been&nbsp;uploaded to git, see&nbsp;<a href=\"https:\/\/github.com\/dfl1955\/vboxtools\">https:\/\/github.com\/dfl1955\/vboxtools<\/a>, just in time to be replaced by <code>launchd <\/code>although there is a problem with <code>systemd <\/code>and vboxshares, or there was last time I checked, which seems to have been fixed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Builds | Problems | Shared Folders<\/strong><\/h2>\n\n\n\n<!--more-->\n\n\n\n<h3 class=\"wp-block-heading\">Guests<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Open Solaris<\/h4>\n\n\n\n<p>An article in the Register made me think there might be some interest in this; but it isn&#8217;t easy partly because I have forgotten a lot about Solaris. The Guest Additions use pkgadd and pkgrm ( <a href=\"https:\/\/docs.oracle.com\/en\/virtualization\/virtualbox\/6.0\/user\/guestadd-install.html#additions-solaris\">documentation<\/a> <a href=\"https:\/\/docs.oracle.com\/en\/virtualization\/virtualbox\/6.0\/user\/guestadd-install.html#additions-solaris\">+1<\/a> | <a href=\"https:\/\/github.com\/dfl1955\/vboxtools\/blob\/master\/solarisguestadditions\">my script<\/a> | <a href=\"https:\/\/forums.virtualbox.org\/viewtopic.php?t=98745\">VBox Forums thread<\/a> ). The binaries are old and there is <a href=\"https:\/\/www.virtualbox.org\/ticket\/19590?cversion=0&amp;cnum_hist=16\">a problem with X integration<\/a>, someone <a href=\"https:\/\/ahmedfattah.com\/2020\/07\/27\/vboxclient-could-not-find-symbol-address\/\">recommended<\/a> using an older version of the guest additions, i.e. 6.1.8, but this too fails, so I am <a href=\"http:\/\/download.virtualbox.org\/virtualbox\/6.1.10\/\">trying 6,1,10<\/a>, there was no dot nine. Oracle have <a href=\"https:\/\/www.virtualbox.org\/wiki\/Download_Old_Builds_6_1\">the old VB builds online<\/a>, and the 6.1.10 directory tree is also available. <a name=\"pi\"><\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Raspbian Desktop<\/h4>\n\n\n\n<p>We need an intel version of Raspbian, <a href=\"https:\/\/www.raspberrypi.com\/software\/raspberry-pi-desktop\/\">to be found here<\/a>. How to<a href=\"https:\/\/thepi.io\/how-to-run-raspberry-pi-desktop-on-windows-or-macos\/\"> install instructions<\/a>, the guest additions are available as a package allegedly. My first version seems to have a strange panel which doesn&#8217;t display to the screen properly; it needs some work, so much that I made a second VM which I did not find nor install the vbox guest additions. I use RDP to connect to the VM. See also <a href=\"https:\/\/roboticsbackend.com\/install-raspbian-desktop-on-a-virtual-machine-virtualbox\/\">install raspbian desktop on a VB virtual machine<\/a> from roboticsbackend. The VM needs ssh turned on via raspi-config, the default is off.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Haiku<\/h4>\n\n\n\n<p>See <a href=\"https:\/\/davelevy.info\/wiki\/haiku-os\/\">my haiku os page<\/a> on this wiki<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Ubuntu 22<\/h4>\n\n\n\n<p>And now Ubuntu 22, check <a href=\"https:\/\/davelevy.info\/wiki\/ubuntu-22\/\">what I say elsewhere<\/a> o this blog. I have amended my mount shares script, to meet my current standards; see <a href=\"https:\/\/github.com\/dfl1955\/vboxtools\">my git repo<\/a>. I came across the panic on boot feature, this<a title=\"End kernel panic not syncing attempted to kill idle ubuntu server on virtual box.\" href=\"https:\/\/forums.virtualbox.org\/viewtopic.php?f=3&amp;t=105986\"> thread<\/a> at the Virtual Box forums helped me out; #CPUs := 2, and another on <a href=\"https:\/\/forums.virtualbox.org\/viewtopic.php?f=6&amp;t=88446\">video ram &gt;= 64Mb<\/a>. to resolve the freeze on screenlock feature. I needed to install <code>build-essential<\/code> and <code>dkms<\/code> using <code>apt<\/code>. The installation is invoked by <code>autorun.sh<\/code>; it did not autorun for me and so I invoked it via the file manager and menu option <code>run as program <\/code>. Guest additions now needs gcc-12, i.e. <span style=\"text-decoration: underline;\"><code>apt install gcc-12<\/code><\/span><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Elementary 6.0<\/h4>\n\n\n\n<p>And this sort of nonsense is why I gave up on it; it needs System:Enable EFI = true to be set otherwise the screen display is too small to run the graphic installer; there is a warning that the OS may freeze or hang on virtual hardware. It also doesn&#8217;t display the vm managament menu, on some of the views. So I needed to <a href=\"https:\/\/askubuntu.com\/questions\/854116\/virtualbox-host-key-how-to-change\">reset the Host button<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Elive 3<\/h4>\n\n\n\n<p>I decided to make a guest of <a href=\"https:\/\/davelevy.info\/wiki\/elive-yanf-linux\/\">Elive 3.0.6<\/a>. This is currently much slower than I want. The install suggested I needed 15Gb, although after asking for the uninstall of Libre Office and WINE, it fitted into 4GB. TCL\/TK may now be missing, but easy enough to fix.<\/p>\n\n\n\n<p>The screen is not behaving, and when I tried to install the guest additions, it reported that they were already installed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><b>MacOS (Snow Leopard)<\/b><\/h4>\n\n\n\n<p>I have found my Snow Leopard disk, let&#8217;s see what happens with this. I <a href=\"https:\/\/davelevy.info\/wiki\/mac-osx-virtualbox\/\">made another page<\/a> for this.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Windows 10 (Guest)<\/h4>\n\n\n\n<p>Sometimes, to act as an applications host; <a href=\"https:\/\/web.archive.org\/web\/20191201182254\/https:\/\/www.itworld.com\/article\/2825616\/no-hassle-way-to-install-windows-10-with-virtualbox.html\">this might once have been useful<\/a> , as might <a title=\"Can I have multiple copies of Windows 10 on same Microsoft Account?\" href=\"https:\/\/youtu.be\/UvFydpkTiZo\">this from MS Community Answers<\/a> and this might be <a href=\"https:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_10-windows_install-winpc\/how-to-download-official-windows-10-iso-files\/35cde7ec-5b6f-481c-a02d-dadf465df326\">the ISO source.<\/a><a name=\"w98\"><\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><b>Windows 98<\/b><\/h4>\n\n\n\n<p>Yes, really! I want to see if I can rescue Superproject. This video,<a href=\"https:\/\/youtu.be\/23ArT-u06v8\">&#8220;Windows 98 Second Edition &#8211; Installation in Virtualbox&#8221;<\/a> is a good start point. Since VB post dates W98, the Guest Additons are a bit crap, and so my researches take me to <a href=\"https:\/\/ubuntuforums.org\/showthread.php?t=653165\">this page on the ubuntu forums<\/a>, which points at&nbsp;Sci-Tech Display Doctor version 7 beta, the .iso is here, and <a href=\"https:\/\/duncanbowring.wordpress.com\/2015\/12\/04\/windows-98se-on-virtualbox-with-video-and-audio-drivers\/\">instructions are here<\/a>. Auto capture is not in place, except for the keyboard. In May 2020, when tranferring the image to my 2nd Laptop (W10), I found <a title=\"Windows 98 on VirtualBox - How to do it properly. 32bit Graphics and ACPI. NEW Version 6\" href=\"https:\/\/youtu.be\/HOXqgALpn9A\">this video<\/a> on the subject. I also found <a href=\"https:\/\/web.archive.org\/web\/20201023121304\/http:\/\/virtualization.keiransell.com\/windows-98\/\">this article which includes a section on networking<\/a>, one has to install the hardware driver. When I am ready, <a href=\"https:\/\/edu.gcfglobal.org\/en\/windows98\/customizing-the-desktop\/1\/\">how to change the wall paper<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><b>Elementary (Loki)<\/b><\/h4>\n\n\n\n<p>This can install via <code>AppCenter<\/code> or <code>apt-get<\/code>,<\/p>\n\n\n\n<p><code>$ sudo apt-get install -y virtualbox<\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><b>Fedora 24 &amp; Vbox 5.0.26<\/b><\/h4>\n\n\n\n<p>yum has been replaced by dnf, <code>(yum update) &amp;&amp; (yum install kernel-devel)<\/code> which will invoke the dnf commands and then make the guest additions. The update took a bit of time. It would seem that one has to use systemd to execute the mount commands as System V init files no longer works.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Windows Hosts<\/h3>\n\n\n\n<p>My most common host is Windows, <a href=\"https:\/\/davelevy.info\/wiki\/my-newest-w10-build\/\">currently W11<\/a>. I have thought about managing virtual box from the command line using shell. I developed <a href=\"https:\/\/github.com\/dfl1955\/vboxtools\/blob\/master\/extendpath\">this program<\/a> to extend the path so that the the shell can execute the vbox management programs. It has been most useful for installing icons. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Problems<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Openfire<\/h4>\n\n\n\n<p>I have some naming problems on my VB host. Openfire insists that its name for the conference server is part of the login string and I don&#8217;t propagate the names of virtual machines around my home network. My work round is to hardcode the server name in the connection string on the client side.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Mongodb &amp; Shared Folders<\/h4>\n\n\n\n<p>Mongodb, cannot unfortunately be mounted on an incoming shared folder, nor (more obviously) on a mounted NFS disk, less sure about SMB. &nbsp;See <a href=\"https:\/\/groups.google.com\/forum\/#!topic\/vagrant-up\/eIX4pykl9d8\">here&#8230;<\/a> on google groups\/vagrant<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Extending or resize(ing) Hard Disks<\/h4>\n\n\n\n<p>I found <a title=\"How to resize a virtualbox disk\" href=\"http:\/\/derekmolloy.ie\/resize-a-virtualbox-disk\/\">this<\/a>, by Derek Molloy very useful. You extend the disk using <code>vboxmanage<\/code>, and extend the partitions using <code>gpartd<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Using Shared Folders<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\"><b>Share Disk<\/b><\/h5>\n\n\n\n<p>And onto U24. This is different and so took some finding. The interface now works, but the mount points need to be accessible by the user account i.e. I used <code>chmod<\/code> to fix this. I use non-standard file locations. It seems my scripts are no longer needed. <\/p>\n\n\n\n<p>I have had a method for several years; it was based on the documentation for <b>Linux Guests<\/b>, see <a href=\"http:\/\/forums.virtualbox.org\/viewtopic.php?f=3&amp;t=22492\">Help with Shared Folders VB 3.0.6<\/a> at <a href=\"http:\/\/forums.virtualbox.org.\">http:\/\/forums.virtualbox.org.<\/a> Using the -o flag allows mounting as a non root user. Each host will have a folder, that will be mounted on \/host. This requires a script in \/usr\/local\/bin, invoked by rc.local.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mount -t vboxsf -o uid=1000,gid=1000 ${sharename} ${mountname}\n<\/pre>\n\n\n\n<p>In <i>Sept 2011<\/i>, I had another look at this and re-wrote the <code>mountshares<\/code> script to use the -o flag. I have also written an installer. It is LSB compliant and tested for syntax and function on <b>Ubuntu 11, <\/b>also <a href=\"https:\/\/askubuntu.com\/questions\/252853\/how-to-mount-a-virtualbox-shared-folder-at-startup\">how-to-mount-a-virtualbox-shared-folder-at-startup<\/a> from askubuntu talks of fstab dated 2013<\/p>\n\n\n\n<p>To mount the cdrom if you are using a server edition,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mount -t iso9660 -o ro \/dev\/cdrom \/media\/cdrom<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;Shared Folders<\/h5>\n\n\n\n<p>I have written some scripts to mount shared folders on Ubuntu and&nbsp;uploaded&nbsp;them there, and on the Virtual Box Forums in<a title=\"Automounting Shared Folders on Debian style Linux\" href=\"http:\/\/forums.virtualbox.org\/viewtopic.php?f=3&amp;t=44589\"> this thread<\/a>. , thi is now held in my <a href=\"https:\/\/github.com\/dfl1955\/vboxtools\">vbooxtools repo<\/a> on github. Your user[s] <a href=\"https:\/\/stackoverflow.com\/questions\/26740113\/virtualbox-shared-folder-permissions\">need<\/a> to be members of the vboxsf group, the repo now has a script that does this.<\/p>\n\n\n\n<p>At some point I fixed this to work under systemd but it seems as of July 2026, this is not required. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Resources.<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"http:\/\/forums.virtualbox.org\/\">VirtualBox Community Forums<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/forums.virtualbox.org\/search.php?search_id=egosearch\">my posts at the vbox forums<\/a>, I may need to be logged in for this to work.<\/li>\n<\/ul>\n\n\n\n<p>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This page has been live for a long time. Sun Microsystems bought Innotek the authors of Virtual Box, an opensource virtualisation product in 2008. It permits Windows\/Linux\/Solaris guests on the same operating system. I probably started this page slightly later, my first oracle blog on it was dated May 2008. It mainly describes any guest&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6486,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[3,7],"tags":[912,916,75,856,713,1925,558,1286,1076,1870,911,11,915,1298,1297],"class_list":["post-63","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","category-virtualisation","tag-i-t","tag-linux","tag-macos","tag-mongodb","tag-mountshares","tag-openfire","tag-opensolaris","tag-raspbian","tag-resize-disk","tag-solaris","tag-technology","tag-virtual-box","tag-virtualisation","tag-w98","tag-windows-98"],"share_on_mastodon":{"url":"https:\/\/mastodon.social\/@davelevy_eu\/112060216290557531","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2011\/09\/ovb-w1024.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":25,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":12879,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/63\/revisions\/12879"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/6486"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}