Install Alpine on VMware Workstation: Difference between revisions
(replace the floppy with minimal disk image since floppy no longer are supported) |
No edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
There's at least 2 ways you can setup Alpine on a VMware box. | |||
== Option 1: sys mode, traditional hard-disk install (preferable for a dev box) == | |||
# Create a virtual machine (linux, other 3.x kernel 64 bit) | |||
## add a hard drive, with the size depending on your work | |||
## add a cdrom to the vm that points to the alpine iso you downloaded (alpine-virt x86_64) | |||
# boot into the vm (username: root) | |||
## run `alpine-install` | |||
## choose `sys` when asked about the disk mode (this will permanently install Alpine on the disk) | |||
## choose the default disk mounted by VMware | |||
## reboot after the installation is complete | |||
== Option 2: USB mode, no data preserved between reboots == | |||
# Create a virtual machine (linux, other 3.x kernel 64 bit) | # Create a virtual machine (linux, other 3.x kernel 64 bit) | ||
## add a minimal hard drive, 100MB for saving configs, (like an usb stick) | ## add a minimal hard drive, 100MB for saving configs, (like an usb stick) | ||
Line 13: | Line 28: | ||
## lbu ci usb | ## lbu ci usb | ||
If the VM hangs at the boot prompt, reboot the VM, and when the boot prompt appears again, type | If the VM hangs at the boot prompt, reboot the VM, and when the boot prompt appears again, type <tt>pax_nouderef</tt> (i.e. append it to the kernel options) and press Enter. This should allow normal boot-up. <br /> | ||
Now you should be able to reboot and it should retain your settings because they were saved to your "usb"-disk. | Now you should be able to reboot and it should retain your settings because they were saved to your "usb"-disk. | ||
For VMware Tools support you need to install the package [ | For VMware Tools support you need to install the package [https://pkgs.alpinelinux.org/package/edge/main/x86_64/open-vm-tools open-vm-tools]. | ||
[[Category:Virtualization]] | [[Category:Virtualization]] |
Revision as of 16:31, 20 June 2019
There's at least 2 ways you can setup Alpine on a VMware box.
Option 1: sys mode, traditional hard-disk install (preferable for a dev box)
- Create a virtual machine (linux, other 3.x kernel 64 bit)
- add a hard drive, with the size depending on your work
- add a cdrom to the vm that points to the alpine iso you downloaded (alpine-virt x86_64)
- boot into the vm (username: root)
- run `alpine-install`
- choose `sys` when asked about the disk mode (this will permanently install Alpine on the disk)
- choose the default disk mounted by VMware
- reboot after the installation is complete
Option 2: USB mode, no data preserved between reboots
- Create a virtual machine (linux, other 3.x kernel 64 bit)
- add a minimal hard drive, 100MB for saving configs, (like an usb stick)
- add a cdrom to the vm that points to the alpine iso you downloaded (alpine-virt x86_64)
- boot into the vm
- press f2 on boot to enter the BIOS
- change the boot order so that it boots from cd, then hd, then floppy (or whatever - as long as cd is first)
- boot the machine
- now run the following commands:
- mkfs.vfat /dev/sda
- mount /dev/sda /media/usb (Or try: mount -t vfat /dev/sda /media/usb)
- grep /dev/sda /proc/mounts >> /etc/fstab
- setup-alpine (select no disk, save configs to 'usb')
- lbu ci usb
If the VM hangs at the boot prompt, reboot the VM, and when the boot prompt appears again, type pax_nouderef (i.e. append it to the kernel options) and press Enter. This should allow normal boot-up.
Now you should be able to reboot and it should retain your settings because they were saved to your "usb"-disk.
For VMware Tools support you need to install the package open-vm-tools.