{"id":6776,"date":"2022-10-31T10:02:41","date_gmt":"2022-10-31T10:02:41","guid":{"rendered":"https:\/\/davelevy.info\/wiki\/?p=6776"},"modified":"2025-12-28T19:14:24","modified_gmt":"2025-12-28T19:14:24","slug":"raspbian-on-virtual-box","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/raspbian-on-virtual-box\/","title":{"rendered":"Raspbian on Virtual Box"},"content":{"rendered":"\n<p>I turned off my Raspberry Pi a couple of weeks ago, I was concerned about its energy draw. FFS. &#x1f632; Also the projects I planned had stalled but like the No 11 bus, another one has come along, So I decided to install a Raspberry Pi in my virtual box instance. Here&#8217;s how &#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<ol class=\"wp-block-list\">\n<li>How to <a href=\"https:\/\/pimylifeup.com\/raspberry-pi-virtualbox\/\">make a VM<\/a> and install <a href=\"https:\/\/www.raspberrypi.com\/software\/raspberry-pi-desktop\/\">an intel version of the OS<\/a>, or <a href=\"https:\/\/www.raspberrypi.com\/software\/operating-systems\/#raspberry-pi-desktop\">https:\/\/www.raspberrypi.com\/software\/operating-systems\/#raspberry-pi-desktop<\/a> because ARM binaries won&#8217;t run in a VB VM. <strong>NB <\/strong>Today, VB offers an unattended installation; I don;t think this works with this release; the .iso has to be attached to the CD. This <a href=\"https:\/\/roboticsbackend.com\/install-raspbian-desktop-on-a-virtual-machine-virtualbox\/#Virtual_Machine_Name_and_type\">page walks you through<\/a> it. It defaults to <em>ssh <\/em>off, which is needed to make <em>sftp <\/em>work. <\/li>\n\n\n\n<li>How to <a href=\"https:\/\/forums.raspberrypi.com\/viewtopic.php?t=204789\">make the guest additions<\/a>, on my version of the guest OS, it needs to be done from the command line, and thus the disk needs to be inserted using the VB menu options, although <a href=\"http:\/\/www.penguintutor.com\/raspberrypi\/rpi-desktop-virtualbox\">this article<\/a> shows how to install the guest additions, it&#8217;s not working as I&#8217;d expect, i.e. the full screen does not behave as such and it reminds me of the early days of Linux. I <strong>installed<\/strong> XRDP, it does not come as a default, and RDP&#8217;d onto it. Works fine, very odd. RDP is unusably slow. And with VB 7.10, I had to issue the command <code> mount\/dev\/cdrom \/mnt<\/code>.<\/li>\n<\/ol>\n\n\n\n<p>I found some runes to install the Guest Additions, because this version of raspbian does not have the guest additions as a package. I decided to not install it on the second build and use RDP. The runes are in the comments and somewhere else on the internet.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Whats next<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1 &#8211; set the FDQN<\/h4>\n\n\n\n<p>Does this help?<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.google.com\/search?q=how+to+set+an+fdqn+in+a+virtual+box+vm\">q=how+to+set+an+fdqn+in+a+virtual+box+vm<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/superuser.com\/questions\/609171\/how-can-i-add-a-fqdn-to-a-centos-vm-running-on-virtualbox\">https:\/\/superuser.com\/questions\/609171\/how-can-i-add-a-fqdn-to-a-centos-vm-running-on-virtualbox<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/forums.virtualbox.org\/viewforum.php?f=25\">virtual box view forum &#8216;windows hosts&#8217;<\/a> &amp; <a href=\"https:\/\/www.virtualbox.org\/manual\/\">https:\/\/www.virtualbox.org\/manual\/<\/a><\/li>\n\n\n\n<li>Or this, <a href=\"https:\/\/gridscale.io\/en\/community\/tutorials\/hostname-fqdn-ubuntu\/,\">Set your hostname and Fully Qualified Domain Name<\/a>, from gridscale.io, it&#8217;s just the hosts and hosts.conf <\/li>\n<\/ol>\n\n\n\n<p>I found this too hard, or too poorly documented. So I gave up on using the VM; I could not work out how to configure the FQDN <strong>and<\/strong> the router which is a BT Home Hub.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2 &#8211; install a mail server<\/h4>\n\n\n\n<p>See, <a href=\"https:\/\/raspberrytips.com\/mail-server-raspberry-pi\/\">https:\/\/raspberrytips.com\/mail-server-raspberry-pi\/<\/a> , <a href=\"https:\/\/davelevy.info\/wiki\/my-little-mail-server\/\">https:\/\/davelevy.info\/wiki\/my-little-mail-server\/<\/a> which points at <a href=\"https:\/\/cnedelcu.blogspot.com\/2014\/01\/how-to-set-up-simple-mail-server-debian-linux.html\">https:\/\/cnedelcu.blogspot.com\/2014\/01\/how-to-set-up-simple-mail-server-debian-linux.html<\/a> (dated 2014 &#x1f607;)<\/p>\n\n\n\n<p>or <a href=\"https:\/\/www.tecmint.com\/install-postfix-mail-server-with-webmail-in-debian\/\">https:\/\/www.tecmint.com\/install-postfix-mail-server-with-webmail-in-debian\/<\/a> (dated Oct 2017)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3 &#8211; install an app<\/h4>\n\n\n\n<p>See <a href=\"https:\/\/davelevy.info\/wiki\/mastodon\/\">Mastodon<\/a> and <a href=\"https:\/\/davelevy.info\/wiki\/diaspora\/\">Diaspora<\/a>, perhaps docker, but that seems to have gone very quite<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I turned off my Raspberry Pi a couple of weeks ago, I was concerned about its energy draw. FFS. &#x1f632; Also the projects I planned had stalled but like the No 11 bus, another one has come along, So I decided to install a Raspberry Pi in my virtual box instance. Here&#8217;s how &#8230;<\/p>\n","protected":false},"author":1,"featured_media":6777,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[8,3],"tags":[916,994,1286,911,11],"class_list":["post-6776","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-technology","tag-linux","tag-raspberry-pi","tag-raspbian","tag-technology","tag-virtual-box"],"share_on_mastodon":{"url":"https:\/\/mastodon.social\/@davelevy_eu\/111976353625221228","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2022\/10\/raspberrytart-unsplash-alexandrakusper-cropped-w1024.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/6776","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=6776"}],"version-history":[{"count":4,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/6776\/revisions"}],"predecessor-version":[{"id":13686,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/6776\/revisions\/13686"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/6777"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=6776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=6776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=6776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}