[Fedora-xen] can't setup virt-install

植松健 takeshi at uematsu.ws
Thu Oct 18 15:45:43 UTC 2007


I installed xen domainU using by virt-install command and kickstart.
The option of virt-install is following.

virt-install -p --ram=256 --name="host1"
--file="/var/lib/xen/images/host1" --file-size=5 --nographics
--location=http://192.168.1.10/fedora/ --extra-args="console=xvc0
ip=192.168.1.100 netmask=255.255.255.0 gateway=192.168.1.1
dns=192.168.1.10 ks=http://192.168.1.10/fedora/ks.cfg "

but error occured while installing domainU.

Messages is as following.

| Exception Occurred
| Traceback (most recent call first):
| File "/usr/lib/anaconda/text.py", line 510, in run
| if anaconda.isKickstart and not anaconda.id.instClass.ksdata.interactive:
| File "/usr/bin/anaconda", line 955, in
| <module>
| anaconda.intf.run(anaconda)
| AttributeError: DefaultInstall instance
| has no attribute 'ksdata'

If I don't use kickstart file , setup completed.

I think that it is no problem in kickstart file(ks.cfg).

If you have any infomation about this case, let me know detail.


ks.cfg
# Kickstart file automatically generated by anaconda.

install
url --url http://192.168.1.10/fedora/
lang ja_JP.UTF-8
network --device eth0 --bootproto static --ip 192.168.1.100 --netmask
255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.10
--hostname host1.e-uematsu.net
rootpw --iscrypted $1$o69YV.yo$rMQTUwIz1CH6HZXlfkQ8Y0
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone Asia/Tokyo
bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --linux --drives=xvda
part /boot --fstype ext3 --size=100 --ondisk=xvda
part pv.2 --size=0 --grow --ondisk=xvda
volgroup VolGroup00 --pesize=32768 pv.2
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00
--size=272 --grow --maxsize=544
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow

%packages
@admin-tools
@editors
@japanese-support
@text-internet
@core
@base
@hardware-support

pax

---
Takeshi Uematsu.




More information about the Fedora-xen mailing list