Utlising xen-tools-4.0.0 fails with a permission error or a module error. I had been using xen 3.4.3 from xen-source, and it was working correctly. I've upgraded the system to the current packages, and xen does not work. On emerging xen-tools and xen 4.0.0 I get the following; idella@genny ~/xen $ uname -a Linux genny 2.6.32-xen-r1 #19 SMP Sat Jul 24 11:02:33 WST 2010 i686 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz GenuineIntel GNU/Linux idella@genny ~/xen $ sudo xend start idella@genny ~/xen $ sudo xm create -c lenny01.cfg Using config file "/etc/xen/lenny01.cfg". Error: 'module' object has no attribute 'get_active_policy_name' idella@genny ~/xen $ sudo emerge xen-tools ............................. idella@genny ~/xen $ sudo xend restart idella@genny ~/xen $ sudo xm create -c lenny01.cfg Using config file "/etc/xen/lenny01.cfg". Error: 'module' object has no attribute 'get_active_policy_name' Occurs intermittently. Initiqially I was getting idella@genny ~/xen/xen-3.4-testing.hg $ sudo xm create -s etch.com.cfg Using config file "/etc/xen/etch.com.cfg". Error: Unable to connect to xend: Connection refused. Is xend running? idella@genny ~/xen/xen-3.4-testing.hg $ sudo virsh -c xen error: unable to connect to 'localhost:8000': Connection refused error: failed to connect to the hypervisor get_active_policy_name looks to me like a python error message. It's more than co-incidence it was working quite well before I updated python. My python versions appear in emerge --info which will go in the usual place.
idella@genny ~/xen $ sudo emerge --info Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.11.2-r0, 2.6.32-xen-r1 i686) ================================================================= System uname: Linux-2.6.32-xen-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 20 Jul 2010 20:15:01 +0000 app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.8.0 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA dlj-1.1" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/libvirt/libvirtd.conf /etc/wpa_supplicant/wpa_supplicant.conf /etc/xen/xend-config.sxp /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs -ggdb" DISTDIR="/mnt/images/genny/distfiles" FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo ftp://mirror.isp.net.au/pub/gentoo/ http://mirror.isp.net.au/pub/gentoo/ http://mirror.averse.net/pub/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="(-altivec) (-aqua) (-cups) (-devfs-compat%*) (-fixed-point) (-gallium) (-gold%) (-google-gadgets) (-hardened) (-kdeenablefinal) (-kdeprefix) (-libffi) (-libsigsegv%) (-multilib) (-n32) (-n64) (-one%) (-pkcs11%) (-ps3) (-selinux) (-smartcard%) (-uclibc) (wide-unicode) X a52 aac acl acpi aio alsa apm armeb arts audiofile avi bash-completion berkdb bluetooth bmp bzip2 cairo cdparanoia cdr cli client%* consolekit corefonts cracklib cris crypt ctype cups cxx dba dbmaker dbus dga dri dts dv dvd dvdr dvdread emboss encode esd eselect ethereal exif extras fam fbcon ffmpeg fftw fftw* firefox flac fortran ftp gdbm gif gnome gnutls gphoto gpm gstreamer gtk gtk%* gtk2 hal handbook i386 iconv imagemagick inifile ioctl java jpeg kde kontact ladcca lcms ldap libg++ libvirtd lm_sensors lxc mad mbox mdev%* microblaze mikmod mime mips64 mips64el mipsel mmap mng modules mono mozilla mp3 mp4 mpeg msn mudflap mysql ncurses net netapi network nls nptl nptlonly ogg openal opengl openmp oss pam pcre pdf perl pm-utils png png%* pnp posix ppc64abi32 ppcemb ppds pppd python qdbm qt qt3support qt4 quicktime readline reflection ruby samba scanner sdl semantic-desktop server%* session sh4 sh4eb shared slp smbclient sndfile sockets source sparc32plus sparc64 spell spl sql sse sse2 ssl startup-notification svg svga sysfs tcpd theora threads tiff truetype udev udev%* urandom usb v4l videos vorbis webkit websockets wifi win32codecs x264 x86 x86_64 xcb xcb* xine xinerama xml xml2 xorg xulrunner xv xvid zlib" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nvidia vesa v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
(In reply to comment #1) Got it going. Took much time in updating system and python. The resources of the forum were important in getting it updated. The cause of Error: 'module' object has no attribute 'get_active_policy_name' was apparently caused by a choice of security module Is selected in xend-config.sxp The inititial error idella@genny ~/xen/xen-3.4-testing.hg $ sudo virsh -c xen error: unable to connect to 'localhost:8000': Connection refused error: failed to connect to the hypervisor was the error of this posting and I assume the extended updating of python and possibly libpng straightened it out. I had to create two sym links for libpng to get packages to [re] compile idella@genny ~/xen/xen-4.0-testing.hg $ sudo xend restart idella@genny ~/xen/xen-4.0-testing.hg $ sudo xm create -c lenny01.cfg Password: Using config file "/etc/xen/lenny01.cfg". idella@genny /mnt/suse/boot/grub $ sudo xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1445 2 r----- 1462.6 centos5.5 295 2 0.6 fedora-nst 260 1 50.8 fedora11 260 1 1.1 fedora8 218 2 53.1 fedora9 356 2 0.0 karmic 282 2 0.0 lenny-5.04 4 303 1 -b---- 153.3 lenny01 5 267 2 r----- 19.5