On 2016-04-15 17:23, Roger Pau Monné wrote:
On Fri, Apr 15, 2016 at 04:59:11PM +1000, Steven Haigh wrote:
Hi all,
I'm wading through the somewhat confusing world of documentation
regarding
storing DomU disk images on an iSCSI target.
I'm getting an error when using pygrub of:
OSError: [Errno 2] No such file or directory:
'iqn=iqn.1986-03.com.sun:02:ff2d12c0-b709-4ec0-999d-976506c666f5,portal=192.168.133.250'
Hello,
It should work. Can you please paste your guest configuration file and
the
output of the create command with "-vvv"?
DomU config file:
bootloader = "pygrub"
name = "test1.vm"
memory = 2048
vcpus = 2
cpus = "1-7"
vif = ['bridge=br-151, vifname=vm.test1']
disk =
['script=block-iscsi,vdev=xvda,target=iqn=iqn.1986-03.com.sun:02:ff2d12c0-b709-4ec0-999d-976506c666f5,portal=192.168.133.250']
boot = "c"
# xl create /etc/xen/test1.vm -d -c
Parsing config from /etc/xen/test1.vm
{
"domid": null,
"config": {
"c_info": {
"type": "pv",
"name": "test1.vm",
"uuid": "a7134f81-4616-4cf6-99db-3d2bc90b2d58",
"run_hotplug_scripts": "True"
},
"b_info": {
"max_vcpus": 2,
"avail_vcpus": [
0,
1
],
"vcpu_hard_affinity": [
[
1,
2,
3,
4,
5,
6,
7
],
[
1,
2,
3,
4,
5,
6,
7
]
],
"numa_placement": "False",
"max_memkb": 2097152,
"target_memkb": 2097152,
"shadow_memkb": 18432,
"sched_params": {
},
"claim_mode": "True",
"type.pv": {
"bootloader": "pygrub"
}
},
"disks": [
{
"pdev_path":
"iqn=iqn.1986-03.com.sun:02:ff2d12c0-b709-4ec0-999d-976506c666f5,portal=192.168.133.250",
"vdev": "xvda",
"format": "raw",
"script": "block-iscsi",
"readwrite": 1
}
],
"nics": [
{
"devid": 0,
"bridge": "br-151",
"ifname": "vm.test1"
}
],
"on_reboot": "restart"
}
}
libxl: error: libxl_bootloader.c:630:bootloader_finished: bootloader
failed - consult logfile /var/log/xen/bootloader.11.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader
[-1] exited with error status 1
libxl: error: libxl_create.c:1121:domcreate_rebuild_done: cannot
(re-)build domain: -3
libxl: info: libxl.c:1698:devices_destroy_cb: forked pid 2982 for
destroy of domain 11
libxl: error: libxl_dom.c:36:libxl__domain_type: unable to get domain
type for domid=11
xl: unable to exec console client: No such file or directory
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console
child [2981] exited with error status 1
# cat /var/log/xen/bootloader.11.log
Traceback (most recent call last):
File "/usr/lib/xen/bin/pygrub", line 894, in <module>
part_offs = get_partition_offsets(file)
File "/usr/lib/xen/bin/pygrub", line 114, in get_partition_offsets
image_type = identify_disk_image(file)
File "/usr/lib/xen/bin/pygrub", line 57, in identify_disk_image
fd = os.open(file, os.O_RDONLY)
OSError: [Errno 2] No such file or directory:
'iqn=iqn.1986-03.com.sun:02:ff2d12c0-b709-4ec0-999d-976506c666f5,portal=192.168.133.250'
--
Steven Haigh
Email: net...@crc.id.au
Web: https://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel