Character interface Install QEMU/KVM guest Client

Source: Internet
Author: User
Tags centos

I think, first try installing VNC Server on the host, then VNC will have to install the client (so there is VNC's virtual desktop), or try-curses; Of course, if you really need nographic to install this, then this is your preparation. The QEMU 1.7 version used here by

(similar to other versions of QEMU/KVM) is installed with the CentOS 6.4 minimum version.

1. First get the start kernel and initrd files in ISO: (this is to mount them, because only need to read, and do not need to write)

[Root@my-host ~]# mount/data/nfs/ images/centos-6.4-x86_64-minimal.iso/mnt/-O loop

2. The command to start the guest for installation is as follows: (assuming you have installed the QEMU/KVM, my book has been introduced in detail, hehe)

Note that you need to specify the kernel, INITRD, append parameters (as explained in the No. 258 page of my book, ^_^) because it is started in a non graphical interface using –nographic, you need to redirect the guest console, so you need The "-append console=ttys0" parameter, which is required to use the-kernel parameter, because the kernel command-line arguments in append cannot be passed directly to the CDROM inside the hard drive, kernel, and so on. Sometimes, you need parameters such as "-append ' Console=tty0 console=ttys0,115200n8′".

In addition, the BIOS is specified here, otherwise I see the latest qemu (incredibly) wrong "qemu:could not load PC BIOS ' Bios-256k.bin '", if you do not encounter this error, there is no need to display the specified BIOS.

If everything goes well, you can install the guest here. One of the screenshots I was installing with –nographic was:



3. After starting the installed guest, start the guest command using the Nographic method as follows:

[root@my-host ~]# qemu-system-x86_64-enable-kvm-m 1024 -SMP 2 vm2.img--nographic

Of course, you can also use –curses (4.6.5 of the book has already been said)

[Root@my-host ~]# qemu-system-x86_64-enable -kvm-m 1024-SMP 2 vm2.img-curses
 
# Curses may need to rely on some of the packages as follows
[root@my-host ~]# rpm-qa | grep curses
N curses-5.7-3.20090208.el6.x86_64
Ncurses-base-5.7-3.20090208.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64

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.