This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
kvm [2014/11/24 02:09] ben |
kvm [2014/11/24 02:11] ben |
||
---|---|---|---|
Line 23: | Line 23: | ||
===== Building a Guest Kernel ===== | ===== Building a Guest Kernel ===== | ||
- | The initrd doesn' | + | The initrd doesn' |
The kvm kernel configs also build the virtio device drivers as modules, so these need to be loaded into the initramfs before the main system can boot. Genkernel does not currently include these modules by default, so the default initramfs scripts need to be updated to add support. | The kvm kernel configs also build the virtio device drivers as modules, so these need to be loaded into the initramfs before the main system can boot. Genkernel does not currently include these modules by default, so the default initramfs scripts need to be updated to add support. | ||
- | Edit <tt>module_load</ | + | Edit '' |
{{File|/ | {{File|/ | ||
- Virtual hardware drivers | - Virtual hardware drivers | ||
Line 33: | Line 33: | ||
</ | </ | ||
- | Then edit <tt>initrd.default</ | + | Then edit '' |
{{File|/ | {{File|/ | ||
HWOPTS=' | HWOPTS=' | ||
Line 64: | Line 64: | ||
</ | </ | ||
- | This will build a bzip'd tarball of the kernel files, and another package containing all the modules. Extract the kernel files from the archive and put them in the right place. The generated files wont have the correct | + | This will build a bzip'd tarball of the kernel files, and another package containing all the modules. Extract the kernel files from the archive and put them in the right place. The generated files wont have the correct |
{{Root|< | {{Root|< | ||
cd / | cd / | ||
Line 98: | Line 98: | ||
</ | </ | ||
- | <tt>$ARCH</ | + | '' |
===== Creating a new instance of a template ===== | ===== Creating a new instance of a template ===== |