[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] domU configuration file


  • To: Greg Treantos <gtreanto@xxxxxxxxx>, "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>
  • From: Matthias Blankenhaus <matthiasblankenhaus@xxxxxxxxx>
  • Date: Sun, 21 Oct 2012 20:49:16 -0700 (PDT)
  • Delivery-date: Mon, 22 Oct 2012 03:51:06 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=xh2wehZBEFFjdMWBRKae8AF9TCci+HH+3I6Hf5O1AcjLpVywJqYkIUwEx7GZ/cq+zMTEBic6kCYQlzu8KLjlDD9qKvPjMCX2UOuiLI9DcAECM7FAfgHOFNCgSaWPeQmHpFf0WFLSI3/K4a0Or4UiIvygTs75GNa2Mx+pB/GOTto=;
  • List-id: Xen user discussion <xen-users.lists.xen.org>

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@xxxxxxxxx>
To: xen-users@xxxxxxxxxxxxx
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'>

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
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@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.