Marco Milanesi
2006-Jul-31 15:05 UTC
[Xen-users] Trying to run centos4.3 on xen under debian unstable
hi, I followed http://mark.foster.cc/wiki/index.php/Centos-4_on_Xen and populated the image with centos'' packages downloaded from the net. my config file in /etc/xen is centos, so /etc/xen/centos contains: kernel = "/boot/vmlinuz-2.6.11-xenU" memory = 96 name = "centos" dhcp = "dhcp" disk = [ ''file:/home/kpanic/xen-images/centos.img,sdb1,w'',''file:/home/kpanic/xen-images/centos-swap.img,sdb1,w'' ] # or if you use LVM # disk = [ ''phy:/dev/vg01/vol01,sdb1,w'',''phy:/dev/vg01/vol02,sdb2,w'' ] root = "/dev/sdb1 ro" but when I try to: # xm create -c centos I obtain: Using config file "/etc/xen/centos". Error: (22, ''Invalid argument'') here is the paste of /var/log/xend.log: [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:178) XendDomainInfo.create([''vm'', [''name'', ''centos''], [''memory'', 96], [''vcpus'', 1], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', '':1.2.3.4::::eth0:dhcp''], [''root'', ''/dev/sdb1 ro'']]], [''device'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos.img''], [''dev'', ''sdb1''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], [''mode'', ''w'']]]]) [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:284) parseConfig: config is [''vm'', [''name'', ''centos''], [''memory'', 96], [''vcpus'', 1], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', '':1.2.3.4::::eth0:dhcp''], [''root'', ''/dev/sdb1 ro'']]], [''device'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos.img''], [''dev'', ''sdb1''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], [''mode'', ''w'']]]] [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:380) parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'': None, ''on_reboot'': None, ''image'': [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', '':1.2.3.4::::eth0:dhcp''], [''root'', ''/dev/sdb1 ro'']], ''on_poweroff'': None, ''cpus'': None, ''name'': ''centos'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 96, ''device'': [(''vbd'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos.img''], [''dev'', ''sdb1''], [''mode'', ''w'']]), (''vbd'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], [''mode'', ''w'']])], ''bootloader'': None, ''cpu'': None, ''maxmem'': None} [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1164) XendDomainInfo.construct: None 0 [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1196) XendDomainInfo.initDomain: 23 1.0 [2006-07-31 16:55:44 xend] DEBUG (balloon:128) Balloon: free 97; need 97; done. [2006-07-31 16:55:44 xend] INFO (image:135) buildDomain os=linux dom=23 vcpus=1 [2006-07-31 16:55:44 xend] DEBUG (image:173) dom = 23 [2006-07-31 16:55:44 xend] DEBUG (image:174) image = /boot/vmlinuz-2.6.11-xenU [2006-07-31 16:55:44 xend] DEBUG (image:175) store_evtchn = 1 [2006-07-31 16:55:44 xend] DEBUG (image:176) console_evtchn = 2 [2006-07-31 16:55:44 xend] DEBUG (image:177) cmdline = ip=:1.2.3.4::::eth0:dhcp root=/dev/sdb1 ro [2006-07-31 16:55:44 xend] DEBUG (image:178) ramdisk [2006-07-31 16:55:44 xend] DEBUG (image:179) vcpus = 1 [2006-07-31 16:55:44 xend] DEBUG (image:180) features [2006-07-31 16:55:44 xend.XendDomainInfo] ERROR (XendDomainInfo:190) Domain construction failed Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 183, in create vm.initDomain() File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 1225, in initDomain channel_details = self.image.createImage() File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in createImage return self.createDomain() File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in createDomain result = self.buildDomain() File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in buildDomain features = self.features) error: (22, ''Invalid argument'') [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1327) XendDomainInfo.destroy: domid=23 [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1335) XendDomainInfo.destroyDomain(23) [2006-07-31 16:55:44 xend] ERROR (xmlrpclib2:124) (22, ''Invalid argument'') Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/xen/util/xmlrpclib2.py", line 103, in _marshaled_dispatch response = self._dispatch(method, params) File "/usr/lib/python2.3/SimpleXMLRPCServer.py", line 407, in _dispatch return func(*params) File "/usr/lib/python2.3/site-packages/xen/xend/server/XMLRPCServer.py", line 63, in domain_create info = XendDomain.instance().domain_create(config) File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 227, in domain_create dominfo = XendDomainInfo.create(config) File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 183, in create vm.initDomain() File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 1225, in initDomain channel_details = self.image.createImage() File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in createImage return self.createDomain() File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in createDomain result = self.buildDomain() File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in buildDomain features = self.features) error: (22, ''Invalid argument'') and /var/log/xend-debug.log: ERROR: Will only load images built for Xen v3.0 ERROR: Actually saw: ''GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=2.0,VIRT_BASE=0xC0000000,LOADER=generic,PT_MODE_WRITABLE'' ERROR: Error constructing guest OS what I''m doing wrong? (sorry for long paste) thanks in advance ciao, Marco -- ,= ,-_-. =. ------------------------------------------------------- + ((_/)o o(\_)) jabber:kpanic@jabber.linux.it/msn:kpanic@muppetslab.org | `-''(. .)`- #muppetslab@irc.freenode.net | \_/ If it works, it''s obsolete | _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Miller
2006-Jul-31 15:12 UTC
RE: [Xen-users] Trying to run centos4.3 on xen under debian unstable
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com]On Behalf Of Marco > Milanesi > Sent: Monday, July 31, 2006 10:05 AM > To: xen-users@lists.xensource.com > Subject: [Xen-users] Trying to run centos4.3 on xen under debian > unstable > > > my config file in /etc/xen is centos, so /etc/xen/centos contains: > > kernel = "/boot/vmlinuz-2.6.11-xenU" > memory = 96 > name = "centos" > dhcp = "dhcp" > disk = [ > ''file:/home/kpanic/xen-images/centos.img,sdb1,w'',''file:/home/kpani > c/xen-images/centos-swap.img,sdb1,w'' ] > # or if you use LVM > # disk = [ ''phy:/dev/vg01/vol01,sdb1,w'',''phy:/dev/vg01/vol02,sdb2,w'' ] > root = "/dev/sdb1 ro" > > but when I try to: > > # xm create -c centos > > I obtain: > > Using config file "/etc/xen/centos". > Error: (22, ''Invalid argument'') > > here is the paste of /var/log/xend.log: > > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG > (XendDomainInfo:178) XendDomainInfo.create([''vm'', [''name'', > ''centos''], [''memory'', 96], [''vcpus'', 1], [''image'', [''linux'', > [''kernel'', ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', > '':1.2.3.4::::eth0:dhcp''], [''root'', ''/dev/sdb1 ro'']]], [''device'', > [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos.img''], > [''dev'', ''sdb1''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', > ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], > [''mode'', ''w'']]]]) > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG > (XendDomainInfo:284) parseConfig: config is [''vm'', [''name'', > ''centos''], [''memory'', 96], [''vcpus'', 1], [''image'', [''linux'', > [''kernel'', ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', > '':1.2.3.4::::eth0:dhcp''], [''root'', ''/dev/sdb1 ro'']]], [''device'', > [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos.img''], > [''dev'', ''sdb1''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', > ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], > [''mode'', ''w'']]]] > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG > (XendDomainInfo:380) parseConfig: result is {''ssidref'': None, > ''uuid'': None, ''on_crash'': None, ''on_reboot'': None, ''image'': > [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', > '':1.2.3.4::::eth0:dhcp''], [''root'', ''/dev/sdb1 ro'']], > ''on_poweroff'': None, ''cpus'': None, ''name'': ''centos'', ''backend'': > [], ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': > 96, ''device'': [(''vbd'', [''vbd'', [''uname'', > ''file:/home/kpanic/xen-images/centos.img''], [''dev'', ''sdb1''], > [''mode'', ''w'']]), (''vbd'', [''vbd'', [''uname'', > ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], > [''mode'', ''w'']])], > ''bootloader'': None, ''cpu'': None, ''maxmem'': None} > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG > (XendDomainInfo:1164) XendDomainInfo.construct: None 0 > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG > (XendDomainInfo:1196) XendDomainInfo.initDomain: 23 1.0 > [2006-07-31 16:55:44 xend] DEBUG (balloon:128) Balloon: free 97; > need 97; done. > [2006-07-31 16:55:44 xend] INFO (image:135) buildDomain os=linux > dom=23 vcpus=1 > [2006-07-31 16:55:44 xend] DEBUG (image:173) dom = 23 > [2006-07-31 16:55:44 xend] DEBUG (image:174) image > /boot/vmlinuz-2.6.11-xenU > [2006-07-31 16:55:44 xend] DEBUG (image:175) store_evtchn = 1 > [2006-07-31 16:55:44 xend] DEBUG (image:176) console_evtchn = 2 > [2006-07-31 16:55:44 xend] DEBUG (image:177) cmdline > ip=:1.2.3.4::::eth0:dhcp root=/dev/sdb1 ro > [2006-07-31 16:55:44 xend] DEBUG (image:178) ramdisk > [2006-07-31 16:55:44 xend] DEBUG (image:179) vcpus = 1 > [2006-07-31 16:55:44 xend] DEBUG (image:180) features > [2006-07-31 16:55:44 xend.XendDomainInfo] ERROR > (XendDomainInfo:190) Domain construction failed > Traceback (most recent call last): > File > "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 183, > in create > vm.initDomain() > File > "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", > line 1225, in initDomain > channel_details = self.image.createImage() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line > 118, in createImage > return self.createDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line > 137, in createDomain > result = self.buildDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line > 188, in buildDomain > features = self.features) > error: (22, ''Invalid argument'') > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG > (XendDomainInfo:1327) XendDomainInfo.destroy: domid=23 > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG > (XendDomainInfo:1335) XendDomainInfo.destroyDomain(23) > [2006-07-31 16:55:44 xend] ERROR (xmlrpclib2:124) (22, ''Invalid argument'') > Traceback (most recent call last): > File "/usr/lib/python2.3/site-packages/xen/util/xmlrpclib2.py", > line 103, in _marshaled_dispatch > response = self._dispatch(method, params) > File "/usr/lib/python2.3/SimpleXMLRPCServer.py", line 407, in _dispatch > return func(*params) > File > "/usr/lib/python2.3/site-packages/xen/xend/server/XMLRPCServer.py", line > 63, in domain_create > info = XendDomain.instance().domain_create(config) > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", > line 227, in domain_create > dominfo = XendDomainInfo.create(config) > File > "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 183, > in create > vm.initDomain() > File > "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", > line 1225, in initDomain > channel_details = self.image.createImage() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line > 118, in createImage > return self.createDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line > 137, in createDomain > result = self.buildDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line > 188, in buildDomain > features = self.features) > error: (22, ''Invalid argument'') > > and /var/log/xend-debug.log: > > ERROR: Will only load images built for Xen v3.0 > ERROR: Actually saw: > ''GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=2.0,VIRT_BASE=0xC0000000,LOA > DER=generic,PT_MODE_WRITABLE'' > ERROR: Error constructing guest OS > > what I''m doing wrong? >I''m not sure if you have a type-O or not but you have both file images as sdb1 ''file:/home/kpanic/xen-images/centos.img,sdb1,w'',''file:/home/kpanic/xen-imag es/centos-swap.img,sdb1,w'' ] ^^^^^^^ ^^^^^^^ --Jim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John R. Shannon
2006-Jul-31 15:12 UTC
Re: [Xen-users] Trying to run centos4.3 on xen under debian unstable
Quick guess - you need an initrd. CentOS uses a device filesystem. Try adding something like: ramdisk = "/boot/initrd-2.6.11.12-xenU.img" to your configuration file. On Monday 31 July 2006 09:05, Marco Milanesi wrote:> hi, > > I followed http://mark.foster.cc/wiki/index.php/Centos-4_on_Xen and > populated the image with centos'' packages downloaded from the net. > > my config file in /etc/xen is centos, so /etc/xen/centos contains: > > kernel = "/boot/vmlinuz-2.6.11-xenU" > memory = 96 > name = "centos" > dhcp = "dhcp" > disk = [ > ''file:/home/kpanic/xen-images/centos.img,sdb1,w'',''file:/home/kpanic/xen-ima >ges/centos-swap.img,sdb1,w'' ] # or if you use LVM > # disk = [ ''phy:/dev/vg01/vol01,sdb1,w'',''phy:/dev/vg01/vol02,sdb2,w'' ] > root = "/dev/sdb1 ro" > > but when I try to: > > # xm create -c centos > > I obtain: > > Using config file "/etc/xen/centos". > Error: (22, ''Invalid argument'') > > here is the paste of /var/log/xend.log: > > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:178) > XendDomainInfo.create([''vm'', [''name'', ''centos''], [''memory'', 96], [''vcpus'', > 1], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', > '':1.2.3.4::::eth0:dhcp''], [''root'', ''/dev/sdb1 ro'']]], [''device'', [''vbd'', > [''uname'', ''file:/home/kpanic/xen-images/centos.img''], [''dev'', ''sdb1''], > [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', > ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], [''mode'', > ''w'']]]]) [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG > (XendDomainInfo:284) parseConfig: config is [''vm'', [''name'', ''centos''], > [''memory'', 96], [''vcpus'', 1], [''image'', [''linux'', [''kernel'', > ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', '':1.2.3.4::::eth0:dhcp''], [''root'', > ''/dev/sdb1 ro'']]], [''device'', [''vbd'', [''uname'', > ''file:/home/kpanic/xen-images/centos.img''], [''dev'', ''sdb1''], [''mode'', > ''w'']]], [''device'', [''vbd'', [''uname'', > ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], [''mode'', > ''w'']]]] [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG > (XendDomainInfo:380) parseConfig: result is {''ssidref'': None, ''uuid'': None, > ''on_crash'': None, ''on_reboot'': None, ''image'': [''linux'', [''kernel'', > ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', '':1.2.3.4::::eth0:dhcp''], [''root'', > ''/dev/sdb1 ro'']], ''on_poweroff'': None, ''cpus'': None, ''name'': ''centos'', > ''backend'': [], ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, > ''memory'': 96, ''device'': [(''vbd'', [''vbd'', [''uname'', > ''file:/home/kpanic/xen-images/centos.img''], [''dev'', ''sdb1''], [''mode'', > ''w'']]), (''vbd'', [''vbd'', [''uname'', > ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], [''mode'', > ''w'']])], ''bootloader'': None, ''cpu'': None, ''maxmem'': None} > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1164) > XendDomainInfo.construct: None 0 [2006-07-31 16:55:44 xend.XendDomainInfo] > DEBUG (XendDomainInfo:1196) XendDomainInfo.initDomain: 23 1.0 [2006-07-31 > 16:55:44 xend] DEBUG (balloon:128) Balloon: free 97; need 97; done. > [2006-07-31 16:55:44 xend] INFO (image:135) buildDomain os=linux dom=23 > vcpus=1 [2006-07-31 16:55:44 xend] DEBUG (image:173) dom = 23 > [2006-07-31 16:55:44 xend] DEBUG (image:174) image > /boot/vmlinuz-2.6.11-xenU [2006-07-31 16:55:44 xend] DEBUG (image:175) > store_evtchn = 1 > [2006-07-31 16:55:44 xend] DEBUG (image:176) console_evtchn = 2 > [2006-07-31 16:55:44 xend] DEBUG (image:177) cmdline = > ip=:1.2.3.4::::eth0:dhcp root=/dev/sdb1 ro [2006-07-31 16:55:44 xend] DEBUG > (image:178) ramdisk > [2006-07-31 16:55:44 xend] DEBUG (image:179) vcpus = 1 > [2006-07-31 16:55:44 xend] DEBUG (image:180) features > [2006-07-31 16:55:44 xend.XendDomainInfo] ERROR (XendDomainInfo:190) Domain > construction failed Traceback (most recent call last): > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line > 183, in create > vm.initDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line > 1225, in initDomain channel_details = self.image.createImage() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in > createImage return self.createDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in > createDomain result = self.buildDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in > buildDomain features = self.features) > error: (22, ''Invalid argument'') > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1327) > XendDomainInfo.destroy: domid=23 [2006-07-31 16:55:44 xend.XendDomainInfo] > DEBUG (XendDomainInfo:1335) XendDomainInfo.destroyDomain(23) [2006-07-31 > 16:55:44 xend] ERROR (xmlrpclib2:124) (22, ''Invalid argument'') Traceback > (most recent call last): > File "/usr/lib/python2.3/site-packages/xen/util/xmlrpclib2.py", line 103, > in _marshaled_dispatch response = self._dispatch(method, params) > File "/usr/lib/python2.3/SimpleXMLRPCServer.py", line 407, in _dispatch > return func(*params) > File "/usr/lib/python2.3/site-packages/xen/xend/server/XMLRPCServer.py", > line 63, in domain_create > info = XendDomain.instance().domain_create(config) > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 227, > in domain_create dominfo = XendDomainInfo.create(config) > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line > 183, in create > vm.initDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line > 1225, in initDomain channel_details = self.image.createImage() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in > createImage return self.createDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in > createDomain result = self.buildDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in > buildDomain features = self.features) > error: (22, ''Invalid argument'') > > and /var/log/xend-debug.log: > > ERROR: Will only load images built for Xen v3.0 > ERROR: Actually saw: > ''GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=2.0,VIRT_BASE=0xC0000000,LOADER=gener >ic,PT_MODE_WRITABLE'' ERROR: Error constructing guest OS > > what I''m doing wrong? > > (sorry for long paste) > > thanks in advance > > ciao, > Marco-- John R. Shannon, CISSP john@johnrshannon.com jshannon@dsci-usa.com john.r.shannon@us.army.mil shannonjr@NetBSD.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
tim Doyle
2006-Jul-31 16:30 UTC
Re: [Xen-users] Trying to run centos4.3 on xen under debian unstable
Hi Marco. >disk = [ ''file:/home/kpanic/xen-images/centos.img,sdb1,w'',''file:/home/kpanic/xen-images/centos-swap.img,sdb1,w'' ] It looks like both the centos.img and the centos-swap.img are being exported as sdb1. Here is an example of config parameters for a file backed domain. name="bob" memory = 128 kernel = "/boot/vmlinuz-2.6.11-xenU" disk = [''file:/home/bob/centos.img,sda1,w'',''file:/home/bob/centos-swap.img,sda2,w''] root = "/dev/sda1 ro" -Tim -- Timothy Doyle CEO Quantact Hosting Solutions, Inc. tim@quantact.com http://www.quantact.com Marco Milanesi wrote:> hi, > > I followed http://mark.foster.cc/wiki/index.php/Centos-4_on_Xen and > populated the image with centos'' packages downloaded from the net. > > my config file in /etc/xen is centos, so /etc/xen/centos contains: > > kernel = "/boot/vmlinuz-2.6.11-xenU" > memory = 96 > name = "centos" > dhcp = "dhcp" > disk = [ ''file:/home/kpanic/xen-images/centos.img,sdb1,w'',''file:/home/kpanic/xen-images/centos-swap.img,sdb1,w'' ] > # or if you use LVM > # disk = [ ''phy:/dev/vg01/vol01,sdb1,w'',''phy:/dev/vg01/vol02,sdb2,w'' ] > root = "/dev/sdb1 ro" > > but when I try to: > > # xm create -c centos > > I obtain: > > Using config file "/etc/xen/centos". > Error: (22, ''Invalid argument'') > > here is the paste of /var/log/xend.log: > > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:178) XendDomainInfo.create([''vm'', [''name'', ''centos''], [''memory'', 96], [''vcpus'', 1], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', '':1.2.3.4::::eth0:dhcp''], [''root'', ''/dev/sdb1 ro'']]], [''device'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos.img''], [''dev'', ''sdb1''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], [''mode'', ''w'']]]]) > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:284) parseConfig: config is [''vm'', [''name'', ''centos''], [''memory'', 96], [''vcpus'', 1], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', '':1.2.3.4::::eth0:dhcp''], [''root'', ''/dev/sdb1 ro'']]], [''device'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos.img''], [''dev'', ''sdb1''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], [''mode'', ''w'']]]] > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:380) parseConfig: result is {''ssidref'': None, ''uuid'': None, ''on_crash'': None, ''on_reboot'': None, ''image'': [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.11-xenU''], [''ip'', '':1.2.3.4::::eth0:dhcp''], [''root'', ''/dev/sdb1 ro'']], ''on_poweroff'': None, ''cpus'': None, ''name'': ''centos'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': None, ''vcpu_avail'': None, ''memory'': 96, ''device'': [(''vbd'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos.img''], [''dev'', ''sdb1''], [''mode'', ''w'']]), (''vbd'', [''vbd'', [''uname'', ''file:/home/kpanic/xen-images/centos-swap.img''], [''dev'', ''sdb1''], [''mode'', ''w'']])], > ''bootloader'': None, ''cpu'': None, ''maxmem'': None} > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1164) XendDomainInfo.construct: None 0 > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1196) XendDomainInfo.initDomain: 23 1.0 > [2006-07-31 16:55:44 xend] DEBUG (balloon:128) Balloon: free 97; need 97; done. > [2006-07-31 16:55:44 xend] INFO (image:135) buildDomain os=linux dom=23 vcpus=1 > [2006-07-31 16:55:44 xend] DEBUG (image:173) dom = 23 > [2006-07-31 16:55:44 xend] DEBUG (image:174) image = /boot/vmlinuz-2.6.11-xenU > [2006-07-31 16:55:44 xend] DEBUG (image:175) store_evtchn = 1 > [2006-07-31 16:55:44 xend] DEBUG (image:176) console_evtchn = 2 > [2006-07-31 16:55:44 xend] DEBUG (image:177) cmdline = ip=:1.2.3.4::::eth0:dhcp root=/dev/sdb1 ro > [2006-07-31 16:55:44 xend] DEBUG (image:178) ramdisk > [2006-07-31 16:55:44 xend] DEBUG (image:179) vcpus = 1 > [2006-07-31 16:55:44 xend] DEBUG (image:180) features > [2006-07-31 16:55:44 xend.XendDomainInfo] ERROR (XendDomainInfo:190) Domain construction failed > Traceback (most recent call last): > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 183, > in create > vm.initDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 1225, in initDomain > channel_details = self.image.createImage() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in createImage > return self.createDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in createDomain > result = self.buildDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in buildDomain > features = self.features) > error: (22, ''Invalid argument'') > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1327) XendDomainInfo.destroy: domid=23 > [2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1335) XendDomainInfo.destroyDomain(23) > [2006-07-31 16:55:44 xend] ERROR (xmlrpclib2:124) (22, ''Invalid argument'') > Traceback (most recent call last): > File "/usr/lib/python2.3/site-packages/xen/util/xmlrpclib2.py", line 103, in _marshaled_dispatch > response = self._dispatch(method, params) > File "/usr/lib/python2.3/SimpleXMLRPCServer.py", line 407, in _dispatch > return func(*params) > File "/usr/lib/python2.3/site-packages/xen/xend/server/XMLRPCServer.py", line > 63, in domain_create > info = XendDomain.instance().domain_create(config) > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 227, in domain_create > dominfo = XendDomainInfo.create(config) > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 183, > in create > vm.initDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 1225, in initDomain > channel_details = self.image.createImage() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in createImage > return self.createDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in createDomain > result = self.buildDomain() > File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in buildDomain > features = self.features) > error: (22, ''Invalid argument'') > > and /var/log/xend-debug.log: > > ERROR: Will only load images built for Xen v3.0 > ERROR: Actually saw: ''GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=2.0,VIRT_BASE=0xC0000000,LOADER=generic,PT_MODE_WRITABLE'' > ERROR: Error constructing guest OS > > what I''m doing wrong? > > (sorry for long paste) > > thanks in advance > > ciao, > Marco > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Marco Milanesi
2006-Aug-01 12:26 UTC
Re: [Xen-users] Trying to run centos4.3 on xen under debian unstable
hi,> I''m not sure if you have a type-O or not but you have both file images as > sdb1 > ''file:/home/kpanic/xen-images/centos.img,sdb1,w'',''file:/home/kpanic/xen-imag > es/centos-swap.img,sdb1,w'' ]I tried to specify different partitions with no success (yeah, it was a typo made by me in the config) always the same error, also by strace(ing) the ''xm'' executable I see before this error a signal* (.py,.so,etc) missing. dunno if it''s related... thanks ciao, Marco -- ,= ,-_-. =. ------------------------------------------------------- + ((_/)o o(\_)) jabber:kpanic@jabber.linux.it/msn:kpanic@muppetslab.org | `-''(. .)`- #muppetslab@irc.freenode.net | \_/ If it works, it''s obsolete | _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
john maclean
2006-Aug-01 14:05 UTC
Re: [Xen-users] Trying to run centos4.3 on xen under debian unstable
I''ve managed to get 8 CentOS4.3 domU''s running under Debian Sarge. dunno if any of this helps:- #/boot/grub/menu.lst title Xen 3.0 / XenLinux 2.6 kernel /xen-3.0.gz console=vga dom0_mem=524288 module /vmlinuz-2.6-xen root=/dev/hda3 ro console=tty0 savedefault boot #grep ^[a-z] /etc/xen/centos0 kernel = "/boot/vmlinuz-2.6-xen" builder=''linux'' memory = 32 name = "centos0" cpus = "" # leave to Xen to pick vcpus = 1 vif = [ '''' ] disk = [ ''file:/xen/images/centos0.img,hda1,w'', ''file:/xen/images/centos0-swap.img,hda2,w''] dhcp="dhcp" root = "/dev/hda1 ro" extra = "4" I start them all off with xm create centos[0-8] or if I want to log into the domU xm create centos[0-8] -c /etc/xen/centos[0-8] Where [0-8] is a single digit of the domU that I want to fire up. #xm list xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 512 1 r----- 7502.1 centos0 7 32 1 -b---- 16.4 centos1 9 32 1 -b---- 15.7 centos2 12 32 1 -b---- 16.0 centos3 13 32 1 -b---- 21.9 centos4 14 32 1 -b---- 15.8 centos5 15 32 1 -b---- 15.5 centos6 16 32 1 ------ 30245.2 centos7 17 32 1 -b---- 14.9 On 01/08/06, Marco Milanesi <kpanic@muppetslab.org> wrote:> hi, > > > I''m not sure if you have a type-O or not but you have both file images as > > sdb1 > > ''file:/home/kpanic/xen-images/centos.img,sdb1,w'',''file:/home/kpanic/xen-imag > > es/centos-swap.img,sdb1,w'' ] > > I tried to specify different partitions with no success (yeah, it was a > typo made by me in the config) > > always the same error, also by strace(ing) the ''xm'' executable I see > before this error a signal* (.py,.so,etc) missing. dunno if it''s > related... > > thanks > > ciao, > Marco > > -- > ,= ,-_-. =. ------------------------------------------------------- + > ((_/)o o(\_)) jabber:kpanic@jabber.linux.it/msn:kpanic@muppetslab.org | > `-''(. .)`- #muppetslab@irc.freenode.net | > \_/ If it works, it''s obsolete | > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- John Maclean - 07739 171 531 MSc (DIC) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users