制作ubuntu 14.04镜像

先以root用户登录:

2.编辑以dhcp的方式获取ip

[email protected]:~# vim /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
[email protected]:~# 

重启除lo网卡的所有网卡

ifdown --exclude=lo -a && sudo ifup --exclude=lo -a

编辑/etc/ssh/sshd_config

#PermitRootLogin without-passwordPermitRootLogin yes

重启 ssh  服务

[email protected]:~# sudo service ssh restart

在/etc/apt/sources.list添加条目:

deb http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

关机,编辑xml文件

virsh edit ubuntu14.04-raw<channel type=‘unix‘>      <source mode=‘bind‘ path=‘/var/lib/libvirt/qemu/org.qemu.guest_agent.0.ubuntu14.04-raw.sock‘/>       <target type=‘virtio‘ name=‘org.qemu.guest_agent.0‘/>      <address type=‘virtio-serial‘ controller=‘0‘ bus=‘0‘ port=‘1‘/></channel

注意:这个文件我在考虑要不要注释掉

<source mode=‘bind‘ path=‘/var/lib/libvirt/qemu/org.qemu.guest_agent.0.ubuntu14.04-raw.sock‘/> 

安装和配置qemu-guest-agent:

[email protected]:~# sudo apt-get update[email protected]:~# sudo apt-get install qemu-guest-agent[email protected]:~# /etc/init.d/qemu-guest-agent start[email protected]:~# /etc/init.d/qemu-guest-agent status * qemu-ga is running

 

时间: 2025-01-08 02:12:17

制作ubuntu 14.04镜像的相关文章

制作ubuntu 12.04镜像

#启动UFW防火墙 sudo ufw enable #允许所有的外部IP访问本机的22/tcp (ssh)端口 sudo ufw allow 22/tcp 在/etc/apt/sources.list添加一个条目: deb http://free.nchc.org.tw/ubuntu/ precise main universe 关机,编辑xml文件 virsh edit ubuntu12.04-raw2<channel type='unix'>      <source mode='b

基于Ubuntu 14.04构建tomcat7镜像

1.创建Dockerfile文件 # Pull base image FROM ubuntu:14.04 MAINTAINER shencq "[email protected]" # update source RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe"> /etc/apt/sources.list RUN apt-get update # Install curl

Drupal8系列(四):主题制作之搭建框架-Ubuntu 14.04 LTS

Drupal8的主题制作准备工作已经完成了,那么我们接下来就开始正式制作主题了! 一.生成主题的Compass框架 首先我们先进入到Druapl8的主题目录: cd /var/www/druapl8/themes 然后利用Compass生成主题框架: compass create firehare --css-dir=css --images-dir=img --javascripts-dir=js -r bootstrap-sass --using bootstrap 在上述命令中fireha

【Android 系统开发】CyanogenMod 13.0 源码下载 编译 ROM 制作 ( 手机平台 : 小米4 | 编译平台 : Ubuntu 14.04 LTS 虚拟机)

作者 : 韩曙亮 转载请注明出处 : http://blog.csdn.net/shulianghan/article/details/51592930 手机的两种模式 : 在下面有详细的图片示例; -- Recovery 模式 : 音量键增加 + 电源键, 长按上述组合键, 看到 "MI" 的 LOGO 后即进入 Recovery 模式; -- Fastboot 模式 : 音量键减小 + 电源键, 长按上述组合键, 看到 "FASTBOOT" 后, 即 进入 FA

搭建Pxe服务器无人听应答全自动安装Ubuntu 14.04.4 server系统

前面我们已经使用CentOS6.7的平台搭建了pxe服务器,现在我们利用此服务器继续安装Ubuntu 14.04.4 server系统的客户机. 参见 http://1130739.blog.51cto.com/1120739/1740925 部署方法: 在pxe安装菜单文件/var/lib/tftpboot/msgs/boot.msg添加Ubuntu系统的选项 在default文件添加Ubuntu系统引导内核.加载映像.自动应答等文件. ####### Install Ubuntu14.04.

Ubuntu 14.04 编译 Android 4.2.2 for Tiny4412

. . . . . 在学校里是用 Redhat 6.4 编译的 Android 4.2.2 很顺利,把源码包拷贝到笔记本上的 Ubuntu 14.04 上再编译遭遇了各种坑,所以便有了这篇博客记录解决每一个坑的过程.所幸这些坑解决起来还不算复杂,稍微 Google 一下就找到了解决方案. 1.首先是安装 JDK 和 arm-linux-gcc 工具链,这两步只是解压缩之后配置环境变量就行了,所以这里就不再赘述了. 注意 JDK 必须采用 1.6 版本的,据说 android 4.x 都需要使用标

Ubuntu 14.04(64位)安装和使用docker

                                        Docker介绍: Docker是一个开源的应用容器引擎,可以通过docker来安装一个独立的系统(类似于虚拟机(Vmware)之类的),不过其特点是非常轻量级,所安装应用的启动速度非常快(通常一秒内完成启动):很多时候,我们可以在一台电脑上装上一个docker,然后用docker启动很多服务器,以便在一台电脑上模拟多台服务器的效果. Docker是基于unix的,在linux系统中可以原生地运行:而在windows

Ubuntu 14.04 LTS 安装和配置Bochs

系统是:Ubuntu 14.04 LTS 64位 安装的是:bochs-2.6.8 Bochs 需要在 X11 环境下运行,因此你的 Linux 系统必须已经安装了X Window 系统才能使用Bochs. 因为 Bochs 是用C++写的,所以这里要安装GNU gcc/g++编译器. 安装命令如下: sudo apt-get install build-essential sudo apt-get install xorg-dev sudo apt-get install bison sudo

NVIDIA DIGITS 学习笔记(NVIDIA DIGITS-2.0 + Ubuntu 14.04 + CUDA 7.0 + cuDNN 7.0 + Caffe 0.13.0)

转自:http://blog.csdn.net/enjoyyl/article/details/47397505?from=timeline&isappinstalled=0#10006-weixin-1-52626-6b3bffd01fdde4900130bc5a2751b6d1 NVIDIA DIGITS-2.0 + Ubuntu 14.04 + CUDA 7.0 + cuDNN 7.0 + Caffe 0.13.0环境配置 引言 DIGITS简介 DIGITS特性 资源信息 说明 DIGI