Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Xen Cloud Platform (XCP) on Ubuntu Server 13.10 (Saucy Salamander)

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Beans
    23
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Question Xen Cloud Platform (XCP) on Ubuntu Server 13.10 (Saucy Salamander)

    Broken: Xen Cloud Platform (XCP) on Ubuntu Server 14.04 LTS (Trusty Tahr)

    Update 28th May 2014:

    I was today in the process of installing a new XCP visualisation server and found that the xcp-xapi package is missing from the repo.
    A brief look at xcp-xapi 1.3.2-15ubuntu2 (amd64 binary) in ubuntu trusty and “xen-api” 1.3.2-15ubuntu2 source package in The Trusty Tahr shows:
    Status: Deleted
    and
    1.3.2-15ubuntu2 DELETED: Trusty pocket Release in component universe and section admin. Removal requested on 2013-12-24. Deleted on 2013-12-24 by Matthias Klose. ocaml transition: doesn’t build
    I'm guessing that this is because XCP on Debian/Ubuntu and all platforms other than CentOS is no longer supported by Citrix, XCP has deprecated and major dependencies are now broken, but I must say that this is a terrible situation. As far as I'm aware, OpenStack and some others use XCP on Ubuntu for their infrastructure and this would appear to be a cynical method of getting them to switch to XenServer/CentOS. Personally I'd like to stick with Ubuntu and also don't like the Idea of switching to an inferior Xen Toolstack. Perhaps I aught to start from scratch and learn to use KVM?

    If anyone knows anything about this situation and if it is likely to be remedied please let me know, I'd really appreciate it!

    I will endeavour to get xcp-xapi installed by other means and report back as soon as I am able. Don't hold your breath though...

    This update is taken from this comment, below.

    The original post...

    Installing and configuring Ubuntu 13.10 (Saucy Salamander) with Xen Cloud Platform (dom0) and an Ubuntu 13.10 (Saucy Salamander) guest (domU).

    Install Ubuntu Server:

    Copy ubuntu-13.10-server-amd64.iso to a CD or Flashdrive and boot from your server hardware.

    Note: You may need to use a PS2 keyboard, as opposed to a USB one if you have keyboard troubles during the installation process. A USB keyboard should be fine once you have booted into the installed system.

    https://help.ubuntu.com/community/Se...OpenXenManager

    Install a minimal system (Press F4 during the CD install)

    FYI: For my partitioning scheme, I chose to do this manually and created:
    Partition 1: 1024MB, ext2, bootable, /boot.
    Partition 2: Rest of drive, physical volume for LVM.
    Configured LVM as: Volume Group "ServerVG", used all remaining space on HDD.
    Created Logical volumes in this group: "Swap", 17GB, swap; "Root", 20GB, ext4, /; "ServerSR", 100GB, ext3, /media/richard/ServerSR.
    Select only an OpenSSH Server when asked in Tasksel.

    Complete the installation process and reboot the server.

    Install XCP-XAPI with bridge networking:

    Install Packages and update your system.

    Code:
    sudo apt-get update && sudo apt-get -y dist-upgrade && sudo apt-get -y install vim && sudo apt-get -y install mc && sudo apt-get -y install htop && sudo apt-get -y install xen-hypervisor
    Configure GRUB for Xen Booting:

    Please note that from Xen version 4.4 Xen automatically configures GRUB to boot into Xen by default, so configuring GRUB_DEFAULT should not be necessary.
    Code:
    sudo update-grub
    Including Xen overrides from /etc/default/grub.d/xen.cfg
    WARNING: GRUB_DEFAULT changed to boot into Xen by default!
             Edit /etc/default/grub.d/xen.cfg to avoid this warning.
    Generating grub configuration file ...
    However: Configuring VCPU and memory as well as disabling apparmour at boot is still necessarry, I believe.


    The official grub manual describes this correctly: http://www.gnu.org/software/grub/man...-configuration

    Put the following in /etc/default/grub:
    Code:
    sudo vim /etc/default/grub
    Code:
    #Tell GRUB to remember last selection:
    GRUB_DEFAULT="saved"
    GRUB_SAVEDEFAULT="true"
    
    [...]
    
    #Disable apparmor at boot:
    GRUB_CMDLINE_LINUX="apparmor=0"
    #Restrict "dom0" to 1GB of memory and 1 VCPU:
    GRUB_CMDLINE_XEN="dom0_mem=1G,max:1G dom0_max_vcpus=1"
    Note 1: The first part;
    Code:
    #Tell GRUB to remember last selection:
    GRUB_DEFAULT="saved"
    GRUB_SAVEDEFAULT="true"
    does not always work (I don't know why).
    Instead you may want to try;
    Code:
    GRUB_DEFAULT="2"
    or
    Code:
    GRUB_DEFAULT="Xen 4.4-amd64"
    Note 2: Why should I dedicate fixed amount of memory for Xen "dom0"?

    First of all (dom0) Linux kernel calculates various network related parameters based on the boot time amount of memory.
    The second reason is Linux needs memory to store the memory metadata (per page info structures), and this allocation is also based on the boot time amount of memory.

    http://wiki.xen.org/wiki/Xen_Best_Practices


    Code:
    sudo update-grub
    
    sudo reboot
    Select "Ubuntu / Gnu Linux with Xen hypervisor" from GRUB boot menu.

    Login and then check to see if Xen is running:

    Code:
    cat /proc/xen/capabilities
    "control_d"
    Not necessary at this stage:

    Add XCP-PPA via:
    Code:
    sudo apt-get install python-software-properties
    sudo apt-get install software-properties-common
    sudo add-apt-repository ppa:ubuntu-xen-org/xcp-unstable


    Install XCP-XAPI:

    Code:
    sudo apt-get install -y xcp-xapi && sudo apt-get install qemu-common
    -> Choose "bridge" when prompted for network backend.

    To reconfigure later:
    Code:
    sudo dpkg-reconfigure xcp-networkd
    Tell Xen what it's toolstack should be:

    Code:
    sudo vim /etc/default/xen
    Code:
    TOOLSTACK=xapi
    Not Neccessary:
    Code:
    sudo mkdir /usr/share/qemu; sudo ln -s /usr/share/qemu-linaro/keymaps /usr/share/qemu/keymaps

    http://wiki.xen.org/wiki/XAPI_toolst...nterfaces_file


    Set up network bridging (DHCP):
    Code:
    sudo vim /etc/network/interfaces
    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # Xen network interface for "dom0"
    auto xenbr0
    iface xenbr0 inet dhcp
    
    bridge_ports eth0
    
    # The primary network interface
    #auto eth0
    #iface eth0 inet dhcp
    At this stage, it might be worthwhile setting up the ability to connect to the server via XenCenter or OpenXenManager, if you have this utility installed on another PC.
    After the next reboot, if this software is able to 'talk' to your server, you should get a prompt to authorise it's SSL certificate. This is a good indication that some form of communication is happening between the management software and the server.
    Even if there are subsequent errors, this should be a good sign.

    To enable remote access by XenCenter:

    You will get the error "XenCenter has encountered a problem connecting to this server... Incorrect username and/or password.", or similar (depending on the software); so carrying out the following actions on the server will be neccessary:
    Code:
    sudo usermod -a -G xapi richard
    http://ubuntuforums.org/showthread.php?t=2158441

    Uncomment "auth sufficient pam_succeed_if.so user ingroup xapi"
    Code:
    sudo vim /etc/pam.d/xapi
    Code:
    #%PAM-1.0
    #@include common-auth
    
    # Uncomment this line to allow users of group xapi to authenticate
    auth sufficient pam_succeed_if.so user ingroup xapi
    
    # Only allow group root to authenticate, unless above line uncommented
    auth required pam_succeed_if.so user ingroup root
    Code:
    sudo reboot
    If this doesn't work, try replacing all with:

    Code:
    auth include common-auth
    account include common-auth
    password include common-auth
    If the server is installed with an encrypted 'Home' directory, you may get the message:

    Unable to connect to server 'Server'.
    The connection was refused.
    Check that XenServer is configured correctly on 'Server' and try again.
    The only way that I found around this is to reinstall with an unencrypted Home directory. Sorry!

    http://www.citrix.com/downloads/xens...server-62.html

    Code:
    sudo reboot
    If you use the openvswitch mode (and not bridging), then you will need to tell XCP about your network configuration. In fact, it doesn't seem to hurt if you're using bridging:
    (NOTE: I haven't been able to get openvswitch working and I also found that performing the following commands did cause some network connectivity problems on startup.)

    Code:
    sudo su
    PIF_UUID=`xe pif-list device=eth0 --minimal`
    xe pif-reconfigure-ip uuid=$PIF_UUID mode=dhcp
    All set! Ready to reboot and let xcp-xapi toolstack take over:
    Code:
    sudo reboot

    Login now and check that xcp/xapi is up and running:
    Code:
    service xcp-xapi status
    sudo xe host-list
    sudo xe vm-list
    sudo xe network-list
    sudo xe sr-list
    sudo xe pif-list
    cat /etc/xcp/inventory
    Configure Storage Repository for Use With XAPI:

    http://www.howtoforge.com/linux_lvm_p2
    https://help.ubuntu.com/community/Se...OpenXenManager

    To show your volume group (VG):
    Code:
    sudo pvs
    sudo vgscan
    sudo vgdisplay
    To show your logical volumes (LV):
    Code:
    sudo lvdisplay
    sudo lvscan
    Create a LV with X GBs:
    "sudo lvcreate -L <X>GB -n <StorageRepositoryName> /dev/<VG>"
    Code:
    sudo lvcreate -L 10GB -n ServerSR ServerVG
    To show your logical volumes (LV):
    Code:
    sudo lvdisplay
    sudo lvscan
    Note: If you created a LV for your storage repository during the installation of the server, please comment out it's entry in /etc/fstab in order to give Xen uncontested access to it:

    Code:
    sudo vim /etc/fstab
    Code:
    #/dev/mapper/ServerVG-ServerSR /media/richard/ServerSR ext3    defaults        0       2
    Code:
    sudo reboot
    Register the logical volume for use with XAPI:
    "sudo xe sr-create type=ext shared=true name-label=<StorageRepositoryName> device-config:device=/dev/<VG>/<StorageRepositoryName>"
    Code:
    sudo su
    SR=`xe sr-create type=ext shared=true name-label=ServerSR device-config:device=/dev/ServerVG/ServerSR`
    then set the SR as the pool default SR:
    Code:
    POOL=`xe pool-list --minimal`
    xe pool-param-set uuid=$POOL default-SR=$SR
    This should display the Storage Repository:
    "sudo xe sr-list name-label=<StorageRepositoryName>"
    Code:
    sudo xe sr-list name-label=ServerSR
    sudo xe sr-list
    sudo xe pool-list
    Configure a ISO Repository for Use With XAPI:
    An ISO Repository contains ISOs (disk images) with operational systems to perform the installations.
    "sudo xe sr-create name-label=<LocalISORepositoryName> type=iso shared=true device-config:location=<FolderPath> device-config:legacy_mode=true content-type=iso"

    The following example makes a storage repository called "LocalISORepository" in your /home directory:
    Code:
    mkdir /home/richard/LocalISORepository/
    sudo xe sr-create name-label=LocalISORepository type=iso shared=true device-config:location=/home/richard/LocalISORepository/ device-config:legacy_mode=true content-type=iso
    This should display the ISO Repository
    "sudo xe sr-list name-label=<LocalISORepositoryName>"
    Code:
    sudo xe sr-list name-label=LocalISORepository
    sudo xe sr-list
    To delete a local storage repository:
    http://forums.citrix.com/thread.jspa...332&tstart=135
    Code:
    sudo lvremove /dev/ServerVG/StorageRepository
    If you lost your guest templates, the list will be empty in XenCenter and if you do "xe template-list" nothing will appear.. do this:
    http://blog.jamesrhall.com/2012/06/xcp-on-ubuntu.html
    Code:
    cd /usr/lib/xcp/lib
    Code:
    sudo ./create_templates
    Installing Ubuntu 13.10 Saucy Salamender domU guest:

    http://wiki.xen.org/wiki/Installing_Linux_on_Kronos
    http://pravinchavan.wordpress.com/20...-04-raring-vm/
    (see section 4d)

    EDIT: Skip to the next post for a more sophisticated install script.
    Code:
    sudo xe template-list
    Use the script below and alter the variables "release", "label", "host" and "domain" as necessary:
    Code:
    sudo vim Saucy.sh
    Code:
    #!/bin/bash
    set -e
    set -x
    
    release='saucy'
    label='SaucyTest'
    host='SaucyTest'
    domain='mydomain.is.best'
    template=`xe template-list name-label="Ubuntu Lucid Lynx 10.04 (64-bit)" --minimal`
    vm=`xe vm-install template=$template new-name-label=$label`
    network=`xe network-list bridge=xenbr0 --minimal`
    vif=`xe vif-create vm-uuid=$vm network-uuid=$network device=0`
    
    xe vm-param-set uuid=$vm other-config:debian-release=$release
    xe vm-param-set uuid=$vm other-config:install-repository=http://archive.ubuntu.com/ubuntu
    xe vm-param-set uuid=$vm PV-args="auto-install/enable=true interface=auto netcfg/dhcp_timeout=600 hostname=$host"
    
    set +x
    
    echo ''
    echo 'Press any key to start VM'
    echo ''
    
    read -n 1
    
    xe vm-start uuid=$vm
    xe vm-list uuid=$vm
    xe console-list uuid=$vm
    
    echo ''
    echo 'Press any key for Console'
    echo ''
    
    read -n 1
    
    xe console uuid=$vm
    Code:
    sudo chmod a+x Saucy.sh
    sudo ./Saucy.sh
    You may need to press a key again to bring the console up properly, but once it's up and running, just follow the usual procedure for installing Ubuntu Server.

    For a WebUI VM install, download the latset XenOrchestra image from:
    https://xen-orchestra.com/install-an...e-xo-from-git/

    Follow the instructions therein.

    That's it for now!
    Last edited by Rich.T.; May 28th, 2014 at 04:58 PM. Reason: Attempting to update to Ubuntu Ubuntu 14.04 LTS (Trusty Tahr) + Xen 4.4

  2. #2
    Join Date
    Nov 2008
    Beans
    23
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: Xen Cloud Platform (XCP) on Ubuntu Server 13.10 Saucy Salamander

    After doing some more reading up and a lot experimentation, I have built upon my XCP domU installation script and made it interactive, with the ability to change the VM's settings as you install it.

    Note: This script uses BC (Bash Calculator) for non-integer calculations, so make sure you:
    Code:
    sudo apt-get install BC


    It may be of some use to people, so here it is:

    Code:
    sudo vim ubuntuinstall.sh
    Code:
    #!/bin/bash
    #set -e
    #set -x
    bold=`tput bold`
    normal=`tput sgr0`
    green=`tput setf 2`
    red=`tput setf 4`
    
    echo ""
    echo ""
    echo "${green}${bold}Enter settings for your virtual machine.${normal}"
    echo "${green}Press return to accept defalt values.${normal}"
    echo ""
    echo ""
    
    # Short release name (name of repository)
    release="saucy"
    read -e -i "$release" -p "${bold}Please enter short release name (name of repository): ${normal}" input
    release="${input:-$release}"
    echo "${green}Release=${bold}$release${normal}"
    
    # Name label of VM for XCP
    label='Ubuntu-Desktop-13.10'
    read -e -i "$label" -p "${bold}Please enter name label of VM for XCP: ${normal}" input
    label="${input:-$label}"
    echo "${green}Label=${bold}$label${normal}"
    
    # Hostname of VM
    host='Ubuntu-Desktop-13.10-1'
    read -e -i "$host" -p "${bold}Please enter host name of VM: ${normal}" input
    host="${input:-$host}"
    echo "${green}Hostname=${bold}$host${normal}"
    
    #Domain name for VM
    domain=""
    read -e -i "$domain" -p "${bold}Please enter domain name of VM: ${normal}" input
    domain="${input:-$domain}"
    echo "${green}Domain=${bold}$domain${normal}"
    
    # Template to use as basis for VM
    temp="Ubuntu Lucid Lynx 10.04 (64-bit)"
    read -e -i "$temp" -p "${bold}Please enter name of template to use as basis for VM: ${normal}" input
    temp="${input:-$temp}"
    echo "${green}Template=${bold}$temp${normal}"
    
    template=`xe template-list name-label="$temp" --minimal`
    
    # The "install" bit
    echo ""
    echo ""
    echo "${red}${bold}INSTALLING $label...${normal}"
    echo ""
    echo ""
    vm=`xe vm-install template=$template new-name-label=$label`
    echo "${green}UUID for $label=${bold}$vm${normal}"
    echo ""
    
    # Network Bridge Name
    bridge="xenbr0"
    xe network-list
    echo "${red}Please enter network bridge identifier."
    echo "${red}(Could be something like ${bold}xenbr0 or breth0 or brp6p1 or brwlan0, etc.${normal}"
    read -e -i "$bridge" -p "${bold}Network bridge name: ${normal}" input
    bridge="${input:-$bridge}"
    echo "${green}Bridge=${bold}$bridge${normal}"
    
    # Network Type
    network=`xe network-list bridge=$bridge --minimal`
    echo "${green}Network uuid=${bold}$network${normal}"
    
    # Virtual Network Interface
    vif=`xe vif-create vm-uuid=$vm network-uuid=$network device=0`
    echo "${green}Virtual network interface for ${bold}$label$:{normal}"
    echo "${green}uuid=${bold}$vif${normal}"
    
    # Install repository address:
    repo="http://archive.ubuntu.com/ubuntu"
    read -e -i "$repo" -p "${bold}Please enter install repository address: ${normal}" input
    repo="${input:-$repo}"
    echo "${green}Repository=${bold}$repo${normal}"
    
    # Install VM
    xe vm-param-set uuid=$vm other-config:debian-release=$release
    xe vm-param-set uuid=$vm other-config:install-repository=$repo
    xe vm-param-set uuid=$vm PV-args="auto-install/enable=true interface=auto netcfg/dhcp_timeout=600 hostname=$host domain=$domain"
    
    # Display VM parameters 
    xe vm-param-list uuid=$vm | more
    
    echo "${red}${bold}Parameters for your installed virtual machine are listed above.${normal}${normal}"
    echo "${red}You can alter settings for CPU, RAM and Storage by answering the following questions.${normal}"
    echo "${red}Press return to accept defalt values.${normal}"
    echo ""
    
    # Set VM memory config
    # N.B. Memory limits must satisfy: static_min ≤ dynamic_min ≤ dynamic_max ≤ static_max
    
    echo "${bold}Set VM memory configuration.${normal}"
    echo "${red}N.B. Memory limits must satisfy: static_min ≤ dynamic_min ≤ dynamic_max ≤ static_max${normal}"
    
    smin=0.25
    read -e -i "$smin" -p "${bold}Please enter minimum static memory in GB: ${normal}" input
    smin="${input:-$smin}"
    echo "Minimum static memory=${bold}$smin${normal} GB"
    staticmin=$(echo "scale=0; $smin*1073741824/1" | bc)
    echo "${green}(staticmin=${bold}$staticmin)${normal}"
    
    dmin=0.25
    read -e -i "$dmin" -p "${bold}Please enter minimum dynamic memory in GB: ${normal}" input
    dmin="${input:-$dmin}"
    echo "Minimum dynamic memory=${bold}$dmin${normal} GB"
    dynamicmin=$(echo "scale=0; $dmin*1073741824/1" | bc)
    echo "${green}(dynamicicmin=${bold}$dynamicmin)${normal}"
    
    dmax=4
    read -e -i "$dmax" -p "${bold}Please enter maximum dynamic memory in GB: ${normal}" input
    dmax="${input:-$dmax}"
    echo "Maximum dynamic memory=${bold}$dmax${normal} GB"
    dynamicmax=$(echo "scale=0; $dmax*1073741824/1" | bc)
    echo "${green}(dynamicmax=${bold}$dynamicmax)${normal}"
    
    smax=4
    read -e -i "$smax" -p "${bold}Please enter maximum static memory in GB: ${normal}" input
    smax="${input:-$smax}"
    echo "Maximum static memory=${bold}$smax${normal} GB"
    staticmax=$(echo "scale=0; $smax*1073741824/1" | bc)
    echo "${green}(staticmax=${bold}$staticmax)${normal}"
    
    xe vm-memory-limits-set uuid=$vm static-min=$staticmin dynamic-min=$dynamicmin dynamic-max=$dynamicmax static-max=$staticmax
    
    # Set vCPUs for VM
    maxvpu="4"
    read -e -i "$maxvpu" -p "${bold}Please enter maximum number of vCPUs: ${normal}" input
    maxvpu="${input:-$maxvpu}"
    echo "${green}Maximum vCPUs=${bold}$maxvpu${normal}"
    
    startvpu="1"
    read -e -i "$startvpu" -p "${bold}Please enter number of vCPUs on startup: ${normal}" input
    startvpu="${input:-$startvpu}"
    echo "${green}Maximum vCPUs=${bold}$startvpu${normal}"
    
    xe vm-param-set VCPUs-max=$maxvpu uuid=$vm
    xe vm-param-set VCPUs-at-startup=$startvpu uuid=$vm
    
    # Get virtual disk image UUID
    echo "${red}${bold}Current virtual HDD parameters:${normal}"
    xe vbd-list vm-uuid=$vm
    xe vbd-list vm-uuid=$vm | grep "vdi-uuid ( RO): "
    vdiuuid0=$(xe vbd-list vm-uuid=$vm | grep "vdi-uuid ( RO): ")
    vdiuuid=${vdiuuid0:25:37}
    xe vdi-list uuid=$vdiuuid
    
    # Resize the virtual disk image
    dsize="20"
    read -e -i "$dsize" -p "${bold}Please enter virtual disk size in GB: ${normal}" input
    dsize="${input:-$dsize}"
    echo "Virtual disk size=${bold}$dsize${normal}GB"
    disksize=$(echo "scale=0; $dsize*1073741824/1" | bc)
    echo "${green}(disksize=${bold}$disksize)${normal}"
    xe vdi-resize uuid=$vdiuuid disk-size=$disksize
    echo ""
    
    # Display VM parameters 
    xe vm-param-list uuid=$vm | more
    xe vdi-list uuid=$vdiuuid
    
    #set +x
    
    echo ""
    echo "${green}${bold}All Done!.${normal}"
    echo ""
    echo "${red}${bold}Press any key to start VM${normal}"
    echo ""
    
    read -n 1
    echo "${red}Please stand by...${normal}"
    xe vm-start uuid=$vm
    xe vm-list uuid=$vm
    xe console-list uuid=$vm
    
    echo ""
    echo "${green}${bold}Press any key for Console${normal}"
    echo ""
    echo "${red}N.B. You may need to press a key again to bring the console up properly, but once it's up and running, just follow the usual procedure for installing Ubuntu via the minimal netboot installer.${normal}"
    echo ""
    
    read -n 1
    clear
    xe console uuid=$vm
    
    echo ""
    echo "${green}${bold}Welcome back!${normal}"
    echo ""
    echo "${green}To return to the console, just enter 'sudo xe console uuid=$vm${normal}'"
    echo ""
    
    exit
    Code:
    sudo chmod a+x ubuntuinstall.sh
    sudo ./ubuntuinstall.sh
    Last edited by Rich.T.; January 6th, 2014 at 05:54 PM. Reason: Fixes

  3. #3
    Join Date
    Jul 2007
    Beans
    186

    Re: Xen Cloud Platform (XCP) on Ubuntu Server 13.10 Saucy Salamander

    You show how to create LocalISORepository. But how do you populate it with ISO files? I just can't figure out how to get an ISO file that's in my file system copied into LocalISORepository.

  4. #4
    Join Date
    Nov 2008
    Beans
    23
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: Xen Cloud Platform (XCP) on Ubuntu Server 13.10 Saucy Salamander

    Quote Originally Posted by jcoles View Post
    You show how to create LocalISORepository. But how do you populate it with ISO files? I just can't figure out how to get an ISO file that's in my file system copied into LocalISORepository.
    Sorry for the long delay. I only just thought to check this thread out.

    I actually had that problem myself. I googled around for a solution and found:

    Two possible ways of populating the ISO SR would be to either; (i) mount the repo with NFS to your local machine, or (ii) use the wget command to download your ISOs directly. (Alternatively, you could connect to a CIFS (Windows filesharing) repo on your local machine. The XenCenter/OpenXenManager interface is fully capable of doing this. (Though using xe sr-create with the correct arguments might be a more consistant and elegant method )

    (i) https://help.ubuntu.com/community/SettingUpNFSHowTo
    https://www.digitalocean.com/communi...n-ubuntu-12-04

    As soon as I get the chance, I'll look through my notes and add this to the tutorial.

    (ii) wget http://releases.ubuntu.com/saucy/ubu...rver-amd64.iso ~/<repo-name>

    I hope this helps, and has not come too late to be of use to you!
    Last edited by Rich.T.; December 11th, 2013 at 03:24 AM.

  5. #5
    Join Date
    Aug 2011
    Beans
    1

    Re: Xen Cloud Platform (XCP) on Ubuntu Server 13.10 Saucy Salamander

    Hello, first of all thanks for the guide, i could get all installed and linux guest's working with it.

    I need to install a Windows 7 guest but its allways giving me this error when it tries to boot the VM:

    Feb 20, 2014 3:05:14 AM Error: Starting VM 'win7' - Internal error: Xenctrl.Error [ memory 11123588 KiB free; to be scrubbed 0 KiB; total 12285 MiB]: 1: Operation not permitted

  6. #6
    Join Date
    Nov 2008
    Beans
    23
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Unhappy Re: Xen Cloud Platform (XCP) on Ubuntu Server 13.10 Saucy Salamander

    Hi, proteu.

    Firstly, thanks for posting and letting me know that:

    A. This method works for someone other than me
    and
    B. The guide was comprehensible enough for others to follow.

    Secondly:
    Quote Originally Posted by proteu View Post
    Hello, first of all thanks for the guide, i could get all installed and linux guest's working with it.

    I need to install a Windows 7 guest but its always giving me this error when it tries to boot the VM:

    Feb 20, 2014 3:05:14 AM Error: Starting VM 'win7' - Internal error: Xenctrl.Error [ memory 11123588 KiB free; to be scrubbed 0 KiB; total 12285 MiB]: 1: Operation not permitted
    This is something that I want to get to work myself, but have so far have not been able to yet.

    I am very familiar the Error that you report above (Internal error: Xenctrl.Error [ memory ?????? KiB free; to be scrubbed 0 KiB; total ????? MiB]: 1: Operation not permitted) and have encountered this many times over when trying to install an OS from an ISO image. This is why I chose the method described above and used the web/network installer.

    If I remember correctly, I was able to do a basic Win7 test install using a XENServer OS (dom0) installation (as opposed to XCP/XAPI on Ubuntu).

    At this point, I would probably recommend doing this yourself if you really need a Windows Guest OS (domU).

    If I can get Windows installed and working as a guest OS (domU) on XCP/XAPI on Ubuntu, I will let you know ASAP. I will have some free time in about three weeks time, and intend to do some intense testing on this front.

    Sorry that I can't be more helpful at the moment, but please let me know if you have any success on your own before then.
    Last edited by Rich.T.; February 23rd, 2014 at 08:56 PM.
    “Evolution is a change from a no-howish, untalkaboutable, all-alikeness to a somehowish and in general talkaboutable not-all-alikeness by continuous sticktogetherations and something-elseifications.”
    WILLIAM JAMES (1842-1910)

  7. #7
    Join Date
    Feb 2014
    Beans
    1

    Re: Xen Cloud Platform (XCP) on Ubuntu Server 13.10 Saucy Salamander

    Quote Originally Posted by Rich.T. View Post
    Hi, proteu.

    A. This method works for someone other than me
    and
    Thanks for the tutorial it worked great for me. I've been wanting to study for my Citrix CCA and this will help out a lot. I was unsuccessful with multiple CentOS installs and this has worked flawlessly for me so far.

  8. #8
    Join Date
    Nov 2008
    Beans
    23
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: Xen Cloud Platform (XCP) on Ubuntu Server 13.10 Saucy Salamander

    Quote Originally Posted by Hex3n View Post
    Thanks for the tutorial it worked great for me. I've been wanting to study for my Citrix CCA and this will help out a lot. I was unsuccessful with multiple CentOS installs and this has worked flawlessly for me so far.
    You're welcome.

    I actually find it a great shame that there is not more of a community around this stuff and that so much of the documentation available (from which this tutorial is pieced together) is so woefully out of date and inadequate. I was very surprised that there was no up-to-date sticky thread on this site to help noobs like myself, for example.

    I'm not in IT at all (just a hobbyist with limited free time), so it's a steep learning curve, believe me! I'm glad that it may be able to help someone acquire a professional qualification.

    All I need to do now (!) is try to get this set-up working with a wider variety of guest OSs (domU) and get VGA and PCI pass-through working as well as the most important thing, which is to get the whole thing adequately firewalled, secured and properly routed by using Openvswitch (which Xenserver uses out-of-the-box) instead of bridged networking (apparently, it works if you get bridging up and running and then swapping to Openvswitch afterwards - see hyperlinks in original post).

    I just wish that I had more time and more importantly patience to really focus on this thing and not get distracted by other projects and distractions.

    Seeing as Ubuntu Server is primarily aimed at the professional user, I am very surprised that Xen is so poorly documented by Canonical as well as the community.

    Having said that: If anyone has any links to more useful and up-to-date information or documentation, which may be of use to anyone in getting XCP/XAPI up and running on the latest versions of Ubuntu, please post them here; I'm not going to be giving up on this stuff any time soon and need all the help I can get.

    My aim, really, is to set up a home server, on a solid Xen-based foundation, whereby I can base various file, email, messaging, media, web and cloud services, for use at home or away, while being able to easily set up virtual OSs to trial various decentralised, secure, open-source projects like those listed here. The flexibility of a bare-metal hyperviser will allow me to make as many mistakes as may occur, without breaking the things that actually do work and having to start everything from scratch all of the time. The ability of XEN to allow the rolling-back of mistakes will be priceless in this scenario.
    “Evolution is a change from a no-howish, untalkaboutable, all-alikeness to a somehowish and in general talkaboutable not-all-alikeness by continuous sticktogetherations and something-elseifications.”
    WILLIAM JAMES (1842-1910)

  9. #9
    Join Date
    Mar 2014
    Beans
    2

    Re: Xen Cloud Platform (XCP) on Ubuntu Server 13.10 Saucy Salamander

    Quote Originally Posted by Rich.T. View Post

    I am very familiar the Error that you report above (Internal error: Xenctrl.Error [ memory ?????? KiB free; to be scrubbed 0 KiB; total ????? MiB]: 1: Operation not permitted) and have encountered this many times over when trying to install an OS from an ISO image. This is why I chose the method described above and used the web/network installer.
    I also have this issue. There is an bug reported on this @ https://bugs.launchpad.net/xcp/+bug/1265214
    Please show me how to work around it, if any of you have the competance.
    BR Hampus Prahl

  10. #10
    Join Date
    Nov 2008
    Beans
    23
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: Xen Cloud Platform (XCP) on Ubuntu Server 13.10 Saucy Salamander

    Quote Originally Posted by hampus-n View Post
    I also have this issue. There is an bug reported on this @ https://bugs.launchpad.net/xcp/+bug/1265214
    Please show me how to work around it, if any of you have the competance.
    BR Hampus Prahl

    Has anyone tried asking questions regarding this on any mail-lists?

    I will try this myself over the next few of days and see if I can ferret out any information.

    No promises.

    I added my voice to the bug report and have provided links below:

    Comment No. 5 On Bug Report.

    Bug Report

    I have a thread at http://ubuntuforums.org/showthread.php?t=2183067 which attempts to collate the disparate information available for setting up XCP/XAPI on Ubuntu,, and simplify and accelerate the install process.

    Hampus Prahl (hampus-n) (above) posted a link on my forum thread to this bug.

    This bug affects me also. It is incredibly frustrating, but it seems that it is not perceived as a problem by any of the Devs concerned, because XenServer works fine with Windows (and other) domU guests.

    I'm sure that it would be an educational experience for me to learn my way around a whole new (for me) open source OS (ie. CentOS/Red Hat/XenServer), but I have very little time available to me to relearn all the basics and switch host OS. I'd much prefer to stick with Ubuntu to this end, as my personal collection of bookmarks/notes/scripts/experiences are all centred around this OS.

    As time allows, I will try to chase down any information around this that I can and report back.

    I will repost this comment to the aforementioned forum thread.

    Rich.
    Last edited by Rich.T.; March 15th, 2014 at 05:21 PM.
    “Evolution is a change from a no-howish, untalkaboutable, all-alikeness to a somehowish and in general talkaboutable not-all-alikeness by continuous sticktogetherations and something-elseifications.”
    WILLIAM JAMES (1842-1910)

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •