Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Community

trouble launching vm's

 

 

Xen community RSS feed   Index | Next | Previous | View Threaded


bluethundr at gmail

Aug 14, 2010, 8:05 PM

Post #1 of 3 (3353 views)
Permalink
trouble launching vm's

Hello,

I must be missing something very very basic. Because I am having
trouble launching some vm's that I recently built whereas I don't have
any problem at all launching some older images I made in very much the
same way!

First there is vm01 which works just fine:

[root [at] lcent5-:/etc/xen]$:xm create vm01
Using config file "./vm01".
Started domain vm01
[root [at] lcent5-:/etc/xen]$:


And here is the conf file for vm01:

name = "vm01"
uuid = "4d996e30-dbce-4717-dbc6-8fa149ddf96b"
maxmem = 256
memory = 256
vcpus = 1
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
disk = [ "tap:aio:/vm/vm01.img,xvda,w" ]
vif = [ "mac=00:16:36:3a:88:ae,bridge=xenbr0,script=vif-bridge" ]


So far so good!

But when I try to launch vm05 this is what I get:

[root [at] lcent5-:/etc/xen]$:xm create vm05
Using config file "./vm05".
Traceback (most recent call last):
File "/usr/bin/pygrub", line 682, in ?
chosencfg = run_grub(file, entry, fs)
File "/usr/bin/pygrub", line 536, in run_grub
g = Grub(file, fs)
File "/usr/bin/pygrub", line 203, in __init__
self.read_config(file, fs)
File "/usr/bin/pygrub", line 397, in read_config
raise RuntimeError, "couldn't find bootloader config file in the
image provided."
RuntimeError: couldn't find bootloader config file in the image provided.
No handlers could be found for logger "xend"
Error: Boot loader didn't return any data!
Usage: xm create <ConfigFile> [options] [vars]

Create a domain based on <ConfigFile>.

Options:

Then it lists some help options.

I can't quite figure out why the second and subsuquent vm's won't
launch, because as I said they were built in exacltly the same way!

Here is the conf file for vm05:

name = "vm05"
uuid = "6830ef63-88e9-69f4-be44-7a71efd4dfa4"
maxmem = 256
memory = 256
vcpus = 1
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
disk = [ "tap:aio:/vm/vm05.img,xvda,w" ]
vif = [ "mac=00:16:36:2a:0d:dd,bridge=xenbr0,script=vif-bridge" ]


The only difference I can tell between the two is the name of the
vm's. Can someone please let me know how to proceed to get vm05 and
the others (which have a similar problem) launched?


Thanks!
Tim

_______________________________________________
Xen-community mailing list
Xen-community [at] lists
http://lists.xensource.com/mailman/listinfo/xen-community


deshantm at gmail

Aug 14, 2010, 9:13 PM

Post #2 of 3 (3231 views)
Permalink
Re: trouble launching vm's [In reply to]

Hello Tim,

Moving this conversation to xen-users...

Some comments inline.

On Sat, Aug 14, 2010 at 11:05 PM, Tim Dunphy <bluethundr [at] gmail> wrote:
>
> Hello,
>
> I must be missing something very very basic. Because I am having
> trouble launching some vm's that I recently built whereas I don't have
> any problem at all launching some older images I made in very much the
> same way!
>
> First there is vm01 which works just fine:
>
> [root [at] lcent5-:/etc/xen]$:xm create vm01
> Using config file "./vm01".
> Started domain vm01
> [root [at] lcent5-:/etc/xen]$:
>
>
> And here is the conf file for vm01:
>
> name = "vm01"
> uuid = "4d996e30-dbce-4717-dbc6-8fa149ddf96b"
> maxmem = 256
> memory = 256
> vcpus = 1
> bootloader = "/usr/bin/pygrub"
> on_poweroff = "destroy"
> on_reboot = "restart"
> on_crash = "restart"
> disk = [ "tap:aio:/vm/vm01.img,xvda,w" ]
> vif = [ "mac=00:16:36:3a:88:ae,bridge=xenbr0,script=vif-bridge" ]
>
>
> So far so good!
>
> But when I try to launch vm05 this is what I get:
>
> [root [at] lcent5-:/etc/xen]$:xm create vm05
> Using config file "./vm05".
> Traceback (most recent call last):
> File "/usr/bin/pygrub", line 682, in ?
> chosencfg = run_grub(file, entry, fs)
> File "/usr/bin/pygrub", line 536, in run_grub
> g = Grub(file, fs)
> File "/usr/bin/pygrub", line 203, in __init__
> self.read_config(file, fs)
> File "/usr/bin/pygrub", line 397, in read_config
> raise RuntimeError, "couldn't find bootloader config file in the
> image provided."
> RuntimeError: couldn't find bootloader config file in the image provided.
> No handlers could be found for logger "xend"
> Error: Boot loader didn't return any data!
> Usage: xm create <ConfigFile> [options] [vars]
>
> Create a domain based on <ConfigFile>.
>
> Options:
>
> Then it lists some help options.
>
> I can't quite figure out why the second and subsuquent vm's won't
> launch, because as I said they were built in exacltly the same way!
>

