In the company, the host has an rhel6.1ga, which will be used in recent projects. However, to test the new kernel, you cannot compile it once and restart it. So I want to use a virtual machine.
VMWare, the company does not allow piracy, no serial number, no way.
KVM and qemu.
Install one and install XP to read some documents. Many documents must be read here.
Then we installed another rhel6.1ga.
Finally, install and install F14.
The main problems in the process are:
1. When virt-manager is used, the speed is very fast. When rhel6.1 is installed, the root partition is LVM, and the root partition is always not found in the new kernel. Do not know the reason. The compiled module is compiled without any problem.
2. when the new disk is installed with fedora14, It is/dev/VDA [1, 2, 3], when passing parameters to the new kernel under virt-manager, you must pass root =/dev/VDA [1, 2, 3] to properly mount the partition. I can't use qemu to start the installed system and pass the new Kernel Parameter vda. In this case, I must pass root =/dev/SDA [, 3], which is strange.
It can finally run.
Add a serial port for debugging:
I have tried many methods before. Using a serial port mapped to the host, or using a tool or direct CAT/dev/pts/<num> is troublesome and not timely, the same is true for minicom, and the serial port is always changed.
Finally, there is a good solution:
Add another serial port, serial, and add it directly as a file-type serial port and specify the path.
In this way, all kernel information can be written into this file. Qemu also has such a function, as does virt-manager.
Kernel path:/root/200/kernel_test/vmlinuz-2.6.39 +
Initrd path:/root/200/kernel_test/initrd. img-2.6.39 +
Kernel arguments: Root =/dev/vda2 console = tty0 console = ttys1