* [gentoo-user] Linode discontinuing Xen, migrating to KVM
@ 2017-10-02 17:30 Tanstaafl
2017-10-02 18:39 ` Stroller
` (2 more replies)
0 siblings, 3 replies; 18+ messages in thread
From: Tanstaafl @ 2017-10-02 17:30 UTC (permalink / raw
To: Gentoo-User
[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]
Ok, so just got the notice that Linode is discontinuing their support
for Xen, and forcing everyone to migrate their VMs to KVM.
Of course this comes at the worst possible time for me, when I'm out of
the country, and won't be back before the deadline (the 9th).
I have a week, so am trying to do everything I can to ensure they come
up successfully. I have two, one production, and a second one we were
going to use as a dev/test server, but in reality, we don't use it,
although I want to keep it running too (will perform the migration on it
first).
I'm especially worried, because these VMs are running an ancient web
application that requires older versions of Apache, PHP and Postgresql,
so cannot be and haven't been updated in a very long time (I kept them
up to date as long as I could by pinning the old apps and testing
updates on the dev/test server until it just got to be too much work)...
They are both (thankfully) running a current Linode kernel, so I HOPE
this migration won't kill either of them.
One thing I do seem to recall is there was somewhere that I had to
define Xen as the virtualization environment being used, but I can't
remember where I did that. Was that in the kernel config? If so, their
tool should (hopefully) handle that change.
Anyway, was hoping some kind souls here might give me a few things to
check and possibly do proactively to ensure a smooth transition.
Emerge --info for each one attached
Thanks!
emerg--i
[-- Attachment #2: emerge-info-prod.txt --]
[-- Type: text/plain, Size: 4579 bytes --]
Portage 2.2.8-r2 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.19-r1, 4.9.36-x86-linode104 i686)
=================================================================
System uname: Linux-4.9.36-x86-linode104-i686-Intel-R-_Xeon-R-_CPU_E5-2680_v2_@_2.80GHz-with-gentoo-2.2
KiB Mem: 3091800 total, 1280696 free
KiB Swap: 262140 total, 262140 free
Timestamp of tree: Tue, 07 Oct 2014 12:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash: 4.2_p53
dev-lang/perl: 5.18.2-r1
dev-lang/python: 2.7.7, 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.11.6, 1.12.6, 1.13.4
sys-devel/binutils: 2.23.2
sys-devel/gcc: 4.7.3-r1
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg 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 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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://rsync.us.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv mailwrapper modules ncurses nls nptl openmp pam pcre php postgres readline session ssl tcpd unicode x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" 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" 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
[-- Attachment #3: emerge-info-dev.txt --]
[-- Type: text/plain, Size: 4535 bytes --]
Portage 2.2.8-r2 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.19-r1, 4.9.36-x86_64-linode85 x86_64)
=================================================================
System uname: Linux-4.9.36-x86_64-linode85-x86_64-Intel-R-_Xeon-R-_CPU_E5-2680_v2_@_2.80GHz-with-gentoo-2.2
KiB Mem: 2036044 total, 282864 free
KiB Swap: 262140 total, 262140 free
Timestamp of tree: Tue, 07 Oct 2014 12:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash: 4.2_p53
dev-lang/perl: 5.18.2-r1
dev-lang/python: 2.7.7, 3.3.5-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.11.6, 1.12.6, 1.13.4
sys-devel/binutils: 2.23.2
sys-devel/gcc: 4.7.3-r1
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg 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 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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://rsync.us.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv mailwrapper modules ncurses nls nptl openmp pam pcre php postgres readline session ssl tcpd unicode x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lockdbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" 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" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-02 17:30 [gentoo-user] Linode discontinuing Xen, migrating to KVM Tanstaafl
@ 2017-10-02 18:39 ` Stroller
2017-10-02 20:03 ` Tanstaafl
2017-10-03 5:27 ` victor romanchuk
2017-10-05 22:01 ` Tanstaafl
2 siblings, 1 reply; 18+ messages in thread
From: Stroller @ 2017-10-02 18:39 UTC (permalink / raw
To: gentoo-user
> On 2 Oct 2017, at 18:30, Tanstaafl <tanstaafl@libertytrek.org> wrote:
>
> One thing I do seem to recall is there was somewhere that I had to
> define Xen as the virtualization environment being used, but I can't
> remember where I did that. Was that in the kernel config? If so, their
> tool should (hopefully) handle that change.
See last lines:
~ $ grep -B 25 -ie xen -ie kvm /etc/rc.conf
# This is mainly used for saying which services do NOT provide net.
#rc_net_tap0_provide="!net"
# This is the subsystem type.
# It is used to match against keywords set by the keyword call in the
# depend function of service scripts.
#
# It should be set to the value representing the environment this file is
# PRESENTLY in, not the virtualization the environment is capable of.
# If it is commented out, automatic detection will be used.
#
# The list below shows all possible settings as well as the host
# operating systems where they can be used and autodetected.
#
# "" - nothing special
# "docker" - Docker container manager (Linux)
# "jail" - Jail (DragonflyBSD or FreeBSD)
# "lxc" - Linux Containers
# "openvz" - Linux OpenVZ
# "prefix" - Prefix
# "rkt" - CoreOS container management system (Linux)
# "subhurd" - Hurd subhurds (to be checked)
# "systemd-nspawn" - Container created by systemd-nspawn (Linux)
# "uml" - Usermode Linux
# "vserver" - Linux vserver
# "xen0" - Xen0 Domain (Linux and NetBSD)
# "xenU" - XenU Domain (Linux and NetBSD)
~ $
This on a Linode host, BTW. They haven't told me I need to do anything, so I hope I'm ok.
HTH,
Stroller.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-02 18:39 ` Stroller
@ 2017-10-02 20:03 ` Tanstaafl
2017-10-02 21:17 ` Tanstaafl
2017-10-03 3:52 ` R0b0t1
0 siblings, 2 replies; 18+ messages in thread
From: Tanstaafl @ 2017-10-02 20:03 UTC (permalink / raw
To: gentoo-user
On 10/2/2017, 2:39:51 PM, Stroller <Stroller@stellar.eclipse.co.uk> wrote:
>
>> On 2 Oct 2017, at 18:30, Tanstaafl <tanstaafl@libertytrek.org> wrote:
>>
>> One thing I do seem to recall is there was somewhere that I had to
>> define Xen as the virtualization environment being used, but I can't
>> remember where I did that. Was that in the kernel config? If so, their
>> tool should (hopefully) handle that change.
>
> See last lines:
>
> ~ $ grep -B 25 -ie xen -ie kvm /etc/rc.conf
<snip>
> # "xen0" - Xen0 Domain (Linux and NetBSD)
> # "xenU" - XenU Domain (Linux and NetBSD)
> ~ $
>
> This on a Linode host, BTW. They haven't told me I need to do anything, so I hope I'm ok.
>
> HTH,
Thanks! Yes, at least now I know where that was specified... and since
there is nothing there for kvm, I guess you just leave it commented, BUT...
yours doesn't appear to be set?? Mine is set to "xenU".
So... maybe I've never even needed this? Or maybe I did way back when I
first installed this (probably 7 or 8 years ago), and it isn't needed
any longer? Would the need for it be based on the kernel version? OR the
underlying Xen Host version? Or something else?
More importantly - I guess I should comment it out right before the
migration? Or is this something I can do after? IF I don't, how would I
handle it?
Wish I had more time to learn about how all of this worked...
Anyway, thanks again for at least filling in one blank...
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-02 20:03 ` Tanstaafl
@ 2017-10-02 21:17 ` Tanstaafl
2017-10-04 9:42 ` J. Roeleveld
2017-10-03 3:52 ` R0b0t1
1 sibling, 1 reply; 18+ messages in thread
From: Tanstaafl @ 2017-10-02 21:17 UTC (permalink / raw
To: gentoo-user
On 10/2/2017, 4:03:37 PM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> On 10/2/2017, 2:39:51 PM, Stroller <Stroller@stellar.eclipse.co.uk> wrote:
>>
>>> On 2 Oct 2017, at 18:30, Tanstaafl <tanstaafl@libertytrek.org> wrote:
>>>
>>> One thing I do seem to recall is there was somewhere that I had to
>>> define Xen as the virtualization environment being used, but I can't
>>> remember where I did that. Was that in the kernel config? If so, their
>>> tool should (hopefully) handle that change.
>>
>> See last lines:
>>
>> ~ $ grep -B 25 -ie xen -ie kvm /etc/rc.conf
> <snip>
>> # "xen0" - Xen0 Domain (Linux and NetBSD)
>> # "xenU" - XenU Domain (Linux and NetBSD)
>> ~ $
>>
>> This on a Linode host, BTW. They haven't told me I need to do anything, so I hope I'm ok.
>>
>> HTH,
>
> Thanks! Yes, at least now I know where that was specified... and since
> there is nothing there for kvm, I guess you just leave it commented, BUT...
>
> yours doesn't appear to be set?? Mine is set to "xenU".
Also, yours shows 12 different choices, mine only shows 8:
##############################################################################
# LINUX SPECIFIC OPTIONS
# This is the subsystem type. Valid options on Linux:
# "" - nothing special
# "lxc" - Linux Containers
# "openvz" - Linux OpenVZ
# "prefix" - Prefix
# "uml" - Usermode Linux
# "vserver" - Linux vserver
# "xen0" - Xen0 Domain
# "xenU" - XenU Domain
# If this is commented out, automatic detection will be used.
#
Wonder why that is?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-02 20:03 ` Tanstaafl
2017-10-02 21:17 ` Tanstaafl
@ 2017-10-03 3:52 ` R0b0t1
2017-10-03 11:38 ` Tanstaafl
1 sibling, 1 reply; 18+ messages in thread
From: R0b0t1 @ 2017-10-03 3:52 UTC (permalink / raw
To: gentoo-user
Hello friends!
On Mon, Oct 2, 2017 at 3:03 PM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> On 10/2/2017, 2:39:51 PM, Stroller <Stroller@stellar.eclipse.co.uk> wrote:
>>
>>> On 2 Oct 2017, at 18:30, Tanstaafl <tanstaafl@libertytrek.org> wrote:
>>>
>>> One thing I do seem to recall is there was somewhere that I had to
>>> define Xen as the virtualization environment being used, but I can't
>>> remember where I did that. Was that in the kernel config? If so, their
>>> tool should (hopefully) handle that change.
>>
>> See last lines:
>>
>> ~ $ grep -B 25 -ie xen -ie kvm /etc/rc.conf
> <snip>
>> # "xen0" - Xen0 Domain (Linux and NetBSD)
>> # "xenU" - XenU Domain (Linux and NetBSD)
>> ~ $
>>
>> This on a Linode host, BTW. They haven't told me I need to do anything, so I hope I'm ok.
>>
>> HTH,
>
> Thanks! Yes, at least now I know where that was specified... and since
> there is nothing there for kvm, I guess you just leave it commented, BUT...
>
> yours doesn't appear to be set?? Mine is set to "xenU".
>
Due to the nature of how both Xen and QEMU/KVM work, there is no need
to set any kernel configuration that tells the kernel it is running on
virtual hardware. However, if you do so, you will see performance
gains.
Some of these performance gains are visible outside of the virtualized
system so hosting providers would be within their rights to require
specific configuration, but I expect they would have made it obvious.
Refer to https://wiki.gentoo.org/wiki/QEMU/Linux_guest, but these
settings require support from Linode.
> So... maybe I've never even needed this? Or maybe I did way back when I
> first installed this (probably 7 or 8 years ago), and it isn't needed
> any longer? Would the need for it be based on the kernel version? OR the
> underlying Xen Host version? Or something else?
>
> More importantly - I guess I should comment it out right before the
> migration? Or is this something I can do after? IF I don't, how would I
> handle it?
>
As long as your kernel has the appropriate drivers (i.e. you didn't
include only the virtualized Xen drivers and left most of the default
options intact) it should boot under QEMU/KVM or even on a bare metal
system.
Cheers,
R0b0t1
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-02 17:30 [gentoo-user] Linode discontinuing Xen, migrating to KVM Tanstaafl
2017-10-02 18:39 ` Stroller
@ 2017-10-03 5:27 ` victor romanchuk
2017-10-03 11:28 ` Tanstaafl
2017-10-05 22:01 ` Tanstaafl
2 siblings, 1 reply; 18+ messages in thread
From: victor romanchuk @ 2017-10-03 5:27 UTC (permalink / raw
To: gentoo-user
hi
On 10/02/2017 08:30 PM, Tanstaafl wrote:
> One thing I do seem to recall is there was somewhere that I had to
> define Xen as the virtualization environment being used, but I can't
> remember where I did that. Was that in the kernel config? If so, their
> tool should (hopefully) handle that change.
>
> Anyway, was hoping some kind souls here might give me a few things to
> check and possibly do proactively to ensure a smooth transition.
>
there are two files to change/check before migration
* /etc/inittab :: console terminal (XEN PV domUs do use hvc console and KVM VM employ normal linux
console)
-c1:12345:/respawn:/sbin/agetty 38400 hvc0 linux
+c1:12345:respawn:/sbin/agetty 38400 ttyS0 linux
* /etc/fstab :: XEN PV do use xvdN volumes and KVM VM volume naming is canonical
-/dev/xvdb none swap sw 0 0
+/dev/sdb none swap sw 0 0
the migration itself is automated; linode did it for me flawlessly: few minutes of downtime needed
to convert images and to move them to different hardware (in my case)
hth
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-03 5:27 ` victor romanchuk
@ 2017-10-03 11:28 ` Tanstaafl
2017-10-03 19:22 ` victor romanchuk
0 siblings, 1 reply; 18+ messages in thread
From: Tanstaafl @ 2017-10-03 11:28 UTC (permalink / raw
To: gentoo-user
On 10/3/2017, 1:27:45 AM, victor romanchuk <rom@persimplex.net> wrote:
> there are two files to change/check before migration
>
> * /etc/inittab :: console terminal (XEN PV domUs do use hvc console and KVM VM employ normal linux
> console)
>
> -c1:12345:/respawn:/sbin/agetty 38400 hvc0 linux
> +c1:12345:respawn:/sbin/agetty 38400 ttyS0 linux
>
> * /etc/fstab :: XEN PV do use xvdN volumes and KVM VM volume naming is canonical
>
> -/dev/xvdb none swap sw 0 0
> +/dev/sdb none swap sw 0 0
>
>
> the migration itself is automated; linode did it for me flawlessly: few minutes of downtime needed
> to convert images and to move them to different hardware (in my case)
Thanks - but I thought these were changed as part of the automated
process (from what I've read).
Did you change yours manually?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-03 3:52 ` R0b0t1
@ 2017-10-03 11:38 ` Tanstaafl
2017-10-04 0:09 ` R0b0t1
2017-10-04 9:45 ` J. Roeleveld
0 siblings, 2 replies; 18+ messages in thread
From: Tanstaafl @ 2017-10-03 11:38 UTC (permalink / raw
To: gentoo-user
On 10/2/2017, 11:52:21 PM, R0b0t1 <r030t1@gmail.com> wrote:
> As long as your kernel has the appropriate drivers (i.e. you didn't
> include only the virtualized Xen drivers and left most of the default
> options intact) it should boot under QEMU/KVM or even on a bare metal
> system.
Hmmm, something else I just remembered when I noticed my production
server is running a 32 bit kernel...
A long time ago, maybe 6 or 7 years, something weird happened when
Linode had some kind of problem (maybe it was another one of their
maintenance processes, I don't recall), I had a heck of a time getting
it back up, I finally had to do a full rebuild, and distinctly remember
changing to a 32 bit kernel during the process, but never changed back.
Do I need to do a full system rebuild to change back to the 64 bit kernel?
Also, I haven't played with Linodes 'System Profiles' at all - I was
thinking I'd just create a new profile, add my Gentoo System Image and a
swap image to it, but assign the 64 bit kernel, then if it doesn't work,
switch back. Should I be able to do that without causing any problems to
the current/working profile?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-03 11:28 ` Tanstaafl
@ 2017-10-03 19:22 ` victor romanchuk
0 siblings, 0 replies; 18+ messages in thread
From: victor romanchuk @ 2017-10-03 19:22 UTC (permalink / raw
To: gentoo-user
On 10/03/2017 02:28 PM, Tanstaafl wrote:
> On 10/3/2017, 1:27:45 AM, victor romanchuk <rom@persimplex.net> wrote:
>> there are two files to change/check before migration
>>
>> * /etc/inittab :: console terminal (XEN PV domUs do use hvc console and KVM VM employ normal linux
>> console)
>>
>> -c1:12345:/respawn:/sbin/agetty 38400 hvc0 linux
>> +c1:12345:respawn:/sbin/agetty 38400 ttyS0 linux
>>
>> * /etc/fstab :: XEN PV do use xvdN volumes and KVM VM volume naming is canonical
>>
>> -/dev/xvdb none swap sw 0 0
>> +/dev/sdb none swap sw 0 0
>>
>> the migration itself is automated; linode did it for me flawlessly: few minutes of downtime needed
>> to convert images and to move them to different hardware (in my case)
> Thanks - but I thought these were changed as part of the automated
> process (from what I've read).
>
> Did you change yours manually?
>
I forgot it :)
most likely it was performed by linode automation at least what I'm seeing now confirms that (both
files were modified together):
$ stat /etc/inittab /etc/fstab
File: '/etc/inittab'
Size: 1937 Blocks: 4 IO Block: 1024 regular file
Device: 800h/2048d Inode: 102725 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-09-11 23:46:24.000000000 +0300
Modify: 2017-09-11 23:46:24.000000000 +0300
Change: 2017-09-11 23:46:24.000000000 +0300
Birth: -
File: '/etc/fstab'
Size: 1066 Blocks: 4 IO Block: 1024 regular file
Device: 800h/2048d Inode: 102672 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-09-11 23:46:24.000000000 +0300
Modify: 2017-09-11 23:46:24.000000000 +0300
Change: 2017-09-11 23:46:24.000000000 +0300
Birth: -
anyway I kept that in mind when preparing myself to switch to KVM: the configuration is unusual -
64bit kernel (supplied by linode) and 32bit userspace (minimalistic gentoo with very few packages
and default x86 profile)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-03 11:38 ` Tanstaafl
@ 2017-10-04 0:09 ` R0b0t1
2017-10-04 9:45 ` J. Roeleveld
1 sibling, 0 replies; 18+ messages in thread
From: R0b0t1 @ 2017-10-04 0:09 UTC (permalink / raw
To: gentoo-user
On Tue, Oct 3, 2017 at 6:38 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> On 10/2/2017, 11:52:21 PM, R0b0t1 <r030t1@gmail.com> wrote:
>> As long as your kernel has the appropriate drivers (i.e. you didn't
>> include only the virtualized Xen drivers and left most of the default
>> options intact) it should boot under QEMU/KVM or even on a bare metal
>> system.
>
> Hmmm, something else I just remembered when I noticed my production
> server is running a 32 bit kernel...
>
> A long time ago, maybe 6 or 7 years, something weird happened when
> Linode had some kind of problem (maybe it was another one of their
> maintenance processes, I don't recall), I had a heck of a time getting
> it back up, I finally had to do a full rebuild, and distinctly remember
> changing to a 32 bit kernel during the process, but never changed back.
>
> Do I need to do a full system rebuild to change back to the 64 bit kernel?
>
It shouldn't matter. The virtual processor (just like a real one)
starts up in 16 bit mode and is then set to 32 and then 64 bit mode by
software.
> Also, I haven't played with Linodes 'System Profiles' at all - I was
> thinking I'd just create a new profile, add my Gentoo System Image and a
> swap image to it, but assign the 64 bit kernel, then if it doesn't work,
> switch back. Should I be able to do that without causing any problems to
> the current/working profile?
>
I probably wouldn't use the Linode supplied configurations either, but
it might be a good idea to run diff on yours and theirs to see what
options are different.
R0b0t1.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-02 21:17 ` Tanstaafl
@ 2017-10-04 9:42 ` J. Roeleveld
0 siblings, 0 replies; 18+ messages in thread
From: J. Roeleveld @ 2017-10-04 9:42 UTC (permalink / raw
To: gentoo-user
On Monday, October 2, 2017 11:17:46 PM CEST Tanstaafl wrote:
> On 10/2/2017, 4:03:37 PM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> > On 10/2/2017, 2:39:51 PM, Stroller <Stroller@stellar.eclipse.co.uk> wrote:
> >>> On 2 Oct 2017, at 18:30, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> >>>
> >>> One thing I do seem to recall is there was somewhere that I had to
> >>> define Xen as the virtualization environment being used, but I can't
> >>> remember where I did that. Was that in the kernel config? If so, their
> >>> tool should (hopefully) handle that change.
> >>
> >> See last lines:
> >>
> >> ~ $ grep -B 25 -ie xen -ie kvm /etc/rc.conf
> >
> > <snip>
> >
> >> # "xen0" - Xen0 Domain (Linux and NetBSD)
> >> # "xenU" - XenU Domain (Linux and NetBSD)
> >> ~ $
> >>
> >> This on a Linode host, BTW. They haven't told me I need to do anything,
> >> so I hope I'm ok.
> >>
> >> HTH,
> >
> > Thanks! Yes, at least now I know where that was specified... and since
> > there is nothing there for kvm, I guess you just leave it commented,
> > BUT...
> >
> > yours doesn't appear to be set?? Mine is set to "xenU".
>
> Also, yours shows 12 different choices, mine only shows 8:
>
> ############################################################################
> ## # LINUX SPECIFIC OPTIONS
>
> # This is the subsystem type. Valid options on Linux:
> # "" - nothing special
> # "lxc" - Linux Containers
> # "openvz" - Linux OpenVZ
> # "prefix" - Prefix
> # "uml" - Usermode Linux
> # "vserver" - Linux vserver
> # "xen0" - Xen0 Domain
> # "xenU" - XenU Domain
> # If this is commented out, automatic detection will be used.
> #
>
> Wonder why that is?
These got updated at some point.
For Xen-guest, I specify:
# rc_sys="xenU"
for KVM guests (got 2 running in the "cloud"):"
# rc_sys=""
If 'rc_sys' is not set, openrc tries to auto-detect.
If it is set, it will not auto-detect and use whatever you specified.
--
Joost
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-03 11:38 ` Tanstaafl
2017-10-04 0:09 ` R0b0t1
@ 2017-10-04 9:45 ` J. Roeleveld
1 sibling, 0 replies; 18+ messages in thread
From: J. Roeleveld @ 2017-10-04 9:45 UTC (permalink / raw
To: gentoo-user
On Tuesday, October 3, 2017 1:38:46 PM CEST Tanstaafl wrote:
> On 10/2/2017, 11:52:21 PM, R0b0t1 <r030t1@gmail.com> wrote:
> > As long as your kernel has the appropriate drivers (i.e. you didn't
> > include only the virtualized Xen drivers and left most of the default
> > options intact) it should boot under QEMU/KVM or even on a bare metal
> > system.
>
> Hmmm, something else I just remembered when I noticed my production
> server is running a 32 bit kernel...
>
> A long time ago, maybe 6 or 7 years, something weird happened when
> Linode had some kind of problem (maybe it was another one of their
> maintenance processes, I don't recall), I had a heck of a time getting
> it back up, I finally had to do a full rebuild, and distinctly remember
> changing to a 32 bit kernel during the process, but never changed back.
>
> Do I need to do a full system rebuild to change back to the 64 bit kernel?
A 32bit userspace can run with either a 32bit or 64bit kernel.
A 64bit userspace can NOT run with a 32bit kernel.
As you currently have a 32bit kernel, I am assuming a 32bit userspace. A 64bit
kernel should not cause issues.
> Also, I haven't played with Linodes 'System Profiles' at all - I was
> thinking I'd just create a new profile, add my Gentoo System Image and a
> swap image to it, but assign the 64 bit kernel, then if it doesn't work,
> switch back. Should I be able to do that without causing any problems to
> the current/working profile?
I have no experience with Linode. Can't they assist with this?
Personally, having a forced change like this would make me reconsider the
hosting partner.
--
Joost
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-02 17:30 [gentoo-user] Linode discontinuing Xen, migrating to KVM Tanstaafl
2017-10-02 18:39 ` Stroller
2017-10-03 5:27 ` victor romanchuk
@ 2017-10-05 22:01 ` Tanstaafl
2017-10-05 22:05 ` Tanstaafl
2017-10-05 22:53 ` Stroller
2 siblings, 2 replies; 18+ messages in thread
From: Tanstaafl @ 2017-10-05 22:01 UTC (permalink / raw
To: gentoo-user
On Mon Oct 02 2017 13:30:03 GMT-0400 (Eastern Standard Time), Tanstaafl
<tanstaafl@libertytrek.org> wrote:
> Ok, so just got the notice that Linode is discontinuing their support
> for Xen, and forcing everyone to migrate their VMs to KVM.
Thanks very much to all who replied, two last questions for those who
are using Linode...
First - are you using 'Auto Configure Networking' (is it enabled or
disabled in your Linode options)?
Second, do you have rc_sys defined, or are you using auto-detect (is it
just commented out)?
Thanks again to all who replied...
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-05 22:01 ` Tanstaafl
@ 2017-10-05 22:05 ` Tanstaafl
2017-10-05 22:53 ` Stroller
1 sibling, 0 replies; 18+ messages in thread
From: Tanstaafl @ 2017-10-05 22:05 UTC (permalink / raw
To: gentoo-user
On Thu Oct 05 2017 18:01:01 GMT-0400 (Eastern Standard Time), Tanstaafl
<tanstaafl@libertytrek.org> wrote:
> Second, do you have rc_sys defined, or are you using auto-detect (is it
> just commented out)?
Oh - and if I were to change this to auto-detect (comment it out), and
the VM failed to boot, can I specify/change it on the grub boot command
line (still using grub legacy) to recover?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-05 22:01 ` Tanstaafl
2017-10-05 22:05 ` Tanstaafl
@ 2017-10-05 22:53 ` Stroller
2017-10-06 14:31 ` Tanstaafl
1 sibling, 1 reply; 18+ messages in thread
From: Stroller @ 2017-10-05 22:53 UTC (permalink / raw
To: gentoo-user
> On 5 Oct 2017, at 23:01, Tanstaafl <tanstaafl@libertytrek.org> wrote:
>
> Thanks very much to all who replied, two last questions for those who
> are using Linode…
I've only been using Linode a couple of weeks, and I know nothing about Xen vs KVM.
I just installed Linode's Gentoo image file in a new VM, and started using it, so the below are the defaults.
> First - are you using 'Auto Configure Networking' (is it enabled or
> disabled in your Linode options)?
Enabled.
/etc/resolv.conf and /etc/conf.d/net both say "This file is automatically generated on each boot with your Linode's current network configuration."
I'm not sure I'd dare change it, to be honest.
> Second, do you have rc_sys defined, or are you using auto-detect (is it
> just commented out)?
Just commented out.
Stroller.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-05 22:53 ` Stroller
@ 2017-10-06 14:31 ` Tanstaafl
2017-10-07 4:09 ` Stroller
0 siblings, 1 reply; 18+ messages in thread
From: Tanstaafl @ 2017-10-06 14:31 UTC (permalink / raw
To: gentoo-user
On Thu Oct 05 2017 18:53:37 GMT-0400 (Eastern Standard Time), Stroller
<stroller@stellar.eclipse.co.uk> wrote:
> I just installed Linode's Gentoo image file in a new VM, and started
> using it, so the below are the defaults.
Thanks Stroller,
I had to somehow use my own Gentoo image when I first installed these as
they didn't officially provide any, glad to hear they do now.
>> First - are you using 'Auto Configure Networking' (is it enabled
>> or disabled in your Linode options)?
>
> Enabled.
>
> /etc/resolv.conf and /etc/conf.d/net both say "This file is
> automatically generated on each boot with your Linode's current
> network configuration."
>
> I'm not sure I'd dare change it, to be honest.
Well, I'm not so worried about that since you can always access the VM
using the LISH console to change something like that back.
I'll experiment with this on my Dev VM that isn't mission critical. I
migrated it last night, and it came up just fine, so hopefully my
Production VM will be just as painless.
>> Second, do you have rc_sys defined, or are you using auto-detect (is it
>> just commented out)?
>
> Just commented out.
This is the one I'm worried about - how to change it back if it totally
breaks the ability to even boot.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-06 14:31 ` Tanstaafl
@ 2017-10-07 4:09 ` Stroller
2017-10-07 9:11 ` Tanstaafl
0 siblings, 1 reply; 18+ messages in thread
From: Stroller @ 2017-10-07 4:09 UTC (permalink / raw
To: gentoo-user
> On 6 Oct 2017, at 15:31, Tanstaafl <tanstaafl@libertytrek.org> wrote:
>
>>> Second, do you have rc_sys defined, or are you using auto-detect (is it
>>> just commented out)?
>>
>> Just commented out.
>
> This is the one I'm worried about - how to change it back if it totally
> breaks the ability to even boot.
Detach the drive from the VM, and attach it as /dev/sd[cdefgh] on another VM?
See: Linodes » <name of your node> » Edit Configuration Profile » Block Device Assignment
Also in the dropdowns there is an option for "Recovery -Finnix (iso)".
Stroller.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [gentoo-user] Linode discontinuing Xen, migrating to KVM
2017-10-07 4:09 ` Stroller
@ 2017-10-07 9:11 ` Tanstaafl
0 siblings, 0 replies; 18+ messages in thread
From: Tanstaafl @ 2017-10-07 9:11 UTC (permalink / raw
To: gentoo-user
On 10/7/2017, 12:09:07 AM, Stroller <stroller@stellar.eclipse.co.uk> wrote:
>
>> On 6 Oct 2017, at 15:31, Tanstaafl <tanstaafl@libertytrek.org> wrote:
>>
>>>> Second, do you have rc_sys defined, or are you using auto-detect (is it
>>>> just commented out)?
>>>
>>> Just commented out.
>>
>> This is the one I'm worried about - how to change it back if it totally
>> breaks the ability to even boot.
>
> Detach the drive from the VM, and attach it as /dev/sd[cdefgh] on another VM?
>
> See: Linodes » <name of your node> » Edit Configuration Profile » Block Device Assignment
>
> Also in the dropdowns there is an option for "Recovery -Finnix (iso)".
Thanks, yes, I found that in the docs when reading, but was wondering if
there was some lind of grub command-line boot option I could pass (would
be much easier)...
Anyway, wasn't necessary, the migration went perfectly...
1. Change to the 64 bit kernel, reboot
2. Enter migration queue
3. Wait...................................... about 5 minutes
4. Done.
:)
Thanks to everyone who responded!
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2017-10-07 9:11 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-02 17:30 [gentoo-user] Linode discontinuing Xen, migrating to KVM Tanstaafl
2017-10-02 18:39 ` Stroller
2017-10-02 20:03 ` Tanstaafl
2017-10-02 21:17 ` Tanstaafl
2017-10-04 9:42 ` J. Roeleveld
2017-10-03 3:52 ` R0b0t1
2017-10-03 11:38 ` Tanstaafl
2017-10-04 0:09 ` R0b0t1
2017-10-04 9:45 ` J. Roeleveld
2017-10-03 5:27 ` victor romanchuk
2017-10-03 11:28 ` Tanstaafl
2017-10-03 19:22 ` victor romanchuk
2017-10-05 22:01 ` Tanstaafl
2017-10-05 22:05 ` Tanstaafl
2017-10-05 22:53 ` Stroller
2017-10-06 14:31 ` Tanstaafl
2017-10-07 4:09 ` Stroller
2017-10-07 9:11 ` Tanstaafl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox