WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] PV Grub Questions

To: "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxx>, "Marco Sinhoreli" <msinhore@xxxxxxxxx>, "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxxx>, "xen-devel mailing list" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] PV Grub Questions
From: "Marco Sinhoreli" <msinhore@xxxxxxxxx>
Date: Fri, 26 Sep 2008 14:22:18 -0300
Cc:
Delivery-date: Fri, 26 Sep 2008 10:22:49 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UYK6Bd82aZFzYghc9mtbdptQDIT3H/rwnevSOhK/T9w=; b=bCPXT9AeUcBxHFhHkQoRulnq8oA8YLB9Lgr6cjS0Zfu1k5bleOrgzq2dkHgMnlCIH/ G0zUZ4ouc7e+/oK7s/0EGiXFQY4AqxwqAkia6Tth944VMA6MfSOaWsfhg0iWo3Xm+NvA MjbbvkvOTeytS0Nwju6wtVVVkpknBJ7X6oJOo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=XsUnQeToBl6DCTI7woXFkBg/ArznZZaPaFIUbYTFJ908SVBp4RYpyr7kKez7Dtz3/P 9eVGh+mLTWvqhAtSK/vB0kdDx6gMtSjOkdnxjkrEInujih4RkbIlejHcpV9f3ff9YqdA be3v77AvNQdyXUf6TZ+kXldo61LAtkZVCxvNY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080926080554.GA4557@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1e16a9ed0808261257p763cb14uc6a3b28513cf94d2@xxxxxxxxxxxxxx> <20080828150203.GB11437@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20080828155039.GZ4523@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20fe3cf60808280951t5d6498e4x8bd78e8a7f272443@xxxxxxxxxxxxxx> <20080828172953.GD4523@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20fe3cf60809251406m2cc97e6dlbf35e31fa5cd2da6@xxxxxxxxxxxxxx> <20080926080554.GA4557@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
It ins't working too. Below, I'm reproducing informations about my test system:

My xen version:
# xm info | grep -E 'major|minor'
xen_major              : 3
xen_minor              : 3

# virtual machine dmesg
| Registering block device major 202
|  xvda: xvda1 xvda2 xvda3
| Registering block device major 22
| hdc: unknown partition table

In vm configuration, the variable  'disk' is set like below:
| disk = [ 'phy:/dev/empirevg/centos,xvda,w',
'file:/home/iso/centos-xen-image/CentOS-5.2-x86_64-bin-1of7.iso,hdc:cdrom,r'
]

