One more attempt

This commit is contained in:
Joshua Boniface 2019-07-06 18:15:11 -04:00
parent ca1aada5b0
commit 2b657f73a1
1 changed files with 47 additions and 45 deletions

View File

@ -177,51 +177,53 @@ This section walks through deploying a simple Debian VM to the cluster with Debo
`$ uuidgen` `$ uuidgen`
`$ $EDITOR /tmp/test1.xml` `$ $EDITOR /tmp/test1.xml`
<domain type='kvm'> ```
<name>test1</name> <domain type='kvm'>
<uuid>[INSERT GENERATED UUID]</uuid> <name>test1</name>
<description>Testing VM</description> <uuid>[INSERT GENERATED UUID]</uuid>
<memory unit='MiB'>1024</memory> <description>Testing VM</description>
<vcpu>1</vcpu> <memory unit='MiB'>1024</memory>
<os> <vcpu>1</vcpu>
<type arch='x86_64' machine='pc-i440fx-2.7'>hvm</type> <os>
<boot dev='hd'/> <type arch='x86_64' machine='pc-i440fx-2.7'>hvm</type>
</os> <boot dev='hd'/>
<features> </os>
<acpi/> <features>
<apic/> <acpi/>
<pae/> <apic/>
</features> <pae/>
<clock offset='utc'/> </features>
<on_poweroff>destroy</on_poweroff> <clock offset='utc'/>
<on_reboot>restart</on_reboot> <on_poweroff>destroy</on_poweroff>
<on_crash>restart</on_crash> <on_reboot>restart</on_reboot>
<devices> <on_crash>restart</on_crash>
<emulator>/usr/bin/kvm</emulator> <devices>
<controller type='usb' index='0'/> <emulator>/usr/bin/kvm</emulator>
<controller type='pci' index='0' model='pci-root'/> <controller type='usb' index='0'/>
<serial type='pty'/> <controller type='pci' index='0' model='pci-root'/>
<console type='pty'/> <serial type='pty'/>
<disk type='network' device='disk'> <console type='pty'/>
<driver name='qemu' discard='unmap'/> <disk type='network' device='disk'>
<auth username='libvirt'> <driver name='qemu' discard='unmap'/>
<secret type='ceph' uuid='[INSERT CEPH STORAGE SECRET]'/> <auth username='libvirt'>
</auth> <secret type='ceph' uuid='[INSERT CEPH STORAGE SECRET]'/>
<source protocol='rbd' name='vms/test1_disk0'> </auth>
<host name='[INSERT FIRST COORDINATOR CLUSTER NETWORK FQDN' port='6789'/> <source protocol='rbd' name='vms/test1_disk0'>
<host name='[INSERT FIRST COORDINATOR CLUSTER NETWORK FQDN' port='6789'/> <host name='[INSERT FIRST COORDINATOR CLUSTER NETWORK FQDN' port='6789'/>
<host name='[INSERT FIRST COORDINATOR CLUSTER NETWORK FQDN' port='6789'/> <host name='[INSERT FIRST COORDINATOR CLUSTER NETWORK FQDN' port='6789'/>
</source> <host name='[INSERT FIRST COORDINATOR CLUSTER NETWORK FQDN' port='6789'/>
<target dev='sda' bus='scsi'/> </source>
</disk> <target dev='sda' bus='scsi'/>
<interface type='bridge'> </disk>
<mac address='52:54:00:12:34:56'/> <interface type='bridge'>
<source bridge='vmbr100'/> <mac address='52:54:00:12:34:56'/>
<model type='virtio'/> <source bridge='vmbr100'/>
</interface> <model type='virtio'/>
<controller type='scsi' index='0' model='virtio-scsi'/> </interface>
</devices> <controller type='scsi' index='0' model='virtio-scsi'/>
</domain> </devices>
</domain>
```
*NOTE:* This Libvirt XML is only a sample; it should be modified to fit the specifics of the VM. Alternatively to manual configuration, one can use a tool like `virt-manager` to generate valid Libvirt XML configurations for PVC to use. *NOTE:* This Libvirt XML is only a sample; it should be modified to fit the specifics of the VM. Alternatively to manual configuration, one can use a tool like `virt-manager` to generate valid Libvirt XML configurations for PVC to use.