Ctrl - alt-delete on an MBP keyboard is ctrl - alt - fn - delete in that order. The delete key on an MBP keyboard is what Windows users know as. In this article I’ll try to get into all (okay, maybe not all) possible troubles related to using a guest-machine with Linux, running on a Mac OS (High Sierra, 10.13) host. But actually it’s not about Mac OS and all the steps will be the same for Windows and Linux hosts too. The aim is to get a Linux guest-machine running in a fullscreen mode on a dedicated desktop (screen) with a decent performance. • • • • • • • Nothing special here, except for maybe Gatekeeper (or whoever) that might block VirtualBox from installing/starting. In that case you’ll need to go to Security & Privacy and allow it ( Open Anyway). Create a new virtual machine. Give it 4 GB RAM and 128 MB video. Just in case, that’s my settings: And I did not enable 2D/3D acceleration. Insert Linux installation image (I usen Debian) into machine, start it and install Linux there. Having done that you might notice that you can only have maximum 1024x768 resolution. ![]() To have more you need to Extension Pack for VirtualBox (and install Guest Additions for guest-machine). Open terminal in your guest-machine and install necessary packages: apt-get install build-essential linux-headers-$(uname -r) Insert Guest Additions image: It will get mounted as a CD-ROM. Open it and copy VBoxLinuxAdditions.run from there to /tmp/. Go there in terminal and execute: chmod +x VBoxLinuxAdditions.run./VBoxLinuxAdditions.run It might give you some warning about session manager and some unsupported protocols, but for me it didn’t affect anything. Reboot the guest-machine and you’ll have a proper screen resolution. Samsung file transfer for mac. I miscalculated the size of my virtual disk image (VDI). I gave it 20 GB initially, but having installed the stuff I wanted (Qt with Device Creation packages), I discovered that I have only ~4 GB left, but I needed to install even more stuff, which meant I needed to increase my VDI to at least 30 GB (add 10 GB more). But here’s problem - I created a fixed size VDI (I always create fixed ones), which is a bit problematic to resize ( fixed, eh). But it is still possible. Shutdown the guest-machine and exit VirtualBox app. Open Terminal, find VBoxManage and run modification command: cd /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/./VBoxManage modifyhd –resize 30000 “/Users/YOURNAME/VirtualBox VMs/debian/debian.vdi” Oh shit, I forgot (again) that I have a fixed VDI, so I got this error: Progress state: VBOX_E_NOT_SUPPORTED VBoxManage: error: Resize medium operation for this format is not implemented yet! You need to clone the disk first:./VBoxManage clonehd '/Users/YOURNAME/VirtualBox VMs/debian/debian.vdi' '/Users/YOURNAME/VirtualBox VMs/debian/debian-dyn.vdi' Now you can resize the cloned disk, because by default new disks are dynamic ones:./VBoxManage modifyhd --resize 30000 '/Users/YOURNAME/VirtualBox VMs/debian/debian-dyn.vdi' And after that make a fixed clone of it:./VBoxManage clonehd '/Users/YOURNAME/VirtualBox VMs/debian/debian-dyn.vdi' '/Users/YOURNAME/VirtualBox VMs/debian/debian-fix.vdi' --variant fixed Now go to your guest-machine settings and delete old disk from SATA controller. And then delete it from Virtual Media Manager. And now add your new extended disk to your machine’s SATA controller: But then you need to edit partitions inside the guest-machine to extend old ones to the free space. You can use for that. And better to do it from a Live CD. In my case GParted didn’t allow me to extend existing partition to the free space because I had swap area between them. ![]() So I deleted it, extended the main partition and re-created swap area back. But after that I got the following error during the boot: a start job is running for dev-disk-by. It’s nothing serious, because after 90 seconds OS boots normally. But anyway it’s better to: wait for the system to boot and edit /etc/fstab file: updating the GUID of deleted swap partition with the new value (you can look for it in the GParted). By the way, don’t forget to right-click on swap partition at GParted and set Swapon option (on the screenshot it is already pressed, so you can see Swapoff): So, I got my guest-machine running in fullscreen, I managed to extend its disk, but there was an annoying feeling that it wasn’t performing well. It wasn’t very responsive and even mouse pointer was moving with delays. But it was tolerable. Till the moment I ran a Knoppix Live CD, and it was really fast, so immediately I suspected my Xfce DE and decided to try some other ( LXDE). Turns out, it’s quite an easy thing to do: apt-get install lxde lxsession And that’s it. Now simply reboot you guest-machine and choose LXDE at logon screen. For me performance of guest-machine got significantly improved. So, that was the last of my problems and now I can easily switch between my Mac OS host and Linux virtual machine using 3-finger swipe just like this: Your browser does not support the video tag. Yes, I have an unregistered Sublime Text. But it’s just too damn expensive ($80) and I haven’t decided yet it will be my main editor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |