Hello ! I''m trying to run Xen on a EC2 AMI debian-6.0-squeeze-base-x86_64-20110417 (ami-35b68141) Following this how-to http://www.howtoforge.com/paravirtualization-with-xen-4.0-on-debian-squeeze-amd64 After installing the packages, I get : uname -a Linux ip-10-241-22-60 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux uname -r 2.6.32-5-xen-amd64 Then I do : mv /etc/grub.d/10_linux /etc/grub.d/50_linux update-grub2 * * * * After I reboot but I get this when calling xm : xm dmesg WARING! Can''t find version 3.4 of xen utils, fallback to default version! Error: Unable to connect to xend: No such file or directory. Is xend running? When I execute xend I get : xend WARING! Can''t find version 3.4 of xen utils, fallback to default version! ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory) Traceback (most recent call last): File "/usr/lib/xen-default/bin/xend", line 38, in <module> from xen.xend.server import SrvDaemon File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", line 26, in <module> import relocate File "/usr/lib/xen-4.0/lib/python/xen/xend/server/relocate.py", line 28, in <module> from xen.xend import XendDomain File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 36, in <module> from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo File "/usr/lib/xen-4.0/lib/python/xen/xend/XendCheckpoint.py", line 20, in <module> from xen.xend import balloon, sxp, image File "/usr/lib/xen-4.0/lib/python/xen/xend/image.py", line 46, in <module> xc = xen.lowlevel.xc.xc() xen.lowlevel.xc.Error: (1, ''Internal error'', ''Could not obtain handle on privileged command interface (2 = No such file or directory)'') Does this has to do with the kernel I''m booting ? My /boot looks like this : System.map-2.6.32-5-xen-amd64 initrd.img-2.6.32-5-xen-amd64 config-2.6.32-5-xen-amd64 vmlinuz-2.6.32-5-xen-amd64 grub xen-4.0-amd64.gz And my menu.lst looks like this : # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/40_custom ### default 0 timeout 1 title 2.6.32-5-xen-amd64 root (hd0) kernel /boot/vmlinuz-2.6.32-5-xen-amd64 root=/dev/xvda1 ro initrd /boot/initrd.img-2.6.32-5-xen-amd64 ### END /etc/grub.d/40_custom ### I have been trying to get around this but ... nothing works ! Any help would be much appreciated, thanks in advance ! -Xavier _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
I may be wrong, but I''m fairly sure you''re not supposed to run xen in a vm. I believe amazon uses xen for ec2, so you''re basically trying to run xen as a vm under xen. Russ On Apr 19, 2012 8:07 AM, "Xavier Cardil" <xavier@eo10.net> wrote:> Hello ! I''m trying to run Xen on a EC2 AMI > > > debian-6.0-squeeze-base-x86_64-20110417 (ami-35b68141) > > > Following this how-to > http://www.howtoforge.com/paravirtualization-with-xen-4.0-on-debian-squeeze-amd64 > > After installing the packages, I get : > > uname -a > Linux ip-10-241-22-60 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC > 2011 x86_64 GNU/Linux > > uname -r > 2.6.32-5-xen-amd64 > > Then I do : mv /etc/grub.d/10_linux /etc/grub.d/50_linux > update-grub2 > * > * > * > * > After I reboot but I get this when calling xm : > > xm dmesg > WARING! Can''t find version 3.4 of xen utils, fallback to default version! > Error: Unable to connect to xend: No such file or directory. Is xend > running? > > When I execute xend I get : > > xend > WARING! Can''t find version 3.4 of xen utils, fallback to default version! > ERROR Internal error: Could not obtain handle on privileged command > interface (2 = No such file or directory) > Traceback (most recent call last): > File "/usr/lib/xen-default/bin/xend", line 38, in <module> > from xen.xend.server import SrvDaemon > File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", line > 26, in <module> > import relocate > File "/usr/lib/xen-4.0/lib/python/xen/xend/server/relocate.py", line 28, > in <module> > from xen.xend import XendDomain > File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 36, in > <module> > from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo > File "/usr/lib/xen-4.0/lib/python/xen/xend/XendCheckpoint.py", line 20, > in <module> > from xen.xend import balloon, sxp, image > File "/usr/lib/xen-4.0/lib/python/xen/xend/image.py", line 46, in > <module> > xc = xen.lowlevel.xc.xc() > xen.lowlevel.xc.Error: (1, ''Internal error'', ''Could not obtain handle on > privileged command interface (2 = No such file or directory)'') > > > Does this has to do with the kernel I''m booting ? > > My /boot looks like this : > > System.map-2.6.32-5-xen-amd64 > > initrd.img-2.6.32-5-xen-amd64 > > config-2.6.32-5-xen-amd64 > > vmlinuz-2.6.32-5-xen-amd64 > > grub > > xen-4.0-amd64.gz > > And my menu.lst looks like this : > > # > # DO NOT EDIT THIS FILE > # > # It is automatically generated by grub-mkconfig using templates > # from /etc/grub.d and settings from /etc/default/grub > # > > ### BEGIN /etc/grub.d/40_custom ### > default 0 > timeout 1 > title 2.6.32-5-xen-amd64 > root (hd0) > kernel /boot/vmlinuz-2.6.32-5-xen-amd64 root=/dev/xvda1 ro > initrd /boot/initrd.img-2.6.32-5-xen-amd64 > ### END /etc/grub.d/40_custom ### > > > I have been trying to get around this but ... nothing works ! > > Any help would be much appreciated, thanks in advance ! > > -Xavier > > > > > > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
From my experience with squeeze, this sounds like it isn''t loading the qemu-dm portion. Can you post a copy of your /boot/grub/grub.cfg? Thanks Shane On Thu, Apr 19, 2012 at 9:28 AM, Xavier Cardil <cardil.xavier@gmail.com>wrote:> Hello Shane ! Yes, all packages installed. Is Xen-4.0-amd64.gz a bootable > kernel ? Right now, the system si booting this one : > vmlinuz-2.6.32-5-xen-amd64 and this initrd: > initrd.img-2.6.32-5-xen-amd64 as you can see on the menu.lst file. > > On Thu, Apr 19, 2012 at 4:48 PM, Shane Johnson <sdj@rasmussenequipment.com > > wrote: > >> Xavier, >> First place I would start it running the following : >> >> aptitude search xen-utils >> >> Make sure xen-utils is installed (i in the far left column) >> >> aptitude search qemu-dm >> >> again making sure the package is installed. >> >> If both packages are installed I would make sure you are booting off the >> the version that says : >> >> Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64 >> >> Shane >> >> >> On Thu, Apr 19, 2012 at 6:07 AM, Xavier Cardil <xavier@eo10.net> wrote: >> >>> Hello ! I''m trying to run Xen on a EC2 AMI >>> >>> >>> debian-6.0-squeeze-base-x86_64-20110417 (ami-35b68141) >>> >>> >>> Following this how-to >>> http://www.howtoforge.com/paravirtualization-with-xen-4.0-on-debian-squeeze-amd64 >>> >>> After installing the packages, I get : >>> >>> uname -a >>> Linux ip-10-241-22-60 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC >>> 2011 x86_64 GNU/Linux >>> >>> uname -r >>> 2.6.32-5-xen-amd64 >>> >>> Then I do : mv /etc/grub.d/10_linux /etc/grub.d/50_linux >>> update-grub2 >>> * >>> * >>> * >>> * >>> After I reboot but I get this when calling xm : >>> >>> xm dmesg >>> WARING! Can''t find version 3.4 of xen utils, fallback to default >>> version! >>> Error: Unable to connect to xend: No such file or directory. Is xend >>> running? >>> >>> When I execute xend I get : >>> >>> xend >>> WARING! Can''t find version 3.4 of xen utils, fallback to default >>> version! >>> ERROR Internal error: Could not obtain handle on privileged command >>> interface (2 = No such file or directory) >>> Traceback (most recent call last): >>> File "/usr/lib/xen-default/bin/xend", line 38, in <module> >>> from xen.xend.server import SrvDaemon >>> File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", line >>> 26, in <module> >>> import relocate >>> File "/usr/lib/xen-4.0/lib/python/xen/xend/server/relocate.py", line >>> 28, in <module> >>> from xen.xend import XendDomain >>> File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 36, in >>> <module> >>> from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo >>> File "/usr/lib/xen-4.0/lib/python/xen/xend/XendCheckpoint.py", line >>> 20, in <module> >>> from xen.xend import balloon, sxp, image >>> File "/usr/lib/xen-4.0/lib/python/xen/xend/image.py", line 46, in >>> <module> >>> xc = xen.lowlevel.xc.xc() >>> xen.lowlevel.xc.Error: (1, ''Internal error'', ''Could not obtain handle on >>> privileged command interface (2 = No such file or directory)'') >>> >>> >>> Does this has to do with the kernel I''m booting ? >>> >>> My /boot looks like this : >>> >>> System.map-2.6.32-5-xen-amd64 >>> >>> initrd.img-2.6.32-5-xen-amd64 >>> >>> config-2.6.32-5-xen-amd64 >>> >>> vmlinuz-2.6.32-5-xen-amd64 >>> >>> grub >>> >>> xen-4.0-amd64.gz >>> >>> And my menu.lst looks like this : >>> >>> # >>> # DO NOT EDIT THIS FILE >>> # >>> # It is automatically generated by grub-mkconfig using templates >>> # from /etc/grub.d and settings from /etc/default/grub >>> # >>> >>> ### BEGIN /etc/grub.d/40_custom ### >>> default 0 >>> timeout 1 >>> title 2.6.32-5-xen-amd64 >>> root (hd0) >>> kernel /boot/vmlinuz-2.6.32-5-xen-amd64 root=/dev/xvda1 ro >>> initrd /boot/initrd.img-2.6.32-5-xen-amd64 >>> ### END /etc/grub.d/40_custom ### >>> >>> >>> I have been trying to get around this but ... nothing works ! >>> >>> Any help would be much appreciated, thanks in advance ! >>> >>> -Xavier >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xen.org >>> http://lists.xen.org/xen-users >>> >> >> >> >> -- >> Shane D. Johnson >> IT Administrator >> Rasmussen Equipment >> >> >> >-- Shane D. Johnson IT Administrator Rasmussen Equipment _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Xavier, Yours looks considerably different from mine : menuentry ''Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64'' --class debian --class gnu-linux --class gnu --class os --class xen { insmod lvm insmod part_msdos insmod part_msdos insmod ext2 set root=''(vg-sys)'' search --no-floppy --fs-uuid --set bf38b210-e546-45d5-b10d-722f6743761b echo ''Loading Linux 2.6.32-5-xen-amd64 ...'' multiboot /boot/xen-4.0-amd64.gz placeholder module /boot/vmlinuz-2.6.32-5-xen-amd64 placeholder root=/dev/mapper/vg-sys ro quiet echo ''Loading initial ramdisk ...'' module /boot/initrd.img-2.6.32-5-xen-amd64 } I don''t know if it''s from a different version or grub(I am running grub2) or if your grub isn''t picking up the other kernel options when update-grub is run. I would look into those areas first. I am also wondering if it might be a issue attributed to running this off of a already virtualized set up from Amazon. I would look through your logs to see if there are any error messages about unsupported cpu or other hardware. I am unfortunately running into the limits of my experience with this. I have two physical servers currently running squeeze and Xen and are working pretty good, but I am also looking at transitioning to a different distro because of a few things that the older kernels from Debian just are not able to provide. Something I had to learn early on posting on this list, and still have issues remembering. This list doesn''t provide the list itself as the sender, just the person that posted or replied. Please use reply-all so that all of the correspondence can be posted to the archive so that if someone in the future is searching out a similar problem the will have that to use as a resource. Thank you. Shane On Thu, Apr 19, 2012 at 10:18 AM, Xavier Cardil <cardil.xavier@gmail.com>wrote:> Of coruse Shane, here you are : > > # > # DO NOT EDIT THIS FILE > # > # It is automatically generated by grub-mkconfig using templates > # from /etc/grub.d and settings from /etc/default/grub > # > > ### BEGIN /etc/grub.d/40_custom ### > default 0 > timeout 1 > title 2.6.32-5-xen-amd64 > root (hd0) > kernel /boot/vmlinuz-2.6.32-5-xen-amd64 root=/dev/xvda1 ro > initrd /boot/initrd.img-2.6.32-5-xen-amd64 > ### END /etc/grub.d/40_custom ### > > > I created a new AMI now and I just installed the packages and copied the > grub.cfg to show it to you ... > > > -Xavier > > On Thu, Apr 19, 2012 at 6:08 PM, Shane Johnson <sdj@rasmussenequipment.com > > wrote: > >> From my experience with squeeze, this sounds like it isn''t loading the >> qemu-dm portion. Can you post a copy of your /boot/grub/grub.cfg? >> >> Thanks >> Shane >> >> >> On Thu, Apr 19, 2012 at 9:28 AM, Xavier Cardil <cardil.xavier@gmail.com>wrote: >> >>> Hello Shane ! Yes, all packages installed. Is Xen-4.0-amd64.gz a >>> bootable kernel ? Right now, the system si booting this one : >>> vmlinuz-2.6.32-5-xen-amd64 and this initrd: >>> initrd.img-2.6.32-5-xen-amd64 as you can see on the menu.lst file. >>> >>> On Thu, Apr 19, 2012 at 4:48 PM, Shane Johnson < >>> sdj@rasmussenequipment.com> wrote: >>> >>>> Xavier, >>>> First place I would start it running the following : >>>> >>>> aptitude search xen-utils >>>> >>>> Make sure xen-utils is installed (i in the far left column) >>>> >>>> aptitude search qemu-dm >>>> >>>> again making sure the package is installed. >>>> >>>> If both packages are installed I would make sure you are booting off >>>> the the version that says : >>>> >>>> Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64 >>>> >>>> Shane >>>> >>>> >>>> On Thu, Apr 19, 2012 at 6:07 AM, Xavier Cardil <xavier@eo10.net>wrote: >>>> >>>>> Hello ! I''m trying to run Xen on a EC2 AMI >>>>> >>>>> >>>>> debian-6.0-squeeze-base-x86_64-20110417 (ami-35b68141) >>>>> >>>>> >>>>> Following this how-to >>>>> http://www.howtoforge.com/paravirtualization-with-xen-4.0-on-debian-squeeze-amd64 >>>>> >>>>> After installing the packages, I get : >>>>> >>>>> uname -a >>>>> Linux ip-10-241-22-60 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC >>>>> 2011 x86_64 GNU/Linux >>>>> >>>>> uname -r >>>>> 2.6.32-5-xen-amd64 >>>>> >>>>> Then I do : mv /etc/grub.d/10_linux /etc/grub.d/50_linux >>>>> update-grub2 >>>>> * >>>>> * >>>>> * >>>>> * >>>>> After I reboot but I get this when calling xm : >>>>> >>>>> xm dmesg >>>>> WARING! Can''t find version 3.4 of xen utils, fallback to default >>>>> version! >>>>> Error: Unable to connect to xend: No such file or directory. Is xend >>>>> running? >>>>> >>>>> When I execute xend I get : >>>>> >>>>> xend >>>>> WARING! Can''t find version 3.4 of xen utils, fallback to default >>>>> version! >>>>> ERROR Internal error: Could not obtain handle on privileged command >>>>> interface (2 = No such file or directory) >>>>> Traceback (most recent call last): >>>>> File "/usr/lib/xen-default/bin/xend", line 38, in <module> >>>>> from xen.xend.server import SrvDaemon >>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", >>>>> line 26, in <module> >>>>> import relocate >>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/server/relocate.py", line >>>>> 28, in <module> >>>>> from xen.xend import XendDomain >>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 36, >>>>> in <module> >>>>> from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo >>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/XendCheckpoint.py", line >>>>> 20, in <module> >>>>> from xen.xend import balloon, sxp, image >>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/image.py", line 46, in >>>>> <module> >>>>> xc = xen.lowlevel.xc.xc() >>>>> xen.lowlevel.xc.Error: (1, ''Internal error'', ''Could not obtain handle >>>>> on privileged command interface (2 = No such file or directory)'') >>>>> >>>>> >>>>> Does this has to do with the kernel I''m booting ? >>>>> >>>>> My /boot looks like this : >>>>> >>>>> System.map-2.6.32-5-xen-amd64 >>>>> >>>>> initrd.img-2.6.32-5-xen-amd64 >>>>> >>>>> config-2.6.32-5-xen-amd64 >>>>> >>>>> vmlinuz-2.6.32-5-xen-amd64 >>>>> >>>>> grub >>>>> >>>>> xen-4.0-amd64.gz >>>>> >>>>> And my menu.lst looks like this : >>>>> >>>>> # >>>>> # DO NOT EDIT THIS FILE >>>>> # >>>>> # It is automatically generated by grub-mkconfig using templates >>>>> # from /etc/grub.d and settings from /etc/default/grub >>>>> # >>>>> >>>>> ### BEGIN /etc/grub.d/40_custom ### >>>>> default 0 >>>>> timeout 1 >>>>> title 2.6.32-5-xen-amd64 >>>>> root (hd0) >>>>> kernel /boot/vmlinuz-2.6.32-5-xen-amd64 root=/dev/xvda1 ro >>>>> initrd /boot/initrd.img-2.6.32-5-xen-amd64 >>>>> ### END /etc/grub.d/40_custom ### >>>>> >>>>> >>>>> I have been trying to get around this but ... nothing works ! >>>>> >>>>> Any help would be much appreciated, thanks in advance ! >>>>> >>>>> -Xavier >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Xen-users mailing list >>>>> Xen-users@lists.xen.org >>>>> http://lists.xen.org/xen-users >>>>> >>>> >>>> >>>> >>>> -- >>>> Shane D. Johnson >>>> IT Administrator >>>> Rasmussen Equipment >>>> >>>> >>>> >>> >> >> >> -- >> Shane D. Johnson >> IT Administrator >> Rasmussen Equipment >> >> >> >-- Shane D. Johnson IT Administrator Rasmussen Equipment _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi Shane, I think I got the answer ... http://serverfault.com/questions/128145/linux-virtualization-options-on-ec2 :) Thank you all for your time ! -Xavier On Thu, Apr 19, 2012 at 7:43 PM, Shane Johnson <sdj@rasmussenequipment.com>wrote:> Xavier, > Yours looks considerably different from mine : > > menuentry ''Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN > 4.0-amd64'' --class debian --class gnu-linux --class gnu --class os --class > xen { > insmod lvm > insmod part_msdos > insmod part_msdos > insmod ext2 > set root=''(vg-sys)'' > search --no-floppy --fs-uuid --set bf38b210-e546-45d5-b10d-722f6743761b > echo ''Loading Linux 2.6.32-5-xen-amd64 ...'' > multiboot /boot/xen-4.0-amd64.gz placeholder > module /boot/vmlinuz-2.6.32-5-xen-amd64 placeholder > root=/dev/mapper/vg-sys ro quiet > echo ''Loading initial ramdisk ...'' > module /boot/initrd.img-2.6.32-5-xen-amd64 > } > > I don''t know if it''s from a different version or grub(I am running grub2) > or if your grub isn''t picking up the other kernel options when update-grub > is run. I would look into those areas first. > > I am also wondering if it might be a issue attributed to running this off > of a already virtualized set up from Amazon. I would look through your > logs to see if there are any error messages about unsupported cpu or other > hardware. > > I am unfortunately running into the limits of my experience with this. I > have two physical servers currently running squeeze and Xen and are working > pretty good, but I am also looking at transitioning to a different distro > because of a few things that the older kernels from Debian just are not > able to provide. > > Something I had to learn early on posting on this list, and still have > issues remembering. This list doesn''t provide the list itself as the > sender, just the person that posted or replied. Please use reply-all so > that all of the correspondence can be posted to the archive so that if > someone in the future is searching out a similar problem the will have that > to use as a resource. > > Thank you. > > Shane > > On Thu, Apr 19, 2012 at 10:18 AM, Xavier Cardil <cardil.xavier@gmail.com>wrote: > >> Of coruse Shane, here you are : >> >> # >> # DO NOT EDIT THIS FILE >> # >> # It is automatically generated by grub-mkconfig using templates >> # from /etc/grub.d and settings from /etc/default/grub >> # >> >> ### BEGIN /etc/grub.d/40_custom ### >> default 0 >> timeout 1 >> title 2.6.32-5-xen-amd64 >> root (hd0) >> kernel /boot/vmlinuz-2.6.32-5-xen-amd64 root=/dev/xvda1 ro >> initrd /boot/initrd.img-2.6.32-5-xen-amd64 >> ### END /etc/grub.d/40_custom ### >> >> >> I created a new AMI now and I just installed the packages and copied the >> grub.cfg to show it to you ... >> >> >> -Xavier >> >> On Thu, Apr 19, 2012 at 6:08 PM, Shane Johnson < >> sdj@rasmussenequipment.com> wrote: >> >>> From my experience with squeeze, this sounds like it isn''t loading the >>> qemu-dm portion. Can you post a copy of your /boot/grub/grub.cfg? >>> >>> Thanks >>> Shane >>> >>> >>> On Thu, Apr 19, 2012 at 9:28 AM, Xavier Cardil <cardil.xavier@gmail.com>wrote: >>> >>>> Hello Shane ! Yes, all packages installed. Is Xen-4.0-amd64.gz a >>>> bootable kernel ? Right now, the system si booting this one : >>>> vmlinuz-2.6.32-5-xen-amd64 and this initrd: >>>> initrd.img-2.6.32-5-xen-amd64 as you can see on the menu.lst file. >>>> >>>> On Thu, Apr 19, 2012 at 4:48 PM, Shane Johnson < >>>> sdj@rasmussenequipment.com> wrote: >>>> >>>>> Xavier, >>>>> First place I would start it running the following : >>>>> >>>>> aptitude search xen-utils >>>>> >>>>> Make sure xen-utils is installed (i in the far left column) >>>>> >>>>> aptitude search qemu-dm >>>>> >>>>> again making sure the package is installed. >>>>> >>>>> If both packages are installed I would make sure you are booting off >>>>> the the version that says : >>>>> >>>>> Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64 >>>>> >>>>> Shane >>>>> >>>>> >>>>> On Thu, Apr 19, 2012 at 6:07 AM, Xavier Cardil <xavier@eo10.net>wrote: >>>>> >>>>>> Hello ! I''m trying to run Xen on a EC2 AMI >>>>>> >>>>>> >>>>>> debian-6.0-squeeze-base-x86_64-20110417 (ami-35b68141) >>>>>> >>>>>> >>>>>> Following this how-to >>>>>> http://www.howtoforge.com/paravirtualization-with-xen-4.0-on-debian-squeeze-amd64 >>>>>> >>>>>> After installing the packages, I get : >>>>>> >>>>>> uname -a >>>>>> Linux ip-10-241-22-60 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 >>>>>> UTC 2011 x86_64 GNU/Linux >>>>>> >>>>>> uname -r >>>>>> 2.6.32-5-xen-amd64 >>>>>> >>>>>> Then I do : mv /etc/grub.d/10_linux /etc/grub.d/50_linux >>>>>> update-grub2 >>>>>> * >>>>>> * >>>>>> * >>>>>> * >>>>>> After I reboot but I get this when calling xm : >>>>>> >>>>>> xm dmesg >>>>>> WARING! Can''t find version 3.4 of xen utils, fallback to default >>>>>> version! >>>>>> Error: Unable to connect to xend: No such file or directory. Is xend >>>>>> running? >>>>>> >>>>>> When I execute xend I get : >>>>>> >>>>>> xend >>>>>> WARING! Can''t find version 3.4 of xen utils, fallback to default >>>>>> version! >>>>>> ERROR Internal error: Could not obtain handle on privileged command >>>>>> interface (2 = No such file or directory) >>>>>> Traceback (most recent call last): >>>>>> File "/usr/lib/xen-default/bin/xend", line 38, in <module> >>>>>> from xen.xend.server import SrvDaemon >>>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", >>>>>> line 26, in <module> >>>>>> import relocate >>>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/server/relocate.py", >>>>>> line 28, in <module> >>>>>> from xen.xend import XendDomain >>>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 36, >>>>>> in <module> >>>>>> from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo >>>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/XendCheckpoint.py", line >>>>>> 20, in <module> >>>>>> from xen.xend import balloon, sxp, image >>>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/image.py", line 46, in >>>>>> <module> >>>>>> xc = xen.lowlevel.xc.xc() >>>>>> xen.lowlevel.xc.Error: (1, ''Internal error'', ''Could not obtain handle >>>>>> on privileged command interface (2 = No such file or directory)'') >>>>>> >>>>>> >>>>>> Does this has to do with the kernel I''m booting ? >>>>>> >>>>>> My /boot looks like this : >>>>>> >>>>>> System.map-2.6.32-5-xen-amd64 >>>>>> >>>>>> initrd.img-2.6.32-5-xen-amd64 >>>>>> >>>>>> config-2.6.32-5-xen-amd64 >>>>>> >>>>>> vmlinuz-2.6.32-5-xen-amd64 >>>>>> >>>>>> grub >>>>>> >>>>>> xen-4.0-amd64.gz >>>>>> >>>>>> And my menu.lst looks like this : >>>>>> >>>>>> # >>>>>> # DO NOT EDIT THIS FILE >>>>>> # >>>>>> # It is automatically generated by grub-mkconfig using templates >>>>>> # from /etc/grub.d and settings from /etc/default/grub >>>>>> # >>>>>> >>>>>> ### BEGIN /etc/grub.d/40_custom ### >>>>>> default 0 >>>>>> timeout 1 >>>>>> title 2.6.32-5-xen-amd64 >>>>>> root (hd0) >>>>>> kernel /boot/vmlinuz-2.6.32-5-xen-amd64 root=/dev/xvda1 ro >>>>>> initrd /boot/initrd.img-2.6.32-5-xen-amd64 >>>>>> ### END /etc/grub.d/40_custom ### >>>>>> >>>>>> >>>>>> I have been trying to get around this but ... nothing works ! >>>>>> >>>>>> Any help would be much appreciated, thanks in advance ! >>>>>> >>>>>> -Xavier >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Xen-users mailing list >>>>>> Xen-users@lists.xen.org >>>>>> http://lists.xen.org/xen-users >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Shane D. Johnson >>>>> IT Administrator >>>>> Rasmussen Equipment >>>>> >>>>> >>>>> >>>> >>> >>> >>> -- >>> Shane D. Johnson >>> IT Administrator >>> Rasmussen Equipment >>> >>> >>> >> > > > -- > Shane D. Johnson > IT Administrator > Rasmussen Equipment > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Xavier I was afraid that is what you where up against. Thank you for posting your resolution. Shane On Fri, Apr 20, 2012 at 1:41 AM, Xavier Cardil <cardil.xavier@gmail.com>wrote:> Hi Shane, I think I got the answer ... > http://serverfault.com/questions/128145/linux-virtualization-options-on-ec2 > > > :) Thank you all for your time ! > > -Xavier > > On Thu, Apr 19, 2012 at 7:43 PM, Shane Johnson <sdj@rasmussenequipment.com > > wrote: > >> Xavier, >> Yours looks considerably different from mine : >> >> menuentry ''Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN >> 4.0-amd64'' --class debian --class gnu-linux --class gnu --class os --class >> xen { >> insmod lvm >> insmod part_msdos >> insmod part_msdos >> insmod ext2 >> set root=''(vg-sys)'' >> search --no-floppy --fs-uuid --set bf38b210-e546-45d5-b10d-722f6743761b >> echo ''Loading Linux 2.6.32-5-xen-amd64 ...'' >> multiboot /boot/xen-4.0-amd64.gz placeholder >> module /boot/vmlinuz-2.6.32-5-xen-amd64 placeholder >> root=/dev/mapper/vg-sys ro quiet >> echo ''Loading initial ramdisk ...'' >> module /boot/initrd.img-2.6.32-5-xen-amd64 >> } >> >> I don''t know if it''s from a different version or grub(I am running grub2) >> or if your grub isn''t picking up the other kernel options when update-grub >> is run. I would look into those areas first. >> >> I am also wondering if it might be a issue attributed to running this off >> of a already virtualized set up from Amazon. I would look through your >> logs to see if there are any error messages about unsupported cpu or other >> hardware. >> >> I am unfortunately running into the limits of my experience with this. I >> have two physical servers currently running squeeze and Xen and are working >> pretty good, but I am also looking at transitioning to a different distro >> because of a few things that the older kernels from Debian just are not >> able to provide. >> >> Something I had to learn early on posting on this list, and still have >> issues remembering. This list doesn''t provide the list itself as the >> sender, just the person that posted or replied. Please use reply-all so >> that all of the correspondence can be posted to the archive so that if >> someone in the future is searching out a similar problem the will have that >> to use as a resource. >> >> Thank you. >> >> Shane >> >> On Thu, Apr 19, 2012 at 10:18 AM, Xavier Cardil <cardil.xavier@gmail.com>wrote: >> >>> Of coruse Shane, here you are : >>> >>> # >>> # DO NOT EDIT THIS FILE >>> # >>> # It is automatically generated by grub-mkconfig using templates >>> # from /etc/grub.d and settings from /etc/default/grub >>> # >>> >>> ### BEGIN /etc/grub.d/40_custom ### >>> default 0 >>> timeout 1 >>> title 2.6.32-5-xen-amd64 >>> root (hd0) >>> kernel /boot/vmlinuz-2.6.32-5-xen-amd64 root=/dev/xvda1 ro >>> initrd /boot/initrd.img-2.6.32-5-xen-amd64 >>> ### END /etc/grub.d/40_custom ### >>> >>> >>> I created a new AMI now and I just installed the packages and copied the >>> grub.cfg to show it to you ... >>> >>> >>> -Xavier >>> >>> On Thu, Apr 19, 2012 at 6:08 PM, Shane Johnson < >>> sdj@rasmussenequipment.com> wrote: >>> >>>> From my experience with squeeze, this sounds like it isn''t loading the >>>> qemu-dm portion. Can you post a copy of your /boot/grub/grub.cfg? >>>> >>>> Thanks >>>> Shane >>>> >>>> >>>> On Thu, Apr 19, 2012 at 9:28 AM, Xavier Cardil <cardil.xavier@gmail.com >>>> > wrote: >>>> >>>>> Hello Shane ! Yes, all packages installed. Is Xen-4.0-amd64.gz a >>>>> bootable kernel ? Right now, the system si booting this one : >>>>> vmlinuz-2.6.32-5-xen-amd64 and this initrd: >>>>> initrd.img-2.6.32-5-xen-amd64 as you can see on the menu.lst file. >>>>> >>>>> On Thu, Apr 19, 2012 at 4:48 PM, Shane Johnson < >>>>> sdj@rasmussenequipment.com> wrote: >>>>> >>>>>> Xavier, >>>>>> First place I would start it running the following : >>>>>> >>>>>> aptitude search xen-utils >>>>>> >>>>>> Make sure xen-utils is installed (i in the far left column) >>>>>> >>>>>> aptitude search qemu-dm >>>>>> >>>>>> again making sure the package is installed. >>>>>> >>>>>> If both packages are installed I would make sure you are booting off >>>>>> the the version that says : >>>>>> >>>>>> Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64 >>>>>> >>>>>> Shane >>>>>> >>>>>> >>>>>> On Thu, Apr 19, 2012 at 6:07 AM, Xavier Cardil <xavier@eo10.net>wrote: >>>>>> >>>>>>> Hello ! I''m trying to run Xen on a EC2 AMI >>>>>>> >>>>>>> >>>>>>> debian-6.0-squeeze-base-x86_64-20110417 (ami-35b68141) >>>>>>> >>>>>>> >>>>>>> Following this how-to >>>>>>> http://www.howtoforge.com/paravirtualization-with-xen-4.0-on-debian-squeeze-amd64 >>>>>>> >>>>>>> After installing the packages, I get : >>>>>>> >>>>>>> uname -a >>>>>>> Linux ip-10-241-22-60 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 >>>>>>> UTC 2011 x86_64 GNU/Linux >>>>>>> >>>>>>> uname -r >>>>>>> 2.6.32-5-xen-amd64 >>>>>>> >>>>>>> Then I do : mv /etc/grub.d/10_linux /etc/grub.d/50_linux >>>>>>> update-grub2 >>>>>>> * >>>>>>> * >>>>>>> * >>>>>>> * >>>>>>> After I reboot but I get this when calling xm : >>>>>>> >>>>>>> xm dmesg >>>>>>> WARING! Can''t find version 3.4 of xen utils, fallback to default >>>>>>> version! >>>>>>> Error: Unable to connect to xend: No such file or directory. Is xend >>>>>>> running? >>>>>>> >>>>>>> When I execute xend I get : >>>>>>> >>>>>>> xend >>>>>>> WARING! Can''t find version 3.4 of xen utils, fallback to default >>>>>>> version! >>>>>>> ERROR Internal error: Could not obtain handle on privileged command >>>>>>> interface (2 = No such file or directory) >>>>>>> Traceback (most recent call last): >>>>>>> File "/usr/lib/xen-default/bin/xend", line 38, in <module> >>>>>>> from xen.xend.server import SrvDaemon >>>>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", >>>>>>> line 26, in <module> >>>>>>> import relocate >>>>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/server/relocate.py", >>>>>>> line 28, in <module> >>>>>>> from xen.xend import XendDomain >>>>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line >>>>>>> 36, in <module> >>>>>>> from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo >>>>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/XendCheckpoint.py", >>>>>>> line 20, in <module> >>>>>>> from xen.xend import balloon, sxp, image >>>>>>> File "/usr/lib/xen-4.0/lib/python/xen/xend/image.py", line 46, in >>>>>>> <module> >>>>>>> xc = xen.lowlevel.xc.xc() >>>>>>> xen.lowlevel.xc.Error: (1, ''Internal error'', ''Could not obtain >>>>>>> handle on privileged command interface (2 = No such file or directory)'') >>>>>>> >>>>>>> >>>>>>> Does this has to do with the kernel I''m booting ? >>>>>>> >>>>>>> My /boot looks like this : >>>>>>> >>>>>>> System.map-2.6.32-5-xen-amd64 >>>>>>> >>>>>>> initrd.img-2.6.32-5-xen-amd64 >>>>>>> >>>>>>> config-2.6.32-5-xen-amd64 >>>>>>> >>>>>>> vmlinuz-2.6.32-5-xen-amd64 >>>>>>> >>>>>>> grub >>>>>>> >>>>>>> xen-4.0-amd64.gz >>>>>>> >>>>>>> And my menu.lst looks like this : >>>>>>> >>>>>>> # >>>>>>> # DO NOT EDIT THIS FILE >>>>>>> # >>>>>>> # It is automatically generated by grub-mkconfig using templates >>>>>>> # from /etc/grub.d and settings from /etc/default/grub >>>>>>> # >>>>>>> >>>>>>> ### BEGIN /etc/grub.d/40_custom ### >>>>>>> default 0 >>>>>>> timeout 1 >>>>>>> title 2.6.32-5-xen-amd64 >>>>>>> root (hd0) >>>>>>> kernel /boot/vmlinuz-2.6.32-5-xen-amd64 root=/dev/xvda1 ro >>>>>>> initrd /boot/initrd.img-2.6.32-5-xen-amd64 >>>>>>> ### END /etc/grub.d/40_custom ### >>>>>>> >>>>>>> >>>>>>> I have been trying to get around this but ... nothing works ! >>>>>>> >>>>>>> Any help would be much appreciated, thanks in advance ! >>>>>>> >>>>>>> -Xavier >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Xen-users mailing list >>>>>>> Xen-users@lists.xen.org >>>>>>> http://lists.xen.org/xen-users >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Shane D. Johnson >>>>>> IT Administrator >>>>>> Rasmussen Equipment >>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Shane D. Johnson >>>> IT Administrator >>>> Rasmussen Equipment >>>> >>>> >>>> >>> >> >> >> -- >> Shane D. Johnson >> IT Administrator >> Rasmussen Equipment >> >> >> >-- Shane D. Johnson IT Administrator Rasmussen Equipment _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users