[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] virt-install & kickstart


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Brent Meshier" <brent@xxxxxxxxxxxxxxx>
  • Date: Fri, 1 Jun 2007 15:31:26 -0400
  • Delivery-date: Fri, 01 Jun 2007 12:29:52 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: Acekg3I/PSDF4MV7SBedsxwTDnLKJQ==
  • Thread-topic: virt-install & kickstart

Maybe I’m going about this the wrong way, but I want to create 10 virtual domains each with their own IP (172.16.10.150 -> 172.16.10.160)

 

I was using virt-install, but I then have to modify the kickstart file, changing the IP address manually each time.  Is there an easier way where I can specify the IP address for eth0 on the command line?

 

virt-install -p—location=http://172.16.10.101/x86_64/—noautoconsole—file=/dev/vg_xen/lv_dom1—name=dom1—ram=4096—vnc -x “ks=http://172.16.10.101/ks.cfg ip=172.16.10.150 netmask=255.255.255.0 dns=65.24.7.6 gateway=172.16.10.1”

 

 

 

My kickstart file:

 

#platform=x86, AMD64, or Intel EM64T

# System authorization information

auth  --useshadow  --enablemd5

# System bootloader configuration

bootloader --location=mbr

# Partition clearing information

clearpart --all --initlabel

# Use text mode install

text

# Firewall configuration

firewall --disabled

# Run the Setup Agent on first boot

firstboot --disable

# System keyboard

keyboard us

# System language

lang en_US

# Installation logging level

logging --level=info

# Use network installation

url --url="">

# Network information

network --bootproto=static --device=eth0 --gateway=172.16.10.1 --ip=172.16.10.150 --nameserver=172.16.10.1 --netmask=255.255.255.0 -->

#Root password

rootpw  password

 

# SELinux configuration

selinux --disabled

# Do not configure the X Window System

skipx

# System timezone

timezone  America/Los_Angeles

# Install OS instead of upgrade

install

# Disk partitioning information

part /boot --fstype="ext3" --size=100

part pv.2 --size=0 --grow

volgroup VolGroup00 pv.2

logvol swap --fstype="swap" --name=LogVol01 --vgname=VolGroup00 --size=2048

logvol / --fstype="ext3" --name=LogVol00 --vgname=VolGroup00 --size=1 --grow

 

%packages

@base

@mysql

@mail-server

@web-server

@dns-server

@ftp-server

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.