Hi everyone,
This is my first attempt at a PV guest install from scratch and I''m a
tad confused. Have I answered one of the questions virsh-install asks
wrongly?
Does anyone know of a general guide for installing PV guests with
virsh-install? (Most Centos docs seem to use the GUI based virt-manager
and I only have command line access).
Am I meant to make use of the files here:
http://www.mirrorservice.org/sites/mirror.centos.org/5.3/os/x86_64/image
s/xen/
Thanks,
Rob
# virt-install
Would you like a fully virtualized guest (yes or no)? This will allow
you to run unmodified operating systems. no
What is the name of your virtual machine? mg3
How much RAM should be allocated (in megabytes)? 2048
What would you like to use as the disk (file path)? /dev/data2/mg3
Would you like to enable graphics support? (yes or no) no
What is the install location?
http://www.mirrorservice.org/sites/mirror.centos.org/5.3/os/x86_64/
Starting install...
Retrieving file CentOS... 100 kB
00:00
Retrieving file vmlinuz.. 100% |=========================| 1.9 MB
00:01
Retrieving file initrd.im 100% |=========================| 6.3 MB
00:02
virDomainCreateLinux() failed XML description for domain is not well
formed or invalid
Domain installation may not have been
successful. If it was, you can restart your domain
by running ''virsh start mg3''; otherwise, please
restart your installation.
Wed, 13 May 2009 10:49:32 ERROR virDomainCreateLinux() failed XML
description for domain is not well formed or invalid
Traceback (most recent call last):
File "/usr/sbin/virt-install", line 502, in ?
main()
File "/usr/sbin/virt-install", line 462, in main
dom = guest.start_install(conscb,progresscb)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 813,
in start_install
return self._do_install(consolecb, meter)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 834,
in _do_install
self.domain = self.conn.createLinux(install_xml, 0)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 573, in
createLinux
if ret is None:raise libvirtError(''virDomainCreateLinux()
failed'',
conn=self)
libvirtError: virDomainCreateLinux() failed XML description for domain
is not well formed or invalid
The SAQ Group
Registered Office: 18 Chapel Street, Petersfield, Hampshire GU32 3DZ
SAQ is the trading name of SEMTEC Limited. Registered in England & Wales
Company Number: 06481952
http://www.saqnet.co.uk AS29219
SAQ Group Delivers high quality, honestly priced communication and I.T. services
to UK Business.
Broadband : Domains : Email : Hosting : CoLo : Servers : Racks : Transit :
Backups : Managed Networks : Remote Support.
ISPA Member
Find us in http://www.thebestof.co.uk/petersfield
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
> This is my first attempt at a PV guest install from scratch and I''m a > tad confused. Have I answered one of the questions virsh-install asks > wrongly? > > Does anyone know of a general guide for installing PV guests with > virsh-install? (Most Centos docs seem to use the GUI based virt-manager > and I only have command line access). > > Am I meant to make use of the files here: > http://www.mirrorservice.org/sites/mirror.centos.org/5.3/os/x86_64/image > s/xen/I also can''t install or boot with centos 5.3''s 2.6.18-128.1.6.el5 kernel, so maybe you can test with centos 5.2, it will install sucessfully -- May 13, 2009 21:06:18 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Louie, I use a centos 5.2 Dom0, I have managed to install a paravirt guest with virt-install and quite a few settings: virt-install -n mg3 -r 2048 --vcpus=2 -b wanbr --vnc --vncport=5917 --noautoconsole --os-type=linux --os-variant=centos5 -p -l http://www.mirrorservice.org/sites/mirror.centos.org/5.3/os/x86_64/ This is my first working from scratch para virt config but I don''t understand where the configuration is being stored. I can''t seem to use xm create and xm destroy, the VM seems to be a permanent fixture in xm list and only responds to xm start and stop. Is there any way I can get virt-install to create a standard config file so I can use xm create and xm destroy as I do with HVMs and HVMs converted to Para? Thanks, Rob -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of louie Sent: 13 May 2009 14:12 To: xen-users@lists.xensource.com Subject: [Xen-users] Re: Virsh-install error> This is my first attempt at a PV guest install from scratch and I''m a > tad confused. Have I answered one of the questions virsh-install asks > wrongly? > > Does anyone know of a general guide for installing PV guests with > virsh-install? (Most Centos docs seem to use the GUI based > virt-manager and I only have command line access). > > Am I meant to make use of the files here: > http://www.mirrorservice.org/sites/mirror.centos.org/5.3/os/x86_64/ima > ge > s/xen/I also can''t install or boot with centos 5.3''s 2.6.18-128.1.6.el5 kernel, so maybe you can test with centos 5.2, it will install sucessfully -- May 13, 2009 21:06:18 The SAQ Group Registered Office: 18 Chapel Street, Petersfield, Hampshire GU32 3DZ SAQ is the trading name of SEMTEC Limited. Registered in England & Wales Company Number: 06481952 http://www.saqnet.co.uk AS29219 SAQ Group Delivers high quality, honestly priced communication and I.T. services to UK Business. Broadband : Domains : Email : Hosting : CoLo : Servers : Racks : Transit : Backups : Managed Networks : Remote Support. ISPA Member Find us in http://www.thebestof.co.uk/petersfield _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Rob: the configuration file is in /etc/libvirt/qemu/*.xml in debian lenny I don''t know where is the centos''s config, maybe you can try to find it I have to check xml file to write my own xen domU cfg (standard config) after you write your own config, use xm new to define the vm ex. # xm new /etc/xen/centos.cfg and then use xm start to start vm ex. # xm start centos stop vm # xm shutdown centos remove vm from "xm list" # xm delete centos with this way, you can use xm or virt-manager to operate your vm at the same time> Hi Louie, > > > I use a centos 5.2 Dom0, I have managed to install a paravirt guest with > virt-install and quite a few settings: > virt-install -n mg3 -r 2048 --vcpus=2 -b wanbr --vnc --vncport=5917 > --noautoconsole --os-type=linux --os-variant=centos5 -p -l > http://www.mirrorservice.org/sites/mirror.centos.org/5.3/os/x86_64/ > > This is my first working from scratch para virt config but I don''t > understand where the configuration is being stored. I can''t seem to use > xm create and xm destroy, the VM seems to be a permanent fixture in xm > list and only responds to xm start and stop. Is there any way I can get > virt-install to create a standard config file so I can use xm create and > xm destroy as I do with HVMs and HVMs converted to Para? > > > Thanks, > > Rob-- Louie May 14, 2009 17:00:22 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users