I’m setting up a virtual machine with the help from chatgpt for learning cybersecurity and trying to isolate my main system with cyber security tools i use in the virtual machines
aphsolution@aphsolution-desktop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.4G 1.6M 1.4G 1% /run
efivarfs 128K 8.7K 115K 8% /sys/firmware/efi/efivars
/dev/sda2 916G 60G 810G 7% /
tmpfs 6.8G 0 6.8G 0% /dev/shm
tmpfs 5.0M 12K 5.0M 1% /run/lock
/dev/sda1 511M 6.2M 505M 2% /boot/efi
tmpfs 1.4G 176K 1.4G 1% /run/user/1000
aphsolution@aphsolution-desktop:~$ free -h
total used free shared buff/cache available
Mem: 13Gi 1.0Gi 12Gi 7.3Mi 683Mi 12Gi
Swap: 2.0Gi 0B 2.0Gi



aphsolution@aphsolution-desktop:~$ sudo systemctl --type=service --state=running
[sudo] password for aphsolution:
UNIT LOAD ACTIVE SUB DESCRIPTION
accounts-daemon.service loaded active running Accounts Service
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
colord.service loaded active running Manage, Install and Generate Color Profiles
cron.service loaded active running Regular background program processing daemon
dbus.service loaded active running D-Bus System Message Bus
getty@tty1.service loaded active running Getty on tty1
irqbalance.service loaded active running irqbalance daemon
kerneloops.service loaded active running Tool to automatically collect and submit kernel crash signatures
lightdm.service loaded active running Light Display Manager
NetworkManager.service loaded active running Network Manager
polkit.service loaded active running Authorization Manager
power-profiles-daemon.service loaded active running Power Profiles daemon
rsyslog.service loaded active running System Logging Service
rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
smartmontools.service loaded active running Self Monitoring and Reporting Technology (SMART) Daemon
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running User Login Management
systemd-resolved.service loaded active running Network Name Resolution
systemd-timesyncd.service loaded active running Network Time Synchronization
systemd-udevd.service loaded active running Rule-based Manager for Device Events and Files
udisks2.service loaded active running Disk Manager
upower.service loaded active running Daemon for power management
user@1000.service loaded active running User Manager for UID 1000
wpa_supplicant.service loaded active running WPA supplicant
Legend: LOAD → Reflects whether the unit definition was properly loaded.
ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
SUB → The low-level unit activation state, values depend on unit type.
24 loaded units listed.
aphsolution@aphsolution-desktop:~$ egrep -c '(svm)' /proc/cpuinfo
4
aphsolution@aphsolution-desktop:~$ lscpu | grep Virtualization
Virtualization: AMD-V
Now virtualization is enabled and supported let us begin with installing the tools need for VM
aphsolution@aphsolution-desktop:~$ sudo apt update
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager -y
sudo systemctl enable --now libvirtd
............................................................................................................................................
Processing triggers for libglib2.0-0t64:i386 (2.80.0-6ubuntu3.4) ...
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for shared-mime-info (2.4-4) ...
Processing triggers for install-info (7.1-3build2) ...
Group changes
desktop:~$ sudo usermod -aG libvirt,kvm $USER
newgrp libvirt && newgrp kvm # apply group change immediately
Verification of setup
aphsolution@aphsolution-desktop:~$ virsh list --all # should not error
lsmod | grep kvm # should show kvm_amd and kvm
Id Name State
--------------------
kvm_amd 208896 0
kvm 1409024 1 kvm_amd
irqbypass 12288 1 kvm
ccp 143360 4 kvm_amd
Your output looks perfect:
virsh list --all ran without error (just shows no VMs yet, which is expected if none created).lsmod | grep kvm shows both kvm_amd and kvm modules loaded, confirming virtualization support is active

Now after downloading that, now open the virtual manager App and install the parrot OS