Following a Xen tutorial but can''t get the VM (PV Squeeze) running. After doing: # xm create -c /etc/xen/tutorial-pv-guest.cfg The prompt just sits there. Opening another terminal: # xm list /usr/lib/python2.7/dist-packages Name ID Mem VCPUs State Time(s) Domain-0 0 7199 4 r----- 40.6 tutorial-pv-guest 1 512 0 --p--- 0.0 I''m using Ubuntu 12.04 (64bit) and got Xen built from source using the "make world" instructions. Not sure what information to provide so I pasted a few logs on pastebin. http://pastebin.com/jwjBFnhE xend log http://pastebin.com/4Bv2EKGK pv creation log http://pastebin.com/73eaFs6m xen-tools-conf Hope this is a simple problem...
On Thu, Sep 13, 2012 at 5:23 AM, Skippy VonDrake <skippyvondrake@gmail.com> wrote:> Following a Xen tutorial but can''t get the VM (PV Squeeze) running. > > After doing: > # xm create -c /etc/xen/tutorial-pv-guest.cfg > > The prompt just sits there. > Opening another terminal: > > # xm list > /usr/lib/python2.7/dist-packages > Name ID Mem VCPUs State Time(s) > Domain-0 0 7199 4 r----- 40.6 > tutorial-pv-guest 1 512 0 --p--- 0.0 > > I''m using Ubuntu 12.04 (64bit) and got Xen built from source using > the "make world" instructions. > Not sure what information to provide so I pasted a few logs on pastebin. > > http://pastebin.com/jwjBFnhE xend log[2012-09-12 17:32:48 2533] DEBUG (XendBootloader:113) Launching bootloader as [''/usr/bin/pygrub'', ''--args=root=/dev/xvda2 ro '', ''--output=/var/run/xend/boot/xenbl.748'', ''/dev/vg0/tutorial-pv-guest-disk'']. That looks wrong. pygrub shouldn''t need any "args", Try commenting-out whatever line in "/etc/xen/tutorial-pv-guest.cfg" that has a "root=/dev/xvda2 ro" in it. Also, what happens when you run "pygrub -i /dev/vg0/tutorial-pv-guest-disk" manually? -- Fajar
Much thanks, Fajar! Your suggestion for the "manual" launch helped me solve this. After attempting that launch I got python related errors. Before doing the "make world" I''d installed python from source - with limited success. But that was a mistake for it mucked up the Xen setup. I had Python in /usr/lib AND in /usr/local/lib. Same version of Python (2.7.3). The xen scripts were located in directories based off the /usr/lib python install. So I had previously done some tweaking to get xen to use THAT python. Obviously I hadn''t done enough. So long story short - I changed/created sym links from the /usr/local python install to the other. Forcing everything to use the right one. For others that may have run into this - previously I noticed that ''site-packages'' (where the xen scripts were installed) was not included in the sys.path. Only ''dist-packages''. (Which I believe was based on some new Ubuntu model). But since that is where the xen stuff was put - I used ''sitecustomize.py'' to append the ''site-packages'' dir to Python''s sys.path. The VM is now running and accessible. Thanks again, Fajar!