Re: [gentoo-user] Distfiles cache setup

2015-09-18 Thread hydra
On Fri, Sep 18, 2015 at 7:02 PM, Daniel Frey  wrote:

> Hi all,
>
> I have been running several Gentoo machines here at my house, and am
> currently up to 7 (or was it 8?) installs.
>
> I have been trying to reduce my resource consumption and set up an rsync
> mirror long ago, so my [acting] server only syncs to the internet and
> all other devices point to it. That part is working fine, I've already
> moved it to the repos.conf configuration.
>
> Whenever I search for running a local distfiles mirror (on this list and
> on the web) it gets a bit murky.
>
> The way I see it is this can be done a couple of ways:
>
> 1. Set up a lighttpd server to serve the distfiles directory.
>
> This has the benefit of being able to sync machines outside my network,
> although I don't know if I'd expose it to the internet.
>
> The major issue I can see with this is that if the file doesn't exist,
> portage will crap out saying it's not available. What I don't know is if
> there's an easy way to "get around" this issue.
>
> 
>
> 2. Export the distfiles directory.
>
> This seems to be a bit better of a solution, other than not being able
> to use it outside the LAN. However, cleaning this directory becomes a
> lot less trivial as tools used to clean it will assume that the current
> machine is the only machine using it and clobber other workstation's
> required distfiles.
>
> I suppose the easiest way to sync is to wipe it completely out and run
> `emerge -fe world` on all machines to rebuild it, but this would be a
> fair bit of work as well.
>
> 
>
> With those two options, neither being perfect - it made me wonder if
> there's a Better Way(tm) to do this.
>
> In the case of a shared distfiles, it would be best if something was one
> the machine hosting the distfiles monitoring what workstation needed
> what file and only removing a file when no workstations request it.
> Alas, I don't think a tool such as that exists (although I didn't really
> look that hard.)
>
> Ideally, it would be nice to have some sort of caching proxy that could
> fetch the file as it was needed, but in searching for this I encountered
> so much noise in the search results I gave up for the time being.
>
> Anyone have any suggestions?
>
> Dan
>
>
>
>

You can export distfiles via glusterfs. A single machine holds the data
while the others can fetch / upload files. Glusterfs needs to be installed
on each machine and fuse enabled in the kernel.


Re: [gentoo-user] runscript is deprecated; please use openrc-run instead

2015-08-26 Thread hydra
On Wed, Aug 26, 2015 at 11:30 AM, Mick michaelkintz...@gmail.com wrote:

 I've noticed this during booting:

  * runscript is deprecated; please use openrc-run instead.
  * Starting D-BUS system messagebus ...
  * start-stop-daemon: fopen `/var/run/dbus.pid': No such file or directory
  * Detaching to start `/usr/bin/dbus-daemon' ...
  [ ok ]
  * runscript is deprecated; please use openrc-run instead.


 Is this a warning of things to come, or should I change my settings
 somewhere?

 --
 Regards,
 Mick


The init script must be changed to use openrc-run, your action will be to
update dbus as usual. Or better, open a bug report so that the init script
will be updated.


Re: [gentoo-user] xen doesn't work

2015-07-15 Thread hydra
On Wed, Jul 15, 2015 at 12:46 PM, hw h...@gartencenter-vaehning.de wrote:



 Am 14.07.2015 um 20:56 schrieb hydra:

  Actually PV guests are not that hard at all.


 Well, how do you do that?  Soon I want to do some Gentoo installations on
 this server.  Can I just start with HVM and switch over to PV once the
 installation is done?


From a running system lvm partitions are created for the virtual machine,
then you mount those partitions, unpack stage3 on them, chroot and follow
the same way as with installing a normal machine. You need to enable this
when compiling the kernel.




  However, you don't have
 hvm/qemu enabled so that's why your HVM guests won't start up.


 Indeed that was the problem.  Once I found that out, I finally was able to
 get it to work.  It's quite frustrating when you follow the documentation
 and yet things just don't work for unknown reasons.


Maybe try to modify the wiki for others to know?


Re: [gentoo-user] xen doesn't work

