LoginSignup
2
1

More than 5 years have passed since last update.

xen に virt-install で centos5.4 のイメージを作成するまで

Last updated at Posted at 2017-09-19
virt-install \
  --name=centos5-4 \
  --location=http://archive.kernel.org/centos-vault/5.4/os/x86_64/ \
  --file=/var/lib/xen/images/centos5-4.img \
  --file-size=20 \
  --vcpus=2 \
  --ram=1000 \
  --paravirt \
  --nographics \
  --nonsparse

完了したらそのまま reboot してログインするので以下を実行して yum を実行可能にしておく

sed -e 's/^mirrorlist=/#mirrorlist/g' -e 's/#baseurl=/baseurl=/g' -e 's/mirror.centos.org\/centos\/$releasever/vault.centos.org\/5.4/g' /etc/yum.repos.d/CentOS-Base.repo -i.org

参考: http://dy.hateblo.jp/entry/2017/05/11/172154

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1