Installing a virtual machine in a Linux system

Source: Internet
Author: User

In a Linux system, a virtual machine is installed using a graphical interface. Start Virt-manager first, of course, no installation virt-manager need to be installed first.

1 $ apt-get Install Virt-manager 2 $ virt-manager

I. Preparatory work.

1. Installing the virtual machine environment KVM on Linux Systems

1 $ apt-get Install KVM QEMU-KVM libvirt-bin virtinst bridge-utils virt-viewer 2 $ adduser root LIBVIRTD

2. Copy the installed system ISO file or img file to the/var/lib/libvirt/images/directory of the physical machine Linux system.

3. Set up bridging on the physical machine. Modify the/etc/network/interfaces file

1 Auto Eth02 iface eth0 inet manual3 4 #Bridge Interfaces Bridging5 Auto Br06Iface Br0 inetStatic7Address 192.0.11.158Netmask 255.255.255.09Gateway 192.0.11.1TenDns-nameservers 8.8.8.8 One bridge_ports eth0 A BRIDGE_STP off -BRIDGE_FD 0 -Bridge_maxwait 0

II. Configuring virtual Machines

1. Create a new virtual machine named "Sys_install" and select local media installation.

2. Select the installed image file (ISO file)

3. Set memory, CPU, storage space

4. After configuring the virtual machine, select Begin installation to start the Ubuntu system installation.

III. Installation of Virtual machine systems

The installation of the virtual machine system is the same as the one we usually install on the physical machine. Install Ubuntu-14.04.3, enter the installation after the first choice of system language, we directly select English. These can be set after the system installation is complete.

1. Start Ubuntu Installation

2. Setting the language

3. Set the keyboard. You can not set the keyboard no, and then select Chinese (US)

4. Set hostname

5. Set user name, password, password confirmation

6. Disk Partitioning

7. Installing system files

8. Configure the management of the installation package, you can empty

9. Setting Up system Updates

10. Install some initial software, press SPACEBAR to select.

11. Installation Complete

12. Now the system has been installed, you can enter the system operation.

13. If you want to connect remotely, you also need to configure the virtual machine's/etc/network/interfaces

1 # The Primary Network interface 2 Auto Eth0 3 Static 4         Address 192.0.11.175         Netmsk 255.255.255.06         Gateway 192.0.11.17         Dns-nameservers 8.8.8.8

Restart the virtual machine for the interface configuration to take effect.

Installing a virtual machine in a Linux system

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.