2015-07-14 Thread hydra
On Tue, Jul 14, 2015 at 10:42 AM, hw h...@gartencenter-vaehning.de wrote:



 Am 13.07.2015 um 20:17 schrieb hydra:

 Please post the output of
 emerge --info xen



 Portage 2.2.20 (python 2.7.9-final-0,
 default/linux/amd64/13.0/no-multilib, gcc-4.8.4, glibc-2.20-r2,
 4.0.5-gentoo x86_64)
 =
  System Settings
 =
 System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@
 _2.67GHz-with-gentoo-2.2
 KiB Mem:24742332 total,  23827252 free
 KiB Swap:   67069948 total,  67069948 free
 Timestamp of repository gentoo: Tue, 14 Jul 2015 08:00:01 +
 sh bash 4.3_p33-r2
 ld GNU ld (Gentoo 2.24 p1.4) 2.24
 app-shells/bash:  4.3_p33-r2::gentoo
 dev-lang/perl:5.20.2::gentoo
 dev-lang/python:  2.7.9-r1::gentoo, 3.3.5-r1::gentoo
 dev-util/cmake:   3.2.2::gentoo
 dev-util/pkgconfig:   0.28-r2::gentoo
 sys-apps/baselayout:  2.2::gentoo
 sys-apps/openrc:  0.17::gentoo
 sys-apps/sandbox: 2.6-r1::gentoo
 sys-devel/autoconf:   2.69::gentoo
 sys-devel/automake:   1.14.1::gentoo
 sys-devel/binutils:   2.24-r3::gentoo
 sys-devel/gcc:4.8.4::gentoo
 sys-devel/gcc-config: 1.7.3::gentoo
 sys-devel/libtool:2.4.6::gentoo
 sys-devel/make:   4.1-r1::gentoo
 sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
 sys-libs/glibc:   2.20-r2::gentoo
 Repositories:

 gentoo
 location: /usr/portage
 sync-type: rsync
 sync-uri: rsync://rsync.gentoo.org/gentoo-portage
 priority: -1000

 ACCEPT_KEYWORDS=amd64
 ACCEPT_LICENSE=* -@EULA
 CBUILD=x86_64-pc-linux-gnu
 CFLAGS=-O2 -pipe -march=native -fomit-frame-pointer
 CHOST=x86_64-pc-linux-gnu
 CONFIG_PROTECT=/etc /usr/share/gnupg/qualified.txt
 CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/gconf
 /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo
 CXXFLAGS=-O2 -pipe -march=native -fomit-frame-pointer
 DISTDIR=/usr/portage/distfiles
 EMERGE_DEFAULT_OPTS=-j 4
 FCFLAGS=-O2 -pipe
 FEATURES=assume-digests binpkg-logs config-protect-if-modified distlocks
 ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs
 protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs
 unmerge-orphans userfetch userpriv usersandbox usersync
 FFLAGS=-O2 -pipe
 GENTOO_MIRRORS=http://tux.rainside.sk/gentoo/
 http://mirror.ovh.net/gentoo-distfiles/
 http://gd.tuwien.ac.at/opsys/linux/gentoo/;
 LANG=en_US.utf8
 LDFLAGS=-Wl,-O1 -Wl,--as-needed
 MAKEOPTS=-j24
 PKGDIR=/usr/portage/packages
 PORTAGE_CONFIGROOT=/
 PORTAGE_RSYNC_OPTS=--recursive --links --safe-links --perms --times
 --omit-dir-times --compress --force --whole-file --delete --stats
 --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
 --exclude=/packages
 PORTAGE_TMPDIR=/var/tmp
 USE=acl alsa amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri
 fortran gdbm iconv mmx mmxext modules ncurses nls nptl opengl openmp pam
 pcre readline session sse sse2 ssl tcpd unicode vdpau xvmc zlib
 ABI_X86=64 ALSA_CARDS=ali5451 als4000 atiixp atiixp-modem bt87x ca0106
 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci
 APACHE2_MODULES=authn_core authz_core socache_shmcb unixd 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 CALLIGRA_FEATURES=kexi words flow
 plan sheets stage tables krita karbon braindump author CAMERAS=ptp2
 COLLECTD_PLUGINS=df interface irq load memory rrdtool swap syslog
 CPU_FLAGS_X86=aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3
 ELIBC=glibc GPSD_PROTOCOLS=ashtech aivdm earthmate evermore fv18 garmin
 garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle
 oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox
 ubx INPUT_DEVICES=keyboard mouse evdev KERNEL=linux
 LCD_DEVICES=bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
 ncurses text LIBREOFFICE_EXTENSIONS=presenter-console
 presenter-minimizer OFFICE_IMPLEMENTATION=libreoffice
 PHP_TARGETS=php5-5 PYTHON_SINGLE_TARGET=python2_7
 PYTHON_TARGETS=python2_7 python3_3 RUBY_TARGETS=ruby19 ruby20
 USERLAND=GNU VIDEO_CARDS=nouveau 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
 USE_PYTHON=2.7 3.4
 Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND,
 PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

Re: [gentoo-user] xen doesn't work

