Create a new virtual machine in CentOS

The Virtual Machine Manager (virt-manager) is the desktop application that manages virtual machines.

You can use Red Hat's Virtual Machine Manager to:

  • Create new domains.

  • Configure or adjust a domain's resource allocation and virtual hardware.

  • Summarize running domains with live performance and resource utilization statistics.

  • Display graphs that show performance and resource utilization over time.

  • Use the embedded VNC client viewer which presents a full graphical console to the guest domain.

 

Note:

You must install Red Hat Enterprise Linux 5.0, virt-manager, and the kernel packages on all systems that require virtualization. All systems then must be booted and running the Red Hat Virtualization kernel.

These are the steps required to install a guest operating system on Red Hat Enterprise Linux 5 using the Virtual Machine Monitor:

Procedure 18.1. Creating a Guest Operating System

  1. From the Applications menu, select System Tools and then Virtual Machine Manager.

    The Virtual Machine Manager main window appears.

    Virtual Machine Manager window

    Figure 18.6. Virtual Machine Manager window

  2. From the File menu, select New machine.

    Selecting a New Machine

    Figure 18.7. Selecting a New Machine

    The Creating a new virtual system wizard appears.

  3. Click Forward.

    Creating a New Virtual System Wizard

    Figure 18.8. Creating a New Virtual System Wizard

  4. Enter the name of the new virtual system and then click Forward.

    Naming the Virtual System

    Figure 18.9. Naming the Virtual System

  5. Enter the location of your install media. Location of the kickstart file is optional. Then clickForward .

    Locating the Installation Media

    Figure 18.10. Locating the Installation Media

  6. Install either to a physical disk partition or install to a virtual file system within a file.

    Note

    This example installs a virtual system within a file.

    Open a terminal and create the /xen directory and set the SELinux policy with the commandrestorecon -v /xen. Specify your location and the size of the virtual disk, then click Forward.

    Assigning the Storage Space

    Figure 18.11. Assigning the Storage Space

  7. Select memory to allocate the guest and the number of virtual CPUs then click Forward.

    Allocating Memory and CPU

    Figure 18.12. Allocating Memory and CPU

  8. Select Forward to open a console and the files start to install.

    Allocating Memory and CPU

    Figure 18.13. Allocating Memory and CPU

  9. Complete your installation in the window provided.

    Installation Begins...

    Figure 18.14. Installation Begins...

  10. Type xm create -c xen-guest to start the Red Hat Enterprise Linux 5.0 guest. Right click on the guest in the Virtual Machine Manager and choose Open to open a virtual console.

    Red Hat Enterprise Linux 5.0 (guest)

    Figure 18.15. Red Hat Enterprise Linux 5.0 (guest)

  11. Enter user name and password to continue using the Virtual Machine Manager.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值