Mailing List Archive

Start Domain
Hello List,

maybe a question that would asked 1000 Times, but i can't find an answer to my question with the
help of Google ;)

I am using Fedora Rawhide and Xen Version 4.13 and i would like to start a vm in the terminal.

I go to /etc/libvirt/libxl  and make this:


[root@schulung libxl]# pwd
/etc/libvirt/libxl
[root@schulung libxl]# xl create -n centos8.0.xml
Parsing config from centos8.0.xml
centos8.0.xml:1: config parsing error near `<!--': lexical error
centos8.0.xml:2: config parsing error near `WARNING:': lexical error
centos8.0.xml:3: config parsing error near `OVERWRITTEN': lexical error
centos8.0.xml:3: config parsing error near `:': lexical error
centos8.0.xml:5: config parsing error near `API.': lexical error
centos8.0.xml:6: config parsing error near `-->': lexical error
centos8.0.xml:8: config parsing error near `<domain': lexical error
centos8.0.xml:8: config parsing error near `>': lexical error
centos8.0.xml:10: config parsing error near `<uuid>4f37dc8f-ceed-45cd-a061-6d5ca0f62b33</uuid>':
lexical error
centos8.0.xml:11: config parsing error near `<memory': lexical error
centos8.0.xml:12: config parsing error near `<currentMemory': lexical error
centos8.0.xml:13: config parsing error near `<vcpu': lexical error
centos8.0.xml:14: config parsing error near `<os>': lexical error
centos8.0.xml:15: config parsing error near `<type': lexical error
warning: Config file looks like it contains Python code.
warning:  Arbitrary Python is no longer supported.
warning:  See http://wiki.xen.org/wiki/PythonInXlConfig
Failed to parse config: Invalid argument
[root@schulung libxl]#


So, with virt-manager this no Problem to start a VM, Xl shutdown works for me.

So, were is my fault? Use i the wrong command to start a vm?


Regards

Dirk



_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users
Re: Start Domain [ In reply to ]
On 28/02/2020 09:46, Dirk Streubel wrote:
> Hello List,

Hello,

>
> maybe a question that would asked 1000 Times, but i can't find an answer to my question with the
> help of Google ;)
>
> I am using Fedora Rawhide and Xen Version 4.13 and i would like to start a vm in the terminal.
>
> I go to /etc/libvirt/libxl  and make this:
>
>
> [root@schulung libxl]# pwd
> /etc/libvirt/libxl
> [root@schulung libxl]# xl create -n centos8.0.xml
> Parsing config from centos8.0.xml
> centos8.0.xml:1: config parsing error near `<!--': lexical error
> centos8.0.xml:2: config parsing error near `WARNING:': lexical error
> centos8.0.xml:3: config parsing error near `OVERWRITTEN': lexical error
> centos8.0.xml:3: config parsing error near `:': lexical error
> centos8.0.xml:5: config parsing error near `API.': lexical error
> centos8.0.xml:6: config parsing error near `-->': lexical error
> centos8.0.xml:8: config parsing error near `<domain': lexical error
> centos8.0.xml:8: config parsing error near `>': lexical error
> centos8.0.xml:10: config parsing error near `<uuid>4f37dc8f-ceed-45cd-a061-6d5ca0f62b33</uuid>':
> lexical error
> centos8.0.xml:11: config parsing error near `<memory': lexical error
> centos8.0.xml:12: config parsing error near `<currentMemory': lexical error
> centos8.0.xml:13: config parsing error near `<vcpu': lexical error
> centos8.0.xml:14: config parsing error near `<os>': lexical error
> centos8.0.xml:15: config parsing error near `<type': lexical error
> warning: Config file looks like it contains Python code.
> warning:  Arbitrary Python is no longer supported.
> warning:  See http://wiki.xen.org/wiki/PythonInXlConfig
> Failed to parse config: Invalid argument
> [root@schulung libxl]#
>
>
> So, with virt-manager this no Problem to start a VM, Xl shutdown works for me.
>
> So, were is my fault? Use i the wrong command to start a vm?

The configuration file for libvirt and xl is different. You will want to
convert the file if you want to use xl.

You can read [1] for more details on xl configuration file.

Cheers,

[1] https://xenbits.xen.org/docs/unstable/man/xl.cfg.5.html

--
Julien Grall

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users
Re: Start Domain [ In reply to ]
On Fri, Feb 28, 2020 at 5:49 PM Dirk Streubel <dirk.streubel@posteo.de> wrote:
>
> Hello List,
>
> maybe a question that would asked 1000 Times, but i can't find an answer to my question with the
> help of Google ;)
>
> I am using Fedora Rawhide and Xen Version 4.13 and i would like to start a vm in the terminal.
>
> I go to /etc/libvirt/libxl and make this:
>
>
> [root@schulung libxl]# pwd
> /etc/libvirt/libxl
> [root@schulung libxl]# xl create -n centos8.0.xml
> Parsing config from centos8.0.xml
> centos8.0.xml:1: config parsing error near `<!--': lexical error
> centos8.0.xml:2: config parsing error near `WARNING:': lexical error
> centos8.0.xml:3: config parsing error near `OVERWRITTEN': lexical error
> centos8.0.xml:3: config parsing error near `:': lexical error
> centos8.0.xml:5: config parsing error near `API.': lexical error
> centos8.0.xml:6: config parsing error near `-->': lexical error
> centos8.0.xml:8: config parsing error near `<domain': lexical error
> centos8.0.xml:8: config parsing error near `>': lexical error
> centos8.0.xml:10: config parsing error near `<uuid>4f37dc8f-ceed-45cd-a061-6d5ca0f62b33</uuid>':
> lexical error
> centos8.0.xml:11: config parsing error near `<memory': lexical error
> centos8.0.xml:12: config parsing error near `<currentMemory': lexical error
> centos8.0.xml:13: config parsing error near `<vcpu': lexical error
> centos8.0.xml:14: config parsing error near `<os>': lexical error
> centos8.0.xml:15: config parsing error near `<type': lexical error
> warning: Config file looks like it contains Python code.
> warning: Arbitrary Python is no longer supported.
> warning: See http://wiki.xen.org/wiki/PythonInXlConfig
> Failed to parse config: Invalid argument
> [root@schulung libxl]#
>
>
> So, with virt-manager this no Problem to start a VM, Xl shutdown works for me.
>
> So, were is my fault? Use i the wrong command to start a vm?
You should use libvirt tools instead of 'xl', like:
virsh start centos8.0


>
>
> Regards
>
> Dirk
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xenproject.org
> https://lists.xenproject.org/mailman/listinfo/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users