WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Guest kickstart installation and guest autostart

To: KC LO <kclo2000@xxxxxxxxx>
Subject: Re: [Xen-users] Guest kickstart installation and guest autostart
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Thu, 6 May 2010 16:34:32 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 06 May 2010 02:36:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <p2z65a0d6ca1005060133ua1cb9daazebe203dd6f34ca06@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <p2z65a0d6ca1005060133ua1cb9daazebe203dd6f34ca06@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, May 6, 2010 at 3:33 PM, KC LO <kclo2000@xxxxxxxxx> wrote:
> I have installed xen-3.4.2-2.el5 on CentOS 5.4 64bit OS
>
> I encounter two problems : -
> 1) How to use kickstart with virt-install to auto-install Linux guest?
>
> I use the following command to do installation
>
> virt-install -p --name=test
> --location=http://ftp.cuhk.edu.hk/pub/Linux/centos/5.4/os/i386
> --file=/dev/VolGroup00/test1 -r 4096 -x="ip=1.1.1.1 netmask=255.255.255.
> dns=8.8.8.8 gateway=1.1.1.254 ks=http://2.2.2.2/ks2.cfg";

couple of things wrong there. probably some typo (like netmask), but
there's also something that shoudn't be there (like "=" after -x). Try

virt-install -p --name=test
--location=http://ftp.cuhk.edu.hk/pub/Linux/centos/5.4/os/i386 --disk
path=/dev/VolGroup00/test1 --network bridge=br129 -r 1024 -x "
ip=192.168.129.222 netmask=255.255.255.0 dns=192.168.17.15
gateway=192.168.129.1 ks=http://2.2.2.2/ks2.cfg";

adjust network parameters according (including bridge) to your setup.
Also from another session on dom0, try running "xm list -l test". Look
for the line that says "method=http:// ...." and see if the complete
arg line makes sense (i.e. no extra "=" or other characters)

> 2) How to auto start the guest DomU after Dom0 reboot?
> After I have installed the guest DomU through virt-install, I want to make
> this DomU auto start in next Dom0 reboot.  After I type
> virsh autostart test
> It return the following errors:
> error: Failed to mark domain test as autostarted
> error: internal error sexpr2string failed

Not sure. Probably virsh bug.
The long way would be to do something like
- xm shutdown test
- xm list -l test > test.sxp
- edit test.sxp, look for on_xend_start and on_xend_stop
- xm delete test
- xm new -F test.sxp

FWIW I still prefer old-style config file, and creating symlinks in
/etc/xen/auto :)

-- 
Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>