March, Comments ubuntu 16.04
Change default network Name (ENS33) to old "eth0" on Ubuntu 16.04Just after the Ubuntu 16.04 installation, I came to know so the network interface name got changed to Ens33 from Old Sch Ool eth0. If you ever interested in changing interface names to old type EthX.As you can see in the following command, my system was having a network adapter called ENS33. Note:this is just the case of VMware environment, it may vary depends on the hardware and the
Similar onlineArticleMany of them are true, but during the test, you may find that the success rate is too low. After you modify the vmx file, start the VM, and change it to the amd Nic.
After many tests, I finally found a method with a success rate of 99% (I dare not say that 100% was successful, but at least I tested it over 10 times)
First, create a virtual machine (assuming that the virtual machine named "win_xp_sp3" is created, and the storage path of the virtual machine configuratio
-scripts] # ls ifcfg-eth *Ifcfg-eth0
[Root @ ol6-weblogic_1 network-scripts] # ls ifcfg-eth *Ifcfg-eth0
From the above comparison results, although the cloned B server saw that the original eth0 was gone from ifconfig-a and changed to eth1, in/etc/sysconfig/network-scripts, the NIC configuration file name of machine B is still called eth0.4.3 network device binding file 70-persistent-net.rules Content Comparison
Machine(Original machine)
# This file was automatically generat
Solve the problem that eth0 cannot be initialized/eth0 cannot be found after CentOS6.4 is cloned.
# Ifconfig
Only the local loopback interface can be seen,
Then use
# Ifconfig-
View all available NICs and find that eth1 is not eth0.
Conjecture
During Clone, all Nic configurations of the original virtual machine are cloned,
But in VMware, Clone actually re-creates a server,
MAC addresses and so on will naturally be re-created,
However, because the configurations of the original server are copied
specified module [plain] [root @ Think ~] # Grep 'Alias eth '/etc/modprobe. conf alias eth0 vmxnet alias eth1 e1000 alias eth2 e1000 if there is only one Nic, that is, only one Nic uses this module (driver), then in modprobe. if multiple NICs are mapped to one module at the same time, for example, in the preceding example, both eth1 and eth2 use the e1000 module
dynamic kernel module at startup and set the parameters of the module, You need to configure the module in this file.
The/etc/modules. conf file structure is as follows:
Alias eth0 e1000
Alias scsi_hostadapter ata_piix
Alias usb-controller usb-uhci
Alias sound-slot-0 i810_audio
Alias usb-controller1 ehci-hcd
??
Each line in the/etc/modules. conf file indicates the insertion of a kernel module or the parameter settings of the module. Here we only dis
Before I saw the article said that the VMware network card E1000 compatibility is better, and VMXnet3 a lot of clients directly is not recognized, generally also need to install Vmwaretool after his corresponding driver will be installed, and VMXNET3 network card performance is better, The relative E1000 can reduce the CPU utilization of the virtual machine!Generally speaking:E1000---has 1G of bandwidthVMXn
/boot/DEV/SDB2 Mount to/mnt/sysroot2. Install GRUB to target disk#grub-install--root-directory=/mnt/dev/sdb3. Copy kernel and INITRD filesCp/boot/vmlinuz-version/mnt/boot/vmlinuz (easy to simplify, no plus version number)Cp/boot/initramfs-version.img/mnt/boot/initramfs.img4. Create a root system file for the target hostMkdir-pv/mnt/sysroot/{etc/rc.d,usr,var,proc,sys,dev,lib/modules,lib64,bin,sbin,boot,src,mnt,media,home,root}Then go to the root filesystem of the target host by porting commands s
interfaceSupport for configuration in "New Configuration" mode(a) Make Defconfig: Configuration based on the "default" configuration provided by the kernel for the target platform(b) Make Allyesconfig: All options are answered "yes"(c) Make Allnoconfig: All options are answered "no"(2) compilingFull compilation: Make [-j #]Part of the kernel to compile:(a) Compile only the relevant code in a subdirectory:# Cd/usr/src/linux# Make dir/(b) Only one specific module is compiled:# Cd/usr/src/linux# M
U 0 0 0 eth2172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 Eth30.0.0.0 172.17.0.1 0.0.0.0 UG 0 0 0 Eth3Third, restart the network servicesService NetworkrestartModify the NIC namefirst, modify the corresponding configuration fileVim/etc/udev/rules.d/70-persistent-net.rulesSecond, check the network card corresponding to the network card driverEthtool–i eth2 (although the corresponding configuration file has been modified, delete the previous eht0 and eth1, and change Eth3 and eth4 accordingly to 0 and 1
Tags: password ipv4 raw None stp DHCP span console type###############Under KVMUsing the image Xenial-server-cloudimg-amd64-disk1.img,format=qcow2Cat > Hostpass #cloud-configPassword:root123CHPASSWD: {Expire:false}Ssh_pwauth:trueCloud-localds cloud.img hostpass #用hostpass文件生成cloud. imgQemu-img Info cloud.img #raw格式的When you create the VM, use the above cloud.img as CDROM mount to the VMVirt-install--virt-type KVM--name host-1--ram 1024x768--vcpus 1--import \--DISK/VAR/LIB/LIBVIRT/IMAGES/HOST-1/X
@lunar1 ~]# ps -ef|grep ohasd
root 8239 1 0 20:08 ? 00:00:00 /bin/sh /etc/init.d/init.ohasd run
root 8299 7273 0 20:08 pts/2 00:00:00 grep ohasd
[root@lunar1 ~]#
What we see here is the process of /etc/init.d/init.ohasd being automatically restarted by the system. This information will be recorded in /var/log/message/:
[root@lunar1 ~]# tail -f /var/log/messages
Jan 24 19:45:31 lunar1 kernel: e1000 0000:00:03.0 eth0:
1, install vim full version, Ubuntu installed by default is vim tiny version:
$sudo apt-get Remove Vim-common
$sudo apt-get Install vim //In order to prevent the BACKSPACE key, the arrow keys in the VI edit mode failure
2, modify the/etc/network/interfaces of Ubuntu
The default contents of the file are as follows:
Auto lo
iface lo inet loopback
Dynamically acquired configuration methods:
Auto eth0
iface eth0 inet DHCP
Statically allocated configuration methods:
Auto eth0
iface eth0 inet stat
--disk-format "raw" --container-format 'bare' --progress --file ./anquanpingtai_disk1 --min-disk 100 glance image-create --name anquanpingtai_disk2 --disk-format "raw" --container-format 'bare' --progress --file ./anquanpingtai_disk2 --min-disk 400Because VMware came to the image does not have the Virtio driver installed, so we want to set the mirrored disk drive for the IDE, the network card driver is e1000, this way the performance of the virtual
Introduction to using BIOS in Http://www.ibm.com/developerworks/cn/linux/1410_qiaoly_qemubios/QEMUThe BIOS provides firmware information for the motherboard or video card as well as basic input and output functions, and QEMU uses some open source projects such as Bochs, Openbios, etc. The BIOS and part of the firmware used in QEMU are stored in binary files in the Pc-bios directory of the source tree. The Pc-bios directory contains the firmware used by QEMU, and some bios are stored in the QEMU
In linux, how to change the sequence of NICS is often caused by the addition and replacement of NICs. However, all the previously written shell scripts are OK and there is no need to modify them. Therefore, only the NIC sequence can be changed. The position of my CentOS6.3 is in the following directory:/etc/udev/rules. d/70-persistent-net.rules: (you can see that the address is linked to the physical address of their network adapter.) SUBSYSTEM = "net", ACTION = "add", DRIVERS = "? * ", ATTR {ad
will be the same, which is the benefit of cloning.
As follows:
Due to the udev management mechanism of redhat and centos, the NIC is changed to eth1. to change it back to eth0, follow these steps:# Cd/etc/udev/rules. d/# Vim 70-persistent-net.rules
At this point, you also need cd/etc/sysconfig/network-scripts to modify the ifcfg-eth0 file
Restart network service# Service network restartWhen the network service is restarted, an error is reported because the system is not recognize
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.