83.7. How to start a virtual machine

To start a virtual machine you have to send the following command:

xm create /etc/xen/<config-file>.cfg

If you want to connect a paravirtualized machine to the console you can use the option -c:

xm create -c /etc/xen/<config-file>.cfg

[Note]Note

When you run a paravirtualized machine you have to select the kernel compatible with the Xen option in the bootloader.

[Note]Note

To see the console you need to change the default console output of the VM's OS into xvc0.

To connect to a VM's console you can see the following command:

xm console <VirtualMachineName>

To see the list of the active virtual machines with:

xm list