mhvtl icon indicating copy to clipboard operation
mhvtl copied to clipboard

Installation instructions for Ubuntu Server 20.04.3

Open dabiged opened this issue 3 years ago • 2 comments

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

  1. sudo apt-get install sg3-utils lsscsi build-essential
  2. git clone https://github.com/markh794/mhvtl.git
  3. cd mhvtl/kernel
  4. make
  5. sudo make install

Kernel module installation is as per the INSTALL file. No Changes.

User Space instructions:

  1. sudo apt-get install zlib1g-dev
  2. sudo \rm /bin/sh; sudo ln -s /bin/bash /bin/sh
  3. make
  4. sudo make install
  5. sudo systemctl daemon-reload
  6. sudo systemctl enable mhvtl.target
  7. 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

dabiged avatar Dec 21 '21 03:12 dabiged

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)

markh794 avatar Dec 21 '21 11:12 markh794

#91 fixed this.

melak avatar Mar 07 '22 23:03 melak