|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Guest kickstart installation and guest autostart
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
|
|
|
|
|