HP BL680c XenServer Virtual Machine Installation 4.1.0 - Page 21

Start the VM, Installing Linux VMs

Page 21 highlights

Installing Linux VMs xe vm-install template="" new-name-label= This returns the UUID of the new VM. 4. Get the UUID of the new VM's root disk: xe vbd-list vm-uuid= params=uuid --minimal 5. Using the UUID returned, set the root disk to be not be bootable: xe vbd-param-set uuid= bootable=true 6. Get the name of the physical CD drive on the XenServer Host: # xe cd-list The result of this command should give you something like SCSI 0:0:0:0 for the name-label field. 7. Add a virtual CD-ROM to the new VM using the XenServer Host's CD drive name-label in the cdname argument: xe vm-cd-add uuid= cd-name="" device=3 8. Get the UUID of the VBD corresponding to the new virtual CD drive: # xe vbd-list vm-uuid= type=CD params=uuid --minimal 9. Make the virtual CD's VBD bootable: # xe vbd-param-set uuid= bootable=true 10. Set the VM's install repository to be the CD drive: # xe vm-param-set uuid= other-config:install-repository="cdrom" 11. Start the VM: xe vm-start uuid= 16

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44

Installing Linux VMs
16
xe vm-install template="<template name>" new-name-label=<name for VM>
This returns the UUID of the new VM.
4.
Get the UUID of the new VM's root disk:
xe vbd-list vm-uuid=<VM UUID> params=uuid --minimal
5.
Using the UUID returned, set the root disk to be not be bootable:
xe vbd-param-set uuid=<root disk UUID> bootable=true
6.
Get the name of the physical CD drive on the XenServer Host:
# xe cd-list
The result of this command should give you something like SCSI 0:0:0:0 for the
name-label
field.
7.
Add a virtual CD-ROM to the new VM using the XenServer Host's CD drive
name-label
in the
cd-
name
argument:
xe vm-cd-add uuid=<VM UUID> cd-name="<host CD drive name label>" device=3
8.
Get the UUID of the VBD corresponding to the new virtual CD drive:
# xe vbd-list vm-uuid=<VM UUID> type=CD params=uuid --minimal
9.
Make the virtual CD's VBD bootable:
# xe vbd-param-set uuid=<VM UUID> bootable=true
10.
Set the VM's install repository to be the CD drive:
# xe vm-param-set uuid=<VM UUID> other-config:install-repository="cdrom"
11.
Start the VM:
xe vm-start uuid=<VM UUID>