Virtio driver project implemented, remove from list
[ikiwiki.git] / docs / developer / NewkernelBoot.mdwn
CommitLineData
b9761b3f 1Describe Development/NewkernelBoot here.
b790f880 2
b790f880 3
b790f880 4
b9761b3f 5----
b790f880 6
b9761b3f 7 **Installing multiple kernels on VMware**
b790f880 8
b790f880 9
b790f880 10
b9761b3f 11This information is helpful if you have DragonFly BSD installed on your machine using the bootable CD. Now you have modified the kernel and want to use this modified kernel to boot the machine. This is a pretty straight forward way to install:
b790f880 12
b790f880 13
b790f880 14
b790f880 15
b9761b3f 16* In the virtual machine settings "Add another hard disk to your currently installed machine".
b790f880 17
b790f880 18
b9761b3f 19* Load the Bootable CD in VMware and you should boot from the CD.
b790f880 20
b790f880 21
b9761b3f 22* Boot the virtual machine and login as "installer" as you did during the first time you install DragonFly on virtual machine.
b790f880 23
b790f880 24
b9761b3f 25* Enter "install DragonFly BSD" option. It will ask for a partition and you should see one for the newly added disk space, normally its is "ad1". Remember this name it required later for mounting the disk.
b790f880 26
b790f880 27
b9761b3f 28* Select that partition and go ahead with formatting that disk.
b790f880 29
b790f880 30
b9761b3f 31* Once the formatting is done it will ask whether you want to go ahead with installation, Press Esc to quit installation.
b790f880 32
b790f880 33
b9761b3f 34* Now you have a formatted disk on which you can install your own kernel.
b790f880 35
b790f880 36
b9761b3f 37* Reboot the machine ***not from the CD*** and you should see two options for booting, only one will work now. Select the "default" and now login as root.
b790f880 38
b790f880 39
b9761b3f 40* Now we need to mount the new partition.
b790f880 41
b790f880 42
b9761b3f 43* If during formatting the name was "ad1" then ***"disklabel ad1s1" ***will show you all the partitions created.
44
45
46* mount /dev/ad1s1a /mnt
47
48
49* mkdir /mnt/var
50
51
52* mkdir /mnt/usr
53
54
55* mkdir /mnt/tmp
56
57
58* mkdir /mnt/home
59
60
61* mount /dev/ad1s1d /mnt/var
62
63
64* mount /dev/ad1s1e /mnt/usr
65
66
67* mount /dev/ad1s1f /mnt/tmp
68
69
70* mount /dev/ad1s1g /mnt/home
71
72
73* Now we are ready to install DragonFly on this partition.
74
75
76* cd /usr/src or wherever your source code is.
77
78
79* make world DESTDIR=/mnt
80
81
82* cd etc
83
84
85* make distribution DESTDIR=/mnt
86
87
88* cp /etc/fstab /mnt/etc
89
90
91* make buildkernel KERNCONF=GENERIC
92
93
94* make installkernel KERNCONF=GENERIC DESTDIR=/mnt
95
96
97* You have installed your kernel on this new partition.
98
99
100* reboot your system.
101
102
103* Now select the other option by default its " Drive 1" and you should see the your kernel booting.
104
105
106
107----
b790f880 108