[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] question regarding booting custom guest kernel
On 27 September 2013 18:32, Wei Liu <wei.liu2@xxxxxxxxxx> wrote:
I agree. So, this is what I tried. Use xen-create-image to create an image from a mirror. And the output looks briefly like the following - General Information -------------------- Hostname : precise-guest Distribution : precise Mirror : http://de.archive.ubuntu.com/ubuntu/
Partitions : swap 128M (swap) / 20G (ext3) Image type : sparse Memory size : 512M Networking Information
---------------------- IP Address : DHCP [MAC: 00:16:3E:46:82:E4] WARNING ------- Loopback module not loaded and you're using loopback images
Run the following to load the module:
modprobe loop max_loop=255 Creating partition image: /home/domains/precise-guest/swap.img Done Creating swap on /home/domains/precise-guest/swap.img
Done Creating partition image: /home/domains/precise-guest/disk.img Done Creating ext3 filesystem on /home/domains/precise-guest/disk.img Done
Installation method: debootstrap Done Running hooks Done No role scripts were specified. Skipping Creating Xen configuration file
Done Setting up root password Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully All done Installation Summary
--------------------- Hostname : precise-guest Distribution : precise IP-Address(es) : dynamic RSA Fingerprint : Root Password : N/A This is successful and I have a config file that looks like this - <config> bootloader = '/usr/local/lib/xen/bin/pygrub'
vcpus = '1' memory = '512' root = '/dev/xvda2 ro' disk = [ 'file:/home/domains/precise-guest/disk.img,xvda2,w',
'file:/home/domains/precise-guest/swap.img,xvda1,w', ] name = 'precise-guest' dhcp = 'dhcp' vif = [ 'mac=00:16:3E:46:82:E4' ] on_reboot = 'restart' on_crash = 'restart' </config> Upon calling xl create /etc/xen/precise-guest.cfg, I get the following error: Parsing config from /etc/xen/precise-guest.cfg
libxl: error: libxl_bootloader.c:628:bootloader_finished: bootloader failed - consult logfile /var/log/xen/bootloader.17.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader [31933] exited with error status 1 libxl: error: libxl_create.c:900:domcreate_rebuild_done: cannot (re-)build domain: -3
And the log file says: File "/usr/local/lib/xen/bin/pygrub", line 885, in <module>
raise RuntimeError, "Unable to find partition containing kernel" This error confuses me, as the xen-create-image command shows that it is configuring ext3 on the given disk image:
Thanks Aastha Mehta _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |