LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > rkelsen
User Name
Password

Notices


Rate this Entry

Setting up a Slackware64-15.0 virtual machine on VMware ESXi 8.0.0

Posted 02-22-2022 at 03:57 AM by rkelsen
Updated 10-21-2023 at 07:48 AM by rkelsen

Log into VMware web console
- Virtual Machines -> Create/Register VM
- Create new virtual machine
- Name your VM
- Compatibility: ESXi 8.0 VM
- Family: Linux
- Other 5.x Linux 64 bit
- number of CPUs = 4
- Memory 8192 Mb
- HD 50Gb
- SCSI controller = LSI Logic SAS = This is temporarily necessary to allow the installer to boot.
- Video card = 16Mb video memory
- VM Options -> Boot options -> untick UEFI secure boot
- Leave setting at EFI booting
- CD/DVD drive = Datastore ISO file -> Slackware64-15.0 iso file

Power on machine, and it should boot the Slackware DVD
- at the installer prompt: gdisk /dev/sda
- create a 250 Mb partition, type EF00
- create a 1G partition, type 8200
- create a single large partition on remaining space, type 8300
- write changes to disk and exit gdisk
- run setup, and run through steps to install Slackware
- accept most defaults, run full installation
- networking = I like to use a static IP, because I'll log in remotely
- filesystem for main partition = just use ext4
- the installer should format the EFI partition and install eLILO
- at end of installation, reboot machine. it should boot to the runlevel 3 prompt.
- adduser
- chmod -x /etc/profile.d/bsd-games-login-fortune.*
- edit /etc/slackpkg/mirrors to uncomment local mirror
- slackpkg update gpg
- slackpkg update
- slackpkg install-new (this shouldn't do anything)
- slackpkg upgrade-all and let it upgrade all packages
- at the end of the update process, it will ask about updated config files. we haven't changed any, so overwrite all.
- edit /etc/ntp.conf to uncomment (remove the # marks) from the front of the 4 server lines
- chmod +x /etc/rc.d/rc.ntpd
- mkinitrd -c -k 5.15.117 -m ext4:vmw_pvscsi:vmxnet3:vfat:loop
- rm /boot/efi/EFI/Slackware/initrd.gz
- rm /boot/efi/EFI/Slackware/vmlinuz
- cp /boot/vmlinuz-generic-5.15.117 /boot/efi/EFI/Slackware/vmlinuz
- cp /boot/initrd.gz /boot/efi/EFI/Slackware/initrd.gz
- power off machine with halt command

In ESXi console, edit the machine properties to change the SCSI controller to VMware paravirtual SCSI

Power on machine and wait for it to boot

From the Actions menu -> Guest OS -> Install VMware tools

ssh into the machine: ssh user@192.168.x.x
- switch to root with: su -
- mount /dev/sr0 /mnt/cdrom
- copy all files from /mnt/cdrom to /root/vmware
- cd /root/vmware
- untar the VMware config tools
- cd into the directory
- run: vmware-install.pl and follow the bouncing ball. it's probably best to accept the defaults.
- you probably shouldn't need to reboot at this point, but it can't hurt...

At this point, you have a VM that is ready to be deployed in any number of ways. This is the basic installation done.

Notes:
- If you're using an SSD, you might want to add ",discard,noatime" to the mount options for the root filesystem in /etc/fstab
Posted in Uncategorized
Views 549 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration