Michael Litchard
2008-Aug-23 18:22 UTC
[Xen-devel] Error report from attempt to run an HVM instance
Tried to run an HVM instance, here''s the error report I got. # /usr/pkg/sbin/xm create -c /usr/pkg/share/examples/xen/hvm-netbsd Using config file "/usr/pkg/share/examples/xen/hvm-netbsd". Started domain hvm-netbsd Unexpected error: exceptions.OSError Please report to xen-devel@lists.xensource.com Traceback (most recent call last): File "/usr/pkg/sbin/xm", line 10, in ? main.main(sys.argv) File "/usr/pkg/lib/python2.4/site-packages/xen/xm/main.py", line 2497, in main _, rc = _run_cmd(cmd, cmd_name, args) File "/usr/pkg/lib/python2.4/site-packages/xen/xm/main.py", line 2521, in _run_cmd return True, cmd(args) File "<string>", line 1, in <lambda> File "/usr/pkg/lib/python2.4/site-packages/xen/xm/main.py", line 1299, in xm_importcommand cmd.main([command] + args) File "/usr/pkg/lib/python2.4/site-packages/xen/xm/create.py", line 1298, in main do_console(sxp.child_value(config, ''name'', -1)) File "/usr/pkg/lib/python2.4/site-packages/xen/xm/create.py", line 1323, in do_console (p, rv) = os.waitpid(cpid, os.WNOHANG) OSError: [Errno 10] No child processes kernel = "/usr/pkg/lib/xen/boot/hvmloader" builder=''hvm'' # Initial memory allocation (in megabytes) for the new domain. memory = 256 # A name for your domain. All domains must have different names. name = "hvm-netbsd" #Network interface. By default emules a realtek 8139. For a NetBSD guest you # have to disable re(4) and let rtk attach to use it. # ne2k_pci emulates a pci ne2000 clone; this his cpu-hungry in dom0 # pcnet emulates a AMD PCnet-PCI controller; but it corrupts packets with # pcn(4) under NetBSD. #vif = [ ''mac=00:16:3e:00:00:13, bridge=bridge0, type=ioemu, model=ne2k_pci'' ] #vif = [ ''mac=00:16:3e:00:00:13, bridge=bridge0, type=ioemu, model=pcnet'' ] vif = [ ''mac=00:16:3e:00:00:13, bridge=bridge0, type=ioemu'' ] #---------------------------------------------------------------------------- # device model to use: only qemu-dm available for now device_model = ''/usr/pkg/libexec/qemu-dm'' # Define the disk devices you want the domain to have access to, and # what you want them accessible as. # Each disk entry is of the form phy:UNAME,DEV,MODE # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. # For hvm domains you can only use hda to hdd. You can set extra types # (e.g. cdrom) disk = [ ''file:/sys/domains/domU3/amd64cd.iso,ioemu:hdc:cdrom,r'' ] disk = [''phy:/dev/wd0i,ioemu:hdb,w''] # floppy images; this doesn''t seem to work currently. Use a iso image instead. #fda = ''/home/domains/boot1.fs'' # boot device: a = floppy, c= hard drive, d= cdrom (with the disk entry # before)# for the virtal framebuffer. You can have the virtal framebuffer in vnc # instead, and connect using a vnc client (using localhost:$vncdisplay) # If vncunused is set to 1 (this is the default value), vncdisplay # will be set to the first unused port; so it''s recommended to #vnc = 1 #vncdisplay = 0 #vncunused = 0 #Xen emulates a PS/2 mouse, but the pointer in the guest has difficulties # tracking the absolute position. Xen can emulate a USB tablet in addition # to the mouse which will report the absolute position of the pointer, # and make the mouse much easier to use. # usb=1 usbdevice=''tablet'' #usbdevice=''mouse'' Here''s my kernel info NetBSD logos 4.99.72 NetBSD 4.99.72 (XEN3_DOM0) #0: Sat Aug 9 17:34:05 PDT 2008 builds@wb30:/home/builds/ab/HEAD/amd64/200808090002Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/XEN3_DOM0 amd64 Any feedback helping me troubleshoot this would be appreciate this. Thanks. Michael Litchard _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Michael Litchard
2008-Aug-23 18:53 UTC
[Xen-devel] Re: Error report from attempt to run an HVM instance
I''m not intending to, I used the hvm script that came with pkgsrc. I can''t find any line in the script that suggests trying to connect to a serial console. If there is a line, could you point it out to me? Michael Litchard On Sat, Aug 23, 2008 at 11:41 AM, Manuel Bouyer <bouyer@antioche.eu.org> wrote:> On Sat, Aug 23, 2008 at 11:22:51AM -0700, Michael Litchard wrote: >> Tried to run an HVM instance, here''s the error report I got. >> >> # /usr/pkg/sbin/xm create -c /usr/pkg/share/examples/xen/hvm-netbsd > ^^ >> Using config file "/usr/pkg/share/examples/xen/hvm-netbsd". >> Started domain hvm-netbsd >> Unexpected error: exceptions.OSError >> >> Please report to xen-devel@lists.xensource.com >> Traceback (most recent call last): >> File "/usr/pkg/sbin/xm", line 10, in ? >> main.main(sys.argv) >> File "/usr/pkg/lib/python2.4/site-packages/xen/xm/main.py", line 2497, in main >> _, rc = _run_cmd(cmd, cmd_name, args) >> File "/usr/pkg/lib/python2.4/site-packages/xen/xm/main.py", line >> 2521, in _run_cmd >> return True, cmd(args) >> File "<string>", line 1, in <lambda> >> File "/usr/pkg/lib/python2.4/site-packages/xen/xm/main.py", line >> 1299, in xm_importcommand >> cmd.main([command] + args) >> File "/usr/pkg/lib/python2.4/site-packages/xen/xm/create.py", line >> 1298, in main >> do_console(sxp.child_value(config, ''name'', -1)) >> File "/usr/pkg/lib/python2.4/site-packages/xen/xm/create.py", line >> 1323, in do_console >> (p, rv) = os.waitpid(cpid, os.WNOHANG) >> OSError: [Errno 10] No child processes > > Could it be because you''re trying to connect to a serial console, > while you have none configured ? > > -- > Manuel Bouyer <bouyer@antioche.eu.org> > NetBSD: 26 ans d''experience feront toujours la difference > -- >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Michael Litchard
2008-Aug-24 07:43 UTC
[Xen-devel] Re: Error report from attempt to run an HVM instance
okay the instance is created # /usr/pkg/sbin/xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1024 1 r----- 57.3 hvm-netbsd 1 256 1 r----- 237.2 but when I did a xm create -c I got this error, and again when I tried to attach to the console # /usr/pkg/sbin/xm console hvm-netbsd xenconsole: Could not read tty from store: No such file or directory I''m close. The config file is the same except the changes christoph suggested. What can I do now? On Sat, Aug 23, 2008 at 1:12 PM, Christoph Egger <Christoph_Egger@gmx.de> wrote:> Michael Litchard wrote: >> >> Tried to run an HVM instance, here''s the error report I got. >> > [...] > >> kernel = "/usr/pkg/lib/xen/boot/hvmloader" >> >> builder=''hvm'' >> >> # Initial memory allocation (in megabytes) for the new domain. >> memory = 256 >> >> # A name for your domain. All domains must have different names. >> name = "hvm-netbsd" >> >> #Network interface. By default emules a realtek 8139. For a NetBSD guest >> you >> # have to disable re(4) and let rtk attach to use it. >> # ne2k_pci emulates a pci ne2000 clone; this his cpu-hungry in dom0 >> # pcnet emulates a AMD PCnet-PCI controller; but it corrupts packets with >> # pcn(4) under NetBSD. >> #vif = [ ''mac=00:16:3e:00:00:13, bridge=bridge0, type=ioemu, >> model=ne2k_pci'' ] >> #vif = [ ''mac=00:16:3e:00:00:13, bridge=bridge0, type=ioemu, model=pcnet'' >> ] >> vif = [ ''mac=00:16:3e:00:00:13, bridge=bridge0, type=ioemu'' ] >> >> >> #---------------------------------------------------------------------------- >> # device model to use: only qemu-dm available for now >> device_model = ''/usr/pkg/libexec/qemu-dm'' >> >> # Define the disk devices you want the domain to have access to, and >> # what you want them accessible as. >> # Each disk entry is of the form phy:UNAME,DEV,MODE >> # where UNAME is the device, DEV is the device name the domain will see, >> # and MODE is r for read-only, w for read-write. >> # For hvm domains you can only use hda to hdd. You can set extra types >> # (e.g. cdrom) >> >> disk = [ ''file:/sys/domains/domU3/amd64cd.iso,ioemu:hdc:cdrom,r'' ] >> >> disk = [''phy:/dev/wd0i,ioemu:hdb,w''] > > Replace these two disk lines by this: > > disk = [ ''phy:/dev/wd0i,ioemu:hdb,w'', > ''file:/sys/domains/domU3/amd64cd.iso,ioemu:hdc:cdrom,r'' ] > > Christoph >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson
2008-Aug-26 13:40 UTC
Re: [Xen-devel] Error report from attempt to run an HVM instance
Michael Litchard writes ("[Xen-devel] Error report from attempt to run an HVM instance"):> Tried to run an HVM instance, here''s the error report I got.Can we see your xend.log ? Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel