nginx配置

server {
listen default_server;
server_name _;
root /home/iso; # Load configuration files for the default server block.
#include /etc/nginx/default.d/*.conf; location / {
autoindex on;
} error_page 404 /404.html;
location = /40x.html {
} error_page 500 502 503 504 /50x.html;
location = /50x.html {
} }

base.cfg

1. lvm格式分区
install
   text
   lang en_US
   keyboard us
   timezone Asia/Shanghai
   selinux --disabled
   network --device eth0 --onboot yes --bootproto static --ip 192.168.159.15 --netmask 255.255.255.0 --gateway 192.168.159.2 --hostname cuiboceshi --nameserver 114.114.114.114
   firewall --disabled
   url --url http://192.168.159.10/centos68
   authconfig --enableshadow --enablemd5
   rootpw 123456
   skipx
   clearpart --linux
   bootloader --location=mbr
   part swap  --size   4096
   part /boot --fstype ext4 --size=200
   part pv.01 --size=50000 #50G
   volgroup vg_root pv.01
   logvol  /  --vgname=vg_root  --size=1 --grow  --name=lv_root
   part pv.02 --size=1 --grow #剩余空间
   volgroup vg_home pv.02
   logvol  /home  --vgname=vg_home   --size=1 --grow  --name=lv_home
   zerombr yes
   reboot 2.普通模式分区
install
   text
   lang en_US
   keyboard us
   timezone Asia/Shanghai
   selinux --disabled
   network --device eth0 --onboot yes --bootproto static --ip 192.168.159.12 --netmask 255.255.255.0 --gateway 192.168.159.2 --hostname cuiboceshi --nameserver 8.8.8.8  #这里的eth0不能修改[必须跟安装命令的ksdevice不一样]
   firewall --disabled
   url --url http://192.168.159.10/centos68
   authconfig --enableshadow --enablemd5
   rootpw Powercdn123
   skipx
   clearpart  --linux
   part /boot --size   200  --fstype ext4 --asprimary
   part swap  --size   4096 
   part / --fstype ext4  --grow --size 1
   zerombr yes
   bootloader --location=mbr
   reboot  ###到这里

安装命令

virt-install --name base --ram  --vcpus=  --disk path=/data2/kvm/base.qcow2,size=,format=qcow2,bus=virtio --network bridge:br0 --network network:default --os-variant=rhel6  -l http://192.168.159.10/centos68/ --extra-args='console=ttyS0,115200n8 ks=http://192.168.159.10/conf/base.cfg ksdevice=eth1'

kvm无人值守安装centos6的更多相关文章

  1. 烂泥:kickstart无人值守安装CentOS6.5

    本文由秀依林枫提供友情赞助,首发于烂泥行天下. 在本次实验进行之前,首先我们要把公司的网络环境进行介绍. 注意这个网络拓扑图,也是生产环境的一个实例.同时服务器192.168.1.214已关闭ipta ...

  2. U盘PE无人值守安装centOS6

    一.制作 1.需要用到的工具:老毛桃PX工具.系统ISO.一个8GU盘 老毛桃PE工具 http://laomaotao.net/ CentOS启动映像 http://mirrors.163.com/ ...

  3. kvm无人值守安装centos 7虚拟机

    centos 7安装好KVM之后还要安装虚拟机,通过VNC连接手动安装centos 7虚拟机太麻烦了,所以无人值守安装是做好的.简单记录下. 无人值守安装centos 7前提是要安装KVM,并且能手动 ...

  4. 使用Cobbler无人值守安装CentOS6.5(一)

    Cobbler是一个快速网络安装linux的服务,而且在经过调整也可以支持网络安装windows.该工具使用python开发,小巧轻便(才15k行代码),使用简单的命令即可完成PXE网络安装环境的配置 ...

  5. PXE+kickstart无人值守安装CentOS 7

    kickstart+cobbler系列文章:http://www.cnblogs.com/f-ck-need-u/p/7048359.html 本文是PXE+kickstart无人值守安装CentOS ...

  6. (转)PXE+kickstart无人值守安装CentOS 7

    kickstart+cobbler系列文章:http://www.cnblogs.com/f-ck-need-u/p/7048359.html 本文是PXE+kickstart无人值守安装CentOS ...

  7. 烂泥:KVM安装centos6.5系统

    本文由秀依林枫提供友情赞助,首发于烂泥行天下. 在前一篇文章中,我介绍了有关KVM的安装与配置.接下来,就来介绍如何在KVM中安装Centos系统. 注意该centos镜像文件,使用的是:CentOS ...

  8. centos vmware centos6.6 64位 kvm虚拟化安装配置 第四十二节课

    centos vmware centos6.6 64位 kvm虚拟化安装配置     第四十二节课 上半节课 下半节课 f

  9. 在CentOS6上利用PXE+Kickstart+Apache+DHCP实现无人值守安装

    在CentOS6上利用PXE+Kickstart+Apache+DHCP实现无人值守安装 1.PXEServer:OS:CentOS6.9IP:172.16.25.69: (1)apache:# mo ...

随机推荐

  1. 【SPOJ1811】Longest Common Substring(后缀自动机)

    题意:给定两个仅含小写字母的字符串,求他们最长公共子串的长度 n<=250000 思路: #include<bits/stdc++.h> using namespace std; t ...

  2. vue开发微信公众号--开发准备

    由于工作项目的原因,需要使用vue开发微信公众号,但是这种微信公众号更多是将APP套了一个微信的壳子,除了前面的授权和微信有关系以外,其他的都和微信没多大的关系了,特此记录 开发流程 首先需要在电脑上 ...

  3. jquery动态修改带有important的样式方法

    $('.el-card').css("background", "#fff !important");(不起作用的) 改为: $('.el-card').css ...

  4. [HDU2276]Kiki & Little Kiki 2

    题目:Kiki & Little Kiki 2 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2276 分析: 1)如果前一盏灯亮着,则改变这一盏灯 ...

  5. PHP 常用自定义函数

    模拟 POST.GET 请求 /** * 模拟post进行url请求 * @param string $url * @param string $param */ protected function ...

  6. C#链接mysql出现 One of the identified items was in an invalid format

    这个问题在tolist查询结果的时候就会出现但是count就不会出现,后来才发现是数据生成工具生成出来的ID有问题导致的,只要保证iD不重复并且按照指定的类型建立ID就可以了

  7. selenium2-java 浏览器cookie的获取

    //成功登陆后增加如下代码        File cookieFile = new File("C:\\tmp\\tangdai.cookie.txt");           ...

  8. 使用SSH方式实现Git远程连接GitHub/gitlab

    参照: https://blog.csdn.net/wuli_smbug/article/details/81480162

  9. idea中以maven工程的方式运行tomcat源码

    0. 准备环境 idea+jdk8+tomcat源码 1.下载tomcat源码: http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/ ...

  10. note《JavaScript 秘密花园》

    点我跳转 (一)JavaScript-Garden-Object (二)JavaScript-Garden-Function (三)JavaScript-Garden-Array (四)JavaScr ...