亚洲欧洲国产欧美一区精品,激情五月亚洲色五月,最新精品国偷自产在线婷婷,欧美婷婷丁香五月天社区

      考試首頁 | 考試用書 | 培訓(xùn)課程 | 模擬考場 | 考試論壇  
        當(dāng)前位置:Linux認證 > 紅帽認證 > 紅帽認證輔導(dǎo) > 文章內(nèi)容
        

      RHCE7認證學(xué)習(xí)筆記:使用虛擬化系統(tǒng)KVM

      來源:Linux社區(qū) [ 2016年2月14日 ] 【

          網(wǎng)絡(luò)類型:

          isolated virtual network:獨立的虛擬的網(wǎng)絡(luò),相當(dāng)于vm workstation的vmnet0,vmnet1.。。。

          forwarding to physical network: mode如果選擇是NAT,相當(dāng)于vm workstation的NAT模式,mode選擇routed相當(dāng)于橋接。

      RHCE7認證學(xué)習(xí)筆記16——使用虛擬化系統(tǒng)KVM

      Virsh命令行管理KVM的虛擬機:

      virsh [options]... []
      virsh [options]... [args...]

          常用命令:

          list:

          shutdown:

          destroy:

          reboot:

          resume:

          start:

          snapshot-create:創(chuàng)建快照:
          undefine: 徹底從KVM刪除虛擬機;

          console:控制臺進入虛擬機;

      虛擬機的配置文件目錄:cd /etc/libvirt/qemu

      五、vir-install命令行安裝虛擬機:

      首先查看KVM支持的系統(tǒng)平臺:
      [root@linuxidc ~]# virt-install --os-variant=list
      win7                : Microsoft Windows 7
      vista                : Microsoft Windows Vista
      winxp64              : Microsoft Windows XP (x86_64)
      winxp                : Microsoft Windows XP
      win2k                : Microsoft Windows 2000
      win2k8              : Microsoft Windows Server 2008
      win2k3              : Microsoft Windows Server 2003
      openbsd4            : OpenBSD 4.x
      freebsd8            : FreeBSD 8.x
      freebsd7            : FreeBSD 7.x
      freebsd6            : FreeBSD 6.x

      KVM默認的存儲池位置為:/var/lib/libvirt/images,如果需要將虛擬磁盤安裝在其他位置,則需要修改上下文權(quán)限:

              semanage fcontext -a -t virt_image_t "new location"
              restorecon -R "new location"

              使用命令行安裝虛擬機:

      [root@linuxidc Desktop]# virt-install -n rhel7 -r 512 --vcpus=1 --location=/root/rhel-server-7.0-x86_64-dvd.iso --controller=usb --os-variant=rhel7 --disk=/var/lib/libvirt/images/mydisk1,size=3

      列出活動的虛擬機:

      [root@linuxidc ~]# virsh list
       Id    Name                          State
      ----------------------------------------------------
       7    rhel7                          running

      將考試網(wǎng)添加到收藏夾 | 每次上網(wǎng)自動訪問考試網(wǎng) | 復(fù)制本頁地址,傳給QQ/MSN上的好友 | 申請鏈接 | 意見留言 TOP
      關(guān)于本站  網(wǎng)站聲明  廣告服務(wù)  聯(lián)系方式  站內(nèi)導(dǎo)航  考試論壇
      Copyright © 2007-2013 中華考試網(wǎng)(Examw.com) All Rights Reserved