Hi All:
Using the following line, I am trying to install Scientific Linux (a
RHEL derivative like CentOS), but the installer never sees my kickstart
file :
virt-install -n test-dev1 --ram=1024 --vcpus=2
--file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/root \
--file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/swap \
--file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/nfs \
--accelerate --paravirt --nographics
--location=http://135.1.29.1/nfs/scientific/52/x86_64/ \
--autocf
nfs:135.1.37.162:/zfs_pool/nfs/xen_guest_sl52_x86_64_ks/kickstart/ks.cfg.3
-d
Any suggestions on what I am doing wrong?
Some notes:
* although xVM doesn''t understand SL, it does know about CentOS, so
creating a symbolic link from CentOS to SL allows xen to find the
init.rd and vmliuz files correctly)
* the linux installer runs correctly, it just doesn''t find/run the
kickstart file
* I did run this with the debug flag (-d), and the output was:
Starting install...
libvir: Xen Daemon error : GET operation failed:
Mon, 14 Jul 2008 13:35:33 DEBUG Fetching URI
http://135.1.29.1/nfs/scientific/52/x86_64//Fedora
Mon, 14 Jul 2008 13:35:33 DEBUG Cannot find file Fedora
Mon, 14 Jul 2008 13:35:33 DEBUG Fetching URI
http://135.1.29.1/nfs/scientific/52/x86_64//Server
Mon, 14 Jul 2008 13:35:33 DEBUG Cannot find file Server
Mon, 14 Jul 2008 13:35:33 DEBUG Fetching URI
http://135.1.29.1/nfs/scientific/52/x86_64//RedHat
Mon, 14 Jul 2008 13:35:33 DEBUG Cannot find file RedHat
Mon, 14 Jul 2008 13:35:33 DEBUG Fetching URI
http://135.1.29.1/nfs/scientific/52/x86_64//CentOS
Mon, 14 Jul 2008 13:35:33 DEBUG Saved file to
/var/lib/xen/virtinst-CentOS.hfqVMx
Retrieving CentOS... 779 kB
00:00
Mon, 14 Jul 2008 13:35:33 DEBUG Detected a CentOS distro
Mon, 14 Jul 2008 13:35:33 DEBUG Fetching URI
http://135.1.29.1/nfs/scientific/52/x86_64//images/xen/vmlinuz
Mon, 14 Jul 2008 13:35:33 DEBUG Saved file to
/var/lib/xen/virtinst-vmlinuz.-n2_fc
Retrieving vmlinuz... 100% |=========================| 1.9 MB
00:00
Mon, 14 Jul 2008 13:35:33 DEBUG Fetching URI
http://135.1.29.1/nfs/scientific/52/x86_64//images/xen/initrd.img
Mon, 14 Jul 2008 13:35:33 DEBUG Saved file to
/var/lib/xen/virtinst-initrd.img.x_yUug
Retrieving initrd.img... 100% |=========================| 5.7 MB
00:00
libvir: Xen Daemon error : GET operation failed:
Mon, 14 Jul 2008 13:35:33 DEBUG Creating guest from ''<domain
type=''xen''>
<name>test-dev1</name>
<currentMemory>1048576</currentMemory>
<memory>1048576</memory>
<uuid>aa6e5b82-4d90-5505-88f4-c63a2e5c50be</uuid>
<os>
<type>linux</type>
<kernel>/var/lib/xen/virtinst-vmlinuz.-n2_fc</kernel>
<initrd>/var/lib/xen/virtinst-initrd.img.x_yUug</initrd>
<cmdline>
method=http://135.1.29.1/nfs/scientific/52/x86_64/</cmdline>
</os>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<vcpu>2</vcpu>
<devices>
<disk type=''block'' device=''disk''>
<source
dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/root''/>
<target dev=''xvda''/>
</disk>
<disk type=''block'' device=''disk''>
<source
dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/swap''/>
<target dev=''xvdb''/>
</disk>
<disk type=''block'' device=''disk''>
<source
dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/nfs''/>
<target dev=''xvdc''/>
</disk>
<interface type=''bridge''>
<source bridge=''''/>
<mac address=''00:16:3e:6f:0a:38''/>
</interface>
</devices>
</domain>
''
Creating domain... 0 B
00:01
Mon, 14 Jul 2008 13:35:34 DEBUG Created guest, looking to see if it
is running
Mon, 14 Jul 2008 13:35:34 DEBUG Launching console callback
Mon, 14 Jul 2008 13:35:34 DEBUG Saving XML boot config ''<domain
type=''xen''>
<name>test-dev1</name>
<currentMemory>1048576</currentMemory>
<memory>1048576</memory>
<uuid>aa6e5b82-4d90-5505-88f4-c63a2e5c50be</uuid>
<bootloader>/usr/lib/xen/bin/pygrub</bootloader>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<vcpu>2</vcpu>
<devices>
<disk type=''block'' device=''disk''>
<source
dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/root''/>
<target dev=''xvda''/>
</disk>
<disk type=''block'' device=''disk''>
<source
dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/swap''/>
<target dev=''xvdb''/>
</disk>
<disk type=''block'' device=''disk''>
<source
dev=''/dev/zvol/dsk/zfs_pool/xen/lss-kickstart1/nfs''/>
<target dev=''xvdc''/>
</disk>
<interface type=''bridge''>
<source bridge=''''/>
<mac address=''00:16:3e:6f:0a:38''/>
</interface>
</devices>
</domain>
''
Thanks in advance for any help,
Paul Jochum
Hi All: No responses to this thread so far, so let me try to re-word the question: Has anyone run virt-install on an OpenSolaris Dom0, and specified a RedHat/CentOS kickstart file when setting up the DomU? If you have, can you send me the command line you used? thanks, Paul This message posted from opensolaris.org
On Mon, Jul 28, 2008 at 08:22:54AM -0700, Paul Jochum wrote:> Has anyone run virt-install on an OpenSolaris Dom0, and specified a RedHat/CentOS kickstart file when setting up the DomU? If you have, can you send me the command line you used?Yes, I''ve done that successfully with a Fedora PV domU and a kickstart file via http. I don''t have a record of the exact command-line but it''s essentially just adding "--autocf http://server/kickstart.cfg" regards john
Hi John: Hmmm, I wonder if this was changed/broken in build 94? I upgraded the system to build 94, and it seems that autocf requires dns (instead of http) now. Running virt-install with an autocf=http... line, It fails, with: File "/export/builds/xvm_94///proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 794, in set_autocf ValueError: http://135.1.29.1/nfs/xen_guest_sl52_x86_64_ks/kickstart/ks.cfg.1 does not exist In a quick look at /usr//lib/python2.4/vendor-packages/virtinst/Guest.py, the script seems to assume that only dns would be allowed. With dns, the option of autocf is accepted, but it doesn''t run (i.e. the kickstart script is not used, rather the install scripts prompts you through all of the options). Unfortunately, I have not been able to find a way of switching withing the domU to the alternate consoles to view the logs/debug/error messages (normally, <cntl>-<alt>-2 or <ctl>-<alt>-3 would get you to these consoles). thanks, Paul This message posted from opensolaris.org
On Tue, Jul 29, 2008 at 08:46:40AM -0700, Paul Jochum wrote:> Hmmm, I wonder if this was changed/broken in build 94? I upgraded the system to build 94, and it seems that autocf requires dns (instead of http) now. Running virt-install with an autocf=http... line, It fails, with: > File "/export/builds/xvm_94///proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 794, in set_autocf > ValueError: http://135.1.29.1/nfs/xen_guest_sl52_x86_64_ks/kickstart/ks.cfg.1 does not existDo you mean NFS? My apologies, I''ve mis-remembered how this works. --autocf is Solaris-specific (JumpStart). For Linux, you need to specify it with -x like the examples here: http://lists.centos.org/pipermail/centos/2007-June/082377.html (it would be nice if --autocf understood both Linux and Solaris, but it''s not a priority for us right now.) regards john
John Levon wrote:> On Tue, Jul 29, 2008 at 08:46:40AM -0700, Paul Jochum wrote: > > >> Hmmm, I wonder if this was changed/broken in build 94? I upgraded the system to build 94, and it seems that autocf requires dns (instead of http) now. Running virt-install with an autocf=http... line, It fails, with: >> File "/export/builds/xvm_94///proto/install/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 794, in set_autocf >> ValueError: http://135.1.29.1/nfs/xen_guest_sl52_x86_64_ks/kickstart/ks.cfg.1 does not exist >> > > Do you mean NFS? > > My apologies, I''ve mis-remembered how this works. --autocf is > Solaris-specific (JumpStart). For Linux, you need to specify it with -x > like the examples here: > > http://lists.centos.org/pipermail/centos/2007-June/082377.html > > (it would be nice if --autocf understood both Linux and Solaris, but > it''s not a priority for us right now.) > > regards > john >Thank you John, that was my problem (basically, use -x (or --extra-args), but I didn''t know I needed the whole "ks=<path>" line). So, in case someone else needs this, here is a copy of my virt-install command: virt-install -n test-dev2 --ram=1024 --vcpus=2 \ --os-type=linux --os-variant=rhel5 \ --file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart2/root \ --file=/dev/zvol/dsk/zfs_pool/xen/lss-kickstart2/swap \ --accelerate --paravirt --nographics \ --location=http://136.1.29.1/nfs/scientific/52/x86_64/ \ --extra-args="ks=http://136.1.29.1/nfs/kickstart/ks.cfg.4" -d regards, Paul