Thanks for the response. I did all the steps mentioned below. Still, when I select the windows profile from the pxe menu, nothing happens. Looks like there's something missing even before it gets to any of this. What is the first step after the profile is selected from the pxe menu?
The server we are using has Fedora10 for x86_64.
Thanks, Anu
-----Original Message----- From: James Cammarata [mailto:jimi@sngx.net] Sent: Monday, March 16, 2009 7:53 PM To: Anu Ramachandra Cc: cobbler mailing list Subject: RE: Window install with Cobbler 1.7
Ok, here is what I had to do to get your profile to RIS:
1) The kickstart specified in the profile is a Red Hat kickstart: /etc/cobbler/default.ks. Change this with the following command:
"cobbler profile edit --name=WindowsXP-i386 --kickstart=/var/lib/cobbler/kickstarts/winxp-default.sif"
And sync:
"cobbler sync"
To create all the correct files. Currently the default kickstart is used, which is the default.ks on a new installation. If you want all new windows profiles/systems to use the .sif file above, specify that in /etc/cobbler/settings and re-sync.
2) Verify that either the directory holding the imported Windows files in /var/www/cobbler/ks_mirror is named WindowsXP-i386, or you have created a symlink to it in that same directory. For example, my profile is named winxp-i386 and my imported folder is winxp, so my ks_mirror/ directory looks like this:
# ll /var/www/cobbler/ks_mirror/ total 40 drwxr-xr-x 8 apache root 4096 Jun 18 2008 centos5.2-i386 drwxr-xr-x 2 apache root 4096 Mar 13 06:32 config drwxr-xr-x 7 apache root 4096 Mar 13 06:38 F10-i386 lrwxrwxrwx 1 root root 5 Mar 16 19:45 WindowsXP-i386 -> winxp dr-xr-xr-x 8 root root 4096 Mar 15 23:05 winxp lrwxrwxrwx 1 root root 32 Mar 15 23:36 winxp-i386 -> /var/www/cobbler/ks_mirror/winxp
Note that I created a symlink for your profile name too. This is noted in my "pitfalls" section on the RIS wiki page, and could most likely be avoided by changing the .SIF (kickstart) file to NOT use the full profile name. Instead, it should figure out the directory named probably based on the location of the kernel/initrd files (setupldr/startrom for windows).
3) Verify that you have bind-mounted the folder in ks_mirror (the real one, not the symlinked one) to a directory in the TFTP root. For example, my TFTP root is /tftpboot, and the profile is named WindowsXP-i386, so I executed the following commands:
# mkdir /tftpboot/WindowsXP-i386 # mount --bind /var/www/cobbler/ks_mirror/winxp /tftpboot/WindowsXP-i386
After doing these three things, I was able to pxe a windows vm with no issues.
On Mon, 16 Mar 2009 09:59:04 -0500, "Anu Ramachandra" anu@molecularimprints.com wrote:
Thanks for working on this.
Attached are the files - first one is the output of 'cobbler profile report --name=WindowsXP-i386' The second file is /var/lib/cobbler/config/profiles.d/WindowsXP-i386.
Thanks, Anu
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of James Cammarata Sent: Friday, March 13, 2009 7:11 AM To: cobbler mailing list Subject: Re: Window install with Cobbler 1.7
On Thu, 12 Mar 2009 14:34:20 -0500, "Anu Ramachandra" anu@molecularimprints.com wrote:
Hello,
I am setting up Windows install with cobbler 1.7. In the pxe menu,
when
I select the Windows option, nothing happens. Please suggest where I should start looking to debug this?
'cobbler distro report --name=WindowsXP-i386' returns -
distro : WindowsXP-i386 architecture : i386 breed : windows created : Tue Mar 10 14:55:10 2009 comment : initrd : /var/www/cobbler/ks_mirror/WindowsXP-i386/i386/setupldr.ex_ kernel : /var/www/cobbler/ks_mirror/WindowsXP-i386/i386/startrom.n1_ kernel options : {} ks metadata : {} tree build time : Wed Dec 31 18:00:00 1969 modified : Tue Mar 10 14:55:10 2009 mgmt classes : [] os version : owners : ['admin'] post kernel options : {} redhat mgmt key : <<inherit>> redhat mgmt server : <<inherit>> template files : {}
Thanks! Anu
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
If you'd like, I can try and help you with this, but like Michael said this is pretty much for developers only right now. It is not stable enough or robust enough for general usage, and I definitely would not recommend trying to use this for any production purposes.
But, saying that, if you'd like to help debug this, I'd be more than happy to help you out off list. We have decided not to release this with 1.6 yet, so it will remain available in the devel branch only.
Execute the following as well:
cobbler profile report --name=WindowsXP-i386
And if you could send me the file /var/lib/cobbler/config/profiles.d/WindowsXP-i386 as an attachment, that would allow me to test the exact object you are using.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Ok, while booting your system, tail -f /var/log/messages, you should see the tftp request come in for the kernel. This should be located in your tftp root directory, which I believe is /var/lib/tftpboot on Fedora. The log message should also state that the file request has been rewritten.
If you want, paste in the log entries you see (but please limit it to entries created after the PXE starts).
On Tue, 17 Mar 2009 13:21:53 -0500, "Anu Ramachandra" anu@molecularimprints.com wrote:
Thanks for the response. I did all the steps mentioned below. Still, when I select the windows profile from the pxe menu, nothing happens. Looks like there's something missing even before it gets to any of this. What is the first step after the profile is selected from the pxe menu?
The server we are using has Fedora10 for x86_64.
Thanks, Anu
-----Original Message----- From: James Cammarata [mailto:jimi@sngx.net] Sent: Monday, March 16, 2009 7:53 PM To: Anu Ramachandra Cc: cobbler mailing list Subject: RE: Window install with Cobbler 1.7
Ok, here is what I had to do to get your profile to RIS:
- The kickstart specified in the profile is a Red Hat kickstart:
/etc/cobbler/default.ks. Change this with the following command:
"cobbler profile edit --name=WindowsXP-i386 --kickstart=/var/lib/cobbler/kickstarts/winxp-default.sif"
And sync:
"cobbler sync"
To create all the correct files. Currently the default kickstart is
used,
which is the default.ks on a new installation. If you want all new
windows
profiles/systems to use the .sif file above, specify that in /etc/cobbler/settings and re-sync.
- Verify that either the directory holding the imported Windows files in
/var/www/cobbler/ks_mirror is named WindowsXP-i386, or you have created a symlink to it in that same directory. For example, my profile is named winxp-i386 and my imported folder is winxp, so my ks_mirror/ directory looks like this:
# ll /var/www/cobbler/ks_mirror/ total 40 drwxr-xr-x 8 apache root 4096 Jun 18 2008 centos5.2-i386 drwxr-xr-x 2 apache root 4096 Mar 13 06:32 config drwxr-xr-x 7 apache root 4096 Mar 13 06:38 F10-i386 lrwxrwxrwx 1 root root 5 Mar 16 19:45 WindowsXP-i386 -> winxp dr-xr-xr-x 8 root root 4096 Mar 15 23:05 winxp lrwxrwxrwx 1 root root 32 Mar 15 23:36 winxp-i386 -> /var/www/cobbler/ks_mirror/winxp
Note that I created a symlink for your profile name too. This is noted
in
my "pitfalls" section on the RIS wiki page, and could most likely be avoided by changing the .SIF (kickstart) file to NOT use the full profile name. Instead, it should figure out the directory named probably based
on
the location of the kernel/initrd files (setupldr/startrom for windows).
- Verify that you have bind-mounted the folder in ks_mirror (the real
one,
not the symlinked one) to a directory in the TFTP root. For example, my TFTP root is /tftpboot, and the profile is named WindowsXP-i386, so I executed the following commands:
# mkdir /tftpboot/WindowsXP-i386 # mount --bind /var/www/cobbler/ks_mirror/winxp /tftpboot/WindowsXP-i386
After doing these three things, I was able to pxe a windows vm with no issues.
On Mon, 16 Mar 2009 09:59:04 -0500, "Anu Ramachandra" anu@molecularimprints.com wrote:
Thanks for working on this.
Attached are the files - first one is the output of 'cobbler profile report --name=WindowsXP-i386' The second file is /var/lib/cobbler/config/profiles.d/WindowsXP-i386.
Thanks, Anu
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of James Cammarata Sent: Friday, March 13, 2009 7:11 AM To: cobbler mailing list Subject: Re: Window install with Cobbler 1.7
On Thu, 12 Mar 2009 14:34:20 -0500, "Anu Ramachandra" anu@molecularimprints.com wrote:
Hello,
I am setting up Windows install with cobbler 1.7. In the pxe menu,
when
I select the Windows option, nothing happens. Please suggest where I should start looking to debug this?
'cobbler distro report --name=WindowsXP-i386' returns -
distro : WindowsXP-i386 architecture : i386 breed : windows created : Tue Mar 10 14:55:10 2009 comment : initrd : /var/www/cobbler/ks_mirror/WindowsXP-i386/i386/setupldr.ex_ kernel : /var/www/cobbler/ks_mirror/WindowsXP-i386/i386/startrom.n1_ kernel options : {} ks metadata : {} tree build time : Wed Dec 31 18:00:00 1969 modified : Tue Mar 10 14:55:10 2009 mgmt classes : [] os version : owners : ['admin'] post kernel options : {} redhat mgmt key : <<inherit>> redhat mgmt server : <<inherit>> template files : {}
Thanks! Anu
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
If you'd like, I can try and help you with this, but like Michael said this is pretty much for developers only right now. It is not stable enough or robust enough for general usage, and I definitely would not recommend trying to use this for any production purposes.
But, saying that, if you'd like to help debug this, I'd be more than happy to help you out off list. We have decided not to release this with 1.6 yet, so it will remain available in the devel branch only.
Execute the following as well:
cobbler profile report --name=WindowsXP-i386
And if you could send me the file /var/lib/cobbler/config/profiles.d/WindowsXP-i386 as an attachment, that would allow me to test the exact object you are using.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
cobbler-devel@lists.fedorahosted.org