2015-07-13 Thread hydra
On Mon, Jul 13, 2015 at 3:01 PM, hw h...@gartencenter-vaehning.de wrote:


 Hi,

 I'm trying to get a windoze 7 to run as a domU on a fresh install of
 gentoo with xen.  I need to use the installer ISO to boot from and to
 install into a partition on a physical disk.

 Running 'xl -vvv create /etc/xen/ws-01.hvm' gives me the following
 messages:


 Parsing config from /etc/xen/ws-01.hvm
 libxl: debug: libxl_create.c:1504:do_domain_create: ao 0x1a97440: create:
 how=(nil) callback=(nil) poller=0x1a974a0
 libxl: verbose: libxl_create.c:137:libxl__domain_build_info_setdefault:
 qemu-xen is unavailable, use qemu-xen-traditional instead: No such file or
 directory
 libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk
 vdev=hda spec.backend=unknown
 libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk
 vdev=hda, using backend phy
 libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk
 vdev=hdc spec.backend=unknown
 libxl: debug: libxl_device.c:215:disk_try_backend: Disk vdev=hdc, backend
 phy unsuitable as phys path not a block device
 libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk
 vdev=hdc, using backend qdisk
 libxl: debug: libxl_create.c:907:initiate_domain_create: running bootloader
 libxl: debug: libxl_bootloader.c:323:libxl__bootloader_run: not a PV
 domain, skipping bootloader
 libxl: debug: libxl_event.c:629:libxl__ev_xswatch_deregister: watch
 w=0x1a97d70: deregister unregistered
 libxl: debug: libxl_numa.c:483:libxl__get_numa_candidate: New best NUMA
 placement candidate found: nr_nodes=1, nr_cpus=12, nr_vcpus=26,
 free_memkb=9875
 libxl: debug: libxl_numa.c:483:libxl__get_numa_candidate: New best NUMA
 placement candidate found: nr_nodes=1, nr_cpus=12, nr_vcpus=26,
 free_memkb=10311
 libxl: detail: libxl_dom.c:196:numa_place_domain: NUMA placement candidate
 with 1 nodes, 12 cpus and 10311 KB free selected
 libxl: detail: libxl_dom.c:254:hvm_set_viridian_features: base group
 enabled
 libxl: detail: libxl_dom.c:254:hvm_set_viridian_features: freq group
 enabled
 libxl: detail: libxl_dom.c:254:hvm_set_viridian_features: time_ref_count
 group enabled
 xc: error: Could not open kernel image (2 = No such file or directory):
 Internal error
 libxl: error: libxl_dom.c:818:libxl__build_hvm: hvm building failed
 libxl: error: libxl_create.c:1121:domcreate_rebuild_done: cannot
 (re-)build domain: -3
 libxl: error: libxl_dm.c:1595:kill_device_model: unable to find device
 model pid in /local/domain/12/image/device-model-pid
 libxl: error: libxl.c:1608:libxl__destroy_domid:
 libxl__destroy_device_model failed for 12
 libxl: info: libxl.c:1691:devices_destroy_cb: forked pid 5036 for destroy
 of domain 12
 libxl: debug: libxl_create.c:1520:do_domain_create: ao 0x1a97440:
 inprogress: poller=0x1a974a0, flags=i
 libxl: debug: libxl_event.c:1765:libxl__ao_complete: ao 0x1a97440:
 complete, rc=-3
 libxl: debug: libxl_event.c:1737:libxl__ao__destroy: ao 0x1a97440: destroy
 xc: debug: hypercall buffer: total allocations:197 total releases:197
 xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
 xc: debug: hypercall buffer: cache current size:4
 xc: debug: hypercall buffer: cache hits:182 misses:4 toobig:11


 The configuration for the VM is as follows:


 # This configures an HVM rather than PV guest
 builder = hvm

 # Guest name
 name = ws-01.hvm

 # 128-bit UUID for the domain as a hexadecimal number.
 # Use uuidgen to generate one if required.
 # The default behavior is to generate a new UUID each time the guest is
 started.
 #uuid = ----

 # Enable Microsoft Hyper-V compatibile paravirtualisation /
 # enlightenment interfaces. Turning this on can improve Windows guest
 # performance and is therefore recommended
 viridian = 1

 # Initial memory allocation (MB)
 memory = 4096

 # Maximum memory (MB)
 # If this is greater than `memory' then the slack will start ballooned
 # (this assumes guest kernel support for ballooning)
 #maxmem = 512

 # Number of VCPUS
 vcpus = 2

 # Network devices
 # A list of 'vifspec' entries as described in
 # docs/misc/xl-network-configuration.markdown
 vif = [ 'bridge=brloc' ]

 # Disk Devices
 # A list of `diskspec' entries as described in
 # docs/misc/xl-disk-configuration.txt
 disk = [ 'phy:/dev/sde1,ioemu:hda,w',
 'file:/root/installers/de_windows_7_professional_with_sp1_x64_dvd_u_676919.iso,ioemu:hdc:cdrom,r'
 ]

 boot=dc

 # Guest VGA console configuration, either SDL or VNC
 sdl = 0
 vnc = 1


 Any idea why I cannot create VMs?  Is this a Gentoo problem or a problem
 with xen?  Do I need to install some more packages?


Please post the output of
emerge --info xen
emerge --info xen-tools

Were you able to start any virtual machine in your Xen environment yet or
this is the first try?


Re: [gentoo-user] xen on new install reboots by itself

2015-04-29 Thread hydra
On Wed, Apr 29, 2015 at 2:37 PM, symack sym...@gmail.com wrote:

 Yes please! grub2 cfg.

 Nick.
 ​


On a HP server with HW raid having /dev/sda with disklabel type dos:
/dev/sda1 /boot ext2
/dev/sda2 /root ext4
/dev/sda3 lvm

