Hello guys,<br><br>I somehow overcome the balloon problem. What I did was I delete the system and profile by <br>cobbler system remove --name=<system_mac><br>cobbler profile remove --name=<profile_name><br><br>
And I added again the profile but this time I gave --virt-ram-size=256 (as this was where koan reported warning earlier) and then I created system  as I did previously. <br>Then I ran koan once again (as I did earlier) but now a new problem. It starts the virtual machine and ask me to connect to it via xm console. I did so but it hangs during acquiring ip address from dhcp. After sometime it ask me to give ip address manually I do so (
<a href="http://10.1.1.45/255.255.255.0">10.1.1.45/255.255.255.0</a> gateway <a href="http://10.1.1.1">10.1.1.1</a>) but then it reports error in getting nfs:/10.1.1.1/rhel5/Dump/ks.cfg. I have figured out the problem. But don't know how to resolve it.
<br>It is the same as I mentioned earlier. I have two network interfaces. One is eth1 (wireless device) and other is dummy0 (virtual network interface). All the communication of xen vm's with the xen dom0 is done via a bridge xenbr1 which is mapped to dummy0. And in the 
dhcpd.conf there is nothing for the subnet <a href="http://10.1.1.0">10.1.1.0</a> and if I do manually (as of now cobbler is managing my dhcpd.con) it reports error and doesn't start dhcpd service. The error is logged into /var/log/messages and it is shown below:
<br><br>Mar 31 10:05:01 server dhcpd: Internet Systems Consortium DHCP Server V3.0.5-RedHat<br>Mar 31 10:05:01 server dhcpd: Copyright 2004-2006 Internet Systems Consortium.<br>Mar 31 10:05:01 server dhcpd: All rights reserved.
<br>Mar 31 10:05:01 server dhcpd: For info, please visit <a href="http://www.isc.org/sw/dhcp/">http://www.isc.org/sw/dhcp/</a><br>Mar 31 10:05:01 server dhcpd: Wrote 0 deleted host decls to leases file.<br>Mar 31 10:05:01 server dhcpd: Wrote 0 new dynamic host decls to leases file.
<br>Mar 31 10:05:01 server dhcpd: Wrote 0 leases to leases file.<br>Mar 31 10:05:01 server dhcpd:<br>Mar 31 10:05:01 server dhcpd: No subnet declaration for eth1 (<a href="http://192.168.1.5">192.168.1.5</a>).<br>Mar 31 10:05:01 server dhcpd: ** Ignoring requests on eth1.  If this is not what
<br>Mar 31 10:05:01 server dhcpd:    you want, please write a subnet declaration<br>Mar 31 10:05:01 server dhcpd:    in your dhcpd.conf file for the network segment<br>Mar 31 10:05:01 server dhcpd:    to which interface eth1 is attached. **
<br>Mar 31 10:05:01 server dhcpd:<br>Mar 31 10:05:01 server dhcpd:<br>Mar 31 10:05:01 server dhcpd: Not configured to listen on any interfaces!<br>Mar 31 10:05:01 server dhcpd:<br>Mar 31 10:05:01 server dhcpd: If you did not get this software from 
<a href="http://ftp.isc.org">ftp.isc.org</a>, please<br>Mar 31 10:05:01 server dhcpd: get the latest from <a href="http://ftp.isc.org">ftp.isc.org</a> and install that before<br>Mar 31 10:05:01 server dhcpd: requesting help.
<br>Mar 31 10:05:01 server dhcpd:<br>Mar 31 10:05:01 server dhcpd: If you did get this software from <a href="http://ftp.isc.org">ftp.isc.org</a> and have not<br>Mar 31 10:05:01 server dhcpd: yet read the README, please read it before requesting help.
<br>Mar 31 10:05:01 server dhcpd: If you intend to request help from the <a href="mailto:dhcp-server@isc.org">dhcp-server@isc.org</a><br>Mar 31 10:05:01 server dhcpd: mailing list, please read the section on the README about
<br>Mar 31 10:05:01 server dhcpd: submitting bug reports and requests for help.<br>Mar 31 10:05:01 server dhcpd:<br>Mar 31 10:05:01 server dhcpd: Please do not under any circumstances send requests for<br>Mar 31 10:05:01 server dhcpd: help directly to the authors of this software - please
<br>Mar 31 10:05:01 server dhcpd: send them to the appropriate mailing list as described in<br>Mar 31 10:05:01 server dhcpd: the README file.<br>Mar 31 10:05:01 server dhcpd:<br>Mar 31 10:05:01 server dhcpd: exiting.<br>Mar 31 10:05:01 server dhcpd: dhcpd startup failed
<br><br>If you want me to give some more information please feel free to ask. <br>Thanks in advance<br><br>Regards<br>SysAdmin<br><br><div><span class="gmail_quote">On 3/31/07, <b class="gmail_sendername">niyaz chistee</b>
 <<a href="mailto:prime.provogue@gmail.com">prime.provogue@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well I thought that I should go the other way. So I did this:<br>Note: I have my RHEL5 Dump in /rhel5/Dump<br><br>cobbler distro add --name=rhel5 --kernel=/rhel5/Dump/images/xen/vmlinuz --initrd=/rhel5/Dump/images/initrd.img
