Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jun 10, 2015 9:10 am 
Offline
Senior Newbie

Joined: Sat May 07, 2011 3:00 pm
Posts: 13
Website: http://broce.net
Location: Duluth, GA
My migration worked fine. Couple of things. I was using the Debian kernel on Xen..Did not boot using legacy grub on kvm.
I switched to the latest 64 bit kernel and it booted.

I installed removed grub-legacy (after extensive experiments) and installed grub2..ran install-grub and
selected grub for boot loader in profile. It runs fine. Only remaining problem is the ajax console won't connect.

Still experimenting with it. If anyone has a solution..please let me know.

fb


Top
   
PostPosted: Wed Jun 10, 2015 11:23 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Change your init stuff to start a getty on ttyS0 instead of hvc0.

-Chris


Top
   
PostPosted: Wed Jun 10, 2015 11:43 am 
Offline
Senior Newbie

Joined: Sat May 07, 2011 3:00 pm
Posts: 13
Website: http://broce.net
Location: Duluth, GA
I fixed it..it works btw with the linode kernels w/o adding this but using grub with distro kernel add this to /etc/default/grub
GRUB_TERMINAL=console
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX="text console=tty0 console=ttyS0,115200n8"

Your fix may be easier..I will check that too.

Everything works great..I assume my kvm linode with eventually become non-beta w/o any action on my part?

fb


Top
   
PostPosted: Sat Jun 13, 2015 8:53 am 
Offline
Senior Member

Joined: Fri Feb 13, 2015 8:12 pm
Posts: 101
The following worked for me to migrate a newly installed Debian 8 system to KVM using distro-provided kernel:

* Keep using linode kernel.
* Switch to KVM using the button. Make sure "Distro Helper" is enabled, as it takes care of modifying /etc/fstab automatically.
* apt-get install grub-pc linux-image-amd64
* Do not select *any* device like /dev/sda to install GRUB.
* When asked "Continue without installing GRUB?", say Yes.
* nano /etc/default/grub
GRUB_CMDLINE_LINUX="console=ttyS0"
* update-grub
* Select GRUB2 in Dashboard.
* reboot


Top
   
PostPosted: Sat Jun 13, 2015 11:10 am 
Offline
Senior Newbie

Joined: Sat May 07, 2011 3:00 pm
Posts: 13
Website: http://broce.net
Location: Duluth, GA
That works too. Simpler. I revised my settings.

I did have a problem with Dovecot not starting after reboot (..time backwards error) because of ntp's failure to get time before Dovecot started.
I changed ntp servers and that resolved that issue. I was using the debian default servers and changed to ntp.org servers.

fb


Top
   
PostPosted: Sat Jun 13, 2015 5:33 pm 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
sanvila wrote:
The following worked for me to migrate a newly installed Debian 8 system to KVM using distro-provided kernel:

* Keep using linode kernel.
* Switch to KVM using the button. Make sure "Distro Helper" is enabled, as it takes care of modifying /etc/fstab automatically.
* apt-get install grub-pc linux-image-amd64
* Do not select *any* device like /dev/sda to install GRUB.
* When asked "Continue without installing GRUB?", say Yes.
* nano /etc/default/grub
GRUB_CMDLINE_LINUX="console=ttyS0"
* update-grub
* Select GRUB2 in Dashboard.
* reboot


I just want to add to this, while obvious in hindsight... If you're using a custom kernel, you'll have to recompile it for KVM depending on your compile options. mine had XEN-specific options so it wouldn't boot. Just boot with a linode supplied kernel, remove the old kernel and recompile a new one. I also removed all old grub packages and installed grub2 so I could boot with the grub 2 option instead of the legacy one.
I followed: https://www.linode.com/docs/tools-refer ... ith-pvgrub (oh and mkinitrd is called mkinitramfs under debian)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group