首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

Centos6.3安装KVM

一、安装kvm 1 在安装CentOS6.3时可以选择安装好kvm 2 如果未安装好kvm,请按照下列方式安装 [创建本地yum源] 挂载iso文件 mount -o loop -t iso9660 CentOS-6.3-x86_64-bin-DVD1.iso /mnt 设置本地yum源 在/etc/yum.repos.d/创建   “任意文件名.repo"    文件   vi 刚才新建的文件名编辑 【localyum】任意名称 ,不能有空格。 name= local yum  任意名称 baseurl=file:////mnt/Packages      这个路径是自定的。Server为光盘中的Server目录 ,Packages与Server放在同一目录下。即/software目录下 enabled=1   代表   生效     0为不生效 gpgcheck=1   检查gpgkey  1 生效   0不生效 gpgkey=file:///software    安装光盘里有这个文件        不指定  安装时,可能提示没有注册 保存退出 执行命令 yum clean all (1) kvm需要有 CPU 的支持(Intel VT 或 AMD SVM) [root@moniter ~]#egrep '^flags.*(vmx|svm)' /proc/cpuinfo 如果有返回值说明cpu支持虚拟化 (2) 安装kvm libvirted yum install kvm kmod-kvm qemu kvm-qemu-img virt-viewer virt-manager libvirt libvirt-python python-virtinst (3) 启动libvirted service messagebus start service haldaemon start service libvirtd start chkconfig messagebus on chkconfig haldaemon on chkconfig libvirtd on (4)检查kvm是否安装成功 [root@jiayuan ~]# virsh -c qemu:///system list  Id    名称                         状态 ----------------------------------------------------  1     redhat6.3                      running (5)kvm模块 [root@myKVM ~]# lsmod | grep kvm kvm_intel              52570  0 kvm                  314739  1 kvm_intel 二、配置网桥 vi /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE=br0 TYPE=Bridge BOOTPROTO=static BROADCAST=10.207.20.255 IPADDR=10.207.20.200 NETMASK=255.255.255.0 NETWORK=10.207.20.0 ONBOOT=yes b、 vi /etc/sysconfig/network-scripts/ifcfg-eth0 # Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet DEVICE=eth0 BOOTPROTO=none ONBOOT=yes BRIDGE=br0 c、 重起网络服务生效 service network restart d、 echo 1 > /proc/sys/net/ipv4/ip_forward  #虚拟机上网 e、 检查桥接网络 [root@moniter ~]# brctl show bridge name     bridge id               STP enabled     interfaces br0             8000.842b2b74e1b6       no              eth0 virbr0          8000.000000000000       yes br0是我们配置的桥接网卡,virbr0是系统脚本自动配置的NAT网卡 三、安装vnc 注意:CentOS6.3 VNC的命名rpm为tiggervnc-server (1) yum install tiggervnc-server (2) vi /etc/sysconfig/vncservers #加一行     VNCSERVERS="

