Jekyll Test Blog on Ubuntu Guest VM on top of Hyper-V
Wanted to change blog look and feel, but didn’t like the idea of touching any “productive” settings and miss something, so I decided to search for a way to set it up locally and then reply all changes to GitHub Pages at once. This is how I did step by step, I had some difficulties in the journey.
Prerequisites
To make a long history short, I will start from the following assumptions:
- Hyper-V Server properly set and configured (I used my W10 laptop)
- Ubuntu Server 20.04 LTS as guest VM properly set and updated
Networking Sets
I wanted guest vm to be internet connected and to the Hyper-v host at the same time, and it wasn’t not so easy at it promised, but I got it this way:
-
Defined new Hyper-V virtual switch, external network
-
Configuring new network interface on the host created after new virtual switch
-
Line the guest on the same network
sudo nano /etc/netplan/00-installer-config.yaml
Sharing Jekyll Directory
As I had to modify files as easy as possible, I shared W10 directory yo access from Ubuntu:
Mounting shared folder on Ubuntu
First of all, need cifs client to access shared folder:
$ sudo apt install cifs-utils
Created new folder:
mkdir ~/jekyll-theme-chirpy
And mounted the shared folder:
sudo mount.cifs //SURFASAURUS/jekyll-theme-chirpy ~/jekyll-theme-chirpy -o user=ubuntu