Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jun 15, 2015 6:06 pm 
Offline

Joined: Wed Sep 08, 2010 4:55 pm
Posts: 1
When moving from the Linode kernels to Direct to Disk, how does KVM know which device to boot from? Does it a always boot from /dev/sda? Or can I create a separate boot device, say on /dev/sdc, install the MBR there, and boot from that device?

I ask, because it would be nice to be able to have a separate image for booting, and only mount it on /boot when updating the kernel. This would also provide a convenient way to test out different kernels. Each could live in its own boot image.


Top
   
PostPosted: Mon Jun 15, 2015 6:08 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
The idea is that the "root device" inside the Configuration Profile becomes the "boot device" selector, when using Direct Disk mode.

I know there have been changes made to that code recently to improve this - it may have been deployed today. If not, it's staged code and will be avail very soon.

-Chris


Top
   
PostPosted: Mon Jun 15, 2015 10:55 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
I assumed that with a new KVM we should be changing fstab entries from /dev/sd[abc...] to UUID's? I did this before accepting the KVM today. This upgrade seemed to go OK. Am I correct about using UUID's; e.g., will this be required soon?

_________________
http://www.ingber.com


Top
   
PostPosted: Mon Jun 15, 2015 11:02 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
There is nothing specific about using UUIDs in either Xen or KVM Linodes. If you want to roll with UUIDs, you can - but by no means is it necessary.

-Chris


Top
   
PostPosted: Tue Jun 16, 2015 5:59 am 
Offline
Senior Member

Joined: Fri Feb 13, 2015 8:12 pm
Posts: 101
UUID is not necessary, but only if you use the "distro-helper".

This is what happened in a test linode after I switched to KVM:

Code:
Only in etc.after/event.disabled: hvc0.conf
diff -ru etc.before/fstab etc.after/fstab
--- etc.before/fstab   2015-06-13 13:16:59.000000000 +0200
+++ etc.after/fstab   2015-06-13 13:23:09.000000000 +0200
@@ -6,8 +6,8 @@
 #
 # <file system> <mount point>   <type>  <options>       <dump>  <pass>
 proc        /proc        proc    defaults                       0 0
-/dev/xvda   /            ext4    noatime,errors=remount-ro      0 1
-/dev/xvdb   none         swap    sw   
+/dev/sda   /            ext4    noatime,errors=remount-ro      0 1
+/dev/sdb   none         swap    sw   
 none            /tmp            tmpfs   mode=1777       0       0
 none /var/cache/apt       tmpfs mode=755                    0       0
 none /var/lib/apt/lists   tmpfs mode=755                    0       0
Only in etc.before/init: hvc0.conf
Only in etc.after/init: ttyS0.conf

There are two kinds of changes here:

* The /etc/init thing. This is only for upstart, used mainly by old Ubuntu releases. Not required anymore if the distro is recent enough.
* The /etc/fstab thing. Modifying /etc/fstab is not required at all when using UUID.

So I would say that UUID and systemd have made distro-helper to be obsolete.

IMHO, switching to KVM would have been a good opportunity to start deprecating distro-helper and start using UUID, like everybody else.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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