Hi to everyone ,
I''m trying to build a completely custom xenU kernel ,
because I want to play with it in the xen''s sandbox.
Unfortunately I encountered some problems during the creation of the
unprivileged domain with my custom kernel .
I''m using xen-3.0.2.src.tgz package and I followed the following
operation within the xen-3.0.2-2 directory :
# make linux-2.6-xenU-config CONFIGMODE=menuconfig
At this point I made all my customizations and after this I typed :
# make linux-2.6-xenU-build
# make linux-2.6-xenU-install
After a while the unprivileged kernel was ready to use and waiting for
me in my /boot directory , so I prepared the xen configuration file like
this one :
#
# /etc/xen/testVmNfs
#
name = "testVmNfs"
memory = "128"
kernel="/boot/vmlinuz-2.6.16-xenU"
vif = [ ''mac=00:16:3e:02:76:68'' ]
ip= "10.0.0.11"
netmask ="255.255.255.0"
root = "/dev/nfs"
gw="10.0.0.4"
nfs_server="10.0.0.4"
nfs_root="/home/zad/xen/xenFs"
on_reboot = ''restart''
on_crash = ''restart''
Then I started the xen vm with :
# xm create -c testVmNfs
the command didn''t produce any output except for this one :
*Using config file "/etc/xen/testVmNfs".
Started domain testVmNfs
xenconsole: Could not read tty from store: No such file or directory*
so my questions are :
1) Is the procedure that I followed right or did I miss something ?
2) Do I need to enable some special option in the xenU''
kernel''
configuration to obtain some kind of output during the unprivileged
domain''s boot ?
3) If the info that I''m looking for are just present in some Faqs or
howtos can someone indicate where are they ?
I also include here the log''s output maybe it can help everyone that
are
coming to have a look at my prob ;) :
[2006-06-20 22:50:46 xend.XendDomainInfo] DEBUG (XendDomainInfo:177)
XendDomainInfo.create([''domain'',
[''domid'', 1], [''uuid'',
''35a6cde5-64ec-2df5-517c-b5f9d23fc7c7''],
[''ssidref'', 0], [''vcpus'',
1], [''vcpu_avail'', 1], [''cpu_weight'',
1.0], [''memory'', 128],
[''maxmem'', 128], [''name'',
''testVmNfs''], [''on_poweroff'',
''destroy''],
[''on_reboot'', ''restart''],
[''on_crash'', ''restart''],
[''image'',
[''linux'', [''kernel'',
''/boot/vmlinuz-2.6.16-xenU''], [''ip'',
''10.0.0.11:10.0.0.4::255.255.255.0::eth0:off''],
[''root'',
''/dev/nfs''], [''args'',
''nfsroot=10.0.0.4:/home/zad/xen/xenFs '']]],
[''device'', [''vif'',
[''backend'', 0], [''script'',
''vif-bridge''], [''mac'',
''00:16:3e:02:76:68'']]], [''state'',
''----c-''], [''shutdown_reason'',
''crash''], [''cpu_time'',
0.0057830360000000001], [''online_vcpus'', 1],
[''up_time'', ''2.45281410217''],
[''start_time'', ''1150836643.71''],
[''store_mfn'', 51040], [''console_mfn'',
51039]])
[2006-06-20 22:50:46 xend.XendDomainInfo] DEBUG (XendDomainInfo:283)
parseConfig: config is [''domain'',
[''domid'', 1], [''uuid'',
''35a6cde5-64ec-2df5-517c-b5f9d23fc7c7''],
[''ssidref'', 0], [''vcpus'',
1], [''vcpu_avail'', 1], [''cpu_weight'',
1.0], [''memory'', 128],
[''maxmem'', 128], [''name'',
''testVmNfs''], [''on_poweroff'',
''destroy''],
[''on_reboot'', ''restart''],
[''on_crash'', ''restart''],
[''image'',
[''linux'', [''kernel'',
''/boot/vmlinuz-2.6.16-xenU''], [''ip'',
''10.0.0.11:10.0.0.4::255.255.255.0::eth0:off''],
[''root'',
''/dev/nfs''], [''args'',
''nfsroot=10.0.0.4:/home/zad/xen/xenFs '']]],
[''device'', [''vif'',
[''backend'', 0], [''script'',
''vif-bridge''], [''mac'',
''00:16:3e:02:76:68'']]], [''state'',
''----c-''], [''shutdown_reason'',
''crash''], [''cpu_time'',
0.0057830360000000001], [''online_vcpus'', 1],
[''up_time'', ''2.45281410217''],
[''start_time'', ''1150836643.71''],
[''store_mfn'', 51040], [''console_mfn'',
51039]]
[2006-06-20 22:50:46 xend.XendDomainInfo] DEBUG (XendDomainInfo:379)
parseConfig: result is {''ssidref'': 0,
''uuid'':
''35a6cde5-64ec-2df5-517c-b5f9d23fc7c7'',
''on_crash'': ''restart'',
''on_reboot'': ''restart'',
''image'': [''linux'',
[''kernel'',
''/boot/vmlinuz-2.6.16-xenU''], [''ip'',
''10.0.0.11:10.0.0.4::255.255.255.0::eth0:off''],
[''root'',
''/dev/nfs''], [''args'',
''nfsroot=10.0.0.4:/home/zad/xen/xenFs '']],
''on_poweroff'': ''destroy'',
''cpus'': None, ''name'':
''testVmNfs'',
''backend'': [], ''vcpus'': 1,
''cpu_weight'': 1.0, ''vcpu_avail'': 1,
''memory'': 128, ''device'':
[(''vif'', [''vif'',
[''backend'', 0], [''script'',
''vif-bridge''], [''mac'',
''00:16:3e:02:76:68'']])], ''bootloader'': None,
''cpu'': None, ''maxmem'': 128}
[2006-06-20 22:50:46 xend.XendDomainInfo] DEBUG
(XendDomainInfo:1142) XendDomainInfo.construct: None 0
[2006-06-20 22:50:46 xend.XendDomainInfo] DEBUG
(XendDomainInfo:1174) XendDomainInfo.initDomain: 2 1.0
[2006-06-20 22:50:46 xend] DEBUG (balloon:88) Balloon: free 3; need 129.
[2006-06-20 22:50:46 xend] DEBUG (balloon:97) Balloon: setting dom0
target to 274.
[2006-06-20 22:50:46 xend.XendDomainInfo] DEBUG (XendDomainInfo:923)
Setting memory target of domain Domain-0 (0) to 274 MiB.
[2006-06-20 22:50:46 xend] DEBUG (balloon:84) Balloon: free 133;
need 129; done.
[2006-06-20 22:50:46 xend] INFO (image:135) buildDomain os=linux
dom=2 vcpus=1
[2006-06-20 22:50:46 xend] DEBUG (image:173) dom = 2
[2006-06-20 22:50:46 xend] DEBUG (image:174) image
/boot/vmlinuz-2.6.16-xenU
[2006-06-20 22:50:46 xend] DEBUG (image:175) store_evtchn = 1
[2006-06-20 22:50:46 xend] DEBUG (image:176) console_evtchn = 2
[2006-06-20 22:50:46 xend] DEBUG (image:177) cmdline =
ip=10.0.0.11:10.0.0.4::255.255.255.0::eth0:off root=/dev/nfs
nfsroot=10.0.0.4:/home/zad/xen/xenFs
[2006-06-20 22:50:46 xend] DEBUG (image:178) ramdisk [2006-06-20
22:50:46 xend] DEBUG (image:179) vcpus = 1
[2006-06-20 22:50:46 xend] DEBUG (image:180) features [2006-06-20
22:50:50 xend] DEBUG (DevController:103) DevController:
writing {''backend-id'': ''0'',
''mac'': ''00:16:3e:02:76:68'',
''handle'':
''0'', ''state'': ''1'',
''backend'':
''/local/domain/0/backend/vif/2/0''} to
/local/domain/2/device/vif/0.
[2006-06-20 22:50:50 xend] DEBUG (DevController:105) DevController:
writing {''mac'': ''00:16:3e:02:76:68'',
''state'': ''1'', ''handle'':
''0'',
''script'': ''/etc/xen/scripts/vif-bridge'',
''frontend-id'': ''2'',
''domain'': ''testVmNfs'',
''frontend'': ''/local/domain/2/device/vif/0''}
to /local/domain/0/backend/vif/2/0.
[2006-06-20 22:50:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:667)
Storing VM details: {''ssidref'': ''0'',
''uuid'':
''35a6cde5-64ec-2df5-517c-b5f9d23fc7c7'',
''on_reboot'': ''restart'',
''start_time'': ''1150836650.74'',
''on_poweroff'': ''destroy'',
''name'':
''testVmNfs'', ''vcpus'':
''1'', ''vcpu_avail'': ''1'',
''memory'': ''128'',
''on_crash'': ''restart'',
''image'': "(linux (kernel
/boot/vmlinuz-2.6.16-xenU) (ip
10.0.0.11:10.0.0.4::255.255.255.0::eth0:off) (root /dev/nfs) (args
''nfsroot=10.0.0.4:/home/zad/xen/xenFs ''))",
''maxmem'': ''128''}
[2006-06-20 22:50:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:692)
Storing domain details: {''console/ring-ref'':
''15238'',
''console/port'': ''2'',
''name'': ''testVmNfs'',
''console/limit'':
''1048576'', ''vm'':
''/vm/35a6cde5-64ec-2df5-517c-b5f9d23fc7c7'',
''domid'': ''2'',
''cpu/0/availability'': ''online'',
''memory/target'':
''131072'', ''store/ring-ref'':
''15715'', ''store/port'':
''1''}
[2006-06-20 22:50:50 xend.XendDomainInfo] WARNING
(XendDomainInfo:813) Domain has crashed: name=testVmNfs id=2.
[2006-06-20 22:50:51 xend.XendDomainInfo] ERROR
(XendDomainInfo:1430) VM testVmNfs restarting too fast (4.902062
seconds since the last restart). Refusing to restart to avoid loops.
[2006-06-20 22:50:51 xend.XendDomainInfo] DEBUG
(XendDomainInfo:1290) XendDomainInfo.destroy: domid=2
[2006-06-20 22:50:51 xend.XendDomainInfo] DEBUG
(XendDomainInfo:1298) XendDomainInfo.destroyDomain(2)
Thanks to Everyone
Zad
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users