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-users

RE: [Xen-users] Error starting stubdom HVM on Xen-3.4.3-rc4-pre

To: <andrewe@xxxxxxxxxxxxx>
Subject: RE: [Xen-users] Error starting stubdom HVM on Xen-3.4.3-rc4-pre
From: Mike Viau <viaum@xxxxxxxxxxxxxxx>
Date: Mon, 15 Mar 2010 18:52:44 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 15 Mar 2010 15:54:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <4B9EB460.7080304@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <BAY107-W42294C04A67DEA1445DA32EF330@xxxxxxx>, <4B9EB460.7080304@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, 15 Mar 2010 15:27:44 -0700 andrewe@xxxxxxxxxxxxx wrote:

Hi Mike,

>I've just gone through stubdom initiation myself. Most of my problems were caused by not following stubdom/README (from the Xen source tree) to the letter, and trying to mix and match stub domains and PV on HVM. I am using phy devices (logical volumes) for storage.

I gave up on loop devices as well. I realized that creating logical volumes with lvm2 was just as easy to manage. Just to clarify you used the disk option like:

phy:/full/path/to/dev,DEV,MODE ?

Perhaps you could post a working DomU config???


>You don't say whether you've started fs-backend per the README. That would certainly cause problems trying to create a domain.

Indeed. I created a script to start my domU:

#!/bin/sh

mkdir -p /exports/usr/share/xen/qemu
ln -s /usr/share/xen/qemu/keymaps /exports/usr/share/xen/qemu
mkdir -p /exports/var/lib
ln -s /var/lib/xen /exports/var/lib
/usr/sbin/fs-backend &
xm create (name on domU config)


>I had to build the 2.6.18.8 xen.org dom0 kernel as the RHEL 5 dom0 kernel I normally use doesn't have gntdev, which is necessary for stub domains to work.

This I did not know. May I ask where you acquired this knowledge?

Thanks

-M


>-Andrew

On 03/10/10 06:45, Mike Viau wrote:
Hi there,

Last night I was trying to start a HVM domU via stubdom-dm device model. Initially I did not receive any error to stdout when I did so with Xen-3.4.2.

My Xen-3.4.2 installation works fine with qemu-dm (or regular HVM guests). The stubdom-dm guest I was trying to create did not really operate as I was unable to connect to the VNC console. The output of xm list showed the DomU was there, but it did not show it was actively running, almost like it was pause at 0:00:00.

This morning I installed Xen-3.4.3-rc4-pre with the same domU HVM stubdom configuration and got this message.

localhost:~/XENSTORE/router#xm create router

Using config file "./router".
Error: Device 768 (vbd) could not be connected.
File /root/XENSTORE/router/hd.img is loopback-mounted through /dev/loop1,
which is mounted in a guest domain,
and so cannot be mounted now.

AND

localhost:/var/log/xen# cat qemu-dm-router-dm.log

domid: 2
Warning: vlan 0 is not connected to host network
Watching /local/domain/0/device-model/2/logdirty/next-active
Watching /local/domain/0/device-model/2/command
char device redirected to /dev/pts/2
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/xen_blktap.c:628: Init blktap pipes
bind() failed    <<-- This was also the last line in the log when using Xen-3.4.2


AND


localhost:~/XENSTORE/router# xm info
host                   : localhost.site
release                : 2.6.33-xen
version                : #2 SMP Sat Mar 6 15:26:37 EST 2010
machine                : x86_64
nr_cpus                : 8
nr_nodes               : 1
cores_per_socket       : 4
threads_per_core       : 2
cpu_mhz                : 2800
hw_caps                : bfebfbff:28100800:00000000:00000340:0098e3fd:00000000:00000001:00000000
virt_caps              : hvm
total_memory           : 8182
free_memory            : 7061
node_to_cpu            : node0:0-7
node_to_memory         : node0:7061
xen_major              : 3
xen_minor              : 4
xen_extra              : .3-rc4-pre
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : Tue Mar 09 18:15:52 2010 +0000 19924:6e72f8c3c017
cc_compiler            : gcc version 4.3.2 (Debian 4.3.2-1.1)
cc_compile_by          : root
cc_compile_domain      : site
cc_compile_date        : Wed Mar 10 08:46:50 EST 2010
xend_config_format     : 4


AND the configuration file


kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 1024
name = "router"
vcpus=1
pae=1
acpi=1
apic=1
vif = [ 'type=ioemu, mac=00:16:3e:11:11:01, bridge=br100',
        'type=ioemu, mac=00:16:3e:11:11:02, bridge=br101',
        'type=ioemu, mac=00:16:3e:11:11:03, bridge=br200',
        'type=ioemu, mac=00:16:3e:11:11:04, bridge=br300',
        'type=ioemu, mac=00:16:3e:11:11:05, bridge=br400' ]
disk = [ 'file:/root/XENSTORE/router/hd.img,hda,w',
         'file:/root/XENSTORE/router/pfSense-1.2.3-RELEASE-LiveCD-Installer.iso,
hdc:cdrom,r' ]
device_model = '/usr/lib/xen/bin/stubdom-dm'
boot="cda"
sdl=0
opengl=1
vnc=1
vnclisten="10.254.2.81"
vncdisplay=0
vncunused=0
vncpasswd='router'
stdvga=0


LASTLY the router-dm file

#This file is autogenerated, edit router instead!
kernel = '/usr/lib/xen/boot/ioemu-stubdom.gz'
vfb = ['sdl=0, opengl=1, xauthority=/root/.Xauthority, vnc=1, vncdisplay=0, vnclisten=10.254.2.81, vncunused=0, vncpasswd=router']
disk = [ 'file:/root/XENSTORE/router/hd.img,hda:disk,w','file:/root/XENSTORE/router/pfSense-1.2.3-RELEASE-LiveCD-Installer.iso,hdc:cdrom,r' ]
vif = [ 'mac=00:16:3e:11:11:01,bridge=br100','mac=00:16:3e:11:11:02,bridge=br101','mac=00:16:3e:11:11:03,bridge=br200','mac=00:16:3e:11:11:04,bridge=br300','mac=00:16:3e:11:11:05,bridge=br400' ]



Can someone suggest what I might have done wrong, thanks!


-M



Live connected with Messenger on your phone Learn more.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users



Live connected with Messenger on your phone Learn more.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users