Hi all. This has been mentioned once before on this list, with no resolution that I could find. I''m trying to make a domU with FC4 running under a FC5 dom0. Following the instructions located at http://www.fedoraproject.org/wiki/FedoraXenQuickstart , xen produces these errors: [root@localhost xen]# xm create -c cpanel Using config file "cpanel". Error: Error creating domain: (22, ''Invalid argument'') [root@localhost xen]# And from /var/log/xend.log: [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) XendDomainInfo.create([''vm'', [''name'', ''cpanel''], [''memory'', ''196''], [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']]]]) [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) parseConfig: config is [''vm'', [''name'', ''cpanel''], [''memory'', ''196''], [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']]]] [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'': None, ''on_reboot'': None, ''image'': [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']], ''on_poweroff'': None, ''cpus'': None, ''name'': ''cpanel'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 196, ''device'': [(''vbd'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']])], ''bootloader'': None, ''cpu'': None, ''maxmem'': None} [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1142) XendDomainInfo.construct: None 0 [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1174) XendDomainInfo.initDomain: 13 1.0 [2006-05-17 23:41:50 xend] DEBUG (balloon:84) Balloon: free 618; need 197; done. [2006-05-17 23:41:50 xend] INFO (image:135) buildDomain os=linux dom=13 vcpus=1 [2006-05-17 23:41:50 xend] DEBUG (image:173) dom = 13 [2006-05-17 23:41:50 xend] DEBUG (image:174) image = /boot/vmlinuz- 2.6.11-1.1369_FC4xenU [2006-05-17 23:41:50 xend] DEBUG (image:175) store_evtchn = 1 [2006-05-17 23:41:50 xend] DEBUG (image:176) console_evtchn = 2 [2006-05-17 23:41:50 xend] DEBUG (image:177) cmdline root=/dev/sda1 ro selinux=0 3 [2006-05-17 23:41:50 xend] DEBUG (image:178) ramdisk [2006-05-17 23:41:50 xend] DEBUG (image:179) vcpus = 1 [2006-05-17 23:41:50 xend] DEBUG (image:180) features [2006-05-17 23:41:50 xend.XendDomainInfo] ERROR (XendDomainInfo:189) Domain construction failed Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 182, in create vm.initDomain() File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1209, in initDomain channel_details = self.image.createImage() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 118, in createImage return self.createDomain() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 137, in createDomain result = self.buildDomain() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 188, in buildDomain features = self.features) error: (22, ''Invalid argument'') [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1290) XendDomainInfo.destroy: domid=13 [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1298) XendDomainInfo.destroyDomain(13) [2006-05-17 23:41:50 xend] ERROR (SrvBase:87) Request create failed. Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/web/SrvBase.py", line 85, in perform return op_method(op, req) File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDomainDir.py", line 82, in op_create raise XendError("Error creating domain: " + str(ex)) XendError: Error creating domain: (22, ''Invalid argument'') This is my conf file /etc/xen/cpanel : [root@localhost xen]# cat /etc/xen/cpanel kernel ="/boot/vmlinuz-2.6.11-1.1369_FC4xenU" memory = 196 name = "cpanel" disk = [''file:/root/cpanel.img,sda1,w''] root = "/dev/sda1" extra = "ro selinux=0 3" [root@localhost xen]# I have tried this with both the kernel mentioned above, as well as the latest 2.6.13 kernel for FC4xenU. Any suggestions would be appreciated. -Andrew _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Well look at it this day, this is either a crappy day for you, or your lucky day, depending on how good my documentation was. I''m still very new with Xen, but I have been messing around with several different setups, and the most recent one is exactly what you just said you needed, a FC4 domU on a FC5 dom0. And with luck, that''s the one that I used to document the entire process so I could easily refer back to it later. http://mitopia.net/index.php/Xen_3.0.2_Setup It''s not much of a site, literally my own notes that I made for myself, but hopefully you''ll be able to make sense out of it too. Also I noted in here how I got NAT to work through Xen. I was going to post this in reply to a few NAT related questions once I''m sure I have all the bugs worked out of that, I''m still messing with the firewall rules. The entire Xen setup is working perfectly though. If anyone else who knows what they''re doing with Xen could look through it and maybe give a few pointers or corrections that would be cool too. Mito _____ From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Andrew W. Sent: Thursday, May 18, 2006 1:46 AM To: xen-users@lists.xensource.com Subject: [Xen-users] FC4 domU on FC5 Hi all. This has been mentioned once before on this list, with no resolution that I could find. I''m trying to make a domU with FC4 running under a FC5 dom0. Following the instructions located at http://www.fedoraproject.org/wiki/FedoraXenQuickstart , xen produces these errors: [root@localhost xen]# xm create -c cpanel Using config file "cpanel". Error: Error creating domain: (22, ''Invalid argument'') [root@localhost xen]# And from /var/log/xend.log: [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) XendDomainInfo.create([''vm'', [''name'', ''cpanel''], [''memory'', ''196''], [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.11-1.1369_FC4xenU'' ], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']]]]) [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) parseConfig: config is [''vm'', [''name'', ''cpanel''], [''memory'', ''196''], [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']]]] [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'': None, ''on_reboot'': None, ''image'': [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']], ''on_poweroff'': None, ''cpus'': None, ''name'': ''cpanel'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 196, ''device'': [(''vbd'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']])], ''bootloader'': None, ''cpu'': None, ''maxmem'': None} [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1142) XendDomainInfo.construct: None 0 [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1174) XendDomainInfo.initDomain: 13 1.0 [2006-05-17 23:41:50 xend] DEBUG (balloon:84) Balloon: free 618; need 197; done. [2006-05-17 23:41:50 xend] INFO (image:135) buildDomain os=linux dom=13 vcpus=1 [2006-05-17 23:41:50 xend] DEBUG (image:173) dom = 13 [2006-05-17 23:41:50 xend] DEBUG (image:174) image = /boot/vmlinuz- 2.6.11-1.1369_FC4xenU [2006-05-17 23:41:50 xend] DEBUG (image:175) store_evtchn = 1 [2006-05-17 23:41:50 xend] DEBUG (image:176) console_evtchn = 2 [2006-05-17 23:41:50 xend] DEBUG (image:177) cmdline root=/dev/sda1 ro selinux=0 3 [2006-05-17 23:41:50 xend] DEBUG (image:178) ramdisk [2006-05-17 23:41:50 xend] DEBUG (image:179) vcpus = 1 [2006-05-17 23:41:50 xend] DEBUG (image:180) features [2006-05-17 23:41:50 xend.XendDomainInfo] ERROR (XendDomainInfo:189) Domain construction failed Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 182, in create vm.initDomain() File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1209, in initDomain channel_details = self.image.createImage() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 118, in createImage return self.createDomain() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 137, in createDomain result = self.buildDomain() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 188, in buildDomain features = self.features) error: (22, ''Invalid argument'') [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1290) XendDomainInfo.destroy: domid=13 [2006-05-17 23:41:50 xend.XendDomainInfo ] DEBUG (XendDomainInfo:1298) XendDomainInfo.destroyDomain(13) [2006-05-17 23:41:50 xend] ERROR (SrvBase:87) Request create failed. Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/web/SrvBase.py", line 85, in perform return op_method(op, req) File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDomainDir.py", line 82, in op_create raise XendError("Error creating domain: " + str(ex)) XendError: Error creating domain: (22, ''Invalid argument'') This is my conf file /etc/xen/cpanel : [root@localhost xen]# cat /etc/xen/cpanel kernel ="/boot/vmlinuz-2.6.11-1.1369_FC4xenU" memory = 196 name = "cpanel" disk = [''file:/root/cpanel.img,sda1,w''] root = "/dev/sda1" extra = "ro selinux=0 3" [root@localhost xen]# I have tried this with both the kernel mentioned above, as well as the latest 2.6.13 kernel for FC4xenU. Any suggestions would be appreciated. -Andrew _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks for the reply. However, I''m trying to adhere as closely as possible to the original Fedora HOWTO. One thing worth mentioning that I did leave out of my original post: I''m using the built-in Xen package that comes with FC5, which can be activated using ''yum install kernel-xen0''. Hope this helps. On 5/18/06, Mito <mito@chartermi.net> wrote:> > Well look at it this day, this is either a crappy day for you, or your > lucky day, depending on how good my documentation was. I''m still very new > with Xen, but I have been messing around with several different setups, > and the most recent one is exactly what you just said you needed, a FC4 > domU on a FC5 dom0. And with luck, that''s the one that I used to document > the entire process so I could easily refer back to it later. > > > > http://mitopia.net/index.php/Xen_3.0.2_Setup > > > > It''s not much of a site, literally my own notes that I made for myself, > but hopefully you''ll be able to make sense out of it too. > > > > Also I noted in here how I got NAT to work through Xen. I was going to > post this in reply to a few NAT related questions once I''m sure I have all > the bugs worked out of that, I''m still messing with the firewall rules. The > entire Xen setup is working perfectly though. > > > > If anyone else who knows what they''re doing with Xen could look through it > and maybe give a few pointers or corrections that would be cool too. > > > > Mito > > > ------------------------------ > > *From:* xen-users-bounces@lists.xensource.com [mailto: > xen-users-bounces@lists.xensource.com] *On Behalf Of *Andrew W. > *Sent:* Thursday, May 18, 2006 1:46 AM > *To:* xen-users@lists.xensource.com > *Subject:* [Xen-users] FC4 domU on FC5 > > > > Hi all. This has been mentioned once before on this list, with no > resolution that I could find. I''m trying to make a domU with FC4 running > under a FC5 dom0. Following the instructions located at > http://www.fedoraproject.org/wiki/FedoraXenQuickstart , xen produces these > errors: > > > > [root@localhost xen]# xm create -c cpanel > Using config file "cpanel". > Error: Error creating domain: (22, ''Invalid argument'') > [root@localhost xen]# > > > And from /var/log/xend.log: > > > > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) > XendDomainInfo.create([''vm'', [''name'', ''cpanel''], [''memory'', ''196''], > [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- > 2.6.11-1.1369_FC4xenU'' ], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 > 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', > ''sda1''], [''mode'', ''w'']]]]) > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) > parseConfig: config is [''vm'', [''name'', ''cpanel''], [''memory'', ''196''], > [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- > 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 > 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', > ''sda1''], [''mode'', ''w'']]]] > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) > parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'': None, > ''on_reboot'': None, ''image'': [''linux'', [''kernel'', ''/boot/vmlinuz- > 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 > 3'']], ''on_poweroff'': None, ''cpus'': None, ''name'': ''cpanel'', ''backend'': [], > ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 196, ''device'': > [(''vbd'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], > [''mode'', ''w'']])], ''bootloader'': None, ''cpu'': None, ''maxmem'': None} > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1142) > XendDomainInfo.construct: None 0 > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1174) > XendDomainInfo.initDomain: 13 1.0 > [2006-05-17 23:41:50 xend] DEBUG (balloon:84) Balloon: free 618; need 197; > done. > [2006-05-17 23:41:50 xend] INFO (image:135) buildDomain os=linux dom=13 > vcpus=1 > [2006-05-17 23:41:50 xend] DEBUG (image:173) dom = 13 > [2006-05-17 23:41:50 xend] DEBUG (image:174) image > /boot/vmlinuz- 2.6.11-1.1369_FC4xenU > [2006-05-17 23:41:50 xend] DEBUG (image:175) store_evtchn = 1 > [2006-05-17 23:41:50 xend] DEBUG (image:176) console_evtchn = 2 > [2006-05-17 23:41:50 xend] DEBUG (image:177) cmdline > root=/dev/sda1 ro selinux=0 3 > [2006-05-17 23:41:50 xend] DEBUG (image:178) ramdisk > [2006-05-17 23:41:50 xend] DEBUG (image:179) vcpus = 1 > [2006-05-17 23:41:50 xend] DEBUG (image:180) features > [2006-05-17 23:41:50 xend.XendDomainInfo] ERROR (XendDomainInfo:189) > Domain construction failed > Traceback (most recent call last): > File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line > 182, in create > vm.initDomain() > File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line > 1209, in initDomain > channel_details = self.image.createImage() > File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 118, in > createImage > return self.createDomain() > File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 137, in > createDomain > result = self.buildDomain() > File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 188, in > buildDomain > features = self.features) > error: (22, ''Invalid argument'') > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1290) > XendDomainInfo.destroy: domid=13 > [2006-05-17 23:41:50 xend.XendDomainInfo ] DEBUG (XendDomainInfo:1298) > XendDomainInfo.destroyDomain(13) > [2006-05-17 23:41:50 xend] ERROR (SrvBase:87) Request create failed. > Traceback (most recent call last): > File "/usr/lib/python2.4/site-packages/xen/web/SrvBase.py", line 85, in > perform > return op_method(op, req) > File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDomainDir.py", > line 82, in op_create > raise XendError("Error creating domain: " + str(ex)) > XendError: Error creating domain: (22, ''Invalid argument'') > > > > This is my conf file /etc/xen/cpanel : > > > > [root@localhost xen]# cat /etc/xen/cpanel > kernel ="/boot/vmlinuz-2.6.11-1.1369_FC4xenU" > memory = 196 > name = "cpanel" > disk = [''file:/root/cpanel.img,sda1,w''] > root = "/dev/sda1" > extra = "ro selinux=0 3" > > [root@localhost xen]# > > I have tried this with both the kernel mentioned above, as well as the > latest 2.6.13 kernel for FC4xenU. Any suggestions would be appreciated. > > -Andrew > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
The problem with doing it that way is that the FC5 HowTo (and the included script) is only for FC5, it doesn''t apply to, and doesn''t work, with FC4. This is because the FC4 boot-image isn''t compatible with Xen, where the FC5 boot-image is. I tried and tried and tried for 3 weeks to get it to work the "right" way, and then finally did it the way my cousin suggested I do it in the first place (the way that is outlined in my walkthrough). If you want to do it via a walkthrough, you''ll have to do half of it to the FC5 walkthrough (the dom0 half) and half with the FC4 walkthrough (the domU part). BUT, that means, that you can''t use that script to make your domU image for you. as that script was written to work with FC5. _____ From: Andrew W. [mailto:andrewinet@gmail.com] Sent: Thursday, May 18, 2006 2:50 PM To: Mito; xen-users@lists.xensource.com Subject: Re: [Xen-users] FC4 domU on FC5 Thanks for the reply. However, I''m trying to adhere as closely as possible to the original Fedora HOWTO. One thing worth mentioning that I did leave out of my original post: I''m using the built-in Xen package that comes with FC5, which can be activated using ''yum install kernel-xen0''. Hope this helps. On 5/18/06, Mito <mito@chartermi.net> wrote: Well look at it this day, this is either a crappy day for you, or your lucky day, depending on how good my documentation was. I''m still very new with Xen, but I have been messing around with several different setups, and the most recent one is exactly what you just said you needed, a FC4 domU on a FC5 dom0. And with luck, that''s the one that I used to document the entire process so I could easily refer back to it later. http://mitopia.net/index.php/Xen_3.0.2_Setup It''s not much of a site, literally my own notes that I made for myself, but hopefully you''ll be able to make sense out of it too. Also I noted in here how I got NAT to work through Xen. I was going to post this in reply to a few NAT related questions once I''m sure I have all the bugs worked out of that, I''m still messing with the firewall rules. The entire Xen setup is working perfectly though. If anyone else who knows what they''re doing with Xen could look through it and maybe give a few pointers or corrections that would be cool too. Mito _____ From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Andrew W. Sent: Thursday, May 18, 2006 1:46 AM To: xen-users@lists.xensource.com Subject: [Xen-users] FC4 domU on FC5 Hi all. This has been mentioned once before on this list, with no resolution that I could find. I''m trying to make a domU with FC4 running under a FC5 dom0. Following the instructions located at http://www.fedoraproject.org/wiki/FedoraXenQuickstart , xen produces these errors: [root@localhost xen]# xm create -c cpanel Using config file "cpanel". Error: Error creating domain: (22, ''Invalid argument'') [root@localhost xen]# And from /var/log/xend.log: [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) XendDomainInfo.create([''vm'', [''name'', ''cpanel''], [''memory'', ''196''], [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU'' ], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']]]]) [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) parseConfig: config is [''vm'', [''name'', ''cpanel''], [''memory'', ''196''], [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']]]] [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'': None, ''on_reboot'': None, ''image'': [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']], ''on_poweroff'': None, ''cpus'': None, ''name'': ''cpanel'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 196, ''device'': [(''vbd'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']])], ''bootloader'': None, ''cpu'': None, ''maxmem'': None} [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1142) XendDomainInfo.construct: None 0 [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1174) XendDomainInfo.initDomain: 13 1.0 [2006-05-17 23:41:50 xend] DEBUG (balloon:84) Balloon: free 618; need 197; done. [2006-05-17 23:41:50 xend] INFO (image:135) buildDomain os=linux dom=13 vcpus=1 [2006-05-17 23:41:50 xend] DEBUG (image:173) dom = 13 [2006-05-17 23:41:50 xend] DEBUG (image:174) image = /boot/vmlinuz- 2.6.11-1.1369_FC4xenU [2006-05-17 23:41:50 xend] DEBUG (image:175) store_evtchn = 1 [2006-05-17 23:41:50 xend] DEBUG (image:176) console_evtchn = 2 [2006-05-17 23:41:50 xend] DEBUG (image:177) cmdline root=/dev/sda1 ro selinux=0 3 [2006-05-17 23:41:50 xend] DEBUG (image:178) ramdisk [2006-05-17 23:41:50 xend] DEBUG (image:179) vcpus = 1 [2006-05-17 23:41:50 xend] DEBUG (image:180) features [2006-05-17 23:41:50 xend.XendDomainInfo] ERROR (XendDomainInfo:189) Domain construction failed Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 182, in create vm.initDomain() File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1209, in initDomain channel_details = self.image.createImage() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 118, in createImage return self.createDomain() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 137, in createDomain result = self.buildDomain() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 188, in buildDomain features = self.features) error: (22, ''Invalid argument'') [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1290) XendDomainInfo.destroy: domid=13 [2006-05-17 23:41:50 xend.XendDomainInfo ] DEBUG (XendDomainInfo:1298) XendDomainInfo.destroyDomain(13) [2006-05-17 23:41:50 xend] ERROR (SrvBase:87) Request create failed. Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/web/SrvBase.py", line 85, in perform return op_method(op, req) File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDomainDir.py", line 82, in op_create raise XendError("Error creating domain: " + str(ex)) XendError: Error creating domain: (22, ''Invalid argument'') This is my conf file /etc/xen/cpanel : [root@localhost xen]# cat /etc/xen/cpanel kernel ="/boot/vmlinuz-2.6.11-1.1369_FC4xenU" memory = 196 name = "cpanel" disk = [''file:/root/cpanel.img,sda1,w''] root = "/dev/sda1" extra = "ro selinux=0 3" [root@localhost xen]# I have tried this with both the kernel mentioned above, as well as the latest 2.6.13 kernel for FC4xenU. Any suggestions would be appreciated. -Andrew _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
No, if you use the rpm''s then you don''t need to compile your own. I just needed to compile my own because I was trying to get NAT networking to work, and it wasn''t working with the RPM''d install, so I compiled from source. If you install from RPM then you can skip down to the "Final dom0 Check-ins" heading and continue from there (I think I''ll make a note of that in the RPM install notes for future, thanks!). Mito -----Original Message----- From: lorena@xtech.com.ar [mailto:lorena@xtech.com.ar] Sent: Thursday, May 18, 2006 12:53 PM To: Mito Subject: RE: [Xen-users] FC4 domU on FC5 Hi mito!! I saw your wiki and read the xen-3.0.2 set up that you make it, and is very good :D but i''ve a question when i install the xen, kernel-xen0 and kernel-xenU of a rpm it''s necessary compile the domU kernel? or you did because you installed from source? I will try to create the guestOS with the quemu, it looks interesting ;) Thx. Lore. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I realize that. I was able to make it work by following the FC4 HOWTO. My tragic flaw was using mismatched dom0 and domU kernels - they both need to be the same version. Many thanks to Etienne Duguay for pointing this out to me off-list. My only other problem currently is that no ethernet interface is being detected by my domU. I can''t find any documentation on this either. Ideas? -A On 5/18/06, Mito <mito@chartermi.net> wrote:> > The problem with doing it that way is that the FC5 HowTo (and the > included script) is only for FC5, it doesn''t apply to, and doesn''t work, > with FC4. This is because the FC4 boot-image isn''t compatible with Xen, > where the FC5 boot-image is. I tried and tried and tried for 3 weeks to > get it to work the "right" way, and then finally did it the way my cousin > suggested I do it in the first place (the way that is outlined in my > walkthrough). If you want to do it via a walkthrough, you''ll have to do > half of it to the FC5 walkthrough (the dom0 half) and half with the FC4 > walkthrough (the domU part). BUT, that means, that you can''t use that > script to make your domU image for you… as that script was written to work > with FC5. > > > ------------------------------ > > *From:* Andrew W. [mailto:andrewinet@gmail.com] > *Sent:* Thursday, May 18, 2006 2:50 PM > *To:* Mito; xen-users@lists.xensource.com > *Subject:* Re: [Xen-users] FC4 domU on FC5 > > > > Thanks for the reply. However, I''m trying to adhere as closely as > possible to the original Fedora HOWTO. One thing worth mentioning that I > did leave out of my original post: I''m using the built-in Xen package that > comes with FC5, which can be activated using ''yum install kernel-xen0''. > Hope this helps. > > > > > > On 5/18/06, *Mito* <mito@chartermi.net> wrote: > > Well look at it this day, this is either a crappy day for you, or your > lucky day, depending on how good my documentation was. I''m still very new > with Xen, but I have been messing around with several different setups, and > the most recent one is exactly what you just said you needed, a FC4 domU on > a FC5 dom0. And with luck, that''s the one that I used to document the > entire process so I could easily refer back to it later. > > > > http://mitopia.net/index.php/Xen_3.0.2_Setup > > > > It''s not much of a site, literally my own notes that I made for myself, > but hopefully you''ll be able to make sense out of it too. > > > > Also I noted in here how I got NAT to work through Xen. I was going to > post this in reply to a few NAT related questions once I''m sure I have all > the bugs worked out of that, I''m still messing with the firewall rules. > The entire Xen setup is working perfectly though. > > > > If anyone else who knows what they''re doing with Xen could look through it > and maybe give a few pointers or corrections that would be cool too. > > > > Mito > > > ------------------------------ > > *From:* xen-users-bounces@lists.xensource.com [mailto: > xen-users-bounces@lists.xensource.com] *On Behalf Of *Andrew W. > *Sent:* Thursday, May 18, 2006 1:46 AM > *To:* xen-users@lists.xensource.com > *Subject:* [Xen-users] FC4 domU on FC5 > > > > Hi all. This has been mentioned once before on this list, with no > resolution that I could find. I''m trying to make a domU with FC4 running > under a FC5 dom0. Following the instructions located at > http://www.fedoraproject.org/wiki/FedoraXenQuickstart , xen produces these > errors: > > > > [root@localhost xen]# xm create -c cpanel > Using config file "cpanel". > Error: Error creating domain: (22, ''Invalid argument'') > [root@localhost xen]# > > > And from /var/log/xend.log: > > > > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) > XendDomainInfo.create([''vm'', [''name'', ''cpanel''], [''memory'', ''196''], > [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- > 2.6.11-1.1369_FC4xenU'' ], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 > 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', > ''sda1''], [''mode'', ''w'']]]]) > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) > parseConfig: config is [''vm'', [''name'', ''cpanel''], [''memory'', ''196''], > [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- > 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 > 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', > ''sda1''], [''mode'', ''w'']]]] > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) > parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'': None, > ''on_reboot'': None, ''image'': [''linux'', [''kernel'', ''/boot/vmlinuz- > 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 > 3'']], ''on_poweroff'': None, ''cpus'': None, ''name'': ''cpanel'', ''backend'': [], > ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 196, ''device'': > [(''vbd'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], > [''mode'', ''w'']])], ''bootloader'': None, ''cpu'': None, ''maxmem'': None} > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1142) > XendDomainInfo.construct: None 0 > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1174) > XendDomainInfo.initDomain: 13 1.0 > [2006-05-17 23:41:50 xend] DEBUG (balloon:84) Balloon: free 618; need 197; > done. > [2006-05-17 23:41:50 xend] INFO (image:135) buildDomain os=linux dom=13 > vcpus=1 > [2006-05-17 23:41:50 xend] DEBUG (image:173) dom = 13 > [2006-05-17 23:41:50 xend] DEBUG (image:174) image > /boot/vmlinuz- 2.6.11-1.1369_FC4xenU > [2006-05-17 23:41:50 xend] DEBUG (image:175) store_evtchn = 1 > [2006-05-17 23:41:50 xend] DEBUG (image:176) console_evtchn = 2 > [2006-05-17 23:41:50 xend] DEBUG (image:177) cmdline > root=/dev/sda1 ro selinux=0 3 > [2006-05-17 23:41:50 xend] DEBUG (image:178) ramdisk > [2006-05-17 23:41:50 xend] DEBUG (image:179) vcpus = 1 > [2006-05-17 23:41:50 xend] DEBUG (image:180) features > [2006-05-17 23:41:50 xend.XendDomainInfo] ERROR (XendDomainInfo:189) > Domain construction failed > Traceback (most recent call last): > File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line > 182, in create > vm.initDomain() > File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line > 1209, in initDomain > channel_details = self.image.createImage() > File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 118, in > createImage > return self.createDomain() > File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 137, in > createDomain > result = self.buildDomain() > File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 188, in > buildDomain > features = self.features) > error: (22, ''Invalid argument'') > [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1290) > XendDomainInfo.destroy: domid=13 > [2006-05-17 23:41:50 xend.XendDomainInfo ] DEBUG (XendDomainInfo:1298) > XendDomainInfo.destroyDomain(13) > [2006-05-17 23:41:50 xend] ERROR (SrvBase:87) Request create failed. > Traceback (most recent call last): > File "/usr/lib/python2.4/site-packages/xen/web/SrvBase.py", line 85, in > perform > return op_method(op, req) > File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDomainDir.py", > line 82, in op_create > raise XendError("Error creating domain: " + str(ex)) > XendError: Error creating domain: (22, ''Invalid argument'') > > > > This is my conf file /etc/xen/cpanel : > > > > [root@localhost xen]# cat /etc/xen/cpanel > kernel ="/boot/vmlinuz-2.6.11-1.1369_FC4xenU" > memory = 196 > name = "cpanel" > disk = [''file:/root/cpanel.img,sda1,w''] > root = "/dev/sda1" > extra = "ro selinux=0 3" > > [root@localhost xen]# > > I have tried this with both the kernel mentioned above, as well as the > latest 2.6.13 kernel for FC4xenU. Any suggestions would be appreciated. > > -Andrew > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Yeah, that''s because the Fedora rpm kernels don''t include the network drivers, you have to enable the module, I found that out on this list, and it''s also noted in my walkthrough. http://mitopia.net/index.php/Xen_3.0.2_Setup#Optimize_new_image_to_work_with _Xen You have to add this to the /etc/modprobe.conf file in your domU: alias eth0 xennet Mito _____ From: Andrew W. [mailto:andrewinet@gmail.com] Sent: Friday, May 19, 2006 12:04 AM To: Mito; xen-users@lists.xensource.com Subject: Re: [Xen-users] FC4 domU on FC5 I realize that. I was able to make it work by following the FC4 HOWTO. My tragic flaw was using mismatched dom0 and domU kernels - they both need to be the same version. Many thanks to Etienne Duguay for pointing this out to me off-list. My only other problem currently is that no ethernet interface is being detected by my domU. I can''t find any documentation on this either. Ideas? -A On 5/18/06, Mito <mito@chartermi.net> wrote: The problem with doing it that way is that the FC5 HowTo (and the included script) is only for FC5, it doesn''t apply to, and doesn''t work, with FC4. This is because the FC4 boot-image isn''t compatible with Xen, where the FC5 boot-image is. I tried and tried and tried for 3 weeks to get it to work the "right" way, and then finally did it the way my cousin suggested I do it in the first place (the way that is outlined in my walkthrough). If you want to do it via a walkthrough, you''ll have to do half of it to the FC5 walkthrough (the dom0 half) and half with the FC4 walkthrough (the domU part). BUT, that means, that you can''t use that script to make your domU image for you. as that script was written to work with FC5. _____ From: Andrew W. [mailto: andrewinet@gmail.com] Sent: Thursday, May 18, 2006 2:50 PM To: Mito; xen-users@lists.xensource.com Subject: Re: [Xen-users] FC4 domU on FC5 Thanks for the reply. However, I''m trying to adhere as closely as possible to the original Fedora HOWTO. One thing worth mentioning that I did leave out of my original post: I''m using the built-in Xen package that comes with FC5, which can be activated using ''yum install kernel-xen0''. Hope this helps. On 5/18/06, Mito < mito@chartermi.net <mailto:mito@chartermi.net> > wrote: Well look at it this day, this is either a crappy day for you, or your lucky day, depending on how good my documentation was. I''m still very new with Xen, but I have been messing around with several different setups, and the most recent one is exactly what you just said you needed, a FC4 domU on a FC5 dom0. And with luck, that''s the one that I used to document the entire process so I could easily refer back to it later. http://mitopia.net/index.php/Xen_3.0.2_Setup It''s not much of a site, literally my own notes that I made for myself, but hopefully you''ll be able to make sense out of it too. Also I noted in here how I got NAT to work through Xen. I was going to post this in reply to a few NAT related questions once I''m sure I have all the bugs worked out of that, I''m still messing with the firewall rules. The entire Xen setup is working perfectly though. If anyone else who knows what they''re doing with Xen could look through it and maybe give a few pointers or corrections that would be cool too. Mito _____ From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Andrew W. Sent: Thursday, May 18, 2006 1:46 AM To: xen-users@lists.xensource.com Subject: [Xen-users] FC4 domU on FC5 Hi all. This has been mentioned once before on this list, with no resolution that I could find. I''m trying to make a domU with FC4 running under a FC5 dom0. Following the instructions located at http://www.fedoraproject.org/wiki/FedoraXenQuickstart , xen produces these errors: [root@localhost xen]# xm create -c cpanel Using config file "cpanel". Error: Error creating domain: (22, ''Invalid argument'') [root@localhost xen]# And from /var/log/xend.log: [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) XendDomainInfo.create([''vm'', [''name'', ''cpanel''], [''memory'', ''196''], [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU'' ], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']]]]) [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) parseConfig: config is [''vm'', [''name'', ''cpanel''], [''memory'', ''196''], [''vcpus'', ''1''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']]], [''device'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']]]] [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'': None, ''on_reboot'': None, ''image'': [''linux'', [''kernel'', ''/boot/vmlinuz- 2.6.11-1.1369_FC4xenU''], [''root'', ''/dev/sda1''], [''args'', ''ro selinux=0 3'']], ''on_poweroff'': None, ''cpus'': None, ''name'': ''cpanel'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 196, ''device'': [(''vbd'', [''vbd'', [''uname'', ''file:/root/cpanel.img''], [''dev'', ''sda1''], [''mode'', ''w'']])], ''bootloader'': None, ''cpu'': None, ''maxmem'': None} [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1142) XendDomainInfo.construct: None 0 [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1174) XendDomainInfo.initDomain: 13 1.0 [2006-05-17 23:41:50 xend] DEBUG (balloon:84) Balloon: free 618; need 197; done. [2006-05-17 23:41:50 xend] INFO (image:135) buildDomain os=linux dom=13 vcpus=1 [2006-05-17 23:41:50 xend] DEBUG (image:173) dom = 13 [2006-05-17 23:41:50 xend] DEBUG (image:174) image = /boot/vmlinuz- 2.6.11-1.1369_FC4xenU [2006-05-17 23:41:50 xend] DEBUG (image:175) store_evtchn = 1 [2006-05-17 23:41:50 xend] DEBUG (image:176) console_evtchn = 2 [2006-05-17 23:41:50 xend] DEBUG (image:177) cmdline root=/dev/sda1 ro selinux=0 3 [2006-05-17 23:41:50 xend] DEBUG (image:178) ramdisk [2006-05-17 23:41:50 xend] DEBUG (image:179) vcpus = 1 [2006-05-17 23:41:50 xend] DEBUG (image:180) features [2006-05-17 23:41:50 xend.XendDomainInfo] ERROR (XendDomainInfo:189) Domain construction failed Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 182, in create vm.initDomain() File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1209, in initDomain channel_details = self.image.createImage() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 118, in createImage return self.createDomain() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 137, in createDomain result = self.buildDomain() File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 188, in buildDomain features = self.features) error: (22, ''Invalid argument'') [2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1290) XendDomainInfo.destroy: domid=13 [2006-05-17 23:41:50 xend.XendDomainInfo ] DEBUG (XendDomainInfo:1298) XendDomainInfo.destroyDomain(13) [2006-05-17 23:41:50 xend] ERROR (SrvBase:87) Request create failed. Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/web/SrvBase.py", line 85, in perform return op_method(op, req) File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDomainDir.py", line 82, in op_create raise XendError("Error creating domain: " + str(ex)) XendError: Error creating domain: (22, ''Invalid argument'') This is my conf file /etc/xen/cpanel : [root@localhost xen]# cat /etc/xen/cpanel kernel ="/boot/vmlinuz-2.6.11-1.1369_FC4xenU" memory = 196 name = "cpanel" disk = [''file:/root/cpanel.img,sda1,w''] root = "/dev/sda1" extra = "ro selinux=0 3" [root@localhost xen]# I have tried this with both the kernel mentioned above, as well as the latest 2.6.13 kernel for FC4xenU. Any suggestions would be appreciated. -Andrew _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users