diff --git a/docs/guides/virtualization/cockpit-machines.it.md b/docs/guides/virtualization/cockpit-machines.it.md new file mode 100644 index 0000000000..dae2cf3c69 --- /dev/null +++ b/docs/guides/virtualization/cockpit-machines.it.md @@ -0,0 +1,96 @@ +--- +title: Cockpit KVM Dashboard +author: Neel Chauhan +contributors: Ganna Zhrynova +tested on: 9.3 +tags: + - virtualization +--- + +# Cockpit KVM dashboard + +## Introduzione + +Cockpit è uno strumento di amministrazione del server che fornisce un dashboard facile da usare per gestire il server. Una caratteristica di Cockpit è che con un pacchetto può gestire le macchine virtuali KVM da un'interfaccia web simile a quella di VMware ESXi o Proxmox. + +## Prerequisiti + +- Un server Rocky Linux con virtualizzazione hardware abilitata +- Accesso ai repository `dnf` di Rocky Linux + +## Installazione di Cockpit + +Cockpit è disponibile di default in Rocky Linux. Tuttavia, il supporto KVM non viene installato immediatamente. Si installa tramite `dnf`: + +```bash +dnf install -y cockpit-machines +``` + +Installare anche `libvirtd`: + +```bash +dnf install -y libvirt +``` + +## Enabling `cockpit` + +To enable both KVM virtualization and Cockpit, enable the `systemd` services: + +```bash +systemctl enable --now libvirtd cockpit.socket +``` + +Dopo aver abilitato `cockpit`, aprire un browser a **http://ip_address:9090** (nota: sostituire **ip_address** con l'indirizzo IP del proprio server): + +![Cockpit login screen](../images/cockpit_login.png) + +Login as a non-root user, and you should see a dashboard similar to the one shown here: + +![Cockpit dashboard](../images/cockpit_dashboard.png) + +## Creating a virtual machine + +In this guide, you will create a Rocky Linux 9 virtual machine on your host system, using automation to add a username and root password. + +To create a virtual machine in Cockpit, first click on the blue **Turn on administrative access** button, and enter your password if needed: + +![Cockpit dashboard as root](../images/cockpit_root_dashboard.png) + +You are now logged in as root in Cockpit. In the sidebar, click on **Virtual Machines**: + +![Cockpit Virtual Machine dashboard](../images/cockpit_vm_dashboard.png) + +Then click on **Create VM**: + +![Virtual Machine create dialog](../images/cockpit_vm_create_1.png) + +In the **Operating system** dropdown, select **Rocky Linux 9 (Blue Onyx)**: + +![VM create dialog with Rocky Linux 9 selected](../images/cockpit_vm_create_2.png) + +Next, click on **Automation**, and fill in the login details you want on your new VM: + +![VM create dialog with root password and username filed in](../images/cockpit_vm_create_2.png) + +Finally, select **Create and run**. + +In a few minutes, select your newly-created VM, you will have its IP address: + +![Our VM's IP address](../images/cockpit_vm_ip.png) + +SSH into your hypervisor, and SSH into the IP address from Cockpit. In this example, it is **172.20.0.103**. You will be logged into your new server: + +![Our VM's terminal](../images/cockpit_vm_terminal.png) + +## Limitations + +While Cockpit is great for creating and managing virtual machines, there are a few limitations to be aware of: + +- You cannot create a bridge interface. +- You cannot create a new image in any storage pool, only the `default` one. + +Fortunately, you can create these at the command line, and then Cockpit can use them. + +## Conclusion + +Cockpit is an invaluable tool for managing a Rocky Linux server via a web interface. It is personally the author's go-to tool for creating virtual machines in their home lab. While `cockpit-machines` may not be as full-featured as ESXi or Proxmox, it gets the job done for 90% of hypervisor use cases.