Greg,
it looks like your config file is either not matching all quotes properly or the
sxp parser cannot parse multi-line stmts properly. Did you try to
make that disk stmt a one liner ? I am assuming that the two dashes in front of
the name assignment are not actually in your config file.
>________________________________
> From: Greg Treantos <gtreanto@gmail.com>
>To: xen-users@lists.xen.org
>Sent: Thursday, October 18, 2012 11:00 AM
>Subject: [Xen-users] domU configuration file
>
>
>I was having issues starting a vm using opensuse11. I ended up running xm
del <domU>. I then tried to import a config file using xm new -F
<domU_config_file> and get this error
>
>
>Unexpected error: <class ''xen.xend.sxp.ParseError''>
>
>
>Please report to xen-devel@lists.xensource.com
>Traceback (most recent call last):
> File "/usr/sbin/xm", line 10, in <module>
> main.main(sys.argv)
> File "/usr/lib/python2.6/site-packages/xen/xm/main.py", line
2967, in main
> _, rc = _run_cmd(cmd, cmd_name, args)
> File "/usr/lib/python2.6/site-packages/xen/xm/main.py", line
2991, in _run_cmd
> return True, cmd(args)
> File "<string>", line 1, in <lambda>
> File "/usr/lib/python2.6/site-packages/xen/xm/main.py", line
1451, in xm_importcommand
> cmd.main([command] + args)
> File "/usr/lib/python2.6/site-packages/xen/xm/new.py", line 65,
in main
> config = sxp.parse(file(config))[0]
> File "/usr/lib/python2.6/site-packages/xen/xend/sxp.py", line
740, in parse
> pin.input(buf)
> File "/usr/lib/python2.6/site-packages/xen/xend/sxp.py", line
171, in input
> self.input_eof()
> File "/usr/lib/python2.6/site-packages/xen/xend/sxp.py", line
167, in input_eof
> self.input_char(-1)
> File "/usr/lib/python2.6/site-packages/xen/xend/sxp.py", line
187, in input_char
> self.state.fn(c)
> File "/usr/lib/python2.6/site-packages/xen/xend/sxp.py", line
252, in state_string
> raise ParseError(self, "unexpected EOF")
>xen.xend.sxp.ParseError: unexpected EOF
>
>
>
>
>domU file
>
>
>
>-- name="opensuse11_nas1"
>uuid="94526e6a-3f9e-4adb-a81b-656662a523a8"
>memory=384
>maxmem=384
>vcpus=1
>on_poweroff="destroy"
>on_reboot="restart"
>on_crash="destroy"
>localtime=0
>keymap="en-us"
>builder="linux"
>bootloader="/usr/lib/xen/boot/domUloader.py"
>bootargs="--entry=xvda2:/boot/vmlinuz-xen,/boot/initrd-xen"
>extra=" "
>disk=[ ''file:/vm/vm1/os11_1_nas1,xvda,w'',
>''phy:/dev/disk/by-id/usb-Initio_HD300LD_0010100540000008-0:0,xvdc,w'',
>''phy:/dev/disk/by-id/usb-SAMSUNG_SP2514N_000000000000-0:0,xvdd,w'',
>''phy:/dev/disk/by-id/usb-WDC_WD10_EACS-22D6B0_WDC_WD10EA_WD-WCAU42922319-0:0,xvde,w'',
>''phy:/dev/disk/by-id/b-ST320005_42AS_60434FFFFFFF-0:0,xvdf,w'',
>''phy:/dev/disk/by-id/usb-Hitachi_HDT721010SLA360_502088888888-0:0,xvdg,w'',
>''phy:/dev/disk/by-id/usb-Hitachi_HDS722020ALA330_1131A0888888-0:0,xvdh,w'',
>]
>vif=[ ''mac=00:16:3e:0a:d8:85,bridge=br1'', ]
>vfb=[''type=vnc,vncunused=1'']
>
>
>
>
>
>Greg
>
>http://www.linkedin.com/in/gregtreantos
>
>_______________________________________________
>Xen-users mailing list
>Xen-users@lists.xen.org
>http://lists.xen.org/xen-users
>
>
_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users