try running pygrub /vm/vm05.img

see if it spits out a similar error.

Another thing to try is mount the vm05.img to make sure it contains a
grub config file in / or /boot of that disk image.

Hope that helps.

Todd

> Here is the conf file for vm05:
>
> name = "vm05"
> uuid = "6830ef63-88e9-69f4-be44-7a71efd4dfa4"
> maxmem = 256
> memory = 256
> vcpus = 1
> bootloader = "/usr/bin/pygrub"
> on_poweroff = "destroy"
> on_reboot = "restart"
> on_crash = "restart"
> vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
> disk = [ "tap:aio:/vm/vm05.img,xvda,w" ]
> vif = [ "mac=00:16:36:2a:0d:dd,bridge=xenbr0,script=vif-bridge" ]
>
>
> The only difference I can tell between the two is the name of the
> vm's. Can someone please let me know how to proceed to get vm05 and
> the others (which have a similar problem) launched?
>
>
> Thanks!
> Tim
>
> _______________________________________________
> Xen-community mailing list
> Xen-community [at] lists
> http://lists.xensource.com/mailman/listinfo/xen-community

_______________________________________________
Xen-community mailing list
Xen-community [at] lists
http://lists.xensource.com/mailman/listinfo/xen-community


george.shuklin at gmail

Aug 15, 2010, 4:11 AM

Post #3 of 3 (3235 views)
Permalink
Re: trouble launching vm's [In reply to]

As I can see from error message, your VM (#1) have
no /boot/grub/menu.lst. I think, you can or install kernel/grub/modules
to guest machine by mounting it and chroot'ing, or (I think, this is
more easy) - use external kernel/initrd files.

В Сбт, 14/08/2010 в 23:05 -0400, Tim Dunphy пишет:
> Hello,
>
> I must be missing something very very basic. Because I am having
> trouble launching some vm's that I recently built whereas I don't have
> any problem at all launching some older images I made in very much the
> same way!
>
> First there is vm01 which works just fine:
>
> [root [at] lcent5-:/etc/xen]$:xm create vm01
> Using config file "./vm01".
> Started domain vm01
> [root [at] lcent5-:/etc/xen]$:
>
>
> And here is the conf file for vm01:
>
> name = "vm01"
> uuid = "4d996e30-dbce-4717-dbc6-8fa149ddf96b"
> maxmem = 256
> memory = 256
> vcpus = 1
> bootloader = "/usr/bin/pygrub"
> on_poweroff = "destroy"
> on_reboot = "restart"
> on_crash = "restart"
> disk = [ "tap:aio:/vm/vm01.img,xvda,w" ]
> vif = [ "mac=00:16:36:3a:88:ae,bridge=xenbr0,script=vif-bridge" ]
>
>
> So far so good!
>
> But when I try to launch vm05 this is what I get:
>
> [root [at] lcent5-:/etc/xen]$:xm create vm05
> Using config file "./vm05".
> Traceback (most recent call last):
> File "/usr/bin/pygrub", line 682, in ?
> chosencfg = run_grub(file, entry, fs)
> File "/usr/bin/pygrub", line 536, in run_grub
> g = Grub(file, fs)
> File "/usr/bin/pygrub", line 203, in __init__
> self.read_config(file, fs)
> File "/usr/bin/pygrub", line 397, in read_config
> raise RuntimeError, "couldn't find bootloader config file in the
> image provided."
> RuntimeError: couldn't find bootloader config file in the image provided.
> No handlers could be found for logger "xend"
> Error: Boot loader didn't return any data!
> Usage: xm create <ConfigFile> [options] [vars]
>
> Create a domain based on <ConfigFile>.
>
> Options:
>
> Then it lists some help options.
>
> I can't quite figure out why the second and subsuquent vm's won't
> launch, because as I said they were built in exacltly the same way!
>
> Here is the conf file for vm05:
>
> name = "vm05"
> uuid = "6830ef63-88e9-69f4-be44-7a71efd4dfa4"
> maxmem = 256
> memory = 256
> vcpus = 1
> bootloader = "/usr/bin/pygrub"
> on_poweroff = "destroy"
> on_reboot = "restart"
> on_crash = "restart"
> vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
> disk = [ "tap:aio:/vm/vm05.img,xvda,w" ]
> vif = [ "mac=00:16:36:2a:0d:dd,bridge=xenbr0,script=vif-bridge" ]
>
>
> The only difference I can tell between the two is the name of the
> vm's. Can someone please let me know how to proceed to get vm05 and
> the others (which have a similar problem) launched?
>
>
> Thanks!
> Tim
>
> _______________________________________________
> Xen-community mailing list
> Xen-community [at] lists
> http://lists.xensource.com/mailman/listinfo/xen-community



_______________________________________________
Xen-community mailing list
Xen-community [at] lists
http://lists.xensource.com/mailman/listinfo/xen-community

Xen community RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.