Difference between revisions of "stoney cloud: Installation in Qemu\KVM"

From stoney cloud
Jump to: navigation, search
[unchecked revision][unchecked revision]
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
== Before finishing the installation ==
 
== Before finishing the installation ==
 +
When being asked <code>Do you want to reboot your system?</code> switch to a second console (Alt + F2) and execute:
 +
vim /mnt/osbd/boot/grub/grub.conf
  
When being asked <code>Do you want to reboot your system?</code> switch to a second console and do this:
+
Append the following to the two lines starting with "kernel":
 
+
doload=virtio_pci,virtio_blk
<source lang='bash'>
+
vim /mnt/osbd/boot/grub/grub.conf
+
# append the following to the two lines starting with "kernel":
+
doload=virtio_pci,virtio_blk
+
</source>
+
  
 
This will make sure that the initial ramdisk loads the required virtio-drivers during boot.
 
This will make sure that the initial ramdisk loads the required virtio-drivers during boot.
 +
 +
Afterwards switch back to the installer (Alt + F1) and answer <code>yes</code>.
  
 
== After having finished the installation ==
 
== After having finished the installation ==
Line 24: Line 23:
  
 
This change can be made permanent by logging in as root after the startup and editing the grub configuration:
 
This change can be made permanent by logging in as root after the startup and editing the grub configuration:
<source lang='bash'>
+
mount /boot
mount /boot
+
 
vim /boot/grub/grub.conf
+
vim /mnt/osbd/boot/grub/grub.conf
# append the following to the two lines starting with "kernel":
+
 
doload=virtio_pci,virtio_blk
+
Append the following to the two lines starting with "kernel":
</source>
+
doload=virtio_pci,virtio_blk
  
 
[[Category: stoney cloud]][[Category: Installation]]
 
[[Category: stoney cloud]][[Category: Installation]]

Latest revision as of 16:34, 8 May 2014

The stoney cloud contains drivers needed to run in a virtualized environment, namely Qemu/KVM, but the initial ramdisk does not load them automatically. Therefore some manual work is needed to successfully boot a fresh installation inside Qemu/KVM.

Before finishing the installation

When being asked Do you want to reboot your system? switch to a second console (Alt + F2) and execute:

vim /mnt/osbd/boot/grub/grub.conf

Append the following to the two lines starting with "kernel":

doload=virtio_pci,virtio_blk

This will make sure that the initial ramdisk loads the required virtio-drivers during boot.

Afterwards switch back to the installer (Alt + F1) and answer yes.

After having finished the installation

Even if you already finished the installation and rebooted, there is a way to boot your installation:

When you get the GRUB boot screen:

  • press e on the already selected boot line
  • use the arrow keys to navigate to the entry starting with kernel /kernel ... and press e again
  • append the following to the line: doload=virtio_pci,virtio_blk
  • press ESC to exit and then b to boot

This change can be made permanent by logging in as root after the startup and editing the grub configuration:

mount /boot
vim /mnt/osbd/boot/grub/grub.conf

Append the following to the two lines starting with "kernel":

doload=virtio_pci,virtio_blk