/etc/default/grub
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX=panic=30 net.ifnames=0
GRUB_CMDLINE_XEN=dom0_mem=4G

/boot/grub/grubenv
saved_entry=Gentoo GNU/Linux, with Xen hypervisor

/boot has:
config-3.14.37
kernel-3.14.37
xen-4.4.2.gz
xen-4.4.gz - xen-4.4.2.gz
xen-4.gz - xen-4.4.2.gz
xen-syms-4.4.2
xen.gz - xen-4.4.2.gz

grub.cfg looks like:
### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'Gentoo GNU/Linux, with Xen hypervisor' --class gentoo --class
gnu-linux --class gnu --class os --class xen $menuentry_id_option
'xen-gnulinux-simple-0316b3f3-07ca-4e07-ab1e-42cba9c6763d' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1
be00dffd-2b2a-4a7f-831d-b1a728a51e4d
else
  search --no-floppy --fs-uuid --set=root
be00dffd-2b2a-4a7f-831d-b1a728a51e4d
fi
echo'Loading Xen xen ...'
if [ $grub_platform = pc -o $grub_platform =  ]; then
xen_rm_opts=
else
xen_rm_opts=no-real-mode edd=off
fi
multiboot   /xen.gz placeholder dom0_mem=4G ${xen_rm_opts}
echo'Loading Linux 3.14.37 ...'
module  /kernel-3.14.37 placeholder root=/dev/sda2 ro panic=30
net.ifnames=0
}

This was generated by grub2-mkconfig.


Re: [gentoo-user] xen on new install reboots by itself

2015-04-28 Thread hydra
On Wed, Apr 29, 2015 at 5:38 AM, J. Roeleveld jo...@antarean.org wrote:

 On 29 April 2015 00:34:10 CEST, symack sym...@gmail.com wrote:
 Hello Joost,
 
 We are running Grub2. Bellow is my grub.cfg for Xen
 
 menuentry 'Gentoo GNU/Linux, with Xen hypervisor' --class gentoo
 --class
 gnu-linux --class gnu --class os --class xen $menuentry_id_option
 'xen-gnulinux-simple-43fa46d6-a602-4281-9493-66faec5c096f' {
 insmod part_msdos
 insmod ext2
 set root='hd0,msdos1'
 if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1
 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1
  66cdce01-cc3f-45ad-bea3-a64dff6db724
 else
   search --no-floppy --fs-uuid --set=root
 66cdce01-cc3f-45ad-bea3-a64dff6db724
 fi
 echo'Loading Xen xen ...'
 if [ $grub_platform = pc -o $grub_platform =  ]; then
 xen_rm_opts=
 else
 xen_rm_opts=no-real-mode edd=off
 fi
 multiboot   /xen.gz placeholder   ${xen_rm_opts}
 echo'Loading Linux 3.17.7-gentoo ...'
 module  /vmlinuz-3.17.7-gentoo placeholder root=/dev/sda3 ro
  rootwait
 ​
 
 This is starting to hurt
 
 N.

 Symack,

 I never got grub2 to play nice with Xen.
 My Xen servers all use grub1.

 --
 Joost
 --
 Sent from my Android device with K-9 Mail. Please excuse my brevity.


I run like 20 xen machines on grub2 without problems.


Re: [gentoo-user] stable java virtuals require unstable java packages

2015-04-22 Thread hydra
On Wed, Apr 22, 2015 at 8:09 AM, Dale rdalek1...@gmail.com wrote:

 Alan McKinnon wrote:
  Turns out the virtual is working as designed - see Andreas's post
  above I recall now a discussion on -dev about this ages ago, and a
  consensus emerged then to keep things as they currently are (changing
  it requires much effort and has all manner of effects on the tree).
  The actual rule is: A virtual can (by definition) be stable as soon as
  one of its providers is stable.

 So if we really don't want one of the other packages that satisfies what
 the virtual needs, we need to mask the others locally?

 Great.  :/

 Dale

 :-)  :-)



https://bugs.gentoo.org/show_bug.cgi?id=546902


Re: [gentoo-user] xen on new install reboots by itself

2015-04-14 Thread hydra
On Wed, Apr 8, 2015 at 11:43 PM, lee l...@yagibdah.de wrote:

 hydra hydrapo...@gmail.com writes:

  On Sat, Apr 4, 2015 at 3:20 PM, lee l...@yagibdah.de wrote:
 
  symack sym...@gmail.com writes:
 
  Other than that, unless you really do need full virtualization: I'm
  finding Linux containers to be far more manageable than virtual
  machines, and much more efficient.
 
 
  Can you please post some more details?

 About containers?

 There's very useful documentation about them like
 https://wiki.gentoo.org/wiki/LXC ...

 What can I say?  Virtualization with xen is like juggling with a set of
 black boxes each of which aren't exactly accessible; the
 documentation sucks, it's hard work to get it running and likewise hard
 to maintain.

 Virtualization with containers is basically as simple as running just
 another daemon.

 Which the better tool, or combination of tools is, depends on what you
 want to accomplish.  You could use containers in a VM, too, or use
 virtualbox along with containers to run the odd VMs that require full
 virtualzation.


 --
 Again we must be afraid of speaking of daemons for fear that daemons
 might swallow us.  Finally, this fear has become reasonable.


 You mean the documentation at Gentoo about Xen sucks or the upstream
