From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guillaume Rousse Subject: Re: pvgrub and single partition VM Date: Tue, 20 Jan 2009 15:48:55 +0100 Message-ID: <4975E457.20502@inria.fr> References: <4975AE2F.6090409@inria.fr> <20090120110509.GH5147@const.bordeaux.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20090120110509.GH5147@const.bordeaux.inria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Samuel Thibault a =E9crit : > Guillaume Rousse, le Tue 20 Jan 2009 11:57:51 +0100, a =E9crit : >> extra =3D "(hd0,0)/boot/grub/menu.lst" >> >> The messages seems to imply pvgrub expect to read a partition table,=20 >> meaning a whole disk has to be exported to the virtual host, and not a= =20 >> single partition ? >=20 > No, you _told_ it so. Use >=20 > extra =3D "(hd0)/boot/grub/menu.lst" >=20 > if you're giving the partition itself. It seems logic, but doesn't work much better: grubdom> configfile (hd0)/boot/grub/menu.lst Error 17: Cannot mount selected partition The logs doesn't show anything suspect: [2009-01-20 15:41:26 10151] DEBUG (XendDomainInfo:111)=20 XendDomainInfo.create_from_dict({'vcpus_params': {'cap': 0, 'weight':=20 256}, 'PV_args': 'root=3D/dev/sda1 ro xencons=3Dtty console=3Dtty',=20 'features': '', 'cpus': [[]], 'paused': 0, 'domid': 80, 'shutdown': 0,=20 'VCPUs_live': 1, 'PV_bootloader': '', 'actions_after_crash': 'restart',=20 'vbd_refs': ['1e3f126f-66ac-3ea0-e0f2-6170332fd590'], 'PV_ramdisk': '',=20 'is_control_domain': False, 'name_label': 'cendrillon',=20 'VCPUs_at_startup': 1, 'HVM_boot_params': {}, 'platform': {},=20 'PV_kernel': '/usr/lib/xen/boot/pv-grub-x86_64.gz', 'console_refs':=20 ['1a37ba6d-3385-1eaa-90ea-89fafba823a3'], 'online_vcpus': 1, 'blocked':=20 0, 'on_xend_stop': 'ignore', 'memory_static_min': 0, 'HVM_boot_policy':=20 '', 'shutdown_reason': 3, 'VCPUs_max': 1, 'start_time':=20 1232462393.5077569, 'memory_static_max': 1073741824,=20 'actions_after_shutdown': 'destroy', 'on_xend_start': 'ignore',=20 'crashed': 0, 'memory_dynamic_max': 536870912, 'actions_after_suspend':=20 '', 'is_a_template': False, 'PV_bootloader_args': '',=20 'memory_dynamic_min': 536870912, 'uuid':=20 '46b9ff12-7ceb-4139-bbff-47117e650f25', 'cpu_time': 89.821253213999995,=20 'shadow_memory': 0, 'dying': 0, 'vcpu_avail': 1, 'notes': {},=20 'other_config': {}, 'running': 0, 'actions_after_reboot': 'restart',=20 'vif_refs': ['ed147c84-d62c-255e-19b4-1f64a4fe8de4'], 'target': 0,=20 'vtpm_refs': [], 'devices': {'1e3f126f-66ac-3ea0-e0f2-6170332fd590':=20 ('vbd', {'uuid': '1e3f126f-66ac-3ea0-e0f2-6170332fd590', 'bootable': 1,=20 'devid': 2049, 'driver': 'paravirtualised', 'dev': 'sda1', 'uname':=20 'phy:/dev/iscsi/sn.101200926/lun9/part1', 'mode': 'w'}),=20 'ed147c84-d62c-255e-19b4-1f64a4fe8de4': ('vif', {'bridge':=20 'hebergement', 'mac': '00:16:3e:00:00:1a', 'devid': 0, 'uuid':=20 'ed147c84-d62c-255e-19b4-1f64a4fe8de4'}),=20 '1a37ba6d-3385-1eaa-90ea-89fafba823a3': ('console', {'other_config': {},=20 'protocol': 'vt100', 'uuid': '1a37ba6d-3385-1eaa-90ea-89fafba823a3',=20 'location': '2'})}}) [2009-01-20 15:41:26 10151] DEBUG (XendDomainInfo:2028)=20 XendDomainInfo.constructDomain [2009-01-20 15:41:26 10151] DEBUG (balloon:132) Balloon: 559836 KiB=20 free; need 2048; done. [2009-01-20 15:41:26 10151] DEBUG (XendDomain:447) Adding Domain: 81 [2009-01-20 15:41:26 10151] DEBUG (XendDomainInfo:2134)=20 XendDomainInfo.initDomain: 81 256 [2009-01-20 15:41:26 10151] DEBUG (XendDomainInfo:2215)=20 _initDomain:shadow_memory=3D0x0, memory_static_max=3D0x40000000,=20 memory_static_min=3D0x0. [2009-01-20 15:41:26 10151] DEBUG (balloon:132) Balloon: 559828 KiB=20 free; need 528384; done. [2009-01-20 15:41:26 10151] INFO (image:166) buildDomain os=3Dlinux dom=3D= 81=20 vcpus=3D1 [2009-01-20 15:41:26 10151] DEBUG (image:631) domid =3D 81 [2009-01-20 15:41:26 10151] DEBUG (image:632) memsize =3D 512 [2009-01-20 15:41:26 10151] DEBUG (image:633) image =3D=20 /usr/lib/xen/boot/pv-grub-x86_64.gz [2009-01-20 15:41:26 10151] DEBUG (image:634) store_evtchn =3D 1 [2009-01-20 15:41:26 10151] DEBUG (image:635) console_evtchn =3D 2 [2009-01-20 15:41:26 10151] DEBUG (image:636) cmdline =3D=20 root=3D/dev/sda1 ro xencons=3Dtty console=3Dtty [2009-01-20 15:41:26 10151] DEBUG (image:637) ramdisk =3D [2009-01-20 15:41:26 10151] DEBUG (image:638) vcpus =3D 1 [2009-01-20 15:41:26 10151] DEBUG (image:639) features =3D [2009-01-20 15:41:26 10151] INFO (XendDomainInfo:1900) createDevice:=20 console : {'other_config': {}, 'protocol': 'vt100', 'uuid':=20 '1a37ba6d-3385-1eaa-90ea-89fafba823a3', 'location': '2'} [2009-01-20 15:41:26 10151] DEBUG (DevController:122) DevController:=20 writing {'protocol': 'x86_64-abi', 'state': '1', 'backend-id': '0',=20 'backend': '/local/domain/0/backend/console/81/0'} to=20 /local/domain/81/device/console/0. [2009-01-20 15:41:26 10151] DEBUG (DevController:124) DevController:=20 writing {'domain': 'cendrillon', 'frontend':=20 '/local/domain/81/device/console/0', 'uuid':=20 '1a37ba6d-3385-1eaa-90ea-89fafba823a3', 'frontend-id': '81', 'state':=20 '1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to=20 /local/domain/0/backend/console/81/0. [2009-01-20 15:41:26 10151] INFO (XendDomainInfo:1900) createDevice: vbd=20 : {'uuid': '1e3f126f-66ac-3ea0-e0f2-6170332fd590', 'bootable': 1,=20 'devid': 2049, 'driver': 'paravirtualised', 'dev': 'sda1', 'uname':=20 'phy:/dev/iscsi/sn.101200926/lun9/part1', 'mode': 'w'} [2009-01-20 15:41:26 10151] DEBUG (DevController:122) DevController:=20 writing {'virtual-device': '2049', 'device-type': 'disk', 'protocol':=20 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend':=20 '/local/domain/0/backend/vbd/81/2049'} to /local/domain/81/device/vbd/204= 9. [2009-01-20 15:41:26 10151] DEBUG (DevController:124) DevController:=20 writing {'domain': 'cendrillon', 'frontend':=20 '/local/domain/81/device/vbd/2049', 'uuid':=20 '1e3f126f-66ac-3ea0-e0f2-6170332fd590', 'dev': 'sda1', 'state': '1',=20 'params': '/dev/iscsi/sn.101200926/lun9/part1', 'mode': 'w', 'online':=20 '1', 'frontend-id': '81', 'type': 'phy'} to=20 /local/domain/0/backend/vbd/81/2049. [2009-01-20 15:41:26 10151] INFO (XendDomainInfo:1900) createDevice: vif=20 : {'bridge': 'hebergement', 'mac': '00:16:3e:00:00:1a', 'devid': 0,=20 'uuid': 'ed147c84-d62c-255e-19b4-1f64a4fe8de4'} [2009-01-20 15:41:26 10151] DEBUG (DevController:122) DevController:=20 writing {'mac': '00:16:3e:00:00:1a', 'handle': '0', 'protocol':=20 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend':=20 '/local/domain/0/backend/vif/81/0'} to /local/domain/81/device/vif/0. [2009-01-20 15:41:26 10151] DEBUG (DevController:124) DevController:=20 writing {'bridge': 'hebergement', 'domain': 'cendrillon', 'handle': '0',=20 'uuid': 'ed147c84-d62c-255e-19b4-1f64a4fe8de4', 'script':=20 '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:00:00:1a',=20 'frontend-id': '81', 'state': '1', 'online': '1', 'frontend':=20 '/local/domain/81/device/vif/0'} to /local/domain/0/backend/vif/81/0. [2009-01-20 15:41:26 10151] DEBUG (XendDomainInfo:2729) Storing VM=20 details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid':=20 '46b9ff12-7ceb-4139-bbff-47117e650f25', 'on_reboot': 'restart',=20 'start_time': '1232462486.58', 'on_poweroff': 'destroy',=20 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count':=20 '0', 'vcpus': '1', 'vcpu_avail': '1', 'image': "(linux (kernel=20 /usr/lib/xen/boot/pv-grub-x86_64.gz) (args 'root=3D/dev/sda1 ro=20 xencons=3Dtty console=3Dtty') (notes))", 'name': 'cendrillon'} [2009-01-20 15:41:26 10151] DEBUG (XendDomainInfo:1359) Storing domain=20 details: {'console/ring-ref': '3844027', 'console/port': '2', 'name':=20 'cendrillon', 'console/limit': '1048576', 'vm':=20 '/vm/46b9ff12-7ceb-4139-bbff-47117e650f25', 'domid': '81', 'store/port':=20 '1', 'cpu/0/availability': 'online', 'memory/target': '524288',=20 'control/platform-feature-multiprocessor-suspend': '1',=20 'store/ring-ref': '3557963', 'console/type': 'xenconsoled'} [2009-01-20 15:41:26 10151] DEBUG (DevController:155) Waiting for=20 devices vif. [2009-01-20 15:41:26 10151] DEBUG (XendDomainInfo:1443)=20 XendDomainInfo.handleShutdownWatch [2009-01-20 15:41:26 10151] DEBUG (DevController:160) Waiting for 0. [2009-01-20 15:41:26 10151] DEBUG (DevController:645)=20 hotplugStatusCallback /local/domain/0/backend/vif/81/0/hotplug-status. [2009-01-20 15:41:26 10151] DEBUG (DevController:659)=20 hotplugStatusCallback 1. [2009-01-20 15:41:27 10151] DEBUG (DevController:155) Waiting for=20 devices vscsi. [2009-01-20 15:41:27 10151] DEBUG (DevController:155) Waiting for=20 devices vbd. [2009-01-20 15:41:27 10151] DEBUG (DevController:160) Waiting for 2049. [2009-01-20 15:41:27 10151] DEBUG (DevController:645)=20 hotplugStatusCallback /local/domain/0/backend/vbd/81/2049/hotplug-status. [2009-01-20 15:41:27 10151] DEBUG (DevController:659)=20 hotplugStatusCallback 1. [2009-01-20 15:41:27 10151] DEBUG (DevController:155) Waiting for=20 devices irq. [2009-01-20 15:41:27 10151] DEBUG (DevController:155) Waiting for=20 devices vkbd. [2009-01-20 15:41:27 10151] DEBUG (DevController:155) Waiting for=20 devices vfb. [2009-01-20 15:41:27 10151] DEBUG (DevController:155) Waiting for=20 devices console. And I can mount the partition from dom0 without problem. I have to check=20 if ext3 support is not missing from pvgrub, but it's statically build,=20 and I don't find any runtime-option for this, so I guess I have to check=20 build logs. --=20 Guillaume Rousse Service des Moyens Informatiques INRIA Saclay - Ile de France Tel: 01 69 35 69 62