CENTOS7 enables Remote Desktop virtualization and the creation of Windows, Linux virtual machines through KVM+VNC

Source: Internet
Author: User

CentOS7 Enable Remote Desktop virtualization via kvm+vnc

installation VNC

installation VNC Service Side

in the Linux installed on the system VNC

Yum-yinstall Vnc-server      

Yum-y Install Tigervnc-server

Set the password required for remote login

input Vncserver you will be prompted to enter your password

Note: This password is a password that you need to enter when you log in remotely

For vncserver configuration

Vi/etc/sysconfig/vncservers

Set the following configuration values

Vncservres=10000:root (where 10000 is the desktop number,root is the user name)

Vncserverargs[2]=geometry800x600–nolisten Tcp–localhost

Firewall configuration allows remote connection to VNC server

Vi/etc/sysconfig/iptables

–A input–m state–state new–m tcp–p tcp–dport 5901–j acccept

Restarting VNC and firewall services

Servicevncserver restart

Serviceiptables restart


installation VNC Client

installing vncviewer on Linux

installing the TigerVNC software on Windows

CreateKVMVirtual MachinesCreateLinuxVirtual Machines

through qemu-img Create a 7G the image file

Qemu-img create–f qow2 ubuntu1204.img 7G

Create a Linux Virtual Machines

qemu-kvm–m 1024–cdrom ubuntu-12.04-desktop-i386.iso–drive file= ubuntu1204.img ; Boot=on–boot D–nographic–vnc:2

Note: -vnc with the : 2 There are spaces between

start on a different machine TigerVNC , enter 192.168.0.123:5902 Connect to install and observe the progress of the installation

Note: 192.168.0.123 for the native IP , 5902 to the corresponding port number (5900+2)



CreateWindowsVirtual Machines

production includes Virtio driver-driven image

installation UltraISO Software

Download Win7.iso, Virtio-win-1.1.16.vfd,virtio-win-0.1-30.iso

will be Virtio-win-0.1-30.iso unzip into a folder


Use UltraISO Open Win7.iso, and Will virtio-win-0.1-30 copy to corresponding path

                

will add a Virtio the new drive folder Win7.iso Save the file as a new iOS file Win7_virtio.iso

Qemu-img create–f Raw Win7_virtio.img 30G

Qemu-kvm–m 1024–cdrom WIN7_VIRTIO.ISO–DRIVEFILE=WIN7_VIRTIO.IMG,IF=VIRTIO,BOOT=ON–FDA virtio-win-1.1.6.vfd–boot D – Nographic–vnc:3

Note: -vnc with the : 3 There are spaces between

start on a different machine TigerVNC , enter 192.168.0.123:5903 Connect to install and observe the progress of the installation

Note: 192.168.0.123 for the native IP , 5903 to the corresponding port number (5900+3)

Remote Desktop Virtualization connection

start on a different machine TigerVNC , enter 192.168.0.123:593 make Win7 Virtual Machine Login


CENTOS7 enables Remote Desktop virtualization and the creation of Windows, Linux virtual machines through KVM+VNC

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.