documentation? What information are you missing from there? Maybe we can
add  the missing pieces for Xen being more accessible and easier to use,
what do you think? :)


Re: [gentoo-user] xen on new install reboots by itself

2015-04-04 Thread hydra
On Thu, Apr 2, 2015 at 8:20 AM, J. Roeleveld jo...@antarean.org wrote:

 On Monday, March 30, 2015 07:07:39 PM symack wrote:
  Hello Everyone,
 
  New install, on a old server with raid 10 scsi... The normal installation
  works fine,
  the only thing is when we try to boot with xen, it gets to the prompt and
  then reboots
  by itself. The following message is what differs between normal gentoo
 and
  xen kernel
 
  Mar 31 06:32:18 test kernel: [0.138644] ACPI Exception: AE_NOT_FOUND,
  While evaluating Sleep State [\_S1_] (20140724/hwxface-580)
  Mar 31 06:32:18 test kernel: [0.138961] ACPI Exception: AE_NOT_FOUND,
  While evaluating Sleep State [\_S2_] (20140724/hwxface-580)
  Mar 31 06:32:18 test kernel: [0.139267] ACPI Exception: AE_NOT_FOUND,
  While evaluating Sleep State [\_S3_] (20140724/hwxface-580)
 
 
  I'm never sure how to debug such errors. Some googling suggested adding
  ACPI flags (ie, force, on, off), when I do that, the system just reboots
  without getting to the login prompt.
 
  The server is an X346 with hardward servraid 7K with raid 10.
 
  Your help is greatly appreciated.
 
  N.

 Do you have the XEN dom0 support compiled into the kernel?

 I have the following options on one of my servers and don't recall the
 issue
 you are facing:
 # zcat /proc/config.gz | grep -i xen
 CONFIG_XEN=y
 CONFIG_XEN_DOM0=y
 CONFIG_XEN_PVHVM=y
 CONFIG_XEN_MAX_DOMAIN_MEMORY=500
 CONFIG_XEN_SAVE_RESTORE=y
 # CONFIG_XEN_PVH is not set
 CONFIG_PCI_XEN=y
 CONFIG_XEN_PCIDEV_FRONTEND=y
 CONFIG_XEN_BLKDEV_FRONTEND=y
 CONFIG_XEN_BLKDEV_BACKEND=y
 CONFIG_XEN_NETDEV_FRONTEND=y
 CONFIG_XEN_NETDEV_BACKEND=y
 CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
 CONFIG_HVC_XEN=y
 CONFIG_HVC_XEN_FRONTEND=y
 CONFIG_XEN_FBDEV_FRONTEND=y
 # Xen driver support
 CONFIG_XEN_BALLOON=y
 # CONFIG_XEN_SELFBALLOONING is not set
 CONFIG_XEN_SCRUB_PAGES=y
 CONFIG_XEN_DEV_EVTCHN=y
 CONFIG_XEN_BACKEND=y
 CONFIG_XENFS=y
 CONFIG_XEN_COMPAT_XENFS=y
 CONFIG_XEN_SYS_HYPERVISOR=y
 CONFIG_XEN_XENBUS_FRONTEND=y
 CONFIG_XEN_GNTDEV=y
 CONFIG_XEN_GRANT_DEV_ALLOC=m
 CONFIG_SWIOTLB_XEN=y
 CONFIG_XEN_TMEM=m
 CONFIG_XEN_PCIDEV_BACKEND=m
 CONFIG_XEN_PRIVCMD=y
 CONFIG_XEN_ACPI_PROCESSOR=m
 # CONFIG_XEN_MCE_LOG is not set
 CONFIG_XEN_HAVE_PVMMU=y


 I, currently, have the following versions for Xen running:
 app-emulation/xen-4.3.3-r3
 app-emulation/xen-tools-4.3.3-r1

 These are scheduled to be upgraded during the next maintenance window.

 --
 Joost



True, maybe we should look for problem here. Maybe you can attach your
kernel configuration or at least `grep -i xen .config`.


Re: [gentoo-user] xen on new install reboots by itself

2015-04-04 Thread hydra
On Sat, Apr 4, 2015 at 3:20 PM, lee l...@yagibdah.de wrote:

 symack sym...@gmail.com writes:

 Other than that, unless you really do need full virtualization: I'm
 finding Linux containers to be far more manageable than virtual
 machines, and much more efficient.


Can you please post some more details?


Re: [gentoo-user] mysql upgrade 5.5 5.6 mysql_upgrade needed?