02
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    linux下连接windows2003 ppoe 服务器

    1,在CentOS6.3下用 /usr/sbin/pppd  pty "/usr/sbin/pptp publicip --nolaunchpppd" file /etc/ppp/options.pptp user user1 password password1 再用tail -f /var/log/messages看到log如下 Oct  8 03:25:41 localhost pppd[2057]: pppd 2.4.5 started by root, uid 0 Oct  8 03:25:41 localhost pppd[2057]: Using interface ppp0 Oct  8 03:25:41 localhost pppd[2057]: Connect: ppp0 <--> /dev/pts/2 Oct  8 03:25:41 localhost pptp[2058]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated Oct  8 03:25:41 localhost pptp[2066]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' Oct  8 03:25:41 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply Oct  8 03:25:41 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established. Oct  8 03:25:42 localhost pptp[2066]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' Oct  8 03:25:42 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply. Oct  8 03:25:42 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 19561). Oct  8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0 Oct  8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is 00000000, recv_accm is FFFFFFFF Oct  8 03:25:45 localhost pptp[2066]: anon warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported! Oct  8 03:25:45 localhost pppd[2057]: CHAP authentication succeeded Oct  8 03:25:45 localhost pppd[2057]: LCP terminated by peer (tM-+)^R^@<M-Mt^@^@^BM-f) Oct  8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0 Oct  8 03:25:45 localhost pptp[2066]: anon log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is FFFFFFFF, recv_accm is FFFFFFFF Oct  8 03:25:45 localhost

    02

    CentOS6.3 x86_64 最小化安装后安装man

    [root@localhost yum.repos.d]# yum -y install man Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package man.x86_64 0:1.6f-30.el6 will be installed --> Processing Dependency: lzma for package: man-1.6f-30.el6.x86_64 --> Running transaction check ---> Package xz-lzma-compat.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed --> Processing Dependency: xz = 4.999.9-0.3.beta.20091007git.el6 for package: xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64 --> Running transaction check ---> Package xz.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =====================================================================================================================  Package                    Arch               Version                                        Repository        Size ===================================================================================================================== Installing:  man                        x86_64             1.6f-30.el6                                    base             263 k Installing for dependencies:  xz                         x86_64             4.999.9-0.3.beta.20091007git.el6               base             137 k  xz-lzma-compat             x86_64             4.999.9-0.3.beta.20091007git.el6               base              16 k Transaction Summary ===================================================================================================================== Install       3 Package(s) Total download size: 415 k Installed size: 886 k Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 415 k (1/3): man-1.6f-30.el6.x86_64.rpm                                                                                                     | 263 kB     00:20     (2/3): x

    02

    安装VIM所依赖包

    CentOS6.3 x86_64 最小化安装版安装vim yum -y install vim 通过这个命令可得出安装vim所得依赖包如下 Transaction Summary ============================================================================================================================================================= Install       9 Package(s) Total download size: 18 M Installed size: 54 M Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 18 M (1/9): gpm-libs-1.20.6-12.el6.x86_64.rpm                                                                                              |  28 kB     00:00      (2/9): perl-5.10.1-127.el6.x86_64.rpm                                                                                                 |  10 MB     00:41      (3/9): perl-Module-Pluggable-3.90-127.el6.x86_64.rpm                                                                                  |  38 kB     00:00      (4/9): perl-Pod-Escapes-1.04-127.el6.x86_64.rpm                                                                                       |  30 kB     00:00      (5/9): perl-Pod-Simple-3.13-127.el6.x86_64.rpm                                                                                        | 210 kB     00:00      (6/9): perl-libs-5.10.1-127.el6.x86_64.rpm                                                                                            | 576 kB     00:02      (7/9): perl-version-0.77-127.el6.x86_64.rpm                                                                                           |  49 kB     00:00      (8/9): vim-common-7.2.411-1.8.el6.x86_64.rpm                                                                                          | 6.0 MB     00:23      (9/9): vim-enhanced-7.2.411-1.8.el6.x86_64.rpm                                                                                        | 892 kB     00:03      ---------------------------------------------------------------------------------------------------------------------------

    02

    CentOS6.3 x86_64 mininstall 安装扫描之王nmap

    CentOS6.3 x86_64 mininstall 安装扫描之王nmap 1,安装 [root@bogon ~]# yum -y install nmap Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile  * base: mirrors.163.com  * extras: mirrors.163.com  * updates: mirrors.163.com base                                                                    | 3.7 kB     00:00      extras                                                                  | 3.5 kB     00:00      extras/primary_db                                                       | 8.9 kB     00:00      updates                                                                 | 3.5 kB     00:00      updates/primary_db                                                      | 3.5 MB     00:16      Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package nmap.x86_64 2:5.51-2.el6 will be installed --> Processing Dependency: libpcap.so.1()(64bit) for package: 2:nmap-5.51-2.el6.x86_64 --> Running transaction check ---> Package libpcap.x86_64 14:1.0.0-6.20091201git117cb5.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ===============================================================================================  Package         Arch           Version                                     Repository    Size =============================================================================================== Installing:  nmap            x86_64         2:5.51-2.el6                                base         2.7 M Installing for dependencies:  libpcap         x86_64         14:1.0.0-6.20091201git117cb5.el6            base         126 k Transaction Summary =============================================================================================== Install       2 Package(s) Total download size: 2.9 M Installed size: 10 M Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 2.9 M (1/2): libpcap-1.0.0-6.20091201git117cb5.el6.x8

    02

    Docker之获取镜像(一)

    docker是开源的应用容器引擎,基于主流的开发语言Go语言而开发,它是基于Apache2.0协议开发。docker的好处在于它可以让开发者打包他们的应用以及依赖包到一个轻量级、可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化,容器完全是使用沙箱隔离的机制,这样保障了不会对宿主机有任何的破坏。毫不夸张的说,正因为有了docker,也就形成了它很完善的生态体系,也可以让微服务架构级的产品全面落地,形成了“软件即服务”的理念,真正意义上解决了Saas化以及Paas化平台级产品的部署难的困境。程序员都是谦虚的,学习什么,都习惯了向世界问好,学习docker也是如此。在搭建docker环境的基础上,执行如下指令,就会输出“Hello from Docker!”

    01
    领券