0. Create a bootable SD card or USB stick from the KDE Linux .raw file.
Use your preferred software, for example:
“Suse studio image writer” (package “imagewriter”)
or
KDE Iso Image Writer (package “isoimagewriter”)
Leave the SD card or USB stick plugged.
1. Create KDELinux.vmdk from the SD card containing KDELinux
Execute the command :
sudo VBoxManage createmedium disk --filename=./KDELinux.vmdk --format=VMDK --variant=RawDisk --property RawDrive=/dev/sdx
where the path /dev/sdx is the path to the SD card or USB key and sdx is the name that the system gave to the sd card. It can be sdb, sdc, sdd, etc.
execute
sudo fdisk -l
search something like
Disque /dev/sdd : 7,51 GiB, 8068792320 octets, 15759360 secteurs
Modèle de disque : USB3.0 CRW-SD
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d’E/S (minimale / optimale) : 512 octets / 512 octets
Type d’étiquette de disque : gpt
Identifiant de disque : 3CA8B733-0F1E-49C9-9A94-1F8D3B148CEA
in my case sdx= sdd
Change the access rights for KDELinux.vmbk
depending on your OS
sudo chown userid:userid KDELinux.vdmk
or
sudo chown userid:users KDELinux.vdmk
give yourself access rights to the disks
sudo usermod -a -G disk $USER
log out and then log in to obtain the rights.
2. In VirtualBox
2.1. Create a virtual machine
in “Virtual Machine name and operating system”
VM name = KDELinux
OS = Linux
Distribution = Archlinux
in “Specify virtual hardware”
select 2 CPUs and 2048 MB of RAM.
check “use EFI”
in “Specify new virtual disk”
“virtualsize” = “200 GB”
2.2 in Virtualbox in File > Tools > Media > hard disk
add the KDELinux.vmdk disk
2.3. in the KDELinux VM > storage > SATA
add the KDELinux.vmdk disk
2.4 start the VM
install KDE Linux
in Virtuabox in the KDELinux virtual machine > storage > SATA
delete the KDELinux.vmdk disk
remove yourself from the “disk” group
sudo usermod -r -G disk $USER
Log out and then log in to lose the right.
That’s it, you’re done. Enjoy!