Hi Folks:
I created two domU's using koan with the -nofgx switch:
dom0 % koan --virt --nogfx --system=foo dom0 % koan --virt --nogfx --system=bar
They both configured properly.
I then ran xm list:
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 16 r----- 621.6 foo 2048 2 0.0 bar 2048 2 0.0
I then ran xm create -c foo and got this error:
dom0 # xm create -c foo Error: Unable to open config file: foo Usage: xm create <ConfigFile> [options] [vars]
I then ran xm create -c bar and got the same error:
dom0 # xm create -c bar Error: Unable to open config file: bar Usage: xm create <ConfigFile> [options] [vars]
It is probably the case that some sort of error occurred during the configuration/setup phase. Unfortunately I had to go to a meeting and missed the output.
How can I debug this?
Here is the output of --display for foo:
dom0 # koan --display --system=foo - looking for Cobbler at http://<server>/cobbler_api - reading URL: http://<server>/cblr/svc/op/ks/system/foo install_tree: http://<server>/cblr/links/centos-5.5-xen-x86_64 name : foo distro : centos-5.5-xen-x86_64 profile : centos-5.5-xen-x86_64-domU kickstart : http://<server>/cblr/svc/op/ks/system/foo ks_meta : tree=http://@@http_server@@/cblr/links/centos-5.5-xen-x86_64 install_tree : http://<server>/cblr/links/centos-5.5-xen-x86_64 kernel : /var/www/cobbler/ks_mirror/centos-5.5-x86_64/images/xen/vmlinuz initrd : /var/www/cobbler/ks_mirror/centos-5.5-x86_64/images/xen/initrd.img netboot_enabled : True kernel_options : ks=http://<server>/cblr/svc/op/ks/system/foo ksdevice=link kssendmac lang= text repos : centos-5.5-x86_64-addons centos-5.5-x86_64-contrib centos-5.5-x86_64-elrepo centos-5.5-x86_64-epel centos-5.5-x86_64-extras centos-5.5-x86_64-os centos-5.5-x86_64-updates centos-5.5-x86_64-xen virt_ram : 2048 virt_type : xenpv virt_path : virt_auto_boot : 0
Thanks,
Joe
Try using the full path to the config file:
xm create -c /path/to/file/foo
On Wed, Jan 5, 2011 at 1:09 PM, Joe Linoff jlinoff@tabula.com wrote:
Hi Folks:
I created two domU's using koan with the -nofgx switch:
dom0 % koan --virt --nogfx --system=foo dom0 % koan --virt --nogfx --system=bar
They both configured properly.
I then ran xm list:
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 16 r----- 621.6 foo 2048 2 0.0 bar 2048 2 0.0
I then ran xm create -c foo and got this error:
dom0 # xm create -c foo Error: Unable to open config file: foo Usage: xm create <ConfigFile> [options] [vars]
I then ran xm create -c bar and got the same error:
dom0 # xm create -c bar Error: Unable to open config file: bar Usage: xm create <ConfigFile> [options] [vars]
It is probably the case that some sort of error occurred during the configuration/setup phase. Unfortunately I had to go to a meeting and missed the output.
How can I debug this?
Here is the output of --display for foo:
dom0 # koan --display --system=foo - looking for Cobbler at http://<server>/cobbler_api - reading URL: http://<server>/cblr/svc/op/ks/system/foo install_tree: http://<server>/cblr/links/centos-5.5-xen-x86_64 name : foo distro : centos-5.5-xen-x86_64 profile : centos-5.5-xen-x86_64-domU kickstart : http://<server>/cblr/svc/op/ks/system/foo ks_meta : tree=http://@@http_server@@/cblr/links/centos-5.5-xen-x86_64 install_tree : http://<server>/cblr/links/centos-5.5-xen-x86_64 kernel : /var/www/cobbler/ks_mirror/centos-5.5-x86_64/images/xen/vmlinuz initrd : /var/www/cobbler/ks_mirror/centos-5.5-x86_64/images/xen/initrd.img netboot_enabled : True kernel_options : ks=http://<server>/cblr/svc/op/ks/system/foo ksdevice=link kssendmac lang= text repos : centos-5.5-x86_64-addons centos-5.5-x86_64-contrib centos-5.5-x86_64-elrepo centos-5.5-x86_64-epel centos-5.5-x86_64-extras centos-5.5-x86_64-os centos-5.5-x86_64-updates centos-5.5-x86_64-xen virt_ram : 2048 virt_type : xenpv virt_path : virt_auto_boot : 0
Thanks,
Joe
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
xm create -c /path/to/file/foo
Thank you for the suggestion. What should that path be? There are no configuration files in /etc/xen on dom0.
Cheers,
Joe
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Nicholas Schuetz Sent: Wednesday, January 05, 2011 11:35 AM To: cobbler mailing list Subject: Re: xm create -c <domU> is failing: can't find config file for koan VM
Try using the full path to the config file:
xm create -c /path/to/file/foo
On Wed, Jan 5, 2011 at 1:09 PM, Joe Linoff jlinoff@tabula.com wrote:
Hi Folks:
I created two domU's using koan with the -nofgx switch:
dom0 % koan --virt --nogfx --system=foo dom0 % koan --virt --nogfx --system=bar
They both configured properly.
I then ran xm list:
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 16 r----- 621.6 foo 2048 2 0.0 bar 2048 2 0.0
I then ran xm create -c foo and got this error:
dom0 # xm create -c foo Error: Unable to open config file: foo Usage: xm create <ConfigFile> [options] [vars]
I then ran xm create -c bar and got the same error:
dom0 # xm create -c bar Error: Unable to open config file: bar Usage: xm create <ConfigFile> [options] [vars]
It is probably the case that some sort of error occurred during the configuration/setup phase. Unfortunately I had to go to a meeting and missed the output.
How can I debug this?
Here is the output of --display for foo:
dom0 # koan --display --system=foo - looking for Cobbler at http://<server>/cobbler_api - reading URL: http://<server>/cblr/svc/op/ks/system/foo install_tree: http://<server>/cblr/links/centos-5.5-xen-x86_64 name : foo distro : centos-5.5-xen-x86_64 profile : centos-5.5-xen-x86_64-domU kickstart : http://<server>/cblr/svc/op/ks/system/foo ks_meta : tree=http://@@http_server@@/cblr/links/centos-5.5-xen-x86_64 install_tree : http://<server>/cblr/links/centos-5.5-xen-x86_64 kernel : /var/www/cobbler/ks_mirror/centos-5.5-x86_64/images/xen/vmlinuz initrd : /var/www/cobbler/ks_mirror/centos-5.5-x86_64/images/xen/initrd.img netboot_enabled : True kernel_options : ks=http://<server>/cblr/svc/op/ks/system/foo ksdevice=link kssendmac lang= text repos : centos-5.5-x86_64-addons centos-5.5-x86_64-contrib centos-5.5-x86_64-elrepo centos-5.5-x86_64-epel centos-5.5-x86_64-extras centos-5.5-x86_64-os centos-5.5-x86_64-updates centos-5.5-x86_64-xen virt_ram : 2048 virt_type : xenpv virt_path : virt_auto_boot : 0
Thanks,
Joe
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Did you define a "virt-path" for this system in cobbler? If so, try looking there. Otherwise find is your friend:
find / -name "foo" -print
On Wed, Jan 5, 2011 at 1:37 PM, Joe Linoff jlinoff@tabula.com wrote:
xm create -c /path/to/file/foo
Thank you for the suggestion. What should that path be? There are no configuration files in /etc/xen on dom0.
Cheers,
Joe
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Nicholas Schuetz Sent: Wednesday, January 05, 2011 11:35 AM To: cobbler mailing list Subject: Re: xm create -c <domU> is failing: can't find config file for koan VM
Try using the full path to the config file:
xm create -c /path/to/file/foo
On Wed, Jan 5, 2011 at 1:09 PM, Joe Linoff jlinoff@tabula.com wrote:
Hi Folks:
I created two domU's using koan with the -nofgx switch:
dom0 % koan --virt --nogfx --system=foo dom0 % koan --virt --nogfx --system=bar
They both configured properly.
I then ran xm list:
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 16 r----- 621.6 foo 2048 2 0.0 bar 2048 2 0.0
I then ran xm create -c foo and got this error:
dom0 # xm create -c foo Error: Unable to open config file: foo Usage: xm create <ConfigFile> [options] [vars]
I then ran xm create -c bar and got the same error:
dom0 # xm create -c bar Error: Unable to open config file: bar Usage: xm create <ConfigFile> [options] [vars]
It is probably the case that some sort of error occurred during the configuration/setup phase. Unfortunately I had to go to a meeting and missed the output.
How can I debug this?
Here is the output of --display for foo:
dom0 # koan --display --system=foo - looking for Cobbler at http://<server>/cobbler_api - reading URL: http://<server>/cblr/svc/op/ks/system/foo install_tree: http://<server>/cblr/links/centos-5.5-xen-x86_64 name : foo distro : centos-5.5-xen-x86_64 profile : centos-5.5-xen-x86_64-domU kickstart : http://<server>/cblr/svc/op/ks/system/foo ks_meta : tree=http://@@http_server@@/cblr/links/centos-5.5-xen-x86_64 install_tree : http://<server>/cblr/links/centos-5.5-xen-x86_64 kernel : /var/www/cobbler/ks_mirror/centos-5.5-x86_64/images/xen/vmlinuz initrd : /var/www/cobbler/ks_mirror/centos-5.5-x86_64/images/xen/initrd.img netboot_enabled : True kernel_options : ks=http://<server>/cblr/svc/op/ks/system/foo ksdevice=link kssendmac lang= text repos : centos-5.5-x86_64-addons centos-5.5-x86_64-contrib centos-5.5-x86_64-elrepo centos-5.5-x86_64-epel centos-5.5-x86_64-extras centos-5.5-x86_64-os centos-5.5-x86_64-updates centos-5.5-x86_64-xen virt_ram : 2048 virt_type : xenpv virt_path : virt_auto_boot : 0
Thanks,
Joe
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Thank you for taking the time to offer these suggestions.
Did you define a "virt-path" for this system in cobbler?
No. Is that a good thing to do? If so I will try it in the future.
Otherwise find is your friend:
I tried find but did not find foo anywhere on the dom0 which leads me to believe that there was some sort of problem. I posted another NOOB question based on the fact that I could not find the xen cfg file...
Given that I did not define virt-path and find did not detect the cfg file, how do I debug this?
Regards,
Joe
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Nicholas Schuetz Sent: Wednesday, January 05, 2011 11:50 AM To: cobbler mailing list Subject: Re: xm create -c <domU> is failing: can't find config file for koan VM
Did you define a "virt-path" for this system in cobbler? If so, try looking there. Otherwise find is your friend:
find / -name "foo" -print
On Wed, Jan 5, 2011 at 1:37 PM, Joe Linoff jlinoff@tabula.com wrote:
xm create -c /path/to/file/foo
Thank you for the suggestion. What should that path be? There are no configuration files in /etc/xen on dom0.
Cheers,
Joe
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Nicholas Schuetz Sent: Wednesday, January 05, 2011 11:35 AM To: cobbler mailing list Subject: Re: xm create -c <domU> is failing: can't find config file for koan VM
Try using the full path to the config file:
xm create -c /path/to/file/foo
On Wed, Jan 5, 2011 at 1:09 PM, Joe Linoff jlinoff@tabula.com wrote:
Hi Folks:
I created two domU's using koan with the -nofgx switch:
dom0 % koan --virt --nogfx --system=foo dom0 % koan --virt --nogfx --system=bar
They both configured properly.
I then ran xm list:
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 16 r----- 621.6 foo 2048 2 0.0 bar 2048 2 0.0
I then ran xm create -c foo and got this error:
dom0 # xm create -c foo Error: Unable to open config file: foo Usage: xm create <ConfigFile> [options] [vars]
I then ran xm create -c bar and got the same error:
dom0 # xm create -c bar Error: Unable to open config file: bar Usage: xm create <ConfigFile> [options] [vars]
It is probably the case that some sort of error occurred during the configuration/setup phase. Unfortunately I had to go to a meeting and missed the output.
How can I debug this?
Here is the output of --display for foo:
dom0 # koan --display --system=foo - looking for Cobbler at http://<server>/cobbler_api - reading URL: http://<server>/cblr/svc/op/ks/system/foo install_tree: http://<server>/cblr/links/centos-5.5-xen-x86_64 name : foo distro : centos-5.5-xen-x86_64 profile : centos-5.5-xen-x86_64-domU kickstart : http://<server>/cblr/svc/op/ks/system/foo ks_meta : tree=http://@@http_server@@/cblr/links/centos-5.5-xen-x86_64 install_tree : http://<server>/cblr/links/centos-5.5-xen-x86_64 kernel : /var/www/cobbler/ks_mirror/centos-5.5-x86_64/images/xen/vmlinuz initrd : /var/www/cobbler/ks_mirror/centos-5.5-x86_64/images/xen/initrd.img netboot_enabled : True kernel_options : ks=http://<server>/cblr/svc/op/ks/system/foo ksdevice=link kssendmac lang= text repos : centos-5.5-x86_64-addons centos-5.5-x86_64-contrib centos-5.5-x86_64-elrepo centos-5.5-x86_64-epel centos-5.5-x86_64-extras centos-5.5-x86_64-os centos-5.5-x86_64-updates centos-5.5-x86_64-xen virt_ram : 2048 virt_type : xenpv virt_path : virt_auto_boot : 0
Thanks,
Joe
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
On Wed, 5 Jan 2011 11:09:58 -0800, "Joe Linoff" jlinoff@tabula.com wrote:
Hi Folks: I then ran xm create -c foo and got this error:
Try 'virsh start foo'. That is what we use. I'd also go looking in /etc/xen for foo. That is where xm is going to go looking. What os is your dom0 running?
Hi Scott:
Thanks again.
What os is your dom0 running?
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphic s-3.1-ia32:graphics-3.1-noarch Distributor ID: CentOS Description: CentOS release 5.5 (Final) Release: 5.5 Codename: Final
Xen: 3.4.3 (at least it would be if xend started :-) )
I re-provisioned my dom0. Everything built fine but xend didn't start. There was a permissions error reported /var/log/xen/xend.log. I will have to track that down and fix it before I try playing with domU's again. I saw this once before and was able to fix things by rebooting manually.
[2011-01-05 13:54:00 6148] ERROR (SrvDaemon:349) Exception starting xend ((13, 'Permission denied')) Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 341, in run servers = SrvServer.create() File "/usr/lib64/python2.4/site-packages/xen/xend/server/SrvServer.py", line 251, in create root.putChild('xend', SrvRoot()) File "/usr/lib64/python2.4/site-packages/xen/xend/server/SrvRoot.py", line 40, in __init__ self.get(name) File "/usr/lib64/python2.4/site-packages/xen/web/SrvDir.py", line 84, in get val = val.getobj() File "/usr/lib64/python2.4/site-packages/xen/web/SrvDir.py", line 52, in getobj self.obj = klassobj() File "/usr/lib64/python2.4/site-packages/xen/xend/server/SrvNode.py", line 30, in __init__ self.xn = XendNode.instance() File "/usr/lib64/python2.4/site-packages/xen/xend/XendNode.py", line 948, in instance inst = XendNode() File "/usr/lib64/python2.4/site-packages/xen/xend/XendNode.py", line 91, in __init__ self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"] File "/usr/lib64/python2.4/site-packages/xen/xend/XendNode.py", line 937, in xeninfo_dict return dict(self.xeninfo()) File "/usr/lib64/python2.4/site-packages/xen/xend/XendNode.py", line 881, in xeninfo info['xen_scheduler'] = self.xenschedinfo() File "/usr/lib64/python2.4/site-packages/xen/xend/XendNode.py", line 871, in xenschedinfo sched_id = self.xc.sched_id_get() Error: (13, 'Permission denied')
Do you have any ideas about how to fix the permissions problem?
Cheers,
Joe
-----Original Message----- From: Scott Henson [mailto:shenson@redhat.com] Sent: Wednesday, January 05, 2011 1:19 PM To: Joe Linoff; cobbler mailing list Subject: Re: xm create -c <domU> is failing: can't find config file for koan VM
On Wed, 5 Jan 2011 11:09:58 -0800, "Joe Linoff" jlinoff@tabula.com wrote:
Hi Folks: I then ran xm create -c foo and got this error:
Try 'virsh start foo'. That is what we use. I'd also go looking in /etc/xen for foo. That is where xm is going to go looking. What os is your dom0 running?
-- Scott Henson Red Hat CIS Operator WVU Alum BSAE/BSME
Hi Scott:
I re-provisioned my system and tried 'virsh start foo' and it worked like a charm.
Thank you,
Joe
-----Original Message----- From: Joe Linoff Sent: Wednesday, January 05, 2011 2:00 PM To: Scott Henson; cobbler mailing list Cc: Joe Linoff Subject: RE: xm create -c <domU> is failing: can't find config file for koan VM
Hi Scott:
Thanks again.
What os is your dom0 running?
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphic s-3.1-ia32:graphics-3.1-noarch Distributor ID: CentOS Description: CentOS release 5.5 (Final) Release: 5.5 Codename: Final
Xen: 3.4.3 (at least it would be if xend started :-) )
I re-provisioned my dom0. Everything built fine but xend didn't start. There was a permissions error reported /var/log/xen/xend.log. I will have to track that down and fix it before I try playing with domU's again. I saw this once before and was able to fix things by rebooting manually.
[2011-01-05 13:54:00 6148] ERROR (SrvDaemon:349) Exception starting xend ((13, 'Permission denied')) Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 341, in run servers = SrvServer.create() File "/usr/lib64/python2.4/site-packages/xen/xend/server/SrvServer.py", line 251, in create root.putChild('xend', SrvRoot()) File "/usr/lib64/python2.4/site-packages/xen/xend/server/SrvRoot.py", line 40, in __init__ self.get(name) File "/usr/lib64/python2.4/site-packages/xen/web/SrvDir.py", line 84, in get val = val.getobj() File "/usr/lib64/python2.4/site-packages/xen/web/SrvDir.py", line 52, in getobj self.obj = klassobj() File "/usr/lib64/python2.4/site-packages/xen/xend/server/SrvNode.py", line 30, in __init__ self.xn = XendNode.instance() File "/usr/lib64/python2.4/site-packages/xen/xend/XendNode.py", line 948, in instance inst = XendNode() File "/usr/lib64/python2.4/site-packages/xen/xend/XendNode.py", line 91, in __init__ self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"] File "/usr/lib64/python2.4/site-packages/xen/xend/XendNode.py", line 937, in xeninfo_dict return dict(self.xeninfo()) File "/usr/lib64/python2.4/site-packages/xen/xend/XendNode.py", line 881, in xeninfo info['xen_scheduler'] = self.xenschedinfo() File "/usr/lib64/python2.4/site-packages/xen/xend/XendNode.py", line 871, in xenschedinfo sched_id = self.xc.sched_id_get() Error: (13, 'Permission denied')
Do you have any ideas about how to fix the permissions problem?
Cheers,
Joe
-----Original Message----- From: Scott Henson [mailto:shenson@redhat.com] Sent: Wednesday, January 05, 2011 1:19 PM To: Joe Linoff; cobbler mailing list Subject: Re: xm create -c <domU> is failing: can't find config file for koan VM
On Wed, 5 Jan 2011 11:09:58 -0800, "Joe Linoff" jlinoff@tabula.com wrote:
Hi Folks: I then ran xm create -c foo and got this error:
Try 'virsh start foo'. That is what we use. I'd also go looking in /etc/xen for foo. That is where xm is going to go looking. What os is your dom0 running?
-- Scott Henson Red Hat CIS Operator WVU Alum BSAE/BSME
cobbler@lists.fedorahosted.org