<br><br>This ran good. Then I did the following:<br><br>cobbler profile add --name=redhat5x --distro=rhel5 --kickstart=/rhel5/Dump/ks.cfg --virt-file-size=2 --virt-ram=128<br>cobbler system add --name=00:16:3E:5F:93:6A --profile=redhat5x
<br><br>Okay Now I exported my /rhel5/Dump via NFS. Here's cat /etc/exports<br>/rhel5/Dump     <a href="http://10.1.1.0/255.255.255.0%28rw,sync,no_root_squash%29" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.1.1.0/255.255.255.0(rw,sync,no_root_squash)</a><br><br>
For the sake of convience I am also posting my /rhel5/Dump/ks.cfg and /etc/dhcpd.conf<br>cat /etc/dhcpd.conf<br># ******************************************************************<br># Cobbler managed dhcpd.conf file<br>

# generated from cobbler dhcp.conf template (Sat Mar 31 02:31:13 2007)<br># ******************************************************************<br>ddns-update-style interim;<br>allow booting;<br>allow bootp;<br>ignore client-updates;
<br>set vendorclass = option vendor-class-identifier;<br>subnet <a href="http://192.168.1.0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.0</a> netmask <a href="http://255.255.255.0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
255.255.255.0</a> {<br>     option routers          <a href="http://192.168.1.5" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
192.168.1.5</a>;<br>     option subnet-mask      <a href="http://255.255.255.0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">255.255.255.0</a>;<br>     range dynamic-bootp     <a href="http://192.168.1.100" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
192.168.1.100</a> <a href="http://192.168.1.254" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.254
</a>;<br>     filename                "/pxelinux.0";<br>     default-lease-time      21600;<br>     max-lease-time          43200;<br>     next-server             <a href="http://10.1.1.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.1.1.1</a>;<br>}<br>
host label1 {<br>    hardware ethernet 00:16:3E:5F:93:6A;<br>    next-server <a href="http://10.1.1.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.1.1.1</a>;<br>}<br><br>cat /rhel5/Dump/ks.cfg
<br>install<br>url --url nfs:10.1.1.1:/rhel5/Dump<br>key <I_AM_NOT_WRITING_IT>
<br>lang en_US.UTF-8<br>network --device eth0 --bootproto dhcp<br>rootpw --iscrypted $1$VwD9nalr$06K0bUawzanX72gNk0es91<br>firewall --disabled<br>authconfig --enableshadow --enablemd5<br>selinux --disabled<br>timezone --utc Asia/Calcutta
<br>bootloader --location=mbr --driveorder=xvda --append="console=xvc0"<br># The following is the partition information you requested<br># Note that any partitions you deleted are not expressed<br># here so unless you clear all partitions first, this is
<br># not guaranteed to work<br>clearpart --all --drives=xvda<br>part /boot --fstype ext3 --size=100 --ondisk=xvda<br>part pv.2 --size=0 --grow --ondisk=xvda<br>volgroup VolGroup00 --pesize=32768 pv.2<br>logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
<br>logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=144 --grow --maxsize=288<br>%packages<br>@admin-tools<br>@base<br>@core<br>@dialup<br>@java<br>@system-tools<br>@text-internet<br><br>Now I started my portmap,tftp,nfs,httpd services and finally I started koan.
<br><br>koan --virt --server=<a href="http://192.168.1.5" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.5</a> --profile=redhat5x<br>It gave me this:<br>- processing profile: redhat5x<br>
- fetching configuration for profile: redhat5x<br>- url=<a href="http://192.168.1.5/cobbler/profiles/redhat5x" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://192.168.1.5/cobbler/profiles/redhat5x</a><br>- {'kickstart': 'nfs://10.1.1.1/rhel5/Dump/ks.cfg', 'name': 'redhat5x', 'virt_ram': 128, 'repos': '', 'kernel_options': 'ksdevice=eth0 lang=  syslog=
<a href="http://10.1.1.1:25150" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.1.1.1:25150</a> text ', 'virt_file_size': 2, 'distro': 'rhel5-xen', 'virt_paravirt': 'True', 'ks_meta': ''}
<br>- fetching configuration for distro: rhel5-xen
<br>- url=<a href="http://192.168.1.5/cobbler/distros/rhel5-xen" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://192.168.1.5/cobbler/distros/rhel5-xen</a><br>- {'kernel': '/rhel5/Dump/images/xen/vmlinuz', 'ks_meta': '', 'breed': 'redhat', 'kernel_options': 'ksdevice=eth0 lang=  syslog=
<a href="http://10.1.1.1:25150" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.1.1.1:25150</a> text ', 'initrd': '/rhel5/Dump/images/xen/initrd.img', 'arch': 'x86', 'name': 'rhel5-xen'}
<br>- downloading initrd initrd.img
 to /tmp/initrd.img<br>- url=<a href="http://192.168.1.5/cobbler/images/rhel5-xen/initrd.img" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://192.168.1.5/cobbler/images/rhel5-xen/initrd.img</a>
<br>- downloading kernel vmlinuz to /tmp/vmlinuz<br>- url=<a href="http://192.168.1.5/cobbler/images/rhel5-xen/vmlinuz" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://192.168.1.5/cobbler/images/rhel5-xen/vmlinuz</a><br>- kernel saved = /tmp/vmlinuz<br>- initrd saved = /tmp/initrd.img<br>- invalid RAM size specified, defaulting to 256 MB<br>libvir: Xen Daemon error : POST operation failed: (
xend.err 'Error creating domain: The privileged domain did not balloon!')<br>Failed to create domain 00_16_3E_5C_D5_0C<span class="q"><br>Traceback (most recent call last):<br></span>  File "/usr/lib/python2.4/site-packages/koan/app.py", line 97, in main
<br>    k.run()<br>  File "/usr/lib/python2.4/site-packages/koan/app.py", line 152, in run<br>    self.do_virt()<br>  File "/usr/lib/python2.4/site-packages/koan/app.py", line 297, in do_virt<br>    return 
self.do_net_install("/tmp",after_download)<br>  File "/usr/lib/python2.4/site-packages/koan/app.py", line 253, in do_net_install<br>    after_download(self, distro_data, profile_data)<br>  File "/usr/lib/python2.4/site-packages/koan/app.py", line 296, in after_download
<br>    self.do_virt_net_install(profile_data, distro_data)<br>  File "/usr/lib/python2.4/site-packages/koan/app.py", line 600, in do_virt_net_install<br>    extra=kextra<br>  File "/usr/lib/python2.4/site-packages/koan/virtcreate.py", line 102, in start_paravirt_install
<br>    guest.start_install()<br>  File "/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py", line 220, in start_install<br>    return XenGuest.XenGuest.start_install(self, consolecb)<br>  File "/usr/lib/python2.4/site-packages/virtinst/XenGuest.py", line 367, in start_install
<br>    self.domain = self.conn.createLinux(cxml, 0)<br>  File "/usr/lib/python2.4/site-packages/libvirt.py", line 249, in createLinux<br>    if ret is None:raise libvirtError('virDomainCreateLinux() failed')
<br>libvirtError: virDomainCreateLinux() failed<br><br>I don't know what happened during the ballon but it didn't created the virtual machine I was expecting.<br>One more thing I would like to through light on is that I have configured a virtual dummy0 network interface which is bridged to xenbr1. Here's my ifconfig(not shown are the xen virtual interfaces):
<br>dummy0    Link encap:Ethernet  HWaddr F6:42:E2:23:B6:57  <br>          inet addr:<a href="http://10.1.1.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.1.1.1</a>  Bcast:<a href="http://10.1.1.255" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.1.1.255</a>  Mask:<a href="http://255.255.255.0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">255.255.255.0
</a><br>          inet6 addr: fe80::f442:e2ff:fe23:b657/64 Scope:Link<br>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>          RX packets:41 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:154 errors:0 dropped:0 overruns:0 carrier:0
<br>          collisions:0 txqueuelen:0 <br>          RX bytes:7438 (7.2 KiB)  TX bytes:11815 (11.5 KiB)<br>eth1      Link encap:Ethernet  HWaddr 00:13:02:4B:70:05  <br>          inet addr:<a href="http://192.168.1.5" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
192.168.1.5
</a>  Bcast:<a href="http://192.168.1.255" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.255</a>  Mask:<a href="http://255.255.255.0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
255.255.255.0</a><br>          inet6 addr: fe80::213:2ff:fe4b:7005/64 Scope:Link<br>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
<br>          RX packets:318 errors:0 dropped:45 overruns:0 frame:0<br>          TX packets:336 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 txqueuelen:1000 <br>          RX bytes:173630 (169.5 KiB)  TX bytes:30388 (
29.6 KiB)<br>          Interrupt:16 Base address:0xe000 Memory:b0200000-b0200fff <br><br>All my xen related network stuff is handled by dummy0 and it is then masqureaded to eth1. I think there is problem with /etc/dhcpd.conf regarding eth1 and dummy0. I am not getting it. 
<br>Please through some light.<br><br>Regards<div><span class="e" id="q_111a5ec3c170cefe_3"><br><br><div><span class="gmail_quote">On 3/31/07, <b class="gmail_sendername">niyaz chistee</b> <<a href="mailto:prime.provogue@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
prime.provogue@gmail.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I am trying to configure cobbler to configure my xen virtual machines. I tried to import the installation tree of rhel5 from cobbler using the command:
<br><br> cobbler import --mirror=/rhel5/Dump/ --mirror-name=rhel5
<br><br>It ran for sometime mirroring my rpm's and in last it ended up with this:<br>sent 2597509927 bytes  received 50280 bytes  8644127.14 bytes/sec<br>total size is 2596994302  speedup is 1.00<br>- creating new distro: rhel5
<br>- creating new profile: rhel5<br>- running repo update on /var/www/cobbler/ks_mirror/rhel5<br>- no comps file found: /var/www/cobbler/ks_mirror/rhel5/repodata/comps.xml<br>- modifying existing distro: rhel5<br>- modifying existing profile: rhel5
<br>- running repo update on /var/www/cobbler/ks_mirror/rhel5<br>- no comps file found: /var/www/cobbler/ks_mirror/rhel5/repodata/comps.xml<br>- creating new distro: rhel5-xen<br>- creating new profile: rhel5-xen<br>- running repo update on /var/www/cobbler/ks_mirror/rhel5
<br>- no comps file found: /var/www/cobbler/ks_mirror/rhel5/repodata/comps.xml<br>Traceback (most recent call last):<br>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 502, in main<br>    BootCLI(
sys.argv).run()<br>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 102, in run<br>    self.curry_args(self.args[1:], self.commands['toplevel'])<br>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 418, in curry_args
<br>    commands[args[0]](args[1:])<br>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 312, in import_tree<br>    return self.apply_args(args,commands,on_ok)<br>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 406, in apply_args
<br>    on_ok()<br>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 311, in <lambda><br>    on_ok = lambda: go_import()<br>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 304, in go_import
<br>    self.temp_mirror_name)<br>  File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 152, in import_tree<br>    return importer.run()<br>  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 82, in run
<br>    self.guess_kickstarts()<br>  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 139, in guess_kickstarts<br>    results = self.scan_rpm_filename(rpm)<br>  File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 186, in scan_rpm_filename
<br>    major = int(major)<br>ValueError: invalid literal for int(): 5Server<br><br>I don't know what this is all about. But when I ran cobbler report it showed me this:<br><br>[root@server cobbler]# cobbler report<br>