In log has only these entries about the vbd:
# /var/log/xen/qemu-dm-pvcentos.log
| medium change watch on `hdc' (index: 1):
/home/iso/centos-xen-image/CentOS-5.2-x86_64-bin-1of7.iso

# /var/log/xen/xend.log
| [2008-09-26 13:55:00 3997] TRACE (XendDomainInfo:2860)
XendDomainInfo.update done on domain 152: {'vcpus_params': {'cap': 0,
'weight': 256}, 'PV_args': '', '_temp_kernel':
'/var/run/xend/boot/boot_kernel.aKv9gR', 'features': '', '_temp_args':
'ro root=LABEL=/ rhgb quiet', 'cpus': [[], []], 'paused': 1,
'shutdown_reason': 0, 'actions_after_reboot': 'restart', 'vcpu_avail':
3, 'VCPUs_live': 1, 'PV_bootloader': '', 'actions_after_crash':
'restart', 'vbd_refs': ['96741415-cc7f-888f-bb22-d9536e4a2667',
'c4cb92df-3d4e-a8b1-429d-e291aed95248'], 'PV_ramdisk': '',
'memory_dynamic_min': 268435456, '_temp_ramdisk':
'/var/run/xend/boot/boot_ramdisk.2Dkcev', 'name_label': 'pvcentos',
'VCPUs_at_startup': 1, 'HVM_boot_params': {}, 'platform':
{'device_model': '/usr/lib64/xen/bin/qemu-dm'}, 'PV_kernel': '',
'console_refs': ['f44f980b-2fee-d156-8e1a-2dcdd56c0d1a',
'c8a40489-9b26-94e2-2590-507038155e2e'], 'shutdown': 0, 'dying': 0,
'_temp_using_bootloader': '1', 'blocked': 0, 'on_xend_stop': 'ignore',
'memory_static_min': 0, 'HVM_boot_policy': '', 'domid': 152,
'VCPUs_max': 2, 'start_time': 1222448100.201066, 'online_vcpus': 1,
'memory_static_max': 268435456, 'actions_after_shutdown': 'destroy',
'on_xend_start': 'ignore', 'crashed': 0, 'memory_dynamic_max':
268435456, 'actions_after_suspend': '', 'is_a_template': False,
'is_control_domain': False, 'uuid':
'b7f2a041-0369-a085-c4de-49073e338742', 'cpu_time': 0.0,
'shadow_memory': 0, 'target': 0, 'PV_bootloader_args': '', 'notes':
{'FEATURES':  
writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel',
'VIRT_BASE': 18446744071562067968L, 'GUEST_VERSION': '2.6',
'PADDR_OFFSET': 18446744071562067968L, 'GUEST_OS': 'linux',
'HYPERCALL_PAGE': 18446744071564189696L, 'LOADER': 'generic', 'ENTRY':
18446744071564165120L, 'XEN_VERSION': 'xen-3.0'}, 'other_config': {},
'running': 0, 'devices': {'96741415-cc7f-888f-bb22-d9536e4a2667':
('vbd', {'uuid': '96741415-cc7f-888f-bb22-d9536e4a2667', 'bootable':
1, 'devid': 51712, 'driver': 'paravirtualised', 'dev': 'xvda',
'uname': 'phy:/dev/empirevg/centos', 'mode': 'w'}),
'a5ecf6ea-a8b1-67d1-6308-068cebf5ab80': ('vkbd', {'devid': 0, 'uuid':
'a5ecf6ea-a8b1-67d1-6308-068cebf5ab80'}),
'f44f980b-2fee-d156-8e1a-2dcdd56c0d1a': ('vfb', {'other_config':
{'type': 'vnc', 'xauthority': '/root/.Xauthority'}, 'xauthority':
'/root/.Xauthority', 'devid': 0, 'location': 'localhost:5901', 'type':
'vnc', 'uuid': 'f44f980b-2fee-d156-8e1a-2dcdd56c0d1a'}),
'c8a40489-9b26-94e2-2590-507038155e2e': ('console', {'other_config':
{}, 'protocol': 'vt100', 'uuid':
'c8a40489-9b26-94e2-2590-507038155e2e', 'location': '2'}),
'c4cb92df-3d4e-a8b1-429d-e291aed95248': ('vbd', {'uuid':
'c4cb92df-3d4e-a8b1-429d-e291aed95248', 'bootable': 0, 'devid': 5632,
'driver': 'paravirtualised', 'dev': 'hdc:cdrom', 'uname':
'file:/home/iso/centos-xen-image/CentOS-5.2-x86_64-bin-1of7.iso',
'mode': 'r'}), '256dc778-ec84-f42b-f31b-229fc88544d6': ('vif',
{'bridge': 'eth0', 'mac': '00:16:3e:3f:d6:38', 'devid': 0, 'uuid':
'256dc778-ec84-f42b-f31b-229fc88544d6'})}, 'vif_refs':
['256dc778-ec84-f42b-f31b-229fc88544d6'], 'vtpm_refs': []}

Perhaps, only HVM supports cdrom media type. PVM has no this feature
or I can be wrong.

Cheers,

On Fri, Sep 26, 2008 at 5:05 AM, Samuel Thibault
<samuel.thibault@xxxxxxxxxxxx> wrote:
> Hello,
>
> Marco Sinhoreli, le Thu 25 Sep 2008 18:06:40 -0300, a écrit :
>> The pv-grub can read the cdrom but the OS installer can't identify the
>> vbd as cdrom driver.
>
> At that point PV-Grub doesn't exist any more, so the problem is
> somewhere.
>
>> Do you know how can I fix it? There is this feature in Xen for
>> paravirt domains?
>
> Yes there is, but you need to explicitely tell it, for instance:
>
> disk = ['file:/foo/bar/something.img,hdc:cdrom,r']
>
> Samuel
>



-- 
Marco Sinhoreli
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>