Good evening everyone, I am attempting to compile Xen 4.2.1 from source on Ubuntu 12.10 and cannot for the life of me figure out what I am doing wrong. This is the script I wrote that I am running on a brand new install from ubuntu-12.10-server-amd64.iso apt-get update apt-get -y upgrade apt-get -y dist-upgrade reboot (uname -r returns back 3.5.0-23-generic) apt-get install -y build-essential python-dev gettext bin86 bcc iasl uuid-dev libncurses5-dev pkg-config libglib2.0-dev libyajl-dev git gcc-multilib texinfo fakeroot libglib2.0-dev texinfo pciutils pciutils-dev qemu-common gpg --recv-key 57E82BD9 wget http://bits.xensource.com/oss-xen/release/4.2.1/xen-4.2.1.tar.gz.sig wget http://bits.xensource.com/oss-xen/release/4.2.1/xen-4.2.1.tar.gz gpg --verify xen-4.2.1.tar.gz.sig xen-4.2.1.tar.gz tar -vzxf xen-4.2.1.tar.gz cd xen-4.2.1 ./configure make install-xen make install-tools PYTHON_PREFIX_ARGmake install-kernels make install-stubdom make install-docs sed -i ''s/GRUB_DEFAULT=.*\+/GRUB_DEFAULT="Ubuntu GNU\/Linux, with Xen hypervisor"/'' /etc/default/grub sed -i ''s/GRUB_CMDLINE_LINUX=.*\+/GRUB_CMDLINE_LINUX="apparmor=0"/'' /etc/default/grub sed -i ''/GRUB_CMDLINE_LINUX="apparmor=0"/ a\GRUB_CMDLINE_XEN="dom0_mem=384M,max:384M dom0_max_vcpus=1 no-bootscrub"'' /etc/default/grub update-grub echo "none /proc/xen xenfs defaults 0 0" >> /etc/fstab reboot After the reboot - $ ls /proc/xen capabilities privcmd xenbus xsd_kva xsd_port $ cat /proc/xen/capabilities control_d $ xl info libxl: error: libxl.c:87:libxl_ctx_alloc: Is xenstore daemon running? failed to stat /var/run/xenstored.pid: No such file or directory cannot init xl context Any help would be greatly appreciated. _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Good evening everyone, I am attempting to compile Xen 4.2.1 from source on Ubuntu 12.10 and cannot for the life of me figure out what I am doing wrong. This is the script I wrote that I am running on a brand new install from ubuntu-12.10-server-amd64.iso apt-get update apt-get -y upgrade apt-get -y dist-upgrade reboot (uname -r returns back 3.5.0-23-generic) apt-get install -y build-essential python-dev gettext bin86 bcc iasl uuid-dev libncurses5-dev pkg-config libglib2.0-dev libyajl-dev git gcc-multilib texinfo fakeroot libglib2.0-dev texinfo pciutils pciutils-dev qemu-common gpg --recv-key 57E82BD9 wget http://bits.xensource.com/oss-xen/release/4.2.1/xen-4.2.1.tar.gz.sig wget http://bits.xensource.com/oss-xen/release/4.2.1/xen-4.2.1.tar.gz gpg --verify xen-4.2.1.tar.gz.sig xen-4.2.1.tar.gz tar -vzxf xen-4.2.1.tar.gz cd xen-4.2.1 ./configure make install-xen make install-tools PYTHON_PREFIX_ARGmake install-kernels make install-stubdom make install-docs sed -i ''s/GRUB_DEFAULT=.*\+/GRUB_DEFAULT="Ubuntu GNU\/Linux, with Xen hypervisor"/'' /etc/default/grub sed -i ''s/GRUB_CMDLINE_LINUX=.*\+/GRUB_CMDLINE_LINUX="apparmor=0"/'' /etc/default/grub sed -i ''/GRUB_CMDLINE_LINUX="apparmor=0"/ a\GRUB_CMDLINE_XEN="dom0_mem=384M,max:384M dom0_max_vcpus=1 no-bootscrub"'' /etc/default/grub update-grub echo "none /proc/xen xenfs defaults 0 0" >> /etc/fstab reboot After the reboot - $ ls /proc/xen capabilities privcmd xenbus xsd_kva xsd_port $ cat /proc/xen/capabilities control_d $ xl info libxl: error: libxl.c:87:libxl_ctx_alloc: Is xenstore daemon running? failed to stat /var/run/xenstored.pid: No such file or directory cannot init xl context Any help would be greatly appreciated. _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi, have you tryed the command sudo service xencommons start ? Giorgio On Sat, Feb 16, 2013 at 10:33:56PM -0800, Daniel Farrell wrote:> Good evening everyone, > > I am attempting to compile Xen 4.2.1 from source on Ubuntu 12.10 and cannot for the life of me figure out what I am doing wrong. This is the script I wrote that I am running on a brand new install from ubuntu-12.10-server-amd64.iso > > apt-get update > apt-get -y upgrade > apt-get -y dist-upgrade > reboot > (uname -r returns back 3.5.0-23-generic) > > apt-get install -y build-essential python-dev gettext bin86 bcc iasl uuid-dev libncurses5-dev pkg-config libglib2.0-dev libyajl-dev git gcc-multilib texinfo fakeroot libglib2.0-dev texinfo pciutils pciutils-dev qemu-common > gpg --recv-key 57E82BD9 > wget http://bits.xensource.com/oss-xen/release/4.2.1/xen-4.2.1.tar.gz.sig > wget http://bits.xensource.com/oss-xen/release/4.2.1/xen-4.2.1.tar.gz > gpg --verify xen-4.2.1.tar.gz.sig xen-4.2.1.tar.gz > tar -vzxf xen-4.2.1.tar.gz > cd xen-4.2.1 > ./configure > make install-xen > make install-tools PYTHON_PREFIX_ARG> make install-kernels > make install-stubdom > make install-docs > sed -i ''s/GRUB_DEFAULT=.*\+/GRUB_DEFAULT="Ubuntu GNU\/Linux, with Xen hypervisor"/'' /etc/default/grub > sed -i ''s/GRUB_CMDLINE_LINUX=.*\+/GRUB_CMDLINE_LINUX="apparmor=0"/'' /etc/default/grub > sed -i ''/GRUB_CMDLINE_LINUX="apparmor=0"/ a\GRUB_CMDLINE_XEN="dom0_mem=384M,max:384M dom0_max_vcpus=1 no-bootscrub"'' /etc/default/grub > update-grub > echo "none /proc/xen xenfs defaults 0 0" >> /etc/fstab > reboot > > After the reboot - > > $ ls /proc/xen > capabilities privcmd xenbus xsd_kva xsd_port > > $ cat /proc/xen/capabilities > control_d > > $ xl info > libxl: error: libxl.c:87:libxl_ctx_alloc: Is xenstore daemon running? > failed to stat /var/run/xenstored.pid: No such file or directory > cannot init xl context > > Any help would be greatly appreciated. >> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users
I think you missing the actuall make process in your script.. like make the individual packages or do a ''make world''.. If you are on a Debian based OS (as Ubuntu basically is), I found http://wiki.xen.org/wiki/Comprehensive_Xen_Debian_Wheezy_PCI_Passthrough_Tutorial (compiling xen section) very helpfull and building deb packages is much easier in the long term then normal build if you are switching xen versions later..
On 17/02/13 06:19, Daniel Farrell wrote:> Good evening everyone, > > I am attempting to compile Xen 4.2.1 from source on Ubuntu 12.10 and > cannot for the life of me figure out what I am doing wrong. This is > the script I wrote that I am running on a brand new install > from ubuntu-12.10-server-amd64.iso > > apt-get update > apt-get -y upgrade > apt-get -y dist-upgrade > reboot > /(uname -r returns back 3.5.0-23-generic)/ > > apt-get install -y build-essential python-dev gettext bin86 bcc iasl > uuid-dev libncurses5-dev pkg-config libglib2.0-dev libyajl-dev git > gcc-multilib texinfo fakeroot libglib2.0-dev texinfo pciutils > pciutils-dev qemu-common > gpg --recv-key 57E82BD9 > wget http://bits.xensource.com/oss-xen/release/4.2.1/xen-4.2.1.tar.gz.sig > wget http://bits.xensource.com/oss-xen/release/4.2.1/xen-4.2.1.tar.gz > gpg --verify xen-4.2.1.tar.gz.sig xen-4.2.1.tar.gz > tar -vzxf xen-4.2.1.tar.gz > cd xen-4.2.1 > ./configure > make install-xen > make install-tools PYTHON_PREFIX_ARG> make install-kernels > make install-stubdom > make install-docs > sed -i ''s/GRUB_DEFAULT=.*\+/GRUB_DEFAULT="Ubuntu GNU\/Linux, with Xen > hypervisor"/'' /etc/default/grub > sed -i ''s/GRUB_CMDLINE_LINUX=.*\+/GRUB_CMDLINE_LINUX="apparmor=0"/'' > /etc/default/grub > sed -i ''/GRUB_CMDLINE_LINUX="apparmor=0"/ > a\GRUB_CMDLINE_XEN="dom0_mem=384M,max:384M dom0_max_vcpus=1 > no-bootscrub"'' /etc/default/grub > update-grub > echo "none /proc/xen xenfs defaults 0 0" >> /etc/fstab > reboot > > After the reboot - > > $ ls /proc/xen > capabilities privcmd xenbus xsd_kva xsd_port > > $ cat /proc/xen/capabilities > control_d > > $ xl info > libxl: error: libxl.c:87:libxl_ctx_alloc: Is xenstore daemon running? > failed to stat /var/run/xenstored.pid: No such file or directory > cannot init xl context > > Any help would be greatly appreciated. > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-usersDid you start the xencommons service?
Thanks for the link. Figured it out On Feb 17, 2013, at 8:01 AM, Matthias <matthias.kannenberg@googlemail.com> wrote:> I think you missing the actuall make process in your script.. like > make the individual packages or do a ''make world''.. > > If you are on a Debian based OS (as Ubuntu basically is), I found > http://wiki.xen.org/wiki/Comprehensive_Xen_Debian_Wheezy_PCI_Passthrough_Tutorial > (compiling xen section) very helpfull and building deb packages is > much easier in the long term then normal build if you are switching > xen versions later..
On Sun, 2013-02-17 at 06:33 +0000, Daniel Farrell wrote:> > > $ xl info libxl: error: libxl.c:87:libxl_ctx_alloc: Is xenstore daemon > running? > failed to stat /var/run/xenstored.pid: No such file or directory > cannot init xl contextLooks like you didn''t enable the xencommons initscript, try: update-rc.d -f xencommons start 70 2 3 4 5 . stop 10 0 1 6 . Ian.