as the Docs say, I changed working xen config to pvgrub like this: kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz" extra = "(hd0)/boot/grub/grub.conf" but it start the domain with grub prompt, not using the specified config (and auto boot). So it's not usable at all and I wonder if I would be the first who note this, so maybe it's related to something alse. But I'm not alone, see http://forums.gentoo.org/viewtopic-p-7005952.html the value in "extra" should be ok, if I write by hand to the prompt configfile (hd0)/boot/grub/grub.conf it will start the menu and boot automaticaly after 10sec.. (root@karamel)~# equery l xen\* * Searching for xen* ... [IP-] [ ] app-emulation/xen-4.1.1-r2:0 [IP-] [ ] app-emulation/xen-pvgrub-4.1.1-r1:0 [IP-] [ ] app-emulation/xen-tools-4.1.1-r6:0 [IP-] [ ] sys-kernel/xen-sources-2.6.38:2.6.38 Reproducible: Always Portage 2.1.10.44 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.38-xen x86_64) ================================================================= System uname: Linux-2.6.38-xen-x86_64-Intel-R-_Xeon-R-_CPU_E5506_@_2.13GHz-with-gentoo-2.0.3 Timestamp of tree: Thu, 08 Mar 2012 14:15:01 +0000 app-shells/bash: 4.1_p9 dev-lang/python: 2.6.6-r2, 2.7.2-r3, 3.1.4-r3 dev-util/cmake: 2.8.4-r1 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.4.5, 4.5.3-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.39 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -mtune=native -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -mtune=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="ftp://gentoo.mirror.web4u.cz/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ " LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" 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" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl amd64 bash-completion berkdb bzip2 cli cracklib crypt cups cxx dri fam fortran gdbm gpm iconv imap mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre pppd readline session snmp sse sse2 ssl sysfs tcpd xorg zlib" 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" 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic 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, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Works fine with: app-emulation/xen-4.1.2 app-emulation/xen-pvgrub-4.1.2 app-emulation/xen-tools-4.1.2-r2 sys-kernel/gentoo-sources-3.4.0
so I have upgraded to 4.1.2, but stil the same :( # equery l '*xen*' * Searching for *xen* ... [IP-] [ ] app-emulation/xen-4.1.2:0 [IP-] [ ] app-emulation/xen-pvgrub-4.1.2:0 [IP-] [ ] app-emulation/xen-tools-4.1.2-r2:0 [IP-] [M ] sys-kernel/xen-sources-2.6.38:2.6.38
Hello Pavel, this is my configuration (Ubuntu): kernel = '/usr/lib/xen/boot/pv-grub-x86_64.gz' memory = 4096 name = "u1204-2" vcpus = 8 vif = [ '' ] disk = [ 'phy:/dev/vg_data/u1204-2,xvda,w' ] extra = "(hd0,0)/grub/menu.lst" This is my menu.lst file: default 0 timeout 2 title Ubuntu 3.2.0-24 root (hd0,0) kernel /vmlinuz-3.2.0-24-generic root=/dev/xvda2 initrd /initrd.img-3.2.0-24-generic So you have to do it manually? By the way, it is not necessary to use xen-sources anymore, you can try the gentoo-sources with Xen :)
I cann't, I have one pv-ops kernel there too, but there are some issues (same instalation, only rebooted to other kernel) 1) can't even start the domain "Error: Device 0 (vif) could not be connected. Hotplug scripts not working.' but maybe this could be solved somehow 2) MegaCli does not see the HW RAID (altouhg is running on them) maybe some kernel option missing? 3) as I know pv-ops stil does not support tapdisk2 - I need .VHD
Please provide more information (hw setup, xen configuration etc.).
HW setup? it's Fujitsu RX300S6, Xeon E5506 bonding on two eth and than bringe on the bond not sure what you mean with xen config, the domain file is bellow the commented kernel line is working, the uncomented pvgrub line is also working, it only ignores the extra line (root@karamel)/etc/xen/domain-configs# cat pecka64.conf name = "pecka64" #kernel = "/etc/xen/kernel/kernel-genkernel-x86_64-2.6.39-gentoo-DomU" kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz" extra = "(hd0)/boot/grub/grub.conf" memory = 2048 vcpus = 4 disk = [ 'phy:/dev/pole/pecka,xvda1,w'] root = "/dev/xvda1 ro" vif = [ 'bridge=br0' ]
Please post your /etc/conf.d/net, lvdisplay outpout of /dev/pole/pecka. What is your domU system?
domU is gentoo # lvdisplay /dev/pole/pecka --- Logical volume --- LV Name /dev/pole/pecka VG Name pole LV UUID d6SYkn-Aku3-mMUz-p73k-DReX-K21J-frAlSc LV Write Access read/write LV Status available # open 0 LV Size 5.00 GiB Current LE 5 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 not sure how net conf can be related to pvgrub, but here is the relevant snip from conf.d/net: modules="ifconfig" config_eth0="null" config_eth1="null" config_eth2="null" config_eth3="null" rc_need_bond0="net.eth0" slaves_bond0="eth0" config_bond0="null" rc_need_br0="net.bond0" bridge_br0="bond0" brctl_br0="setfd 0 sethello 1 stp off" config_br0="10.128.128.113/24" routes_br0="default via 10.128.128.1"
Try renaming br0 to xenbr0 and use: vif = [ '' ]
Are you sure, the net config can affect the pvgrub ? I can't restart the server now, so I commened simply the vif out, and the pvgrub problem is stil the same.
I remember that some of the Xen scripts had problems with hardcoded network interface names, so that is why I recommended testing this out. If you cannot change the interface name, removing the vif section with your setting probably won't help. This was not about pvgrub, but error 1 you mentioned in post 4. Can you post the output from after the virtual machine is started?
as xenkernel is out of portage, I'm trying 3.6.6 pvops kernel now .. and the same problem googling around the world, finding many people having the same problem, but no solution. But finaly I found the one indirect answer to this question and took me to the right solution. in the domain config file, there may not be any lines about kernel params ip, netmask, hostname .. or kernel=/root/device (which was my case) without the kernel line everything works
I was talking about the line root = "/dev/xvda1 ro" not the "kernel" line, sorry for typo