From: Jean Guyader Subject: Re: [XCI] set up a paravirtualized VM Date: Thu, 30 Jul 2009 12:13:57 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kornelius Prell Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 2009/7/30 Kornelius Prell : > Hello, > > in the last days=A0I've built Xenclient and successfully created a Window= s VM > according to > Takas mail here: > http://lists.xensource.com/archives/html/xen-users/2009-06/msg00276.html > > Now I was wondering what it takes to set up a paravirtualized VM in > Xenclient. > I tried to boot my Debian=A0Lenny=A0system (with Xen=A0[2.6.26-1-xen-686]= kernel / > initrd and Xenclient kernel / initramfs) as a pv VM without much success. > It is initalised in paused state and unpausing it won't help (it gets int= o > running state but top shows=A0completly idle CPU). > > I cannot find any error in the /tmp/xenvm-debug logfile so far: > [20090729 06:27:40.956|info|xenvm] stale socket left by previous xenvm. > removing > [20090729 06:27:40.957|info|vmact] sending notification ping > [20090729 06:27:40.957|debug|xenops] Regenerating the xenstored tree unde= r: > [/local/domain/5] > [20090729 06:27:40.962|debug|xenops] Created domain with id: 5 > [20090729 06:27:40.962|info|vmact] sending notification vm:state:created > [20090729 06:27:40.980|debug|xenops] build_pre domid=3D5; mem=3D1048576 K= iB; > shadow=3D0 KiB (0 MiB); video=3D0 KiB > [20090729 06:27:40.980|debug|xenguesthelper] connect: args =3D [ -mode > linux_build -domid 5 -memsize 1024 -image /boot/vmlinuz -ramdisk > /boot/initramfs.gz -cmdline root=3D/dev/sda1 ro -features=A0 -flags 0 > -store_port 1 -console_port 2 -fork true ] > [20090729 06:27:41.276|debug|xenops] Read [910778 910777 ] > [20090729 06:27:41.280|debug|xenops] Device.Vbd.add (virtpath=3Dhda | > physpath=3D/dev/sda | phystype=3Dphys) > [20090729 06:27:41.280|debug|xenops] adding device > B0[/local/domain/0/backend/vbd/5/768]=A0 F5[/local/domain/5/device/vbd/76= 8] > H[/xapi/5/hotplug/vbd/768] > [20090729 06:27:41.290|debug|hotplug] Hotplug.wait_for_plug: frontend > (domid=3D5 | kind=3Dvbd | devid=3D768); backend (domid=3D0 | kind=3Dvbd |= devid=3D768) > [20090729 06:27:41.290|debug|xenops] watch: watching xenstore paths: [ > /xapi/5/hotplug/vbd/768/hotplug ] with timeout 1200.000000 seconds > [20090729 06:27:41.291|debug|xenops] watch: fired on > /xapi/5/hotplug/vbd/768/hotplug > [20090729 06:27:41.401|debug|xenops] watch: fired on > /xapi/5/hotplug/vbd/768/hotplug > [20090729 06:27:41.401|debug|xenops] watch: value has appeared: > /xapi/5/hotplug/vbd/768/hotplug =3D online > [20090729 06:27:41.401|debug|xenops] watch: Successfully finished watchin= g > xenstore after 0.110453 seconds > [20090729 06:27:41.401|debug|hotplug] Synchronised ok with hotplug script= : > frontend (domid=3D5 | kind=3Dvbd | devid=3D768); backend (domid=3D0 | kin= d=3Dvbd | > devid=3D768) > [20090729 06:27:41.401|debug|xenops] Device.Vif.add domid=3D5 devid=3D-1 > mac=3D22:7f:83:17:25:db rate=3Dnone > [20090729 06:27:41.401|debug|xenops] adding device > B0[/local/domain/0/backend/vif/5/-1]=A0 F5[/local/domain/5/device/vif/-1] > H[/xapi/5/hotplug/vif/-1] > [20090729 06:27:41.407|debug|hotplug] Hotplug.wait_for_plug: frontend > (domid=3D5 | kind=3Dvif | devid=3D-1); backend (domid=3D0 | kind=3Dvif | = devid=3D-1) > [20090729 06:27:41.408|debug|xenops] watch: watching xenstore paths: [ > /xapi/5/hotplug/vif/-1/hotplug ] with timeout 1200.000000 seconds > [20090729 06:27:41.408|debug|xenops] watch: fired on > /xapi/5/hotplug/vif/-1/hotplug > [20090729 06:27:41.551|debug|xenops] watch: fired on > /xapi/5/hotplug/vif/-1/hotplug > [20090729 06:27:41.552|debug|xenops] watch: value has appeared: > /xapi/5/hotplug/vif/-1/hotplug =3D online > [20090729 06:27:41.552|debug|xenops] watch: Successfully finished watchin= g > xenstore after 0.144395 seconds > [20090729 06:27:41.552|debug|hotplug] Synchronised ok with hotplug script= : > frontend (domid=3D5 | kind=3Dvif | devid=3D-1); backend (domid=3D0 | kind= =3Dvif | > devid=3D-1) > [20090729 06:27:41.552|debug|netman] Adding vif5.429496729 to bridge xenb= r0 > [20090729 06:27:41.556|debug|xenops] Executing [ > /opt/xensource/libexec/closeandexec -- > /opt/xensource/libexec/vncterm-wrapper 5 -x /local/domain/5/serial/0 ] > [20090729 06:27:41.558|debug|xenops] watch: watching xenstore paths: [ > /local/domain/5/serial/0/vnc-port ] with timeout 1200.000000 seconds > [20090729 06:27:41.559|debug|xenops] watch: fired on > /local/domain/5/serial/0/vnc-port > > Here is the VM config file: > uuid =3D 01000000-0000-0000-0000-102130000014 > hvm =3D false > memory =3D 1024 > debug =3D true > kernel =3D /boot/vmlinuz > initrd =3D /boot/initramfs.gz > disk =3D /dev/sda:phy:hda:w:disk > cmdline =3D root=3D/dev/sda1 ro > boot =3D c > vif =3D bridge=3Dxenbr0 > > Is there a possibility to fetch the log of the boot process of a > paravirtualised guest VM? > Hi, You need to start xenconsoled -i &, then reboot your guest and you should be able to get to the console using /usr/lib/xen/bin/xenconsole Jean