distro          : rhel5<br>kernel          : /var/www/cobbler/ks_mirror/rhel5/images/pxeboot/vmlinuz<br>initrd          : /var/www/cobbler/ks_mirror/rhel5/images/pxeboot/initrd.img<br>kernel options  : {}<br>architecture    : x86
<br>ks metadata     : {}<br>breed           : redhat<br><br>distro          : rhel5-xen<br>kernel          : /var/www/cobbler/ks_mirror/rhel5/images/xen/vmlinuz<br>initrd          : /var/www/cobbler/ks_mirror/rhel5/images/xen/initrd.img
<br>kernel options  : {}<br>architecture    : x86<br>ks metadata     : {}<br>breed           : redhat<br><br>profile         : rhel5<br>distro          : rhel5<br>kickstart       : /etc/cobbler/default.ks<br>kernel options  : {}
<br>ks metadata     : {}<br>virt file size  : 5<br>virt ram        : 512<br>virt paravirt   : True<br>repos           : <br><br>profile         : rhel5-xen<br>distro          : rhel5-xen<br>kickstart       : /etc/cobbler/default.ks
<br>kernel options  : {}<br>ks metadata     : {}<br>virt file size  : 5<br>virt ram        : 512<br>virt paravirt   : True<br>repos           : <br><br>That means it has created the distro and profile part. Is that perfect or something is missing.
<br><br>Please help.<br><br>Regards<br>SysAdmin<br>
</blockquote></div><br>
</span></div></blockquote></div><br>