Linux Virtual Machine xen Installation

Source: Internet
Author: User
Tags to domain
Article Title: linux Virtual Machine xen installation. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Installation environment:

Install centos 5 in VM6 and then install Virtual Machine xen under centos 5

Second, install another linux centos Virtual Machine System on the xen Virtual Machine

Just like installing windows on VM6, and installing VM software under windows

Second, installing another windows System in the vm is similar.

1> first, create a virtual machine in VM6, add two disks, one for installing the host machine, and one for reserving the XEN virtual machine.

2> install the xen package and vsftp package in YUM on the host machine. (It is best to install these two components when installing the system. You can also install them by adding/deleting programs, but you need to modify the yum configuration)

[Root @ localhost ~] # Yum-y install xen

[Root @ localhost ~] # Yum-y install vsftpd. i386

Install yum install gnome-applet-vm.i386

The grub Startup menu has been started by the xen kernel.

Vi/boot/grub. conf

# Boot =/dev/sda

Default = 0 (1 is changed to 0 to start the xen kernel)

3> run the xm list command to check whether the Domain has been started.

[Root @ localhost ~] # Xm list

Name ID Mem (MiB) VCPUs State Time (s)

Domain-0 0 778 1 r ----- 85.4

4> Mount cdrom to the FTP directory and enable Anonymous ftp users.

/Etc/init. d/vsftpd start # start ftp

[Root @ localhost ~] # Mount/dev/cdrom/var/ftp/pub/# mount the disc to the ftp

Mount: block device/dev/cdrom is write-protected, mounting read-only

5> use the xm command line to create a virtual machine

[Root @ localhost ~] # Virt-install (the parameter -- prompt is required for the new xen version, and the hard disk size parameter is set. This parameter is not set for the old version.

What is the name of your virtual machine? Vm1 # Virtual Machine name vm1

How much RAM shoshould be allocated (in megabytes )? 400 # allocate a minimum of 400 mb of memory to the VM

What wocould you like to use as the disk (file path )? /Dev/sdb1 # sdb is the second Hard Disk

Wocould you like to enable graphics support? (Yes or no) no # do not enable graphical support

What is the install location? Ftp: // 192.168.1.237/pub/# Fill in the local FTP address, provided that the CDROM has been mounted to this FTP directory and anonymous users are enabled.

We can see that the kernel of the installation file has started!

Starting install...

Retrieving file. treeinfo... 0 B 00:00

Retrieving file vmlinuz .. 100% | ==========================================| 2.0 MB

Retrieving file initrd. im 100% |===================================| 5.0 MB

Next, let's skip the installation process, in TEXT mode.

Welcome to CentOS

+ --------- + Choose a Language + --------- +

|

| What language wocould you like to use |

| During the installation process? |

|

| Catalan ^ |

| Chinese (Simplified): |

| Chinese (Traditional) # |

| Croatian: |

| Czech: |

| Danish: |

| Dutch: |

| English v |

|

| + ---- + |

| OK |

| + ---- + |

|

|

+ --------------------------------------- +

   /Between elements | Selects | Next screen

6> restart the system after installation.

7> Manage xen virtual machines

View common information about virtual machines in the current system

Xm list

View the workload of a Virtual Machine

Xm top

Console switching between Domain 0 and Domain n

Xm console

Ctrl +] Return Domian 0

Disable Domain N

Switch to Domain n and use the shutdown command of the operating system.

Xm shutdown

Xm destory

Start Domain n

Xm create

Related Article

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.