Skip to contentSkip to conversation

HVM hypercalls

DISCUSSION Ruslan Nikolaev 2 participants 2 messages Aug 6, 2010 – Aug 9, 2010

lore
Share & tools
lore
#0 lore raw

I tried these configs. The same result - it does not find root device.

However, if I disable 'CONFIG_XEN_PLATFORM_PCI', everything works. I can see my disk as /dev/sda.

If CONFIG_XEN_PLATFORM_PCI is enabled (by default), virtual ATA device appears, I can see GRUB, load the kernel. But when kernel tries to mount root device, it cannot find it. There is no /dev/xvda*, no /dev/hda*, no /dev/sda*, nothing! Apparently, it's a problem with actual kernel disk driver (not configuration). I get the same result also if I specify physical device.

Also, I noted weird messages in dom0:
XENBUS: Unable to read cpu state

P.S. For HVM domain I use Ubuntu 9.04

Thanks,
Ruslan.

Quoted 64 lines · Stefano Stabellini

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] HVM hypercalls
To: "Ruslan Nikolaev" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Jeremy Fitzhardinge" <[email protected]>
Date: Thursday, August 5, 2010, 2:31 PM

Quoted 1 line · Ruslan Nikolaev

Yes, I tried this but it does not seem to work. BTW in

paravirtualized mode it works fine, the problem is only with HVM.

Quoted 2 lines

I tried to specify root=/dev/xvda (my disk image has

no partitions, entire disk image is a single file system).

Quoted 1 line

If your disk file represents a single partition and in your pv config file you
have a disk entry like this one:

disk = [ 'file:/home/ruslan/fs1.img,xvda1,w' ]

then your disk is not going to work in HVM mode. Qemu must be able to handle your disk otherwise the bootloader won't be
able to boot your kernel.

Quoted 1 line

My config is (I also tried to comment out device model

but it does not help):

Quoted 8 lines

import os, re
arch = os.uname()[4]
if re.search('64', arch):
     arch_libdir = 'lib64'
else:
     arch_libdir = 'lib'

remove this part if you are using xl

Quoted 10 lines

kernel = "/usr/lib/xen/boot/hvmloader"

builder='hvm'

vcpus=1

memory = 1024
shadow_memory = 8
name = "xenhvm1"
disk = [ 'file:/home/ruslan/fs1.img,xvda,w' ]

Even though xvda is currently supported it would be better to specify
hda here if you only have one disk, because you need at least an IDE
interface to boot.

Quoted 1 line

device_model = '/usr/' + arch_libdir +

'/xen/bin/qemu-dm'

device_model='qemu-dm' especially if you are using xl

#1 lore raw
Quoted 9 lines · Ruslan Nikolaev

I tried these configs. The same result - it does not find root device.

However, if I disable 'CONFIG_XEN_PLATFORM_PCI', everything works. I can see my disk as /dev/sda.

If CONFIG_XEN_PLATFORM_PCI is enabled (by default), virtual ATA device appears, I can see GRUB, load the kernel. But when kernel tries to mount root device, it cannot find it. There is no /dev/xvda*, no /dev/hda*, no /dev/sda*, nothing! Apparently, it's a problem with actual kernel disk driver (not configuration). I get the same result also if I specify physical device.

Also, I noted weird messages in dom0:
XENBUS: Unable to read cpu state

The disk might appear with a name starting with xvd but different from xvda. Do you have any xvd devices at all?