Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sample:base [2015/03/30 04:20]
admin [Storage Repository (SR)]
sample:base [2015/03/31 01:44] (current)
admin [Start the XOA VM]
Line 426: Line 426:
 <color darkorange>​**ATTENTION:​ THE TARGET VOLUME WILL BE ERASED AND ALL DATA ON IT WILL BE LOST!**</​color>​ <color darkorange>​**ATTENTION:​ THE TARGET VOLUME WILL BE ERASED AND ALL DATA ON IT WILL BE LOST!**</​color>​
 <​code>​ <​code>​
-> sudo xe sr-create type=lvm content-type=user name-label='​X-Local-SR'​ device-config:​device=/​dev/​mapper/​Xvg0-Xsr0+> sudo xe sr-create type=ext content-type=user name-label='​X-Local-SR'​ device-config:​device=/​dev/​mapper/​Xvg0-Xsr0 
 +2f93b6d9-9904-dbfc-afba-d4ba190fca3d
 </​code>​ </​code>​
  
Line 434: Line 435:
 <​code>​ <​code>​
 > sudo xe sr-list > sudo xe sr-list
- +uuid ( RO)                : ef162035-0edb-7cd9-6e1f-4a9a60e1dba8
-uuid ( RO)                : 26b9d87b-f344-1c8d-c5c5-a155d4e4e2e0 +
-          name-label ( RW): X-Local-SR +
-    name-description ( RW):  +
-                host ( RO): store +
-                type ( RO): ext +
-        content-type ( RO):  +
-         +
-uuid ( RO)                : 2c510782-2ad6-af40-8414-4ec89e9bc85c+
           name-label ( RW): XenServer Tools           name-label ( RW): XenServer Tools
     name-description ( RW): XenServer Tools ISOs     name-description ( RW): XenServer Tools ISOs
-                host ( RO): store+                host ( RO): provocator
                 type ( RO): iso                 type ( RO): iso
         content-type ( RO): iso         content-type ( RO): iso
 +
 +
 +uuid ( RO)                : 2f93b6d9-9904-dbfc-afba-d4ba190fca3d
 +          name-label ( RW): X-Local-SR
 +    name-description ( RW): 
 +                host ( RO): provocator
 +                type ( RO): ext
 +        content-type ( RO): user
 +
 </​code>​ </​code>​
  
Line 462: Line 464:
 ├─sda4 ​                                    ​8:​68 ​  ​1 ​    ​1K ​ 0 part  ├─sda4 ​                                    ​8:​68 ​  ​1 ​    ​1K ​ 0 part 
 └─sda5 ​                                    ​8:​69 ​  ​1 ​ 12.8G  0 part  └─sda5 ​                                    ​8:​69 ​  ​1 ​ 12.8G  0 part 
-  ├─Xvg0-Xsr0 (dm-0) ​                    ​254:​0 ​   0   7.8G  0 lvm   +  ├─Xvg0-Xsr0 (dm-0) ​                    ​254:​0 ​   0   9.3G  0 lvm   
-  │ └─XSLocalEXT--26b9d87b...e2e0 (dm-2) 254:2    0   7.8G  0 lvm  /​run/​sr-mount/​26b9d87b...e2e0 +  │ └─XSLocalEXT--2f93b6d9...ca3d (dm-2) 254:2    0   9.3G  0 lvm  /​run/​sr-mount/​2f93b6d9...ca3d 
-  └─Xvg0-Xsr1 (dm-1) ​                    ​254:​1 ​   0     ​5G  0 lvm+  └─Xvg0-Xsr1 (dm-1) ​                    ​254:​1 ​   0   3.5G  0 lvm 
 +</​code>​ 
 + 
 +A PBD was also created in the process: 
 +<​code>​ 
 +> sudo xe pbd-list  
 +uuid ( RO)                  : c55da5af-981f-5a68-d46b-4480b974e856 
 +             ​host-uuid ( RO): a006d803-4aa1-11e6-827c-7e5c7af9806e 
 +               ​sr-uuid ( RO): ef162035-0edb-7cd9-6e1f-4a9a60e1dba8 
 +         ​device-config (MRO): location: /​usr/​share/​xcp/​packages/​iso;​ legacy_mode:​ true 
 +    currently-attached ( RO): true 
 + 
 + 
 +uuid ( RO)                  : 84bf61e9-4976-6837-9664-4f837d4bf214 
 +             ​host-uuid ( RO): a006d803-4aa1-11e6-827c-7e5c7af9806e 
 +               ​sr-uuid ( RO): 2f93b6d9-9904-dbfc-afba-d4ba190fca3d 
 +         ​device-config (MRO): device: /​dev/​mapper/​Xvg0-Xsr0 
 +    currently-attached ( RO): true
 </​code>​ </​code>​
 ---- ----
