In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Upload the image file of centos to the/data directory via ftp
You can set up an ftp server on this machine
Download an image on a VM virtual machine
You can also use vmtools
Start xen virtual host installation preparation (install xen virtual machine from command line)
Install apache and create tree directory under apache root directory
# yum install httpd
# service httpd start
chkconfig httpd on
# cd /var/www/html/
mkdir tree
reboot
The requested URL/html/index.php was not found on this server.
mount -o loop/data/CentOS-6.5.iso/var/www/html/tree/ VM virtual machine needs to be remounted after restart
You can check in your browser whether the mount is successful. The page is displayed as a file.
http://127.0.0.1/tree can be tested at the terminal wget http://192.168.122.1/tree/p_w_picpaths/install.img
start the installation
yum install virt-*
yum install libvirt-*
virt-install --prompt failed
All the way to the next step IP for DHCP automatic acquisition
Fix "Unable to retrieve 192.168.0.100/var/www/html/p_w_picpaths/install.img error"
Fix "Unable to retrieve 192.168.0.100/var/www/html/p_w_picpaths/install.img error"
Analysis: We must understand at which stage this error occurs in order to correctly find the cause of the error. When this error occurs, it is already in the boot PXE boot successfully obtained ip from dhcp server,(or CD boot) are normal, and the ks file is read normally, and the installation source is found correctly. Otherwise, it will not prompt that the install.img file cannot be obtained. Generally unable to obtain a file, either the file is damaged or the network does not work.
Solution:
1) We first prove that the installation source server is normal, we use another machine to download the install.img file, using the following command:
wget http://192.168.0.100/var/www/html/p_w_picpaths/install.img
If you can download this file normally, it means that the installation source server (i.e. kickstart server) is normal.
2) The previous stage of finding the install.img file is the stage of configuring the network card and gateway. Check whether the network card part of the configuration of your ks file is not a network segment with the IP of the installation source. If it is not a network segment, it will cause network disconnection and generate this error. This question, too, has been bothering me for hours, and it's very confusing.
3)When checking the ks.cfg file, the installation method HTTP error occurs. After selecting the "HTTP" installation, the HTTP directory is added, resulting in the title error of this article. The reason for this error is that after HTTP runs, the file in the root directory of the web page (/var/www/html) will be read by default. At this time, if a directory is added to HTTP, the path is incorrect.
4)There is also a place to pay attention to is to use graphical configuration ks.cfg file in the "partition configuration" here must remember to select "clear the master boot record" this item, otherwise you will manually choose whether to "clear the master boot record or format the disk" during the automatic installation, so that you lose the meaning of the automatic installation.
2. virt-manager & can be successfully installed by using http
Select the option above
choose variant
Source path used by installation
Storage path Other can default Next
allocate entire virtual disk now allocate the entire virtual disk
ignore: ignore
re-initialize: reinitialize
Default Next step until successful installation No interface, only command line
3, the local image installation failed, you can use the image of 163, will install successfully
Create virtual machine test3
It takes a bit long to create a 6 gigabyte mirror file
dd if=/dev/sdb1 of=/data/test3.img bs=1M count=6144
create a virtual machine
virt-install -n test3 -r 512 -f /data/test3.img -l http://192.168.122.1/tree
virt-install parameter analysis
-n test3 #Name of virtual machine, here our name is CentosVM02
-r 512 #Maximum memory of the virtual machine in MB. Here we have 512 megabytes of memory.
The requested URL/data/test3.img was not found on this server.
-l http://192.168.122.1/tree #Mirror path of the system. Xen only supports FTP/HTTP/NFS http://mirrors.163.com/centos/6.7/os/x86_64/
4, the local image installation failed, you can use the image of 163, will install successfully
Start creating virtual machines from the command line
virt-install -n xentest -f /data/xentest.img -s 3 -r 782 --nographics -l http://192.168.122.1/tree http://mirrors.163.com/centos/6.7/os/x86_64/
-n Specifies the name of the virtual machine created
-f Files used as disk images
-s Size of disk image in G
-r Specifies the size of memory in M
--nographics means no graphics console is installed
-l Source of installation
Virtual Machine Tuning
The virtual machine installation is complete. Since it is a brand-new installation using OEL 5.8, the following parameters need to be modified.
Close SELINUX
vi /etc/selinux/config
Close iptables
chkconfig iptables off
restart virtual machines
reboot
1) View virtual machines
# xm list
2) Console login virtual machine
# xm console dd
Ctrl+] to open the console
3) Common xm command
The xm command can be used to start the Stop VM Start VM command as follows:
xm create vm01 #where vm01 is the virtual machine configuration file located in/etc/xen/vm01
xm create -c vm01 #If you need to start the console, run the command
xm list #lists all virtual machines
xm console #can display the console of a virtual machine
xm reboot #can reboot virtual machines with id domid
xm shutdown #can shut down virtual machines with id domid
xm shutdown #Name or DomID of the virtual operating system #Shut down the virtualized system
xm destroy #can destroy virtual machines with id domid
xm console fc5 #Log in to a running virtual operating system from a terminal or console
xm save #Store state of running virtual operating systems
xm restore #Wake up the virtual operating system
xm pause #Stop a running virtual operating system
xm unpause #Activate a stopped virtual operating system
xm mem-set #Adjust virtual platform/virtual operating system memory footprint
xm destroy #immediately stop virtual systems (important);
xm vcpu-set #Adjust the number of virtual CPUs for virtual platforms and virtual operating systems
xm top or xentop #View virtual system running status
The virtual machine is installed.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.