Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510492 - app-emulation/xen-4.4.0-r3 - hvm virtualization doesn't work
Summary: app-emulation/xen-4.4.0-r3 - hvm virtualization doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-16 14:58 UTC by Tomáš Mózes
Modified: 2014-05-23 11:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2014-05-16 14:58:30 UTC
As noted here:
https://bugs.gentoo.org/show_bug.cgi?id=510052

I also failed to run a HVM guest with kernel 3.14.4 and xen-4.4.0-r3. After upgrading seabios to 1.7.4, it works again.

When running with the latest seabios in portage, after:
xl create vm.conf

the vm restarts forever and nothing happens.

Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.19, 3.14.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.14.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     3811324 total,   2322424 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 16 May 2014 01:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6-r1, 3.2.5-r3, 3.3.5, 3.4.0
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.13, 2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -pipe"
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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=native -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://tux.rainside.sk/gentoo/"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid 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 authz_host dir mime unixd socache_shmcb log_config rewrite vhost_alias log_forensic proxy proxy_fcgi info status deflate filter auth_digest authn_file authz_user access_compat actions alias auth_basic authn_alias authn_anon env expires headers mime_magic negotiation reqtimeout setenvif unique_id version cgi" 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" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i128" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-emulation/xen-4.4.0-r3 was built with the following:
USE="efi -custom-cflags -debug -flask -xsm"
CFLAGS=""


app-emulation/xen-tools-4.4.0-r3 was built with the following:
USE="hvm pam qemu screen -api -custom-cflags -debug -doc -flask -ocaml -pygrub -python -static-libs -system-qemu" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"
CFLAGS=""
CXXFLAGS="-mtune=native -O2 -pipe -fno-strict-overflow"
LDFLAGS=""
Comment 1 Yixun Lan archtester gentoo-dev 2014-05-16 21:39:55 UTC
+*xen-tools-4.4.0-r4 (16 May 2014)
+
+  16 May 2014; Yixun Lan <dlan@gentoo.org> -xen-tools-4.4.0-r3.ebuild,
+  +xen-tools-4.4.0-r4.ebuild:
+  force depend on >=seabios-1.7.4, fix bug #510492, thanks Tomas Mozes
Comment 2 Yixun Lan archtester gentoo-dev 2014-05-23 08:17:08 UTC
re-open myself..

I've spent more time to looking into this hvm problem, turn out that xen-tools have problem with sys-firmware/seabios-1.7.3.2 if USE=binary is enabled, which means using the prebuilt seabios binary, remove that USE flag, compile seabios again, then hvm mode works fine.
In this case I'm thinking about bringing back the bundled seabios, sine xen upstream has their own seabios-config ..

also notice that xen uptream using seabios-1.7.3.1(tag rel-1.7.3.1) without any modifications (exactly as the seabios upstream's 1.7.3.1)
Comment 3 Yixun Lan archtester gentoo-dev 2014-05-23 11:05:38 UTC
+*xen-tools-4.4.0-r5 (23 May 2014)
+*xen-tools-4.3.2-r3 (23 May 2014)
+*xen-tools-4.2.4-r4 (23 May 2014)
+
+  23 May 2014; Yixun Lan <dlan@gentoo.org> -xen-tools-4.2.4-r3.ebuild,
+  +xen-tools-4.2.4-r4.ebuild, +xen-tools-4.3.2-r3.ebuild,
+  -xen-tools-4.4.0-r4.ebuild, +xen-tools-4.4.0-r5.ebuild,
+  +files/xen-tools-4-anti-seabios-download.patch:
+  re-introduce bundled seabios with USE=system-seabios flag, bug #510052,
+  #510492, #510680

bring back bundled seabios with USE="-system-seabios", remove hardcoded with >=seabios-1.7.4
here is my tested/working version with xen HVM
1) USE="-system-seabios" emerge =xen-tools-4.4.0-r5
2) USE="-binary" emerge =seabios-1.7.3.2, USE="system-seabios" emerge =xen-tools-4.4.0-r5
3) USE="binary" emerge =seabios-1.7.4, USE="system-seabios" emerge =xen-tools-4.4.0-r5