-
-
Notifications
You must be signed in to change notification settings - Fork 498
How to create a DietPi image for Parallels Desktop (macOS)
Bastian Pätzold edited this page Jun 5, 2022
·
3 revisions
- Install the latest Parallels Desktop: https://www.parallels.com/de/products/desktop/
- Debian netinst.iso: https://deb.debian.org/debian/dists/bullseye/main/installer-amd64/current/images/netboot/mini.iso
- Start the Installation Assistant of Parallels: E.g. press
+
in Parallels Control Center - Choose
Install Windows or another OS from a DVD or image file
>Continue
- Choose the Debian base image (see above) >
Continue
- Name:
DietPi_Parallels-x86_64-Bullseye
> checkCustomize settings before installation
>Create
- In the machine configuration select tab
Hardware
-
CPU & Memory
> Memory:1024
(1 GB) > buttonAdvanced
> Hypervisor:Parallels
> checkAdaptive Hypervisor
andEnable nested virtualization
>OK
-
Shared Printers
> Deselect all printers -
Network
> Source:Bridget Network: Default Adapter
> buttonAdvanced
> buttonOpen Network Preferences
and deselectEnable IPv4 DHCP
andEnable IPv6 DHCP
(in Tabs IPv4 and IPv6) > go back andOK
to acknowledge network settings -
Sound & Camera
> Sound Output:Disable
> Microphone:Disable
> Camera: DeselectShare Mac camera with Linux
-
Hard Disk
> buttonAdvanced
> buttonProperties
> set Size to8 GB
> buttonApply
- Finish hardware configuration and
Continue
with image creation. Then the Debian netinst installer starts (“Debian GNU/Linux installer menu”)
- NB: The following steps can be automated, however the effort on netinst installers is too high to have any benefit over manually going through the installation for a single VM: https://www.debian.org/releases/stable/amd64/apbs01.en.html#preseed-methods
-
Advanced options
>Expert install
-
Choose language
>English
>United Kingdom
>en_GB.UTF-8
>Continue
(select NO additional locales) -
Configure the keyboard
>British English
Detect network hardware
-
Deselect any
Modules to load
as we don't require them. -
Configure the network
>Yes
(auto-configure) >3
seconds - Hostname:
DietPi
- Domain name:
<leave empty>
- APT mirror: Just use one near to your location or
deb.debian.org
. It will be overwritten anyway by DietPi-PREP, as actually most other settings as well 😉. -
Download installer components
: Deselect everything >Continue
-
Set up users
> Enable shadow passwords?Yes
> Allow root login?Yes
> Root password:dietpi
- Create a normal user account now?
No
-
Configure the clock
> Use NTP?Yes
> leave default mirror0.debian.pool.ntp.org
> time zone:UTC
-
Detect disks
> Deselect anyModules to load
>Partition discs
>Manual
> SelectSCSI (sda) ...
(or similar) > Create new empty partition table?Yes
>msdos
> SelectFREE SPACE
>Create a new partition
> New partition size:max
>Primary
- Verify:
Ext4
and mount point/
>Done setting up the partition
>Finish partitioning
>No
return due to missing swap partition >Yes
write to disk Install the base system
- Select kernel package:
linux-image-amd64
- Select
targeted
since no generic driver installation is required for virtual machines. -
Configure the package manager
>No
nonfree, contrib and especiallyNo
source repository! - Select
security updates
andrelease updates
and skipbackported software
for now, which will be re-added by DietPi-PREP later. -
Select and install software
>No automatic updates
>No
virtualbox-guest extension andNo
survey (user should decide this oneself later) - Deselect all additional software
-
Install the GRUB boot loader
>Yes
to master boot record > to the only available partition (/dev/sda
) >Not
to the EFI removable media path, actually no idea why it detects EFI, as it was not selected on machine and is definitely not available afterwards... -
Finish the installation
> set to UTC?Yes
-
BEFORE
Continue
: Unplug the optical drive (Player
>Removable Devices
>CD/DVD
>Disconnect
> override lock), to prevent reboot into installer >Continue
- Login as root:dietpi
apt update
apt install -y ca-certificates curl dropbear
- Connect via SSH (IP:
ip a
) for easier copy&paste etc.bash -c "$(curl -sSfL 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-installer')"
- Git branch:
master
- Enter your name to be shown as image creator within DietPi banner credits.
- Enter
Debian
as this was our base image above. - Device:
20 : x86_64 Virtual Machine
- Deselect WiFi functionality for VMs as they virtualise Ethernet adapters for network only.
- Distro version:
6: Bullseye
shutdown now
- Open the macOS Finder and navigate to the home//Parallels directory. There the .pvm file of the VM should be located. Alternatively in the Parallels Control Center right click on the VM and select
Show in Finder
- Right click on .pvm file >
Show Package Contents
> Several files should be occur within the .pvm - Move to bin all
.backup
,.log
files (via right click). E.g.config.pvs.backup
,parallels.log
,statistic.log
- Right click on .hdd file (
DietPiParallels-x8664-Bullseye-0.hdd
) >Show Package Contents
. Move to bin the.cache
and.Backup
files - Finish Finder.
.pvm
file is finished and ready for packing to .7z - Pack to .7z only with
README.md
and not withhash.txt
Remark: On Linux systems the .pvm file is a directory structure where the md1sum etc. commands cannot calculate the hash values forhash.txt
.
Project management
Extend
- DietPi-Software list
- DietPi TCP/UDP port usage list
- How to add a new software title
- How to create a DietPi image for Raspberry Pi
- How to create a DietPi image for VirtualBox
- How to create a DietPi image for VMware
- How to create a DietPi image for Parallels (macOS)
- How to create a DietPi image for x86_64 PCs (BIOS)
- How to create a DietPi image for x86_64 PCs (UEFI)
Knowledge Base