Line 472: Line 491:
 We'll now register this newly created SR as the pool's default, i.e. new VMs VDIs willl be stored on this SR unless otherwise specified at creation time: We'll now register this newly created SR as the pool's default, i.e. new VMs VDIs willl be stored on this SR unless otherwise specified at creation time:
 <​code>​ <​code>​
-> sudo xe pool-list +> sudo pool-list  
-uuid ( RO)                : 4a187cc1-69ce-eaf3-2742-6aec0783159f+uuid ( RO)                : 352be6da-23d4-2815-494a-8c6d63957335
           name-label ( RW):            name-label ( RW): 
     name-description ( RW):      name-description ( RW): 
-              master ( RO): 288efd1c-7afe-21ca-e374-cace5e2d7e20+              master ( RO): a006d803-4aa1-11e6-827c-7e5c7af9806e
           default-SR ( RW): <not in database>​           default-SR ( RW): <not in database>​
  
-> sudo xe pool-param-set uuid=4a187cc1-69ce-eaf3-2742-6aec0783159f ​default-SR=26b9d87b-f344-1c8d-c5c5-a155d4e4e2e0+> sudo xe pool-param-set uuid=352be6da-23d4-2815-494a-8c6d63957335 ​default-SR=2f93b6d9-9904-dbfc-afba-d4ba190fca3d
 </​code>​ </​code>​
  
Line 585: Line 604:
 ==== Install the Appliance ==== ==== Install the Appliance ====
 ---- ----
-XenOrchestra (XO) is an open-source Web interface for XenServer (or XCP in this case) communicating through XAPI. It is made available as an "​appliance"​ for Xen, which means you can [[https://​xen-orchestra.com/​|download a fully configured VM from the XO website]]. You'll have to register first but there is a free version available for download (version is 3.as of this writing: 2015-03-05). Once downloaded, you'll have an .xva file that you need to transfer to your Xen Host. We'll use sftp to do this, creating a new directory on the host for .xva files in /​opt/​xen/​X-Local-XVA:​+XenOrchestra (XO) is an open-source Web interface for XenServer (or XCP in this case) communicating through XAPI. It is made available as an "​appliance"​ for Xen, which means you can [[https://​xen-orchestra.com/​|download a fully configured VM from the XO website]]. You'll have to register first but there is a free version available for download (version is 3.as of this writing: 2015-03-31). Once downloaded, you'll have an .xva file that you need to transfer to your Xen Host. We'll use sftp to do this, creating a new directory on the host for .xva files in /​opt/​xen/​X-Local-XVA:​
  
 <​code>​ <​code>​
--- From the workstation where you downloaded xoa_free_3.6.xva --+-- From the workstation where you downloaded xoa_free_3.8.xva -- 
 +> cd /​path/​to/​your/​download
 > sftp root@<​xen_host_ip>​ > sftp root@<​xen_host_ip>​
 sftp> cd /opt/xen sftp> cd /opt/xen
 sftp> mkdir X-Local-XVA sftp> mkdir X-Local-XVA
 sftp> cd X-Local-XVA sftp> cd X-Local-XVA
-sftp> lcd /​path/​to/​your/​download +sftp> put xoa_free_3.8.xva 
-sftp> put xoa_free_3.6.xva +xoa_free_3.8.xva                17%  116MB   ​4.0MB/​s ​  02:16 ETA
-xoa_free_3.6.xva                17%  116MB   ​4.0MB/​s ​  02:16 ETA+
 sftp> exit sftp> exit
 </​code>​ </​code>​
Line 602: Line 621:
 <​code>​ <​code>​
 > cd /​opt/​xen/​X-Local-XVA > cd /​opt/​xen/​X-Local-XVA
-> sudo xe vm-import filename=xoa_free_3.6.xva+> sudo xe vm-import filename=xoa_free_3.8.xva 
 +e803456a-1478-6047-8735-171f1ac0dcf2
 </​code>​ </​code>​
 It takes a little time (unzipping the image), to be honest it can take //quite some// time. It takes a little time (unzipping the image), to be honest it can take //quite some// time.
 +
 +----
 +==== Start the XOA VM ====
 +----
 +Although the VM has now been imported, its initial state is "​halted":​
 +<​code>​
 +> sudo xe vm-list
 +uuid ( RO)           : 185059ea-0cdc-01a6-490f-befa6d20052b
 +     ​name-label ( RW): Control domain on host: provocator
 +    power-state ( RO): running
 +
 +
 +uuid ( RO)           : e803456a-1478-6047-8735-171f1ac0dcf2
 +     ​name-label ( RW): XOA 3.8 Free Edition
 +    power-state ( RO): halted
 +</​code>​
 +
 +Note that you might want to run an IP scan before starting the VM (seen next point).
 +
 +<​code>​
 +> sudo xe vm-start name-label="​XOA 3.8 Free Edition"​
 +</​code>​
  
 ---- ----