การสร้างพื้นที่เก็บไฟล์ ISO , Template OS บนเครื่อง XenServer หลังจากลง XenServer ไฟล์ ISO เช่น xs-tool XenCenter จะถูกเก็บอยู่ที่ /opt/xensource/packages/iso ซึ่งจะใช้พื้นที่ของ "/" ซึ่งมีขนาดจำกัดโดยรวมแค่ 4GB หากเราต้องการเก็บไฟล์ ISO อื่นๆเพิ่มเติมเช่น CentOS , Ubuntu , Windows พื้นที่ที่มีอาจจะไม่เพียงพอ หลังจากที่เราลง XenServer เสร็จแล้วเราอาจจะใช้ partitions อื่นๆที่เหลือและมีพื้นที่มากพอ เช่น sda2 , sda3 หรืออาจจะเป็น harddisk ตัวอื่นๆมาใช้เป็นพื้นที่จัดเก็บก็ได้ ยกตัวอย่างเช่นในกรณีนี้ เราจะใช้ partitions sda3 เป็นพื้นที่เก็บไฟล์ ISO แทน (ค่า default จะเป็น reposittory ที่ใช้เก็บ guestOS , VPS nodes , DomU) 1.format sda3 เป็น ext3 ก่อนใช้งาน หากเป็น hardisk ตัวอื่นๆให้แบ่ง partition ให้เรียบร้อยก่อน # mkfs.ext3 /dev/sda3 2. สร้างไดเรคทอรี่สำหรับเก็บไฟล์ ISO ในกรณีที่ยังไม่มี # mkdir -p /opt/xensource/packages/iso 3. สร้าง repository สำหรับเก็บไฟล์ ISO บน XenServer # xe sr-create name-label="ISO-Repository" type=iso device-config:location=/opt/xensource/packages/iso/ device-config:legacy_mode=true content-type=iso mount /dev/sda3 /opt/xensource/packages/iso/ 4. mount point partition sda3 เข้ากับไดเรคทอรี่ # mount /dev/sda3 /opt/xensource/packages/iso 5. สั่ง scan เพื่อให้ XenSever update ISO ไฟล์ที่อยู่ใน repository # xe sr-scan uuid=d33e98ca-1864-95a9-0d38-636b5a8fb412 6.ให้ mount อัตโนมัติทุกครั้งที่บูตโดยแก้ไขที่ file /etc/fstab โดยเพิ่มบรรทัดนี้เข้าไป /dev/sda3 /opt/xensource/packages/iso ext3 noauto 0 0 คำสั่งในการดูรายละเอียด uuid ของ storage ,ลบ pbd , sr บน XenServer คลิ๊ก คำสั่งสร้าง repository สำหรับเก็บ GuestOS , DomU , VPS nodes
โดยปกติ XenCenter จะสามารถติดตั้งได้บน Windows 7 ลงไป แต่กรณีติดตั้ง XenCenter บน Windows 8 หรือ Windows 10 จะมี Error "Could not create SSL/TLS Secure Channel" แก้ปัญหาโดยการ generate ssl certificated ใหม่เป็น 1024bit ดังนี้ 1. ให้ดำเนินการติดตั้ง XenCenter บน Windows ตามวิธีปกติจนกระทั้งดำเนินการเสร็จสิ้น 2. ssh ไปที่เครื่อง XenServer แล้วใช้คำสั่งต่อไปนี้ #cp /opt/xensource/libexec/generate_ssl_cert /tmp edit file /tmp/generate_ssl_cert แล้วมองหา openssl genrsa > privkey.rsa แล้วแก้ไขเป็น openssl genrsa 1024 > privkey.rsa #cp /etc/xensource/xapi-ssl.pem /etc/xensource/xapi-ssl.pem.backup #/etc/init.d/xapissl stop #/tmp/generate_ssl_cert /etc/xensource/xapi-ssl.pem "hostname" #/etc/init.d/xapissl start 3. เปิดโปรแกรม XenCenter บน Windows แล้วดำเนินการ Add Server ตามปกติ หากยังมี error ให้ลองใช้คำสั่ง #/etc/init.d/xapi restart แล้วทดสอบ Add Server อีกครั้ง
ขั้นตอนการเพิ่ม RAM ด้วย Virtualizor มีวิธีการดังนี้ 1. Login เข้า Master Server Virtualizor 2. List VM และหา VM ที่ต้องการ Ram 3. Edit VM ที่ต้องการเพิ่ม Ram 4. ไปที่ Gauranteed RAM และเพิ่ม RAM ตามที่ต้องการ (Resouce ที่ที่เพิ่มได้จะแจ้งอยู่ในวงเล็บ) 5. Reboot 6. ตรวจสอบว่า Ram ถูกต้องหรือไม่
ขั้นตอนการเพิ่ม Disk ด้วย Virtualizor มีวิธีการดังนี้ 1. Login เข้า Master Server Virtualizor 2. List VM และหา VM ที่ต้องการ Disk 3. Edit VM ที่ต้องการเพิ่ม Disk 4. ไปที่ Disk Space และเพิ่ม Disk ตามที่ต้องการ (Resouce ที่เพิ่มได้จะแจ้งอยู่ในวงเล็บ) 5. Reboot 6. ตรวจสอบว่า Disk ถูกต้องหรือไม่
วัตถุประสงค์ สำหรับทำ NFS Backup เพื่อลดปัญหา Bandwidth โดยการ Backup ผ่าน IP ภายใน มีขั้นตอนดังนี้ บนเครื่อง Slave Server ให้ดำเนินการดังนี้ 1.สร้างไฟล์ /etc/sysconfig/network-scripts/ifcfg-intbr0 และเพิ่มตามด้านล่างในไฟล์ DEVICE=intbr0ONBOOT=yesTYPE=BridgeBOOTPROTO=staticIPADDR=192.168.1.1NETMASK=255.255.255.0 2. ถ้าเครื่องมี NIC eth1 ให้แก้ไขไฟล์ eth1 ตามด้านล่าง DEVICE=eth1ONBOOT=yesTYPE=EthernetIPV6INIT=noUSERCTL=noBRIDGE=intbr0 3. Restart the network service 4. ไปที่ Master Server แล้ว Create IP Pool ขั้นตอนการสร้างตาม URL (สร้าง Internal IP Bridge เป็นชื่อ intbr0) Ref: http://www.virtualizor.com/wiki/Internal_Network