2015-04-01 Thread hydra
On Tue, Mar 31, 2015 at 10:27 PM, Marko Weber | 8000 we...@zbfmail.de
wrote:


 hello list,
 again i have to ask.
 Do i need to run mysql_upgrade after upgrading mysql 5.5  5.6 ?
 I ask because the post install text recommend this after an major upgrade.
 On the Mysql Website is a major upgrade 5.5  6.0, not 5.5  5.6
 So i ask you guys.
 Any can help me?

 thank you

 marko



Yes, you need to - it IS a major upgrade.

Check out http://dev.mysql.com/doc/refman/5.6/en/mysql-nutshell.html and
http://dev.mysql.com/doc/refman/5.6/en/upgrading-from-previous-series.html

It states:
To upgrade to 5.6 from any previous version, MySQL recommends that you
dump your tables with *mysqldump*
http://dev.mysql.com/doc/refman/5.6/en/mysqldump.html before upgrading
and reload the dump file after upgrading. Use the --all-databases
http://dev.mysql.com/doc/refman/5.6/en/mysqldump.html#option_mysqldump_all-databases
option to include all databases in the dump. If your databases include
stored programs, use the --routines
http://dev.mysql.com/doc/refman/5.6/en/mysqldump.html#option_mysqldump_routines
and --events
http://dev.mysql.com/doc/refman/5.6/en/mysqldump.html#option_mysqldump_events
options as well.

So either you dump/restore (safest but harder with downtime - except when
you run replication and switch masters) or you do upgrade on the fly and
run mysql_upgrade.


Re: [gentoo-user] xen on new install reboots by itself

2015-04-01 Thread hydra
On Wed, Apr 1, 2015 at 3:52 AM, symack sym...@gmail.com wrote:

 Hello Hydra,


 Thank you for your response:

 The commands are bellow. Also, the Bios is almost 10 years old on the
 machine.
 Not sure if that info helps for the ACPI related messages.

 USE=app-emulation/xen-tools-4.3.1-r1 api hvm qenu screen -custom-cflags
 -debug -doc -flask -xend
 USE=app-emulation/xen-4.3.3-r3 -custom-cflags -debug -flask -pae -xsm



 Portage 2.2.14 (python 2.7.9-final-0, hardened/linux/amd64/no-multilib,
 gcc-4.8.3, glibc-2.19-r1, 3.17.7-gentoo x86_64)
 =
 System uname:
 Linux-3.17.7-gentoo-x86_64-Intel-R-_Xeon-TM-_CPU_3.80GHz-with-gentoo-2.2
 KiB Mem: 8177312 total,   8051276 free
 KiB Swap:2097148 total,   2097148 free
 Timestamp of tree: Thu, 15 Jan 2015 17:45:01 +
 ld GNU ld (Gentoo 2.24 p1.4) 2.24
 app-shells/bash:  4.2_p53
 dev-lang/perl:5.18.2-r2
 dev-lang/python:  2.7.9-r1, 3.3.5-r1
 dev-util/cmake:   2.8.12.2-r1
 dev-util/pkgconfig:   0.28-r1
 sys-apps/baselayout:  2.2
 sys-apps/openrc:  0.12.4
 sys-apps/sandbox: 2.6-r1
 sys-devel/autoconf:   2.69
 sys-devel/automake:   1.13.4
 sys-devel/binutils:   2.24-r3
 sys-devel/gcc:4.8.3
 sys-devel/gcc-config: 1.7.3
 sys-devel/libtool:2.4.2-r1
 sys-devel/make:   4.0-r1
 sys-kernel/linux-headers: 3.16 (virtual/os-headers)
 sys-libs/glibc:   2.19-r1
 Repositories: gentoo
 ACCEPT_KEYWORDS=amd64
 ACCEPT_LICENSE=* -@EULA
 CBUILD=x86_64-pc-linux-gnu
 CFLAGS=-O2 -pipe
 CHOST=x86_64-pc-linux-gnu
 CONFIG_PROTECT=/etc
 CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/gconf
 /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo
 CXXFLAGS=-O2 -pipe
 DISTDIR=/usr/portage/distfiles
 FCFLAGS=-O2 -pipe
 FEATURES=assume-digests binpkg-logs config-protect-if-modified distlocks
 ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs
 protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs
 unmerge-orphans userfetch userpriv usersandbox usersync xattr
 FFLAGS=-O2 -pipe
 GENTOO_MIRRORS=http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/;
 LANG=en_US
 LDFLAGS=-Wl,-O1 -Wl,--as-needed
 MAKEOPTS=-j2
 PKGDIR=/usr/portage/packages
 PORTAGE_CONFIGROOT=/
 PORTAGE_RSYNC_OPTS=--recursive --links --safe-links --perms --times
 --omit-dir-times --compress --force --whole-file --delete --stats
 --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
 --exclude=/packages
 PORTAGE_TMPDIR=/var/tmp
 PORTDIR=/usr/portage
 PORTDIR_OVERLAY=
 SYNC=rsync://rsync4.ca.gentoo.org/gentoo-portage
 USE=acl amd64 app-emulation/xen-4.3.3-r3 berkdb bzip2 cli cracklib crypt
 cxx dri gdbm hardened iconv ipv6 justify mmx modules ncurses nls nptl
 openmp pam pax_kernel pcre readline session sse sse2 ssl tcpd unicode
 urandom xattr xtpax zlib ABI_X86=64 ALSA_CARDS=ali5451 als4000 atiixp
 atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968
 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx
 via82xx-modem ymfpci APACHE2_MODULES=authn_core authz_core socache_shmcb
 unixd 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
 CALLIGRA_FEATURES=kexi words flow plan sheets stage tables krita karbon
 braindump author CAMERAS=ptp2 COLLECTD_PLUGINS=df interface irq load
 memory rrdtool swap syslog ELIBC=glibc GPSD_PROTOCOLS=ashtech aivdm
 earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip
 navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2
 timing tsip tripmate tnt ublox ubx INPUT_DEVICES=keyboard mouse evdev
 KERNEL=linux LCD_DEVICES=bayrad cfontz cfontz633 glk hd44780 lb216
 lcdm001 mtxorb ncurses text LIBREOFFICE_EXTENSIONS=presenter-console
 presenter-minimizer OFFICE_IMPLEMENTATION=libreoffice
 PHP_TARGETS=php5-5 PYTHON_SINGLE_TARGET=python2_7
 PYTHON_TARGETS=python2_7 python3_3 RUBY_TARGETS=ruby19 ruby20
 USERLAND=GNU VIDEO_CARDS=fbdev glint intel mach64 mga nouveau nv r128
 radeon savage sis tdfx trident vesa via vmware dummy 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, INSTALL_MASK, LC_ALL,
 PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
 PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



 Kind Regards,

 Nick.






