In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
memory tuning
modify the configuration file
[root@controller ~]# virsh edit windows_2k3_01
524288
524288
memory: defines maximum memory;
currentMemory: memory size, can not exceed the maximum memory;
Note: If the virtual machine is powered on, you need to stop it.
Modify Maximum Memory (Off state)
[root@controller ~]# virsh setmaxmem windows_2k3_01 824288 --config
Modify actual memory size
[root@controller ~]# virsh setmaxmem windows_2k3_01 824288 --config -live
View memory information
[root@controller ~]# virsh dominfo windows_2k3_01
CPU adjustment
modify the configuration file
1
Note: If the virtual machine is powered on, you need to stop it.
Modify maximum CPU count (shutdown state)
[root@controller ~]# virsh setvcpus windows_2k3_01 --maximum 4 --config
Modify actual CPU usage
[root@controller ~]# virsh setvcpus windows_2k3_01 2
View CPU information
[root@controller ~]# virsh dominfo windows_2k3_01
Modified Profile
4
Network card adjustment
View network card information
[root@controller ~]# virsh domiflist windows_2k3_01
Interface Type Source Model MAC
-------------------------------------------------------
- network default rtl8139 52:54:00:73:44:3e
Create a network card (boot state)
[root@controller ~]# virsh attach-interface windows_2k3_01 --type network --source default --config
Note: If config parameter is not added, it means that network card is temporarily added, otherwise it is permanently added. In addition, Linux system virtual machine type is different from source value.
remove the nic
[root@controller ~]# virsh detach-interface windows_2k3_01 --type rtl8139 --mac 52:54:00:ed:47:f9
increase disk
View disk space
[root@controller ~]# qemu-img info /data/pool/windows_2k3_01
file format: qcow2
virtual size: 30G (32212254720 bytes)
increase disk
[root@controller ~]# qemu-img create -f qcow2 /data/pool/windows_2k3_01_new 1G
Note: Disk capacity increase needs to be performed in the system shutdown state. If the system is in operation, it is necessary to restart the system.
modify the configuration file
[root@controller ~]# virsh edit windows_2k3_01
Add the following to your profile
Note: The dev value is unique, hda for the first disk, hdb for the second disk, and so on. Note the dev value for the optical drive.
format the partition
Right-click "Manage"-click "Disk Management"-click "Initialize Disk"-click "Create Partition"
Note: There is also a way to expand, directly modify the original image size. The requested URL/data/pool/window_2k3_01 + 5G was not found on this server.
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.