2014-04-05 2 views
2
내가 킥 스타트를 사용하고 virt-install 명령

젠은 명령 줄

으로 젠을 사용하여 (CentOS는) 가상 머신을 생성하고 http://192.168.1.8/centos/kickstart.cfg
에 넣어 http://192.168.1.8/centos/os/ enter image description here

에를 CentOS 6.5을 데려 가고 싶다는

을 사용하여 새 가상 컴퓨터를 만들

사용

[[email protected] ~]# dd if=/dev/zero of=/var/lib/xen/images/vserver.img bs=1M count=4000

,426,285,419,931,560,463,210

결과

Starting install... ERROR Could not find an installable distribution at 'http://192.168.1.8/centos/os' The location must be the root directory of an install tree. Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect xen:/// start vserver otherwise, please restart your installation.

+0

이 질문은 분명히 수퍼 유저에게 속합니다. 그러나 다시, 저는 이미 여기 있습니다. 도움이 될 것입니다. virsh의 네트워크 설치 방법을 사용하지 않는 이유가 있습니까? –

+0

아무도 나에게 대답하지 않아서 수퍼 유저에서 삭제합니다. 여기에서 묻습니다. – Steve

+0

이해할 수 없으므로 더 설명 할 수 있습니까? – Steve

답변

2

는 .treeinfo 파일이 필요합니다입니다,

vi /var/www/html/centos/os/.treeinfo 

을이 줄을 추가

[general] 
family = CentOS 
timestamp = 1341518023.56 
variant = 
totaldiscs = 1 
version = 6.5 
discnum = 1 
packagedir = 
arch = i386 

[images-i386] 

initrd = images/pxeboot/initrd.img 

[images-xen] 

initrd = isolinux/initrd.img 
kernel = isolinux/vmlinuz 

[stage2] 
mainimage = images/install.img 
는 는

는에서 직접 복사하지 마십시오 브라우저를 사용하여 키보드로 작성하거나 텍스트 파일로 복사하십시오. 특수 문자를 제거하려면 문자열 로 CentOS는 (URL)를 추가 VIRT 설치 명령에서

chown -R apache:apache /var/www/html/* 

bridge:xenbr0

[[email protected] ~]# virt-install -p -n vserver -r 512 -f /var/lib/xen/images/vserver.img -l "http://192.168.1.8/centos/os" -x -w --bridge=xenbr0 --vcpus=1 

PS 대신 --bridge=xenbr0를 사용합니다 :

마지막으로 파일을 아파치 소유권을 부여 변화를 64 비트 버전에서 x86_64를 사용하는 경우 아치 필드