Did xen ever work on that machine?

I don't know if xen works with hardened - I always use the default profile.
Have you also

Re: [gentoo-user] xen on new install reboots by itself

2015-04-01 Thread hydra
On Wed, Apr 1, 2015 at 2:52 PM, symack sym...@gmail.com wrote:

 Hello Hydra,

 I'm totally new to Xen and was following this tutorial very compressed
 tutorial https://wiki.gentoo.org/wiki/Xen
 I purchased the machine as the test machine to see how stable/secure I can
 get Xen doms to run on it.

 Should I change the profile and reinstall xen/xen-tools


 N
 ​


I have no idea if it helps, but if you can play with the machine, try the
default profile and/or other xen versions.


Re: [gentoo-user] xen on new install reboots by itself

2015-04-01 Thread hydra
On Wed, Apr 1, 2015 at 6:24 PM, symack sym...@gmail.com wrote:

 Hello Hydra,

 Thank you so much. I was literally about to use the default profile and
 reinstall the same
 versions. If I need to go back in time, which version is considered Stable
 and not too old
 for xen and xen-tools. Finally, as I am new to gentoo, can you please tell
 me how to emerge
 an older xen version.

 Thanks for Everything!

 Nick
 ​


You can try those in portage:
https://packages.gentoo.org/package/app-emulation/xen
https://packages.gentoo.org/package/app-emulation/xen-tools

Currently you have 4.3 branch (which was removed from portage a week ago or
so), try 4.2, 4.4 or 4.5, you'll see what you get.

If you want to emerge a specific version:
emerge =app-emulation/xen-4.2.5-r7 =app-emulation/xen-tools-4.2.5-r3

Don't mix xen and xen-tools branches (4.2 with 4.3) - always keep both the
same branch. The revisions don't have to match (like the above r7 for xen
and r3 for xen-tools), but the branches yes.


Re: [gentoo-user] xen on new install reboots by itself

2015-03-30 Thread hydra
On Tue, Mar 31, 2015 at 1:07 AM, symack sym...@gmail.com wrote:

 Hello Everyone,

 New install, on a old server with raid 10 scsi... The normal installation
 works fine,
 the only thing is when we try to boot with xen, it gets to the prompt and
 then reboots
 by itself. The following message is what differs between normal gentoo and
 xen kernel

 Mar 31 06:32:18 test kernel: [0.138644] ACPI Exception: AE_NOT_FOUND,
 While evaluating Sleep State [\_S1_] (20140724/hwxface-580)
 Mar 31 06:32:18 test kernel: [0.138961] ACPI Exception: AE_NOT_FOUND,
 While evaluating Sleep State [\_S2_] (20140724/hwxface-580)
 Mar 31 06:32:18 test kernel: [0.139267] ACPI Exception: AE_NOT_FOUND,
 While evaluating Sleep State [\_S3_] (20140724/hwxface-580)


 I'm never sure how to debug such errors. Some googling suggested adding
 ACPI flags (ie, force, on, off), when I do that, the system just reboots
 without getting to the login prompt.

 The server is an X346 with hardward servraid 7K with raid 10.

 Your help is greatly appreciated.

 N.


Please post your emerge --info information along with xen and xen-tools
versions / use flags.


