As appears debootstrap RPM developed for Fedora 9 works fine at Xen 3.3.1 CentOS 5.2 Dom0 and provide an option to create Intrepid Server PV Guest via debootstrapped Ubuntu’s image in RH’s Xen Dom0 environment. Install F9’s rpm then debootstrap would understand non Ubuntu Environment:-
# rpm -ivh debootstrap-1.0.8-1.fc9.noarch.rpm
Prepare LVMs for install:-
# lvcreate -n ubuntu -L12G /dev/vgxen
# lvcreate -n ubuntu-swap -L4G /dev/vgxen
# mke2fs -j /dev/vgxen/ubuntu
# mkswap /dev/vgxen/ubuntu-swap
# mkdir -p /mnt/xen
# mount /dev/vgxen/ubuntu /mnt/xen
Create missing symlink:-
# ln -s /usr/share/debootstrap/scripts/gutsy \
/usr/share/debootstrap/scripts/intrepid
**************************
Update on 01/09/2008
**************************
Fedora 10’s debootstrap-1.0.10-1.fc10.noarch.rpm has this symlink already created. Moreover debootstrap-1.0.10-1.fc10.noarch.rpm been installed on Xen 3.3.1 openSUSE 11.1 Dom0 provide comletely functional debootstrap utility to create Intrepid Server, Hardy Heron PV DomUs at openSUSE 11.1 Dom0 in the same way as described bellow.
Deboostrap new Intrepid Guest:-
# debootstrap --arch=amd64 \
--include=linux-image-server,grub \
--components=main,universe,multiverse intrepid \
/mnt/xen http://us.archive.ubuntu.com/ubuntu/
Once that has finished chroot into the new debootstrapped tree :-
# chroot /mnt/xen
# export LANG=C
Create /etc/fstab:
# cat /etc/fstab
/dev/xvda1 / ext3 defaults 0 1
/dev/xvdb1 none swap defaults 0 0
proc /proc proc defaults 0 0
Create a folder for GRUB menu and update the config
# mkdir -p /boot/grub
# update-grub
Edit /boot/grub/menu.lst
- add “console=hvc0″ to both kernel lines (normal and recovery mode)
Setup a getty on the Xen console (hvc0):
# cd /etc/event.d
# cp tty1 hvc0
# sed -i -e "s/tty1/xvc0/g" hvc0
Remove references to the hardware clock; these will cause the DomU to hang:
# update-rc.d -f hwclockfirst remove
# update-rc.d -f hwclock remove
# rm /etc/udev/rules.d/85-hwclock.rules
Configure network interfaces (/etc/network/interfaces):-
# cat /etc/network/interfaces
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Create /etc/hosts file
# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 IntrepidPVH
Create /etc/hostname file
# cat /etc/hostname
IntrepidPVH
Exit chroot and unmount the filesystem.
# exit
# umount /mnt/xen
Start DomU via profile:-
bootloader = '/usr/bin/pygrub'
memory = 2048
name = "ubuntuPV"
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/vgxen/ubuntu,xvda1,w', 'phy:/dev/vgxen/ubuntu-swap,xvdb1,w' ]
At this point i had to bring /etc/apt/sources.list from remote Intrepid Server installed on bare metal.
# apt-get update
Run tasksel at DomU to install Basic Ubuntu Server and OpenSSHserver. Rebooted DomU:-
# apt-get upgrade
- 浏览: 1306235 次
- 性别:
- 来自: 广州
最新评论
-
GuolinLee:
markmark
JVM调优总结 -Xms -Xmx -Xmn -Xss -
di1984HIT:
写的太好啊。
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
javajdbc 写道
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
...
JVM调优总结 -Xms -Xmx -Xmn -Xss -
alvin198761:
非常感谢,国外的被封杀了,你这里还有一份
How to Convert An Image-Based Guest To An LVM-Based Guest
相关推荐
Ansible-Debootstrap-服务器该项目的目标是在Live CD / DVD环境下,通过Ansible使用debootstrap安装Debian / Ubuntu服务器。
xen-tools:xen-tools是一组简单的perl脚本的集合,可让您轻松地在Xen主机服务器上创建新的Xen来宾域。
debootstrap-1.0.81-1.el7.noarch.rpm
描述管理基本 Debian 和 Ubuntu 系统的安装。要求Ubuntu 或 Debian 发行版。...include_recipe "debootstrap"debootstrap destination_path do arch "amd64" suite "wheezy" user "root" group "root" extra_pac
流水线 启动 ubuntu 用法 rake build或rake push
debootstrap_live:使用当前内核和debootstrap基本系统生成可引导的ISO
在PHP-FPM中设立chroot,有很好的隔离作用,提高系统安全性,但是要想建立一个合理的PHP-FPM Chroot环境难度...CentOS请自行调整。 php-fpm的chroot环境配置和所使用的服务器前端没有关联,也不强求Apache/Nginx进行ch
grml-debootstrap 该工具是围绕debootstrap和cdebootstrap的包装器套件,可简化纯系统的安装。 可以在命令行,对话框前端或/ etc / debootstrap / config中完成配置。 您将获得一个纯Debian系统安装在指定的设备或...
注意:此脚本需要 debootstrap,因此无论您在发行版上安装什么,请确保在尝试运行此脚本之前安装它。 从 linux cli: git clone https://github.com/ctarwater/docker-kali.git cd docker-kali ./build.sh 完成后...
只需要在 Xubuntu 虚拟机中执行 5 个脚本并创建您自己的 Live Devuan Linux Distro。... 您是否曾经喜欢只包含特定软件包的精益发行版? 您是否曾经想要一个 Devuan Linux 发行版并确保安装了什么?...
关于这个回购这是官方 Docker 镜像的 Git 存储库。 有关如何使用 Docker 映像的完整自述文件以及有关贡献和问题的信息,请参阅 Hub 页面。 完整的自述在生成,特别是在。
root@demon:~# apt install debootstrap squashfs-tools xorriso grub-pc-bin grub-efi-amd64-bin mtools live-build 初始化项目 第一部分是简单地定制Debian ISO,在我们的例子中是Weakerthan LINUX风格。 从头...
脚本debootstrap_raspbian_chroot最初是在64位openSUSE系统上创建的,在该脚本上应该可以正常工作 openSUSE所需的软件包: zypper in debootstrap qemu-linux-user wget git 基于debian发行版的必需软件包(尚未...
sudo apt install debootstrap xorriso live-build syslinux squashfs-tools isolinux grub-efi-amd64-bin cp config.dist config 根据您的需要更改livework和os_version 。 制作 sudo ./make_iso.sh 如果没有错误,...
支持的体系结构包括:armel,armhf,arm64,i386,amd64 不需要root权限 如何使用它 安装 (可选)修改脚本顶部附近的配置行 下载debian_on_termux_10.sh (或debian_on_termux.sh如果使用10之前的Android版本)...
debootstrap_1.0.10_all.deb 03-Jul-2008 00:02 49K 博文链接:https://wanghongwei.iteye.com/blog/232634
目录关于欢迎来到image-bootstrap的家(及其弟弟directory-bootstrap )。... 与grml-debootstrap相比,现在是image-bootstrap 仅安装为阻止设备, 支持多种安装GRUB 2.x或extlinux或根本不安装引导程序的方法, 不会
debootstrap: apt-get install -y debootstrap git: apt-get install -y git SmartOS(或SDC头节点)安装( create-lx-image脚本必需) 用法 运行./install -d <chroot> -m <mirror> -i <image> -p <proper> -u...
创建只有 ubuntu 14.04 的容器的一种简单方法是使用 debootstrap mkdir containercd containersudo debootstrap --variant=buildd --arch amd64 trusty . http://archive.ubuntu.com/ubuntu/这将在./container安装...
依赖包sudo apt-get install binutils debootstrap squashfs-tools xorriso grub-pc-bin grub-efi-ia32-bin grub-efi-amd64-bin mtools警告目前,LUBS不支持snap。 切勿在包装清单中添加Chrome浏览器。