Virt-manager and qemu

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.