I have an issue in which I cannot understand how to create a XenServer Virtual Machine from the command-line.
I have installed XenServer on an unused Tower unit, and currently SSH into it from my Mac. I chose to do so as XenCenter doesn't run on it, and also, as my project requires me to run the whole system from the command-line, but after spending an extortionate amount of time searching the internet for answers as to how to create VMs, I seemed to stumble upon the same, uninformative scripts, one after the other.
I understand that in order to create a VM, you run this command changing the <template-name>
, and <vm-name>
appropriately:
xe vm-install template=<template-name> new-name-label=<vm-name>
Again, as I am quite new to XenServer, I am unsure as to even what these need to be changed to.
In addition to this, I have no templates set or created, and wondered as to how I would do this. I hoped there would be a magical command such as xe template-new
or something of the sort, but I couldn't find one. I am familiar with Docker, so wondered whether the process of creating a VM template was similar to creating a container image?
If I execute the above command (xe vm-install...
), I receive the following output, if I substitute in either "Ubuntu 14.04 (64-bit)"
for template name and "Ubuntu"
as the label:
Error: No templates matched
I assumed that this would have been because I had not set the template, and wondered whether I could do this by creating an NFS VHD Storage Device?
I attempted to do this via the command line again, but searched the internet, and couldn't find any information as to how I would do it?
I am very confused, as XenServer is quite overwhelming, but I am determined to understand how to create a VM directly from the command line.
In order to help anyone who answers, I have included the details of my server below:
XenServer Host Name: xenserver-hxcwfafr-OliCallaghanXen
XenServer IP Address: 192.168.0.23
Many thanks for your time, and apologies for my probably ignorance.
Oli