# Intro

XCP-ng is a high performance enterprise level virtualization platform with a rich ecosystem.

# About XCP-NG

XCP-ng is a high performance enterprise level virtualization platform with a rich ecosystem.

Originally based on [XenServer<svg aria-hidden="true" class="icon outbound" focusable="false" height="15" viewbox="0 0 100 100" width="15" x="0px" xmlns="http://www.w3.org/2000/svg" y="0px"></svg> <span class="sr-only">(opens new window)</span>](https://xenserver.org/)(now [Citrix Hypervisor<svg aria-hidden="true" class="icon outbound" focusable="false" height="15" viewbox="0 0 100 100" width="15" x="0px" xmlns="http://www.w3.org/2000/svg" y="0px"></svg> <span class="sr-only">(opens new window)</span>](https://www.citrix.com/products/citrix-hypervisor/)), it's the result of massive cooperation between individuals and companies, to deliver a product without limits. No restrictions on features and every bit available on GitHub!

Visit the main website to learn more: [https://xcp-ng.org<svg aria-hidden="true" class="icon outbound" focusable="false" height="15" viewbox="0 0 100 100" width="15" x="0px" xmlns="http://www.w3.org/2000/svg" y="0px"></svg><span class="sr-only">(opens new window)</span>](https://xcp-ng.org/)

![](https://xcp-ng.org/assets/img/mainlogo.png)

## [\#](https://xcp-ng.org/docs/#overview)Overview

TIP

Those videos are made independently by *Lawrence Systems / PC Pickup*, thanks for bringing quality content like this! [YouTube channel<svg aria-hidden="true" class="icon outbound" focusable="false" height="15" viewbox="0 0 100 100" width="15" x="0px" xmlns="http://www.w3.org/2000/svg" y="0px"></svg><span class="sr-only">(opens new window)</span>](https://www.youtube.com/channel/UCHkYOD-3fZbuGhwsADBd9ZQ)

Here is some content explaining XCP-ng in detail:

<iframe allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen" frameborder="0" height="315" src="https://www.youtube.com/embed/hh1QADop_IY" width="560"></iframe>

About the project itself, please see the [project page](https://xcp-ng.org/docs/project.html).

## [\#](https://xcp-ng.org/docs/#xcp-ng-comparing-to-other-products)XCP-ng comparing to other products

### [\#](https://xcp-ng.org/docs/#vs-vmware)vs VMware

<iframe allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen" frameborder="0" height="315" src="https://www.youtube.com/embed/wrLue-ENMJc" width="560"></iframe>

### [\#](https://xcp-ng.org/docs/#vs-proxmox)vs Proxmox

<iframe allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen" frameborder="0" height="315" src="https://www.youtube.com/embed/5IinFgGAsRs" width="560"></iframe>

### [\#](https://xcp-ng.org/docs/#vs-xen-vs-xenserver-vs-kvm-vs-proxmox)vs Xen vs XenServer vs KVM vs Proxmox

<iframe allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen" frameborder="0" height="315" src="https://www.youtube.com/embed/yulfCYmliX8" width="560"></iframe>

TIP

No flamewar! There are no miracle solutions, but only solutions adapted to your usage. We truly respect all other virtualization platforms!

# Useful commands in the XCP-ng Command Line Interface (CLI)

# XCP-NG Useful Commands

Here are some useful commands in the XCP-ng Command Line Interface (CLI) that can help you manage and interact with your virtualization environment:

## <span class="text-big">**1. Listing VMs and Hosts:**</span>

- List all VMs:

```plaintext
xe vm-list

```

List all hosts:

```plaintext
xe host-list
```

## <span class="text-big">**2. VM Operations:**</span>

- Start a VM:

```plaintext
xe vm-start vm=<VM UUID>
```

- Shut down a VM:

```plaintext
xe vm-shutdown vm=<VM UUID>

```

- Reboot a VM:

```plaintext
xe vm-reboot vm=<VM UUID>
```

- Suspend a VM:

```plaintext
xe vm-suspend vm=<VM UUID>
```

- Reset VM Powerstate

```plaintext
xe vm-reset-powerstate uuid=******* --force
```

## <span class="text-big">**3. Host Operations:**</span>

- Reboot the host:

```plaintext
xe host-reboot host=<Host UUID>
```

- Shutdown the host:

```plaintext
xe host-shutdown host=<Host UUID>

```

- Put the host into maintenance mode:

```plaintext
xe host-disable host=<Host UUID>
```

## **4. Snapshot Management:**

- Take a snapshot of a VM:

```plaintext
xe vm-snapshot vm=<VM UUID> new-name-label=<Snapshot Name>
```

- Revert a VM to a snapshot:

```plaintext
xe vm-revert-to-snapshot snapshot=<Snapshot UUID>
```

- List snapshots of a VM:

```plaintext
xe snapshot-list vm=<VM UUID>
```

## **5. Storage Operations:**

- List SRs (Storage Repositories):

```plaintext
xe sr-list
```

- Scan for new SRs:

```plaintext
xe sr-scan
```

## **6. Networking:**

- List network interfaces on a host:

```plaintext
xe pif-list host=<Host UUID>
```

- List VM's VIFs (Virtual Network Interfaces):

```plaintext
xe vif-list vm=<VM UUID>
```

## **7. Resource Pool Operations:**

List resource pools:

```plaintext
xe pool-list
```

- Create a new resource pool:

```plaintext
xe pool-create name-label=<Pool Name>
```

## **8. Performance Monitoring:**

- Display VM performance statistics:

```plaintext
xe vm-param-list uuid=<VM UUID> | grep guest-metrics
```

## **9. Logs and Diagnostics:**

- Display host logs:

```plaintext
less /var/log/xensource.log
```

- Display VM logs:

```plaintext
less /var/log/xensource/vm-logs/<VM UUID>.log

```

These are just a few examples of the commands you can use to manage your XCP-ng environment. Be sure to refer to the official XCP-ng documentation for more details and command options specific to your version and setup. Always exercise caution when using CLI commands, especially in production environments.