mhvtl
mhvtl copied to clipboard
Installation instructions for Ubuntu Server 20.04.3
I just installed mhvtl on a new Ubuntu server image. We ran into a few speedbumps that I thought I would document for other users.
Kernel Module Instructions
- sudo apt-get install sg3-utils lsscsi build-essential
- git clone https://github.com/markh794/mhvtl.git
- cd mhvtl/kernel
- make
- sudo make install
Kernel module installation is as per the INSTALL file. No Changes.
User Space instructions:
- sudo apt-get install zlib1g-dev
- sudo \rm /bin/sh; sudo ln -s /bin/bash /bin/sh
- make
- sudo make install
- sudo systemctl daemon-reload
- sudo systemctl enable mhvtl.target
- sudo systemctl start mhvtl.target
Note the changes in the User space installation.
Step 1: The zlib-dev package is called zlib1g-dev in ubuntu-land.
Step 2: Ubuntu server now ships dash as the system shell. dash does not support [[
style command line tests and fails with a bunch of errors at the make stage. These errors are added as a post script to aid in users debugging. To fix this you need to change your system shell to bash which is what step 2 does.
@markh794 Not looking for anything to be fixed with this bug report but thought these instructions may help other users. I could add a summary of this to the INSTALL file if that is what is wanted.
sh ./generate_device_conf --force --home-dir=/opt/mhvtl --override-home
./generate_device_conf: 304: [[: not found
./generate_device_conf: 348: [[: not found
./generate_device_conf: 356: [[: not found
./generate_device_conf: 365: [[: not found
===> Generating: ./device.conf ...
./generate_device_conf: 37: 0: not found
./generate_device_conf: 268: 0: not found
./generate_device_conf: 69: 8: not found
./generate_device_conf: 224: 7: not found
./generate_device_conf: 98: 11: not found
./generate_device_conf: 224: 7: not found
./generate_device_conf: 98: 11: not found
./generate_device_conf: 202: 7: not found
./generate_device_conf: 98: 11: not found
./generate_device_conf: 202: 7: not found
./generate_device_conf: 98: 11: not found
./generate_device_conf: 285: 0: not found
./generate_device_conf: 69: 8: not found
./generate_device_conf: 246: 7: not found
./generate_device_conf: 98: 11: not found
./generate_device_conf: 246: 7: not found
./generate_device_conf: 98: 11: not found
./generate_device_conf: 246: 7: not found
./generate_device_conf: 98: 11: not found
./generate_device_conf: 246: 7: not found
./generate_device_conf: 98: 11: not found
Many thanks for the bug report.
I've been using vagrant recently and noticed the same thing with the Ubuntu install today.
I hope to have patches ready with in the next day or so. I'd rather make the scripts as generic as possible (not depend on specific shell features)
#91 fixed this.