Re: [gentoo-user] Usign ansible

2015-01-30 Thread hydra
On Fri, Jan 30, 2015 at 5:01 PM, Stefan G. Weichinger li...@xunil.at
wrote:

 On 29.01.2015 11:31, hydra wrote:
  I haven't migrated to group_vars yet, so try and let us know ;)

 It took me a bit of fiddling but I think I figured it out.

 I had to get the directory structure correct ... now I have

 /etc/ansible/inventories/group_vars/

 with files like siteA, siteB, siteC ... containing the specific variables.

 At first I always had /etc/ansible/group_vars ... and that didn't work
 at all!

 Now I am able to have such a small playbook for the whole dhcp-config of
 one site:

 ---
 - hosts: siteA
   user: root
   roles:
 - dhcpd

 and this pulls the group_vars from

 /etc/ansible/inventories/group_vars/siteA

 and applies it to the dhcpd-role
 and overrides /etc/ansible/roles/dhcpd/defaults/main.yml ... which was
 my original goal!

 nice!

 Stefan



By the way, you don't need to have it in /etc/ansible, feel free to have it
anywhere.


Re: [gentoo-user] Updating Gentoo

2015-01-30 Thread hydra
On Fri, Jan 30, 2015 at 6:49 PM, symack sym...@gmail.com wrote:

 Hello Everyone,

 Last time I did this we experience 3 hour downtime, and it was not fun. I
 was blue in the face:

 [1]   N  2010-08-01  (2010-08-01-as-needed-default - removed?)
   [2]   N  2012-03-16  (2012-03-16-udev-181-unmasking - removed?)
   [3]   N  2012-05-21  Portage config-protect-if-modified default
   [4]   N  2012-09-09  (2012-09-09-make.conf-and-make.profile-move -
 removed?)
   [5]   N  2012-11-06  PYTHON_TARGETS deployment
   [6]  2013-03-29  Upgrading udev to version =200
   [7]  2013-06-07  Portage preserve-libs default
   [8]   N  2013-06-30  Printer browsing in net-print/cups-1.6
   [9]   N  2013-08-23  Language of messages in emerge logs and output
   [10]  N  2013-09-27  Separate /usr on Linux requires initramfs
   [11]  N  2013-10-14  GRUB2 migration
   [12]  N  2013-11-07  python-exec package move
   [13]  N  2014-02-25  Upgrade to =sys-fs/udev-210
   [14]  N  2014-03-02  Profile EAPI 5 requirement
   [15]  N  2014-03-16  Ruby 1.8 removal; Ruby 1.9/2.0 default
   [16]  N  2014-11-07  Upgrade to udev = 217 or eudev = 2.1
   [17]  N  2015-01-28  CPU_FLAGS_X86 introduction


 Grub2: Will this bring us down for days? Is it a hard transition
 Udev: Oh what a spider web you weave. We are using udev 204 right now.

 Please gents, is there a safe and easy way of doing this? I need to update
 the system but want to limit downtime as much as possible. Please help.


 N.



It would be wise to upgrade per partes, not doing a large leap from
2010-2015. This may come handy:
http://blog.siphos.be/2015/01/old-gentoo-system-not-a-problem/


Re: [gentoo-user] Usign ansible

2015-01-29 Thread hydra
I haven't migrated to group_vars yet, so try and let us know ;)

On Thu, Jan 29, 2015 at 11:14 AM, Stefan G. Weichinger li...@xunil.at
wrote:

 On 29.01.2015 10:47, Tomas Mozes wrote:

  Have your IPs listed in hosts-production.
 
  For each site create a file, like:
 
  site_A.yml
  - hosts: site_A
roles:
  - ...
 
  site_B.yml
  - hosts: site_B
roles:
  - ...
 
  Then create site.yml where you include site_A.yml and site_B.yml.
  Mostly, you will not only use roles inclusion, but have something
  special done on the server, so either you create a role corresponding to
  this file (like role site_A, site_B) where you name the tasks or you put
  it directly in the site_A.yml, site_B.yml file. This is the stuff unique
  to the server, like creating a specific user, specific directory, with
  specific files...
 
  Then if you want to reconfigure all, just
  ansible-playbook -i hosts-production site.yml
 
  Only site_A:
  ansible-playbook -i hosts-production site_A.yml
 
  Only configure postfix on site_B:
  ansible-playbook -i hosts-production site_B.yml --tags postfix -v
 
  Read:
  http://docs.ansible.com/playbooks_roles.html
  http://docs.ansible.com/playbooks_best_practices.html
 

 Thanks, Tomas ... yes  and no ... ;-)

 I wonder if I could also:

 cp defaults/main.yml to group_vars/site_[AB].yml  ...

 adjust the configs to the sites and then use something like:

 # playbook 1

 - hosts: site_A
   roles:
   - dhcpd

 # playbook 2

 - hosts: site_B
   roles:
   - dhcpd

  would the group_vars override the vars defined in defaults/main.yml ?

 I *think* so ... I will try that ...

 Stefan